File size: 2,386 Bytes
0614a30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
  "run_mode": "DEBUG",
  "model_id": "microsoft/Florence-2-large",
  "objective": "same-image same-class attribute-selective counterfactual binding",
  "max_label_length": 64,
  "binding_margin": 0.3,
  "lambda_bind": 0.5,
  "selected_span_audit": {
    "records_checked": 56,
    "successful_spans": 56,
    "span_failures": 0,
    "distractor_mentions_in_caption": 0,
    "attribute_token_length_distribution": {
      "1": 54,
      "3": 1,
      "2": 1
    }
  },
  "unit_test_sample": {
    "image_id": 3301,
    "pair_idx": 0,
    "object_class": "car",
    "target_attribute": "black",
    "distractor_attribute": "white",
    "caption": "a black car park",
    "attribute_char_span": [
      2,
      7
    ],
    "attribute_token_positions": [
      2
    ],
    "attribute_token_ids": [
      909
    ],
    "attribute_token_strings": [
      "Ġblack"
    ],
    "target_box": [
      429.0,
      217.0,
      551.0,
      268.0
    ],
    "target_bins": [
      536,
      361,
      688,
      446
    ],
    "target_prompt": "<REGION_TO_DESCRIPTION><loc_536><loc_361><loc_688><loc_446>",
    "distractor_box": [
      189.0,
      201.0,
      240.0,
      239.0
    ],
    "distractor_bins": [
      236,
      335,
      300,
      398
    ],
    "distractor_prompt": "<REGION_TO_DESCRIPTION><loc_236><loc_335><loc_300><loc_398>",
    "attribute_token_logprobs": [
      {
        "decoder_position": 2,
        "token_id": 909,
        "token": "Ġblack",
        "target_region_logprob": -1.6028790473937988,
        "distractor_region_logprob": -3.716480255126953,
        "difference": 2.1136012077331543
      }
    ],
    "L_cap": 6.110188961029053,
    "S_pos": -1.6028790473937988,
    "S_neg": -3.716480255126953,
    "score_gap": 2.1136012077331543,
    "raw_hinge_argument": -1.8136012554168701,
    "L_bind": 0.0,
    "hinge_active": false,
    "L_total": 6.110188961029053
  },
  "gradient_audit": {
    "trainable_with_grad": 192,
    "trainable_without_grad": 0,
    "trainable_nonzero_grad": 96,
    "nonfinite_trainable_grad": 0,
    "frozen_gradient_leaks": 0
  },
  "peak_gpu_memory_gb": 2.044325351715088,
  "optimizer_created": false,
  "optimizer_step_performed": false,
  "whole_caption_negative_on_distractor": false,
  "binding_supervision_scope": "target_attribute_tokens_only",
  "gradients_cleared_after_test": true,
  "status": "PASSED"
}