TL;DR
Regularized Label Encoding Learning (RLEL) is an end-to-end framework that automatically learns optimal label encodings for deep regression tasks. By relaxing discrete binary codes into a continuous space and applying specific regularizers, RLEL achieves a ~11% error reduction over standard direct regression across diverse benchmarks like head pose estimation and autonomous driving.
What Problem Does This Paper Address?
Deep regression—predicting continuous values like a car's steering angle or a person's age—is traditionally handled via "direct regression," where a network predicts a single scalar value. However, direct regression often underperforms compared to task-specific architectures.
A powerful alternative is to convert regression into a set of binary classification sub-problems using binary-encoded labels. This approach introduces ensemble diversity and error-correcting capabilities. The catch? The space of possible encodings is astronomical. Until now, researchers had to manually design these codes or use slow, discrete search methods (like simulated annealing) that couldn't be optimized alongside the neural network itself.
Methods
The authors introduce RLEL, which treats label encoding as a learnable part of the network architecture.
The Architecture
Instead of a single output, the network produces an $M$-bit real-valued "output code." This code is multiplied by a learned decoding matrix $D$ to produce a correlation vector, which is then converted into a final continuous prediction via a softmax and expected value calculation.
Continuous Relaxation and Regularization
To make the encoding searchable via standard backpropagation, RLEL relaxes the requirement for discrete $\{0, 1\}$ bits, allowing the encodings to exist in a continuous real-valued space. To ensure these learned encodings actually work well for regression, they introduce two novel regularizers:
- R1 (Distance-based): This encourages the distance between two labels' encodings to be proportional to the numerical difference between the labels themselves. This ensures the "topology" of the label space is preserved in the encoding space.
- R2 (Transition-based): This minimizes the number of "bit transitions" (flips from 0 to 1) across the range of labels. Fewer transitions result in simpler decision boundaries, making it easier for the underlying classifiers to learn.
Datasets
The authors evaluated RLEL on 11 benchmarks across four distinct regression domains:
- Head Pose Estimation: LFH1 (BIWI dataset) and LFH2 (300W-LP/AFLW2000).
- Facial Landmark Detection: FLD1 (COFW), FLD2 (300W), and FLD3 (WFLW), including versions with reduced training data to test generalization.
- Age Estimation: AE1 (MORPH-II) and AE2 (AFAD).
- Autonomous Driving: PN (NVIDIA PilotNet dataset).
Key Insights and Ideas
- Exploiting Spectral Bias: Neural networks inherently prioritize learning low-frequency functions. By using regularizer R2 to reduce bit transitions, the authors align the classification tasks with this natural bias, leading to higher accuracy.
- Error Correction vs. Complexity: There is a fundamental trade-off in encoding design. More complex codes (like Hadamard codes) offer better error correction but are harder for classifiers to learn. RLEL automatically finds the "sweet spot" for a specific task and dataset.
- End-to-End Synergy: Unlike previous methods that decoupled code design from network training, RLEL allows the feature extractor and the label representation to co-evolve, leading to better generalization, especially on smaller datasets.
Key Results
RLEL consistently outperformed standard generic approaches and matched or beat state-of-the-art task-specialized methods:
- 10.9% improvement in Mean Absolute Error (MAE) over direct regression.
- 12.4% improvement over standard multiclass classification.
- Generalization: On the PilotNet autonomous driving task, RLEL reduced MAE from 4.24 (original PilotNet) to 2.94.
- Efficiency: The learned codes reached the accuracy of manually designed codes (BEL) without requiring human intuition or exhaustive manual trial-and-error.
Limitations and Future Work
- Hyperparameter Tuning: RLEL introduces two new hyperparameters ($\alpha$ and $\beta$ for the regularizers). While the authors show the model isn't hyper-sensitive to them, they still require some initial tuning.
- Quantization Levels: The number of quantization bins ($N$) is currently fixed before training. The authors suggest that adaptively learning the number and width of these bins is a promising direction for future research.
- Scaling: While effective on the tested benchmarks, the pair-wise calculation in the R1 regularizer scales quadratically with batch size ($K^2$), which might pose challenges for extremely large-scale training setups.
Summary updated