Introduction
Vision-Language Understanding (VLU) tasks, such as Visual Question Answering (VQA) and image-text retrieval, traditionally face a stark trade-off between accuracy and efficiency.
Fusion-Encoders (e.g., ViLT, ALBEF) achieve high accuracy by modeling deep interactions between image pixels and text tokens within a single heavy Transformer. However, this architecture is computationally expensive because every image-text pair requires a full forward pass, preventing the use of pre-computed image features. In contrast, Dual-Encoders (e.g., CLIP) are highly efficient, encoding images and text separately to allow for fast feature caching. Their limitation lies in their shallow interaction—usually a simple dot product—which struggles with complex reasoning tasks.
To bridge this gap, the authors introduce DIDE (Distilled Dual-Encoder), a framework that distills the rich cross-modal knowledge of a fusion-encoder "teacher" into an efficient dual-encoder "student."
Methods: Cross-Modal Attention Distillation
The core innovation of DIDE is Cross-Modal Attention Distillation. While standard knowledge distillation often focuses on mimicking final output probabilities (soft labels), DIDE forces the student to align its internal attention mechanisms with the teacher's.
As shown in the framework diagram, the student model calculates its own cross-modal attention distributions—how text should attend to image regions and vice versa—and aligns them with the teacher's "Whole Attention" map. This process allows the dual-encoder to learn the fine-grained relationships between modalities that are usually only captured by fusion models. Training occurs in two stages: a general pre-training phase on 4 million image-text pairs, followed by task-specific fine-tuning.
Datasets and Evaluation
The model was pre-trained on a standard "4M" dataset collection including COCO, Visual Genome, Conceptual Captions, and SBU Captions. Evaluation was conducted across several rigorous VLU benchmarks:
- NLVR2: For complex visual reasoning.
- SNLI-VE: For visual entailment logic.
- VQAv2: For open-ended question answering.
- Flickr30K: For cross-modal retrieval.
Key Results
DIDE demonstrates that dual-encoders can achieve near-parity with fusion-encoders while maintaining their inherent speed advantages. The model retained 96.9% to 99.9% of the teacher's performance across tasks while delivering a 4x speedup in online inference.
As illustrated in the performance comparison, DIDE ("Ours") significantly outperforms standard soft label distillation. On reasoning-heavy tasks like NLVR2, where standard dual-encoders often hover near 50% accuracy, DIDE boosts performance to over 75%. This proves that the attention-based guidance effectively transfers complex reasoning capabilities to the simpler dual-encoder architecture.
Conclusion and Future Work
DIDE successfully mitigates the efficiency-accuracy trade-off in VLU. By mimicking the teacher's attention process rather than just its final results, the student model learns to focus on relevant visual cues for specific words.
Future research directions include scaling the framework to larger "web-scale" datasets (beyond the 4M used here) and exploring ways to reduce the computational cost of the distillation process itself, as training currently requires running both the heavy teacher and the student simultaneously.
Summary updated