Learnable Instance Attention Filtering for Adaptive Detector Distillation

Chen Liu, Qizhen Lan, Zhicheng Ding, Xinyu Chu, Qing TianarXiv 2026

TL;DR

LIAF-KD introduces learnable "instance selectors" that dynamically prioritize which objects a student model should focus on during knowledge distillation. By making the distillation process both instance-adaptive and aware of the student's evolving learning state, it achieves significant performance gains—up to 2% mAP—on compact detectors without adding any inference-time overhead.

What Problem Does This Paper Address?

Knowledge Distillation (KD) is the go-to technique for squeezing high-performance "teacher" models into compact "student" models suitable for edge devices. However, applying KD to object detection is tricky. Unlike simple image classification, detection involves dense predictions where background pixels vastly outnumber foreground objects.

Existing methods often fall into two traps:

  1. Teacher-Centricity: They rely on fixed heuristics or teacher-only signals to decide where the student should pay attention, ignoring whether the student actually needs help in those areas.
  2. Instance Agnosticism: They treat all objects in a scene equally. In reality, a student might easily learn to detect a large, clear car but struggle with a small, occluded pedestrian. Treating these instances uniformly leads to inefficient knowledge transfer.

Methods

The authors propose Learnable Instance Attention Filtering (LIAF-KD), a two-stage framework designed to make distillation more surgical and adaptive.

Fig. 1: Overview of the proposed LIAF-KD framework. It employs instance selectors to dynamically reweight instances during distillation, guided by both the teacher’s knowledge and the student’s learning dynamics.

Stage 1: Instance Selector Learning

Before the main distillation begins, the authors train an ensemble of $K$ instance selectors. These are small modules that take RoI-aligned features from the teacher and learn to predict an "importance score" for each object instance. To ensure these selectors don't all learn the same thing, a diversity loss ($L_{div}$) is used to encourage them to develop different "expertise."

Stage 2: Student-Aware Distillation

During the actual distillation, these selectors evaluate features from both the teacher and the student. The resulting scores are averaged to create a spatial mask that reweights the feature maps. If the student’s representation of an instance differs significantly from the teacher’s in a way the selectors deem important, that instance gets a higher weight in the distillation loss ($L_{dist}$). This forces the student to focus its limited capacity on the most informative and challenging objects.

Datasets

The framework was evaluated on two industry-standard benchmarks:

  • KITTI: A popular dataset for autonomous driving, featuring street scenes with cars, pedestrians, and cyclists.
  • MS COCO: A large-scale general object detection dataset with 80 categories, used to test the model's versatility across diverse contexts.

Key Insights and Ideas

  • Active Student Participation: Unlike "passive" distillation where the teacher dictates everything, LIAF-KD allows the student's current state to influence the attention mask. This creates a feedback loop where the distillation process evolves as the student learns.
  • Beyond Pixel-Wise Masks: While methods like MasKD focus on which pixels are important, LIAF-KD operates at the instance level. The authors found that focusing on object-level variability is often more effective than fine-grained pixel masks, which can sometimes capture distracting background noise.
  • Ensemble Expertise: By using multiple selectors and a diversity loss, the model avoids relying on a single heuristic (like simple activation strength), leading to a more robust evaluation of what makes an instance "informative."

Key Results

LIAF-KD consistently outperformed both the student baselines and state-of-the-art KD methods like GID and MasKD.

  • Accuracy Gains: On the KITTI dataset using a GFL detector, the ResNet-50 student improved by 2.2% mAP, actually outperforming the ResNet-101 teacher by 1.4%. Similar gains were observed on COCO, with a 2.2% mAP increase over the baseline.
  • Qualitative Focus: Grad-CAM visualizations show that LIAF-KD produces much cleaner attention maps that are precisely aligned with meaningful objects, whereas baseline methods often disperse attention into irrelevant background areas.
Fig. 3: Grad-CAM Attention of different models. The colors represent attention intensity, with red indicating the highest level and blue the lowest. “Base”: the student baseline.
  • Efficiency: Because the learnable selectors are only used during training, the resulting student models maintain their high inference speeds. As shown in the table below, LIAF-KD students achieve significantly higher FPS than their teachers while delivering comparable or better accuracy.
Efficiency comparison of different object detectors. We report inference speed on an NVIDIA A100 GPU and an AMD EPYC™ 7H12 CPU. T: teacher, S: student.

Limitations and Future Work

The authors noted an interesting result on the COCO dataset: combining LIAF-KD with MasKD (a pixel-wise masking method) sometimes led to slightly lower performance than using LIAF-KD alone. They hypothesize that pixel-wise strategies might introduce misleading guidance by focusing on background pixels that conflict with LIAF-KD’s instance-level weighting.

Future research could explore more sophisticated ways to unify instance-level and pixel-level attention to get the best of both worlds without the conflicting signals. Additionally, extending this learnable selector approach to other dense tasks like semantic segmentation remains an open and promising direction.

Summary updated

BibTeX
@misc{liu2026learnable,
  author = {Chen Liu and Qizhen Lan and Zhicheng Ding and Xinyu Chu and Qing Tian},
  title = {{Learnable Instance Attention Filtering for Adaptive Detector Distillation}},
  year = {2026},
  eprint = {2603.26088},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.26088},
}
Figure