Concrete Autoencoders: Differentiable Feature Selection and Reconstruction

Muhammed Fatih Balin, Abubakar Abid, James Y. ZouICML 2019

TL;DR

Concrete Autoencoders (CAEs) provide an end-to-end differentiable way to perform global feature selection. By using a "concrete selector layer" that leverages the Gumbel-Softmax trick, the model learns to pick a discrete subset of the most informative original features while simultaneously training a decoder to reconstruct the remaining data. This approach outperforms traditional methods like PCA-based selection or Lasso by optimizing directly for downstream reconstruction.

What Problem Does This Paper Address?

In the era of "big data," we often deal with thousands of features—such as gene expression levels or sensor readings—many of which are redundant or expensive to measure. While dimensionality reduction techniques like Principal Component Analysis (PCA) or standard Autoencoders are great at compressing data, they create new latent features that are mathematical combinations of the originals. This doesn't help if your goal is to reduce the actual cost of data collection, as you still have to measure everything to compute the latent variables.

The core challenge is feature selection: picking a specific, discrete subset of the original features. This is traditionally a "hard" combinatorial problem because selecting features is a discrete operation, which inherently lacks the smooth gradients required for standard deep learning optimization (backpropagation).

Methods

The authors introduce the Concrete Autoencoder, which replaces the standard encoder with a Concrete Selector Layer.

Concrete Autoencoder Architecture
  1. The Concrete Distribution: To make selection differentiable, the authors utilize the "Concrete distribution" (also known as the Gumbel-Softmax relaxation). Instead of a hard "yes/no" for each feature, the layer starts by taking a "fuzzy" weighted average of all features.
  2. Annealing Schedule: During training, they use a temperature parameter ($T$). At high temperatures, the model explores many features. As training progresses, the temperature is "annealed" (lowered) toward zero. This forces the "fuzzy" weights to converge into a "one-hot" vector, effectively picking exactly one discrete feature per selector node.
  3. The Decoder: While the encoder selects features, a standard neural network decoder learns to reconstruct the full input from that chosen subset.
  4. End-to-End Training: Because the entire pipeline is differentiable, the model learns which features are most useful specifically for reconstructing the rest of the dataset.

Datasets

The authors evaluated the CAE on a diverse range of datasets to prove its versatility:

  • Image Data: MNIST (handwritten digits), MNIST-Fashion, and COIL-20 (object images).
  • Speech/Sensor Data: ISOLET (spoken letters) and a Smartphone Dataset for Human Activity Recognition.
  • Biological Data: Mice Protein Dataset and a massive GEO Dataset (Gene Expression Omnibus) containing over 10,000 features across 112,171 samples.

Key Insights and Ideas

  • Selection via Reconstruction: The "aha moment" of this architecture is that the best features to keep are those that allow you to most accurately "impute" or predict the features you threw away.
  • Differentiable Discrete Choice: By using the Concrete distribution, the authors bypass the need for "greedy" search or genetic algorithms. This allows feature selection to scale efficiently to datasets with tens of thousands of dimensions.
  • Interpretability: Unlike standard autoencoders, the CAE is highly interpretable. You can look at the selector layer and see exactly which pixels or genes the model deemed most important.
MNIST Feature Selection and Reconstruction

For example, in the MNIST dataset, the model selects specific pixels that define the "edges" and "loops" of digits, allowing it to reconstruct the full image from just a handful of points.

  • Beyond Expert Knowledge: In the gene expression case study, the CAE identified a subset of genes that allowed for better reconstruction than the "L1000 landmark genes"—a set of features manually curated by biological experts.

Key Results

  • Superior Reconstruction: On the ISOLET dataset, CAEs consistently achieved lower reconstruction errors and higher downstream classification accuracy compared to state-of-the-art methods like UDFS (Unsupervised Discriminative Feature Selection) and AEFS (Autoencoder Feature Selector).
  • Efficiency in Genomics: On the large-scale gene expression dataset, the CAE achieved the same reconstruction accuracy as the expert-curated L1000 set using 20% fewer genes (750 vs. 943).
  • Ease of Use: The authors note that the CAE can be implemented by adding just a few lines of code to a standard autoencoder architecture, making it highly accessible for practitioners.

Limitations and Future Work

  • Stochasticity: Because the selection process is stochastic, different training runs might select slightly different subsets of features, especially if features are highly correlated. The authors suggest that discovered features should be validated with domain knowledge.
  • Lack of Statistical Significance: Unlike some traditional statistical methods, the CAE does not provide p-values or formal significance scores for the selected features.
  • Global vs. Local: This method performs global feature selection (the same features are picked for every sample). Future work could explore "instance-wise" selection, where different features are dynamically picked for different inputs.

Summary updated

BibTeX
@inproceedings{balin2019concrete,
  author = {Muhammed Fatih Balin and Abubakar Abid and James Y. Zou},
  title = {{Concrete Autoencoders: Differentiable Feature Selection and Reconstruction}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=HyVTW2bu-S},
}
Figure