Improving Deep Representation Learning Via Auxiliary Learnable Target Coding

Kangjun Liu, Ke Chen, Yaowei Wang, Kui JiaPattern Recognition 2023

TL;DR

This paper introduces a novel "Learnable Target Coding" (LTC) method to improve deep representation learning. By learning flexible target codes that capture inter-class relationships and geometric properties, LTC enhances model performance, especially on challenging fine-grained and imbalanced datasets.

What Problem Does This Paper Address?

Deep representation learning aims to extract meaningful features from data. However, traditional methods often rely on fixed "target codes" like one-hot or Hadamard codes. These pre-defined codes can be inflexible, failing to capture complex relationships between classes, which is particularly problematic for imbalanced datasets where minority classes struggle to learn effectively. Existing methods for improving feature discrimination often focus on regularization or data augmentation, but this paper proposes a more direct approach by learning target codes that explicitly encode inter-class dependencies and geometric structures.

Methods

The core of this work is the Learnable Target Coding (LTC) scheme. Unlike fixed target codes, LTC learns a matrix of target codes using trainable parameters. This learnable matrix is then used as an auxiliary regularization during deep representation learning.

Key components of the LTC method include:

  • Semantic Encoder ($\Phi_s$): This module takes the feature representation from the main network and encodes it into a "semantic code vector."
  • Learnable Target Code Matrix (W): This matrix, of size KxL (number of classes x code length), is initialized randomly and updated during training. The sign function is used to binarize these codes.
  • Loss Functions:
    • MSE Loss: Minimizes the Euclidean distance between the semantic code vector and the corresponding learnable target code.
  • Margin-based Triplet Loss: Encourages samples from the same class to have similar representations while pushing samples from different classes further apart. This is applied globally, simplifying the process.
  • Correlation Consistency Loss: Ensures that the learned target codes for different classes are semantically correlated in an orthogonal manner, promoting better inter-class separation.

The overall training objective combines the standard cross-entropy loss with these auxiliary LTC losses.

Datasets

The authors evaluated their method on several datasets:

  • Fine-grained Classification:
    • CUB-200-2011 (CUB)
    • Stanford Cars (CAR)
    • FGVC Aircraft (AIR)
  • Imbalanced Data Learning (Long-tailed):
    • CIFAR100-LT
    • ImageNet-LT
    • iNaturalist18
  • Fine-grained Retrieval:
    • CUB
    • CAR

Key Insights and Ideas

  • Learnable Target Codes are More Flexible: By learning target codes, the model can adapt to complex inter-class relationships, which fixed codes cannot capture. This flexibility is crucial for improving representation learning.
  • Geometric Properties Matter: The method explicitly imposes geometric properties (like margin-based separation and correlation) onto the target codes, which in turn guides the representation learning to be more structured and discriminative.
  • Auxiliary Regularization is Powerful: Using LTC as an auxiliary regularization, rather than a primary supervision signal, effectively enhances the main task without requiring a complete overhaul of existing architectures.
  • Benefits for Imbalanced Data: The learned inter-class correlations help minority classes leverage information from majority classes, significantly improving performance on imbalanced datasets.

Key Results

  • Fine-grained Classification: LTC consistently outperformed the baseline and the Hadamard Target Code (HTC) method across CUB, CAR, and AIR datasets, achieving improvements of up to ~1% over HTC and >2% over the baseline.
  • Transformer Models: LTC also showed competitive or superior performance when integrated with transformer-based models.
  • Imbalanced Data: On CIFAR100-LT, ImageNet-LT, and iNaturalist18, LTC demonstrated significant improvements, especially when combined with existing imbalanced learning frameworks like CE-DRW and LDAM-DRW. For instance, on ImageNet-LT, LTC-DRW achieved a ~4.38% improvement over the baseline.
  • Fine-grained Retrieval: LTC achieved superior Recall@1 values on CUB and CAR datasets compared to methods like Margin Loss and Multi-similarity Loss.
  • Ablation Studies: All proposed components (MSE loss, triplet loss, correlation consistency loss) were shown to be effective and contributed to the overall performance gains.

Limitations and Future Work

  • Dependence on Labeled Data: A key limitation acknowledged is the reliance on labeled data for supervision.
  • Future Directions: The authors plan to explore the impact of LTC on self-supervised and unsupervised learning tasks, which do not require labeled data. They also aim to investigate LTC's potential as a more independent supervisory signal rather than solely an auxiliary constraint.

Summary updated

BibTeX
@article{liu2023improving,
  author = {Kangjun Liu and Ke Chen and Yaowei Wang and Kui Jia},
  title = {{Improving Deep Representation Learning Via Auxiliary Learnable Target Coding}},
  journal = {Pattern Recognition},
  year = {2023},
}
Figure