Introduction
Standard deep learning models typically rely on "one-hot" encoding to represent categorical labels. This approach assumes that all classes are equidistant and orthogonal in the label space. However, semantic reality is more nuanced: a "sandal" is naturally closer to a "sneaker" than to a "shirt." By forcing models to map diverse inputs into these arbitrary corners, the learning process becomes unnecessarily difficult and slow.
The Learning with Adaptive Labels (LwAL) algorithm addresses this by learning label representations dynamically during training. This data-driven approach captures semantic relationships directly from the input distribution, significantly accelerating convergence and often improving final accuracy. By moving beyond rigid encodings, LwAL allows the model to follow the "path of least resistance" during optimization.
The LwAL Method
LwAL treats label representations as learnable parameters within the network's latent space. Instead of mapping inputs to a fixed vector, the process follows an alternating update strategy that aligns labels with the natural clusters of the data:
- Latent Mapping: The network maps input data $x$ to a latent representation $z$.
- Label Centroids: Class representations are defined as the centroids (averages) of the latent vectors for all samples belonging to that class.
- Distance-Based Optimization: The model calculates class probabilities based on the distance between sample latent vectors and class centroids, minimizing a modified cross-entropy loss.
- Push Loss ($L_{repel}$): An optional term penalizes cosine similarity between different class representations to ensure that clusters remain well-separated and distinct.
Unlike previous methods that require pre-trained word embeddings (e.g., BERT) or complex architectural changes, LwAL discovers these relationships autonomously. It introduces negligible parameter overhead and maintains stability through a "moving target" update frequency.
Experimental Evaluation
The researchers evaluated LwAL across a wide variety of domains and scales to ensure its generalizability:
- Computer Vision: Benchmarks included MNIST, Fashion MNIST, CIFAR10, CIFAR100, and the large-scale FOOD101 dataset.
- Natural Language Processing: IMDB and YELP Reviews were tested using BERT as a backbone.
- Semantic Validation: The authors used the Animal with Attributes 2 (AwA2) dataset and WordNet hierarchies to verify if the learned labels matched human-defined semantic structures.
Key Results and Insights
Massive Training Speedups
The most striking result is the efficiency gain. LwAL consistently reached baseline (one-hot) accuracy 50% to 80% faster. For instance, on CIFAR100 with a ResNet50 backbone, the model achieved baseline performance while saving 70% of training time per epoch. This suggests that the model spends less time "warping" the data to fit unnatural label constraints.
Semantic Alignment and Hierarchical Discovery
LwAL's learned labels naturally form hierarchies that align with human intuition without any external supervision. On CIFAR10, the model learns to group "truck" and "automobile" closer together, and "dog" and "cat" closer together, purely by analyzing image features. Quantitative analysis showed a ~0.6 correlation with the WordNet hierarchy, whereas standard label smoothing (LWR) showed almost zero correlation.
Architecture Agnostic Performance
The method proved robust across various backbones, including ResNet, EfficientNet, and DenseNet. In most tests, LwAL not only trained faster but also outperformed standard one-hot training in final top-1 accuracy. This robustness extends to large-scale datasets like FOOD101, where traditional static embeddings often struggle to capture the nuances of 101 distinct classes.
Conclusion and Future Work
LwAL demonstrates that labels should be treated as dynamic, data-driven entities rather than static mathematical constants. By allowing the label space to adapt to the natural clusters of the data, LwAL reduces optimization complexity, leading to faster training and better semantic generalization.
While highly effective, the method's performance is dependent on the quality of input features; non-informative inputs (like scrambled pixels) prevent the discovery of meaningful relationships. Future research may explore integrating multi-modal "side-information," such as text descriptions or audio, into this self-learning framework to further accelerate semantic discovery and model robustness.
Summary updated