Our extension: telling the model where to look
AFT never says where the saliency should go; the sparsity is a side effect. We add a term that does say so. Take the Simple Gradient map of the agreement between the fine-tuned embedding and the original CLIP embedding, normalise it so it sums to one, and measure the share that falls inside the object's segmentation mask. The Energy Pointing Game loss is one minus that share, so it is zero when all of the attention sits on the object and one when none of it does.
Two practical points. The loss needs masks, so we fine-tune on COCO, whose instance annotations supply them. And it needs the gradient of a gradient, which makes each step take 1.27 times as long. Applied from the start, training does not converge: early in AFT the input gradients are dense and the second-order signal has random sign. Applied for 2,000 steps on top of a converged AFT checkpoint, it works, and the weight becomes a dial.
Three things make us think the change is in the encoder rather than in one gradient path. Grad-ECLIP, a different saliency method that the loss never touches, improves at every step of the dial. The gain transfers: on the dermoscopy images the Simple Gradient pointing game goes from 0.428 with AFT to 0.820 at ws = 0.6. And the loss has a theoretical reading: to first order, minimising it is the same as making the encoder robust to perturbations confined to the background. A background-only attack confirms the shift in relative sensitivity. Plain AFT is 1.25 to 1.29 times more sensitive to background pixels than to object pixels; with the new term the ratio falls to 0.94, 0.79 and 0.68 as the weight rises.
What it does not do: deletion and insertion tests, and a test of whether the map follows the prompt when two objects are present, do not improve with the weight. The extension is a targeted gain in foreground alignment, not a general gain in faithfulness. The fourth panel in the widget at the top shows the maps at ws = 0.6 for the three COCO photos.