Label Embedding Network: Learning Label Representation for Soft Training of Deep Networks

Xu Sun, Bingzhen Wei, Xuancheng Ren, Shuming MaarXiv 2017

Introduction

In standard deep learning classification, labels are typically represented as one-hot vectors. This approach assumes that all classes are equidistant and unrelated, ignoring the inherent semantic correlations between categories (e.g., a "shark" shares more features with a "dolphin" than with a "car"). Furthermore, one-hot encoding forces models toward extreme confidence, which often leads to overfitting.

The Label Embedding Network (LEN) addresses these issues by replacing rigid one-hot vectors with "soft" label distributions learned automatically during training. By capturing these semantic relationships, the method improves accuracy, accelerates convergence, and provides a natural form of regularization.

Methodology

The core of the LEN is the integration of label embeddings ($E$) that are learned via backpropagation alongside the primary model parameters. Unlike standard architectures, the LEN utilizes dual output layers to process information:

  1. Discriminative Layer ($o_1$): Focuses on identifying the correct category.
  2. Similarity Layer ($o_2$): Focuses on learning the relationships between the hidden representations of different classes.
The architecture of the Label Embedding Network showing (a) forward propagation and (b) back propagation pathways.

Training involves minimizing the cross-entropy between the model's prediction and the learned soft label embedding rather than a hard one-hot vector. To reveal the "dark knowledge"—the subtle correlations between incorrect classes—the network employs softmax with temperature scaling ($\tau$). For tasks with massive vocabularies, such as machine translation, the authors utilize a low-rank decomposition ($A \times B$) of the embedding matrix, reducing the memory footprint by over 250x without sacrificing performance.

Experimental Results

The authors evaluated the Label Embedding Network across diverse benchmarks in computer vision and natural language processing, including CIFAR-10/100, MNIST, and IWSLT2015.

Training curves comparing standard ResNet/CNN models against their Label-Embedded counterparts across CIFAR-100, CIFAR-10, and MNIST.

Performance Gains

  • Computer Vision: On CIFAR-100, the error rate dropped from 27.35% to 23.97%, representing a 12.4% relative reduction. On MNIST, the error rate was reduced by over 35%.
  • NLP: In English-Vietnamese translation tasks, the model achieved a BLEU score of 26.8, surpassing previous state-of-the-art results.
  • Convergence and Stability: As shown in the training curves, LEN models exhibit noticeably smoother convergence and reach lower error rates faster than one-hot baselines. The soft targets provide a more stable gradient for the network to follow.

Discussion and Key Insights

The LEN demonstrates that labels are not isolated entities. By allowing labels to interact, the model can "borrow" features from similar classes, effectively mitigating data sparseness. This interaction acts as a natural regularizer; if two classes are 80% similar, the model is encouraged to output a corresponding probability split rather than forcing a binary 1.0/0.0 split, which prevents over-confidence.

While the method introduces new hyperparameters (temperature $\tau$ and regularization factor $\alpha$) and a marginal increase in training time per epoch, the significant gains in accuracy and model interpretability make it a robust alternative to traditional one-hot training. The learned embeddings are semantically meaningful, naturally grouping related concepts like "automobile" and "truck" without manual supervision.

Summary updated

BibTeX
@misc{sun2017label,
  author = {Xu Sun and Bingzhen Wei and Xuancheng Ren and Shuming Ma},
  title = {{Label Embedding Network: Learning Label Representation for Soft Training of Deep Networks}},
  year = {2017},
  eprint = {1710.10393},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1710.10393},
}
Figure