Foundation-Model Distillation for Edge Inference
Pest detectors rely on the background. Does a compact student distilled from them inherit that shortcut? Final-year project, NUST and RPTU; ongoing.
Status: ongoing. My final-year project, with Prof. Faisal Shafait (NUST) and Dr. Christian Weis (RPTU Kaiserslautern-Landau). I began it during a research internship at RPTU (8 Jun – 5 Sep 2026).
Question
Vision foundation models produce strong general features, but they are far too large for battery-powered field devices. Can a compact student keep what a large vision encoder learned when the device fixes the compute and energy budget? Which teacher is worth distilling, and what does the student inherit from it, including its shortcuts? We use agricultural pest detection and classification as a realistic evaluation task with tight hardware budgets.
Done so far
- Benchmarked 21 trained detectors on a Raspberry Pi 5 for latency, memory, power and energy. The fastest ran at 2.77 FPS and 2.23 J/frame, which sets the gap that distillation must close.
- Pest detectors rely on the background. We found that trained pest detectors rely on the background: pasting the insects onto unrelated scenes lowers accuracy on all five datasets we tested.
- Distillation can loosen that reliance. Our distillation method, which averages the teacher’s predictions over many swapped backgrounds, made the student much less confident on background-only images than standard distillation.
- Probed two frozen teachers (DINOv2 and Insect-Foundation) with linear probes for pest discriminability and for scene-identity leakage on a group-safe split, to choose a teacher that will not pass background shortcuts on to the student.
Next
We are now redesigning the background-swap test itself, because detectors trained with swaps learned the paste seam along the box edge.