Data-driven Regularization via Racecar Training for Generalizing Neural Networks

You Xie, Nils ThuereyarXiv 2020

Abstract

Deep neural networks often fail to generalize due to their tendency to learn spurious correlations within training data. We present Racecar Training, a novel regularization method that utilizes a palindromic forward-backward pass to enforce data-dependent orthogonality. By requiring the network to reconstruct its own internal activations and inputs using transposed weights, the model is incentivized to learn dominant, information-preserving features. Our results across multiple benchmarks, including texture-shape classification and CIFAR-10 generalization, demonstrate that Racecar training significantly improves robustness and feature interpretability while allowing for model compression.

Introduction

A persistent challenge in deep learning is the "cheating" behavior of models, where they identify objects based on environmental cues (e.g., background textures) rather than intrinsic shapes. While standard regularizers like dropout provide some relief, they are data-blind. Existing orthogonalization techniques similarly treat all feature space directions as equally important. Racecar Training addresses this by making the regularization sensitive to the actual distribution of the training data, ensuring that the most critical information is preserved across layers.

Methodology: The Racecar Pass

The proposed method is named for the palindrome "racecar," reflecting its bidirectional nature. During training, each forward pass is accompanied by a reverse pass.

The palindromic forward-backward pass of Racecar training, where internal states $d_n$ are reconstructed as $d'_n$ using transposed weights.

The network uses the transpose of its weight matrices to attempt a reconstruction of the previous layer's activations, continuing back to the original input. The optimization objective includes the "racecar loss" ($L_{racecar}$), which is the $L^2$ distance between the original activations and their reconstructions. This process encourages the input data vectors to become the eigenvectors of the weight matrix product $M^T M$ with eigenvalues of 1, effectively implementing a data-driven orthogonality constraint.

Key Insights and Feature Interpretability

Racecar training fundamentally alters the information flow within the network. Unlike standard models that follow the Information Bottleneck principle—discarding information to achieve abstraction—Racecar-trained models maintain a more balanced mutual information profile.

A striking consequence of this approach is that the singular vectors of the weight matrices become intuitive, often resembling the input data itself (e.g., ghostly outlines of digits). This interpretability suggests that the model is learning the "dominant" features of the data distribution. Furthermore, this focus on essential features allows for significant model pruning; the authors report matching state-of-the-art performance with a 32% reduction in total weights.

Experimental Results

The efficacy of Racecar training was validated across several challenging benchmarks.

Experimental results demonstrating (a) improved texture-shape classification, (b) balanced mutual information, (c) superior stylization, and (d) enhanced generalization on CIFAR-10.
  • Generalization: In the Texture-Shape classification task, the Racecar model ($RR_{TS}$) achieved an accuracy of 54.7%, a substantial improvement over standard training (44.2%) and traditional orthogonal regularizers (47.0%).
  • Robustness: When transferred from CIFAR-10 to the CIFAR-10.1 dataset, Racecar-trained Resnet110 models maintained a higher performance lead, indicating that the learned features are more robust to distribution shifts.
  • Stylization: In image style transfer tasks, Racecar-trained VGG19 backbones showed a superior ability to decouple content from style, resulting in cleaner images with fewer artifacts compared to standard models.

Limitations

The primary trade-off for these gains is computational cost; the additional reverse pass increases training time per epoch by approximately 42%. Additionally, handling non-invertible operations like max-pooling requires specific layer-wise loss variants. Finally, the high fidelity of input reconstruction raises potential data privacy concerns that warrant further investigation.

Conclusion

Racecar Training offers a powerful, data-driven alternative to traditional regularization. By forcing networks to remain "reversible," it encourages the learning of robust, interpretable, and efficient features that generalize better to unseen data distributions.

Summary updated

Abstract

We propose a novel training approach for improving the generalization in neural networks. We show that in contrast to regular constraints for orthogonality, our approach represents a {\em data-dependent} orthogonality constraint, and is closely related to singular value decompositions of the weight matrices. We also show how our formulation is easy to realize in practical network architectures via a reverse pass, which aims for reconstructing the full sequence of internal states of the network. Despite being a surprisingly simple change, we demonstrate that this forward-backward training approach, which we refer to as {\em racecar} training, leads to significantly more generic features being extracted from a given data set. Networks trained with our approach show more balanced mutual information between input and output throughout all layers, yield improved explainability and, exhibit improved performance for a variety of tasks and task transfers.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Texture-shape benchmark, stylized dataRacecar training (TS)Test accuracy54.7%+7.7 vs baselinesplit: test · subset=stylized data
Source quote
L435: For the stylized data shown in \myreffig{fig:texture_accuracy} (a), \vstd{TS} yields a performance of 44.2%, and \vort{TS} improves the performance to 47.0%, while \vrrPow{TS}{} yields a performance of 54.7% (see \myreffig{fig:texture_accuracy}b).
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
Texture-shape benchmark, stylized dataRegular training (TS) baselineTest accuracy44.2%split: test · subset=stylized data
Source quote
L435: For the stylized data shown in \myreffig{fig:texture_accuracy} (a), \vstd{TS} yields a performance of 44.2%, and \vort{TS} improves the performance to 47.0%, while \vrrPow{TS}{} yields a performance of 54.7% (see \myreffig{fig:texture_accuracy}b).
Texture-shape benchmark, stylized dataOrthogonality-regularized training (TS) baselineTest accuracy47.0%split: test · subset=stylized data
Source quote
L435: For the stylized data shown in \myreffig{fig:texture_accuracy} (a), \vstd{TS} yields a performance of 44.2%, and \vort{TS} improves the performance to 47.0%, while \vrrPow{TS}{} yields a performance of 54.7% (see \myreffig{fig:texture_accuracy}b).
BibTeX
@misc{xie2020data,
  author = {You Xie and Nils Thuerey},
  title = {{Data-driven Regularization via Racecar Training for Generalizing Neural Networks}},
  year = {2020},
  eprint = {2007.00024},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.00024},
}
Figure