Consistent sparse coding improves concept discovery in models

Beyond SAEs: Consistent Concept Discovery with Sparse Coding

Artificial Intelligence

Summary

Finding clear and reliable building blocks that explain how AI models understand data can be tricky because methods often give different answers each time they run. The authors found that by changing how these building blocks are discovered — using a careful, sample-by-sample approach called sparse coding instead of a one-step shortcut — the explanations become much more consistent and trustworthy. Their new method, ConSDL, works well even in controlled tests and real tasks with images and language, making it easier to understand what models have learned. This could help people better interpret AI decisions and reuse these findings reliably.

What this means in practice

  • For machine learning engineers: Improve the reproducibility and reliability of model explanations by adopting consistent sparse coding to identify stable dictionary atoms from model activations.
  • For natural language processing teams: Generate stable, interpretable components from large language model embeddings to enhance downstream task analysis and troubleshooting.

Authors

Jinho Choi, Hyesu Lim, Jaegul Choo, Steffen Schneider

Abstract

Sparse autoencoders (SAEs) explain foundation model representations by decomposing activations into sparse combinations of learned dictionary atoms. However, the learned dictionaries can vary across training runs, limiting the reliability and reproducibility of SAE-based analyses. We propose Consistent Sparse Dictionary Learning (ConSDL), which replaces the standard linear encoder with per-sample sparse coding. This is motivated by our synthetic analysis showing that coefficients from a single linear encoder pass are suboptimal compared with those obtained by per-sample optimization, suggesting that sparse coding is a reliable mechanism for dictionary learning. Across 16 synthetic settings, ConSDL achieves near-perfect dictionary and coefficient recovery. These gains translate to state-of-the-art cross-seed consistency across four vision and language settings, where ConSDL improves dictionary and coefficient consistency by 17.6% and 35.9%, respectively, over the average of six SAE baselines.