Sparse Autoencoders Find Causal, Lineage-Specific Context Features in Chromatin Foundation Models

Nicole Ching, Ayushi MehrotraCompLearn @ ICML 2026

This paper demonstrates that mechanistic interpretability tools developed for Large Language Models (LLMs) can be successfully "transplanted" into the world of genomics. By applying Sparse Autoencoders (SAEs) to a chromatin foundation model called EpiBERT, the researchers discovered that the model internally represents the biological difference between lab-grown cell lines (in vitro) and real human tissue (in vivo) through a sparse set of causally relevant, biologically grounded features.

TL;DR

Researchers successfully applied Sparse Autoencoders to a genomics foundation model (EpiBERT), revealing that the model uses specific, sparse internal features to distinguish between lab-grown cell lines and primary human tissues. These features are concentrated in the model's later layers and correspond directly to real-world biological "master regulators" like lineage-specific transcription factors.

What Problem Does This Paper Address?

Genomics foundation models are powerful tools for predicting gene expression and regulatory activity. However, they face a "fundamental tension": most of their training data comes from immortalized cell lines (which are easy to grow in a lab but have "aberrant" epigenomes), while the settings we care about most—like drug discovery or clinical diagnostics—involve primary tissues (real human cells).

If a model can’t distinguish between these two regimes, its predictions might fail to generalize to real patients. This paper asks: Does a transformer trained on DNA and chromatin accessibility internally "know" the difference between a cell line and a tissue? And can we use the same tools we use to find "honesty" or "sentiment" features in LLMs to find "tissue-specific" features in biology?

Methods

The authors used a suite of mechanistic interpretability techniques:

  • BatchTopK Sparse Autoencoders (SAEs): These were used to decompose the dense, "mushy" internal activations of EpiBERT into thousands of sparse, potentially interpretable features.
  • Context Divergence Score (CDS): A novel, statistically principled metric (a contrastive t-statistic) introduced by the authors to identify which SAE features specifically fire for in vivo vs. in vitro contexts.
  • Causal Interventions: To prove these features weren't just correlations, the authors performed causal ablation (turning features off to see if predictions changed) and context steering (adding feature vectors to "nudge" the model's output from a cell-line-like prediction toward a tissue-like prediction).
  • Biological Annotation: They validated the "math" using three gold-standard biological tools (ChromHMM, HOMER, and GO:BP) to see if the identified features matched known genomic landmarks and transcription factors.

Datasets

The study utilized ATAC-seq data (a measure of chromatin accessibility) from the ENCODE Project. They focused on six biosamples forming three matched pairs:

  1. Blood: K562 (cell line) vs. Hematopoietic Stem Cells (tissue).
  2. Liver: HepG2 (cell line) vs. Liver Tissue.
  3. Lymph: GM12878 (cell line) vs. Naive B Cells.

Key Insights and Ideas

  • Depth Stratification: Just like in LLMs, "high-level" concepts in genomics models are concentrated in the later layers. The number of context-specific features grew 3.8-fold from the early layers to the late layers.
  • Lineage Specificity: The model doesn't just have a generic "cell line" feature. Instead, the features are highly specific to the tissue type (e.g., a feature for "liver tissue" vs. "liver cancer cell line").
  • Biological Grounding: The SAE features aren't just abstract patterns; they align perfectly with lineage-defining transcription factors. For example, features enriched in liver tissue were tied to HNF4A and FOXA2—the "master regulators" of liver identity.
  • The "Why" of the Gap: The analysis revealed why cell lines look different to the model. In the liver pair, the cell line (HepG2) showed a signature of "Polycomb repression," where the cell had actively silenced the very enhancers that make a liver cell a liver cell.

Key Results

  • Feature Growth: Identified 57 significant context features in early layers vs. 215 in late layers.
  • Causal Impact: Targeted ablation of CDS-selected features had a 2.73x larger effect on model predictions than random ablation, proving these features are functional, not just decorative.
  • Steering Success: Linear context-steering closed 11.2% of the prediction gap between cell lines and tissues, performing 4.5x better than random direction baselines.
  • Annotation Alignment: Features identified by the SAEs were significantly enriched for the exact biological pathways (e.g., lipid metabolism for liver, immune response for lymph) expected for those tissues.

Limitations and Future Work

  • Evaluation Scale: The study used a relatively small evaluation set (200 genomic windows); larger sets might reveal even rarer or more subtle features.
  • Model Generalization: The work focused on one model (EpiBERT). It remains to be seen if these specific "depth-stratified" patterns hold true across other architectures like Enformer or HyenaDNA.
  • The Steering Ceiling: Steering only closed ~11% of the gap. This suggests that the difference between a lab dish and a human organ is complex and likely involves non-linear interactions that a simple linear "nudge" can't fully capture.
  • Future Direction: The authors suggest using these "context features" to better fine-tune models on small amounts of primary tissue data, potentially "correcting" the cell-line bias inherent in large genomic datasets.

Summary updated

BibTeX
@inproceedings{ching2026sparse,
  author = {Nicole Ching and Ayushi Mehrotra},
  title = {{Sparse Autoencoders Find Causal, Lineage-Specific Context Features in Chromatin Foundation Models}},
  booktitle = {CompLearn @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=rGwcMct0zv},
}
Figure