Abstract
Standard deep learning paradigms typically treat categorical labels as arbitrary, independent integers, effectively discarding the rich semantic relationships inherent in natural language. This paper introduces the Language Semantic Graph (LSG) guided learning framework, a novel approach that leverages natural language descriptions and Graph Neural Networks (GNNs) to provide structural guidance during the training process. By treating the label space as a structured knowledge graph rather than a flat list, LSG significantly enhances model performance in data-starved scenarios across image, video, and audio modalities. Notably, the auxiliary components are discarded after training, ensuring that the final model maintains standard inference speeds.
Introduction
Deep learning models are notoriously data-hungry, often requiring vast amounts of labeled data to achieve high performance. While techniques like semi-supervised learning and transfer learning mitigate this requirement, they frequently overlook a fundamental source of prior knowledge: the labels themselves. In a standard classification task, the model is unaware that a "Golden Retriever" is semantically more similar to a "Labrador" than to a "Boeing 747." By reducing descriptive labels to simple indices, we sacrifice valuable linguistic "common sense."
This research addresses the challenge of reintegrating this semantic knowledge into training. The authors propose the Language Semantic Graph (LSG), which uses natural language embeddings to guide the feature space of the primary model, particularly when labeled data is scarce.
Methodology
The LSG framework operates in two distinct stages to bridge the gap between visual (or auditory) features and linguistic semantics.
Stage I: Constructing the Semantic Map
The process begins by converting class names (e.g., "bicycle") into descriptive prompts (e.g., "This is a photo of a {bicycle}"). These prompts are processed through a frozen language model, such as BERT, to generate initial text embeddings. To overcome the "prompt cluster" problem—where embeddings cluster by the prompt structure rather than the underlying concept—the authors construct a Language Semantic Graph. In this graph, nodes represent text embeddings and edges represent semantic similarity. An auxiliary Graph Neural Network (GNN) is then trained on this graph to refine these features into a more discriminative semantic space.
Stage II: Guided Training
During the training of the primary classifier (whether for images, video, or audio), the data representations are "plugged into" the LSG as new nodes based on their ground-truth labels. The optimization process utilizes three primary loss functions:
- Main Loss: Standard cross-entropy for classification.
- Implicit Alignment ($L_{align}$): This forces the primary model’s features to be compatible with the GNN’s ability to predict the correct category.
- Explicit Regularization ($L_r$): This directly pushes the primary model’s features to align with the refined semantic features produced by the GNN.
Crucially, the GNN and text-projection layers are used only during training. The final deployed model retains its original architecture, ensuring no additional computational cost during inference.
Experimental Evaluation
The researchers evaluated LSG across seven diverse benchmarks to demonstrate its cross-modality versatility:
- Fine-grained Image Classification: FGVC Aircraft, Stanford Cars, and CUB-200-2011 (Birds).
- Out-of-Distribution (OOD) / Domain Generalization: Office-Home and PACS.
- Video Action Recognition: UCF-101 and HMDB51.
- Audio Event Detection: AudioSet-20K.
- Large-scale Classification: COCO-70.
Key Insights
- Labels as Structured Knowledge: The core innovation lies in treating the label space as a structured graph. This allows the model to learn from the relationships between classes, which is especially beneficial when examples of a specific class are rare.
- Synergy with Semi-Supervised Learning: LSG integrates effectively with pseudo-labeling. By assigning a predicted label to unlabeled data, that data can be incorporated into the semantic graph, allowing the GNN to provide supervision even in the absence of ground-truth labels.
- Efficiency and Convergence: Beyond accuracy, semantic guidance helps the model converge on a robust feature space significantly faster than standard training methods.
Results
The LSG framework demonstrated substantial improvements, particularly in low-data regimes:
- Low-Data Image Classification: On the FGVC Aircraft dataset with only 15% of labels available, LSG achieved 55.6% accuracy, a 14% absolute improvement over standard fine-tuning (41.6%).
- Cross-Modality Gains: In audio tasks (AudioSet-20K) with 10% labeled data, LSG boosted accuracy from 2.59% to 11.20%.
- Robustness: The semantic graph acts as a regularizer, making the model more resilient to noisy labels by preventing it from overfitting to nonsensical feature-label mappings.
- Comparison with VLMs: When applied to CLIP backbones, LSG outperformed specialized prompt-tuning methods like CoOp and Tip-Adapter, suggesting that graph-based refinement is superior to simple prompt manipulation.
Conclusion and Future Work
Language Semantic Graph (LSG) guided learning provides a powerful, inference-efficient method for improving data efficiency across various machine learning tasks. By leveraging the inherent relationships in natural language, LSG allows models to learn more effectively from limited data.
Future research may explore the use of dynamic graphs that evolve during training or the incorporation of external knowledge bases like WordNet to further enrich the semantic map. Additionally, extending this framework to more complex tasks such as object detection and semantic segmentation remains a promising avenue for development.
Summary updated