Language-based object detectors find the boxes in an image that match a free-form text description. They have a stubborn flaw: given a description of something that is not in the image, such as "a dog not on the floor" or "the red mug" when only a blue one is present, they still draw a box. This is called affirmation bias, the habit of assuming that whatever the text mentions must be there. Large detectors can be partly cured by training on hard negatives, meaning descriptions that are deliberately wrong for an image. The deployment question is whether a compact student detector can inherit this skill from a large teacher through knowledge distillation, in which a small model is trained to imitate a large model's soft outputs instead of only hard labels. The obvious version of this has a problem. The teacher is itself biased toward affirming, so copying its absolute confidence scores on negative queries also copies its false positives.
We propose that the student should imitate the teacher's contrast rather than its scores. For each region in an image, the student matches how much more the teacher believes a true description than a minimally edited false one (a "foil"). Where the teacher gets that ordering wrong, the student falls back to the ground-truth label. The core bet is that this paired-contrast signal carries the useful part of the teacher's knowledge, namely how close a near-miss description is to the truth, while discarding the teacher's overall tendency to say yes. A further bet is that this signal is rich enough to replace the expensive diffusion-generated image negatives used today with cheap text-only foils.
Core Claim
The closest prior work, Generating Enhanced Negatives for Training Language-Based Object Detectors, uses large language models and the GLIGEN diffusion editor offline to produce negative text and images. It then trains GLIP-T and FIBER-B on them with ordinary hard labels. There is no teacher-to-student signal, and the pipeline needs heavy CLIP and box filtering, which still leaves 16% noise along with visible synthesis artifacts. Detector distillation as practiced in ViLD, which aligns region embeddings with CLIP image and text embeddings, transfers only affirmative knowledge. HKD4VLM distills hallucination detection between Qwen-2.5-VL sizes as a post-hoc classification task, not as box-level rejection inside the detector. CKD uses "negatives" only in the batch-contrastive sense of other images.
Our claim is narrower than "distill absence awareness." Matching the teacher's per-region logit gap between a positive description and its foil on the same image transfers absence rejection to a compact detector better than three alternatives trained on identical data: hard-label negative training, standard per-query logit distillation, and post-hoc threshold calibration. It should also cost less on affirmative benchmarks.
Method
Let $s(r,q)$ be a detector's alignment logit between image region $r$ and description $q$. Let $\tilde q$ be a foil of $q$ produced by an LLM through attribute swap, entity recombination, or negation flip, as in the text-negative recipes of Generating Enhanced Negatives and DesCo. Define the teacher's gap $\Delta_T(r)=s_T(r,q)-s_T(r,\tilde q)$ and the student's gap $\Delta_S(r)$ the same way. For regions matched to the ground-truth box of $q$, the gap distillation loss is
$$ \mathcal{L}_{\text{gap}} = \sum_{r} g(r)\,\mathrm{BCE}\big(\sigma(\Delta_S(r)/\tau),\ \sigma(\Delta_T(r)/\tau)\big) + (1-g(r))\,\max\big(0,\ m-\Delta_S(r)\big), $$
where $\sigma$ is the sigmoid, $\tau$ a temperature, $m$ a margin, and $g(r)\in\{0,1\}$ a gate. The gate is 1 when the teacher's ordering agrees with ground truth ($\Delta_T(r)>0$ on a true match). When it is 0, the student gets a plain margin constraint. On unmatched regions the gap target is not used, and both queries receive the standard detection loss.
The gap is shift-invariant. If the teacher inflates every score for an image because the text "sounds plausible," that inflation cancels. What survives is graded information: "red mug" versus "blue mug" on a red mug should yield a large gap, while "mug" versus "cup" should yield a small one. That graded signal is the dark knowledge of Transferring knowledge from a RNN to a DNN, applied to near-miss descriptions rather than classes.
The pairing also addresses the gradient conflict reported in CKD, where CKD had to drop teacher negatives from its contrastive denominator. Here each teacher target is a fixed scalar per pair, so no batch denominator mixes student and teacher terms. Whether this actually avoids interference is measured rather than assumed, as described below. The gate is our answer to teacher noise: it is a per-region check against ground truth, not the sample-level CLIP filtering of prior pipelines.
Research Program
The teacher is a large detector already trained with negatives. Candidates are GLIP-L, DesCo-FIBER, or the released negative-trained GLIP checkpoint from Gen-Enhanced-Negs. The primary student is GLIP-T, because published negative-training gains exist for it. A second, smaller student will test whether the effect grows as capacity shrinks. Training data is Flickr30k grounding, matching the released checkpoint, with LLM text foils. Image negatives from GLIGEN are used only in the comparison arm.
The program has three analyses. The first is the main transfer comparison. The second tests whether text-only foils with gap distillation can match text-plus-image hard-label training, which would remove the costliest stage of the existing pipeline. The third is a diagnostic: we measure the cosine similarity between the gradients of the detection loss and the distillation loss over training, and we compare the spread of embeddings for negated queries. The spread measurement checks for the collapse of negated concepts into one cluster that Vision-Language Models Do Not Understand Negation observed for ConCLIP.
Baselines
The naive reference is GLIP-T used as released, with no negative training. This shows how much affirmation bias a small detector has to begin with. OmniLabel reports that even GLIP-L falls from 33.2 to 21.2 AP when negative descriptions are introduced.
The strongest existing method is direct hard-label negative training following Generating Enhanced Negatives. That paper reports +2.9 AP on OmniLabel for GLIP-T, +2.4 AP for FIBER-B, and +3.3 AP on $D^3$ for FIBER-B. No absolute OmniLabel AP for the negative-trained GLIP-T was found on Lacuna, so we will re-evaluate the released checkpoint ourselves with the provided omnilabeltools code to fix the reference value. As an upper reference we use DesCo-FIBER, whose reported 29.3 OmniLabel AP comes from DesCo.
The distillation competitor is standard per-query logit distillation, which applies the usual KL divergence between teacher and student region-query probabilities to both positive and foil queries. It uses the same teacher, the same data, and the same number of steps. A ViLD-style arm distills only affirmative region embeddings, which tests whether ordinary detector distillation carries any absence knowledge.
The ablations are gap distillation without the gate, gap distillation with random-batch foils in place of same-image foils, and text-only versus text-plus-image negatives. Every arm uses the same images, foils, epochs, and a matched hyperparameter search of eight configurations, tuned on a held-out split of OmniLabel validation. Beating the strongest baseline means a gain on the negative-description subset of OmniLabel and on $D^3$ that exceeds seed variance across three seeds. That gain must come without a drop larger than 0.5 AP on LVIS $AP_r$ or COCO relative to the naive student.
Why not just…?
Why not just train the small student directly on the synthetic negatives? This is the main threat, because it is exactly what Generating Enhanced Negatives does, and it works. Our reason to expect more is that hard 0/1 labels on foils say nothing about how wrong a foil is. Vision-Language Models Do Not Understand Negation also reports that heavy negative fine-tuning slightly hurts affirmative retrieval. If gap distillation does not beat this baseline on negative-description AP or on affirmative retention, the proposal fails on its main claim, and the head-to-head comparison is built to show that.
Why not just distill the teacher's ordinary scores on the same negative-augmented data? Standard logit distillation is the natural first attempt, and it may capture much of the benefit. The specific risk is that it copies the teacher's absolute overconfidence on plausible but absent descriptions. We will test that risk directly by measuring the student's false-positive rate on negative descriptions the teacher itself fails. If per-query KD matches gap distillation there, the contrast formulation adds nothing, and we will report that outcome.
Why not just recalibrate thresholds after training? OmniLabel shows that detectors without negative training are confidently wrong: Detic scores 43.1 AP on COCO but 4.6 AP on free-form descriptions, which suggests a single cutoff cannot separate true matches from false ones. We still include per-query-type threshold and temperature tuning on held-out data as a baseline for every arm, so any gain from training is measured beyond what calibration alone achieves.
Why not just run the large teacher? It is accurate but defeats the purpose of a compact model. We report latency and parameter count next to accuracy so the trade-off is explicit.
Decisive Checks
The idea survives if four things hold. First, on OmniLabel and $D^3$, gap distillation into GLIP-T beats both hard-label negative training and per-query KD on the negative-description subset. Second, it does so while staying within 0.5 AP of the naive student on LVIS $AP_r$. Third, removing the gate measurably increases false positives on the cases the teacher gets wrong. Fourth, text-only foils with gap distillation come within seed variance of text-plus-GLIGEN hard-label training.
If the gain appears only with image negatives, the cost argument fails. If ungated gap distillation equals gated, the teacher-noise argument fails. Each outcome is informative on its own.
References
- Generating Enhanced Negatives for Training Language-Based Object Detectors
- Open-vocabulary Object Detection via Vision and Language Knowledge Distillation
- HKD4VLM: A Progressive Hybrid Knowledge Distillation Framework for Robust Multimodal Hallucination and Factuality Detection in VLMs
- CKD: Contrastive Knowledge Distillation From a Sample-Wise Perspective
- DesCo: Learning Object Recognition with Rich Language Descriptions
- Transferring knowledge from a RNN to a DNN
- Vision-Language Models Do Not Understand Negation
- OmniLabel: A Challenging Benchmark for Language-Based Object Detection