{
  "environment": {
    "torch": "2.3.1+cu118",
    "device": "cpu",
    "dtype": "float64",
    "random_sampling": false,
    "model_or_dataset_download": false
  },
  "CAM_GradCAM_fixed_maps": {
    "feature_shape_K_H_W": [
      2,
      2,
      2
    ],
    "feature_maps": [
      [
        [
          1.0,
          2.0
        ],
        [
          0.0,
          1.0
        ]
      ],
      [
        [
          0.0,
          1.0
        ],
        [
          3.0,
          2.0
        ]
      ]
    ],
    "class_weights": [
      2.0,
      -1.0
    ],
    "bias": 0.5,
    "GAP_convention": "mean of 4 spatial positions",
    "gap_features": [
      1.0,
      1.5
    ],
    "raw_class_logit": 1.0,
    "score_gradients_wrt_features": [
      [
        [
          0.5,
          0.5
        ],
        [
          0.5,
          0.5
        ]
      ],
      [
        [
          -0.25,
          -0.25
        ],
        [
          -0.25,
          -0.25
        ]
      ]
    ],
    "central_difference_gradients": [
      [
        [
          0.4999999999921733,
          0.4999999999921733
        ],
        [
          0.4999999999921733,
          0.4999999999921733
        ]
      ],
      [
        [
          -0.24999999999053554,
          -0.24999999999053554
        ],
        [
          -0.24999999999053554,
          -0.24999999999053554
        ]
      ]
    ],
    "central_difference_max_abs_error": 9.46445699590015e-12,
    "gradcam_alpha": [
      0.5,
      -0.25
    ],
    "CAM_signed": [
      [
        2.0,
        3.0
      ],
      [
        -3.0,
        0.0
      ]
    ],
    "GradCAM_before_ReLU": [
      [
        0.5,
        0.75
      ],
      [
        -0.75,
        0.0
      ]
    ],
    "CAM_after_ReLU_for_comparison": [
      [
        2.0,
        3.0
      ],
      [
        0.0,
        0.0
      ]
    ],
    "GradCAM_after_ReLU": [
      [
        0.5,
        0.75
      ],
      [
        0.0,
        0.0
      ]
    ],
    "CAM_mean_plus_bias": 1.0,
    "GradCAM_before_ReLU_sum_plus_bias": 1.0,
    "GradCAM_after_ReLU_sum_plus_bias": 1.75,
    "peak_normalized_CAM_positive": [
      [
        0.6666666666666666,
        1.0
      ],
      [
        0.0,
        0.0
      ]
    ],
    "peak_normalized_GradCAM": [
      [
        0.6666666666666666,
        1.0
      ],
      [
        0.0,
        0.0
      ]
    ],
    "bias_plus_2_changes_logit_to": 3.0,
    "bias_shift_max_gradient_change": 0.0,
    "scope": "head-only fixed feature maps, not input pixels; signed CAM and standard positive Grad-CAM are distinct"
  },
  "feature_activation_input_ascent_no_prior": {
    "fixed_feature_vector": [
      2.0,
      -1.0,
      0.5
    ],
    "optimized_variable": "unconstrained 3D input u",
    "objective": "v dot u - lambda/2 * ||u||^2",
    "lambda": 0.0,
    "learning_rate": 0.2,
    "updates": 20,
    "selected_actual_iterates": [
      {
        "step": 0,
        "input_u": [
          0.0,
          0.0,
          0.0
        ],
        "feature_activation": 0.0,
        "L2_penalty": 0.0,
        "objective": 0.0,
        "objective_gradient": [
          2.0,
          -1.0,
          0.5
        ]
      },
      {
        "step": 1,
        "input_u": [
          0.4,
          -0.2,
          0.1
        ],
        "feature_activation": 1.05,
        "L2_penalty": 0.0,
        "objective": 1.05,
        "objective_gradient": [
          2.0,
          -1.0,
          0.5
        ]
      },
      {
        "step": 5,
        "input_u": [
          2.0,
          -1.0,
          0.5
        ],
        "feature_activation": 5.25,
        "L2_penalty": 0.0,
        "objective": 5.25,
        "objective_gradient": [
          2.0,
          -1.0,
          0.5
        ]
      },
      {
        "step": 20,
        "input_u": [
          8.000000000000002,
          -4.000000000000001,
          2.0000000000000004
        ],
        "feature_activation": 21.000000000000004,
        "L2_penalty": 0.0,
        "objective": 21.000000000000004,
        "objective_gradient": [
          2.0,
          -1.0,
          0.5
        ]
      }
    ],
    "max_autograd_vs_analytic_gradient_error": 0.0,
    "finite_step_max_reference_error": 1.7763568394002505e-15,
    "analytic_reference": null,
    "optimization_scope": "No finite maximizer: a nonzero linear feature is unbounded on unconstrained R^3"
  },
  "feature_activation_input_ascent_L2_prior": {
    "fixed_feature_vector": [
      2.0,
      -1.0,
      0.5
    ],
    "optimized_variable": "unconstrained 3D input u",
    "objective": "v dot u - lambda/2 * ||u||^2",
    "lambda": 0.5,
    "learning_rate": 0.2,
    "updates": 20,
    "selected_actual_iterates": [
      {
        "step": 0,
        "input_u": [
          0.0,
          0.0,
          0.0
        ],
        "feature_activation": 0.0,
        "L2_penalty": 0.0,
        "objective": 0.0,
        "objective_gradient": [
          2.0,
          -1.0,
          0.5
        ]
      },
      {
        "step": 1,
        "input_u": [
          0.4,
          -0.2,
          0.1
        ],
        "feature_activation": 1.05,
        "L2_penalty": 0.05250000000000001,
        "objective": 0.9975,
        "objective_gradient": [
          1.8,
          -0.9,
          0.45
        ]
      },
      {
        "step": 5,
        "input_u": [
          1.6380400000000002,
          -0.8190200000000001,
          0.40951000000000004
        ],
        "feature_activation": 4.299855000000001,
        "L2_penalty": 0.8804168105250002,
        "objective": 3.4194381894750006,
        "objective_gradient": [
          1.18098,
          -0.59049,
          0.295245
        ]
      },
      {
        "step": 20,
        "input_u": [
          3.513693381637723,
          -1.7568466908188616,
          0.8784233454094308
        ],
        "feature_activation": 9.223445126799023,
        "L2_penalty": 4.051044762241554,
        "objective": 5.172400364557468,
        "objective_gradient": [
          0.24315330918113842,
          -0.12157665459056921,
          0.060788327295284605
        ]
      }
    ],
    "max_autograd_vs_analytic_gradient_error": 0.0,
    "finite_step_max_reference_error": 4.440892098500626e-16,
    "analytic_reference": {
      "optimal_input": [
        4.0,
        -2.0,
        1.0
      ],
      "optimal_objective": 5.25,
      "finite_step_exact_factor": "87842334540943071199/100000000000000000000",
      "finite_step_reference": [
        3.5136933816377227,
        -1.7568466908188614,
        0.8784233454094307
      ],
      "objective_gap_to_optimum": 0.07759963544253168
    },
    "optimization_scope": "Unique maximum for this unconstrained concave quadratic; no claim for a CNN objective"
  },
  "limits": [
    "no CNN forward, real photograph, trained checkpoint, localization accuracy or pixel causal test",
    "mean-GAP linear head gives alpha=w/Z; this equality is not general for nonlinear heads",
    "ReLU discards negative evidence; peak normalization can hide raw constant scale",
    "input ascent is actual optimization of a hand-set vector, not a generated CNN image or model training",
    "L2 prior here is a toy constraint, not a claim to natural-image realism"
  ]
}
