Abstract
Egocentric Action Recognition (EAR) involves classifying video clips from a first-person perspective, a task often hindered by the limitations of standard one-hot encoding. This paper introduces LanViKD, a framework that distills semantic knowledge from pre-trained language models into vision models. By replacing rigid labels with soft probability distributions that reflect semantic relationships, LanViKD significantly improves generalization to unseen objects and environments without adding computational overhead at inference time.
The Problem with One-Hot Labels
Standard EAR training relies on one-hot encoding, where a label like "Cutting onion" is treated as a discrete category with no relation to others. This approach ignores the visual and semantic overlap between actions—for instance, "Cutting onion" and "Taking cutting board" both involve a cutting board. Consequently, models often fail to generalize when encountering new objects or varied environments.
The authors argue that Large Language Models (LLMs) possess inherent "common sense" regarding these relationships. LanViKD aims to transfer this linguistic intuition into a vision model, allowing it to "read" the semantic structure of actions by capturing visual relevance based on textual labels.
The LanViKD Framework
The LanViKD (Language-Vision Knowledge Distillation) framework operates in two distinct stages:
- Stage 1: Preparing the Teacher. A pre-trained, frozen language model (MiniLM) is equipped with a linear head trained to classify text descriptions into action classes. Unlike one-hot labels, the language model produces a soft probability distribution. For "cutting onion," it might assign high probability to the target class while also assigning lower probabilities to related actions like "cutting carrot," capturing their semantic similarity.
- Stage 2: Distilling to the Student. A vision model (Swin Transformer Tiny) serves as the student. It is trained using a combination of three losses:
- Cross-Entropy Loss: Standard training against ground-truth labels.
- KL-Divergence Loss: Aligns the vision model's predictions with the teacher's soft distribution.
- Multi-task Regression (L1 Loss): Maps internal visual representations directly to the language model's latent embeddings.
Crucially, the language model is discarded after training. The final vision model retains the "semantic intuition" gained during distillation, operating alone at inference time with no additional cost.
Experimental Evaluation
The framework was evaluated on three major benchmarks:
- EPIC-Kitchens-100 (EK-100): Focuses on unscripted kitchen activities, specifically testing "Unseen" (new kitchens) and "Tail" (rare actions) splits.
- Something-Something V2 (SSV2): Evaluates basic physical actions with everyday objects.
- Something-Else: A re-split of SSV2 designed to test generalization to objects never seen during training.
Key Results and Insights
- Generalization Boost: On the Something-Else benchmark, LanViKD improved Accuracy@1 by 2.6% over the baseline, demonstrating superior handling of unseen objects.
- EPIC Performance: The model achieved a 2.1% improvement in noun recognition and a 1.9% boost in overall action accuracy on the EK-100 regular split.
- Language vs. Audio: LanViKD outperformed previous audio-based distillation methods by up to 1.7% on EK-100, suggesting that linguistic descriptions provide a richer teaching signal for semantic relationships than raw audio.
- Relational Mapping: By using language as a bridge, the vision model learns to identify shared visual features (e.g., a knife or board) across different action classes, leading to a more structured understanding of the visual world.
Limitations and Future Work
While effective, LanViKD faces challenges in balancing the teacher's signal. Increasing the influence of the language teacher (via the $\lambda$ parameter) can sometimes degrade performance on rare "tail" classes. Future work may explore multi-modal teachers—combining language, audio, and depth data—to create even more robust vision models. Additionally, while highly effective for egocentric data, the benefits for third-person (exocentric) video remain an area for further investigation.
Summary updated