Indirectly Parameterized Concrete Autoencoders

Alfred Nilsson, Klas Wijk, Sai Bharath Chandra Gutha, Erik Englesson, Alexandra Hotti, Carlo Saccardi, Oskar Kviman, Jens Lagergren, Ricardo Vinuesa, Hossein Azizpour

Abstract

Feature selection is a crucial task in settings where data is high-dimensional or acquiring the full set of features is costly. Recent developments in neural network-based embedded feature selection show promising results across a wide range of applications. Concrete Autoencoders (CAEs), considered state-of-the-art in embedded feature selection, may struggle to achieve stable joint optimization, hurting their training time and generalization. In this work, we identify that this instability is correlated with the CAE learning duplicate selections. To remedy this, we propose a simple and effective improvement: Indirectly Parameterized CAEs (IP-CAEs). IP-CAEs learn an embedding and a mapping from it to the Gumbel-Softmax distributions' parameters. Despite being simple to implement, IP-CAE exhibits significant and consistent improvements over CAE in both generalization and training time across several datasets for reconstruction and classification. Unlike CAE, IP-CAE effectively leverages non-linear relationships and does not require retraining the jointly optimized decoder. Furthermore, our approach is, in principle, generalizable to Gumbel-Softmax distributions beyond feature selection.

Introduction

In high-dimensional data domains such as genomics or sensor networks, identifying a relevant subset of features is essential for efficiency and interpretability. Concrete Autoencoders (CAEs) have emerged as a leading "embedded" feature selection method. By utilizing the Gumbel-Softmax distribution, CAEs make the discrete selection process differentiable, enabling end-to-end training of both the feature selector and the reconstruction decoder.

However, CAEs often exhibit training instability, characterized by sudden spikes in reconstruction error. This research identifies a key driver of this instability: the tendency of the model to select redundant, duplicate features. This redundancy wastes model capacity and hinders convergence, particularly when using complex non-linear decoders.

Methods: Indirect Parametrization

To address these limitations, we introduce Indirectly Parameterized CAEs (IP-CAEs). The core innovation lies in how the selection probabilities are parameterized.

Comparison of Direct (a) and Indirect (b) parametrization architectures.

In a standard CAE, the model directly learns the logits $\alpha$ for the Gumbel-Softmax distribution. In contrast, IP-CAE learns a lower-dimensional embedding $\psi$ and a linear transformation (defined by weight matrix $W$ and bias $b$) to produce the logits: $\log \alpha = W\psi + b$. This architectural shift changes the gradient update dynamics. By implicitly overparameterizing the selection process, the model effectively scales gradients, steering the optimization toward unique and informative features more efficiently.

Key Insights: Redundancy and Stability

The primary insight of this work is the strong correlation between feature redundancy and optimization instability. Monitoring the "Unique Percentage" of selected features reveals that error spikes in vanilla CAEs coincide with drops in selection diversity.

Reconstruction error spikes (top) correlate with drops in the percentage of unique features selected (bottom).

IP-CAE mitigates this by promoting more diverse selections early in training. This stability allows IP-CAE to synergize better with deep, non-linear decoders, which are otherwise sensitive to the fluctuating inputs produced by unstable selectors. Furthermore, the method is robust to the choice of embedding size $P$, provided it is sufficiently large.

Results and Performance

IP-CAE was evaluated across six diverse datasets, including MNIST, ISOLET, and COIL-20. The results demonstrate substantial improvements:

  • Massive Speedups: IP-CAE reached vanilla CAE performance levels up to 25x faster in classification tasks and 3-4x faster in reconstruction tasks.
  • Superior Accuracy: On the ISOLET dataset, IP-CAE achieved 91.85% accuracy, a significant jump from the 75.82% achieved by the baseline CAE.
  • State-of-the-Art: IP-CAE consistently outperformed other established methods like STG (Stochastic Gaussian Gates) and LassoNet across almost all tested datasets.
  • Stability: The characteristic error spikes of CAEs were largely eliminated, leading to smoother convergence and better final generalization.

Conclusion

IP-CAE offers a simple yet powerful modification to the Concrete Autoencoder architecture. By moving from direct to indirect parametrization, we achieve greater stability, faster training, and superior feature selection quality. While this work focuses on feature selection, the principle of indirect parametrization is likely applicable to other Gumbel-Softmax-based architectures, such as those used in neural architecture search or categorical latent variables. Future work will involve a deeper theoretical analysis of the implicit overparametrization effects observed in this study.

Summary updated

BibTeX
@inproceedings{nilsson2024indirectly,
  author = {Alfred Nilsson and Klas Wijk and Sai Bharath Chandra Gutha and Erik Englesson and Alexandra Hotti and Carlo Saccardi and Oskar Kviman and Jens Lagergren and Ricardo Vinuesa and Hossein Azizpour},
  title = {{Indirectly Parameterized Concrete Autoencoders}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=GqsRKEhelH},
}
Figure