annDNA: Learning Annotation-Aware Genomic Representations via Knowledge Distillation

Hwanseok Sim, Yujin Kim, Soo-Whee Kim, Yeojin Ryu, Joon-Yong AnGenBio @ ICML 2026

TL;DR

annDNA is a novel framework that boosts genomic language models (GLMs) by teaching them to "see" biological annotations—like genes and enhancers—during training. By using cross-modal knowledge distillation, the researchers created a compact, sequence-only model that retains this biological "intuition," outperforming standard models in predicting the effects of genetic variants while using only one-third of the parameters.

What Problem Does This Paper Address?

Most current genomic language models treat DNA like a book written in a foreign language without any punctuation or chapter headings. They rely entirely on raw nucleotide sequences (A, T, C, and G) to find patterns. While these models can eventually learn to identify functional regions like promoters or exons, this "implicit" discovery is data-inefficient and often misses sharp biological boundaries.

Meanwhile, biologists have spent decades creating high-quality "annotations"—maps that tell us exactly where specific functional elements are located. The authors of annDNA argue that we shouldn't make models reinvent the wheel; instead, we should bake this existing biological knowledge directly into the model’s training process to create more accurate and interpretable representations of the genome.

Methods

The authors developed a two-stage framework:

  1. Annotation-Aware Pre-training: Instead of just tokenizing nucleotides, they created "hybrid" tokens that combine a nucleotide with its functional label (e.g., an 'A' located in a coding sequence becomes A_Exon_CDS). They trained three BERT-based models with increasing complexity:
  2. annDNA-seq: Sequence only (the baseline).
  3. annDNA-struct: Adds structural info (genes, exons, etc.) from GENCODE.
  4. annDNA-full: Adds regulatory info (enhancers, promoters, etc.) from ENCODE.
  5. Cross-Modal Knowledge Distillation: The "full" model is powerful but requires annotations as input, which aren't always available. To solve this, they used the annDNA-full model as a "Teacher" to train a smaller "Student" model (annDNA-distilled). Crucially, the student only sees the raw DNA sequence but is trained to mimic the internal "hidden states" of the teacher. This allows the student to benefit from the teacher's biological knowledge without needing annotations at inference time.

Datasets

  • Reference Genome: Human GRCh38.
  • Annotations: GENCODE v49 (structural elements) and ENCODE cCREs (regulatory elements).
  • Evaluation Benchmarks:
    • Genomic Region Embedding: Testing how well the model separates different functional categories (e.g., Introns vs. Exons).
  • Variant Effect Prediction: Four datasets including ClinVar (pathogenic variants), GTEx eQTL (regulatory variants), and TraitGym (Mendelian and complex trait variants).

Key Insights and Ideas

  • Explicit Priors Beat Implicit Learning: Simply telling the model "this is an enhancer" during pre-training leads to much better representations than hoping the model figures it out from sequence patterns alone.
  • The "Aha" Moment in Attention: One of the most striking findings was in the attention patterns. Sequence-only models show "flat" attention, looking at everything equally. Annotation-aware models develop "focused" attention, sharply spiking their interest at known functional boundaries.
  • Distillation as a Bridge: The paper proves that "biological intuition" can be distilled. The student model, despite never seeing an annotation label, learned to attend to the same functional regions as its teacher, effectively "recovering" 72% of the performance gap caused by missing annotations.
  • Structural Context Hints at Regulation: Interestingly, the annDNA-struct model (which only knew about genes/exons) improved its performance on regulatory tasks, suggesting that knowing the "skeleton" of a gene helps the model infer where the "control switches" (enhancers) might be.

Key Results

  • Performance Boost: Annotation-aware models achieved a 15.5% higher AUROC than sequence-only baselines in variant effect prediction.
  • Efficiency: The distilled model, with only 28 million parameters (1/3 the size of the teacher), achieved an 11.2% improvement over the sequence-only baseline.
  • Separability: In t-SNE visualizations, annDNA-full showed clear, distinct clusters for different genomic regions, whereas the sequence-only baseline resulted in a messy, overlapping cloud.
  • Zero-Annotation Inference: annDNA-distilled outperformed the external baseline model (GROVER) on ClinVar and eQTL tasks while remaining a sequence-only model at the point of use.

Limitations and Future Work

  • Single-Species Focus: The current work is limited to the human genome. The authors suggest that extending this to multi-species genomes could leverage evolutionary conservation for even better results.
  • Context Window: The models use a 1,000 bp window. While standard for BERT, this is relatively short for capturing long-range regulatory interactions (which can span millions of base pairs).
  • Annotation Granularity: The current scheme doesn't yet account for cell-type-specific annotations, which are critical for understanding how the same DNA sequence behaves differently in a heart cell versus a brain cell.
  • Architecture Agnosticism: While they used BERT, the authors note their tokenization strategy is model-agnostic and could be applied to newer architectures like Mamba or Hyena for longer-range modeling.

Summary updated

BibTeX
@inproceedings{sim2026anndna,
  author = {Hwanseok Sim and Yujin Kim and Soo-Whee Kim and Yeojin Ryu and Joon-Yong An},
  title = {{annDNA: Learning Annotation-Aware Genomic Representations via Knowledge Distillation}},
  booktitle = {GenBio @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=vmpP5SzOFK},
}
Figure