Highly informative gene embeddings via reference-aware encoding and self-supervised learning: training RAVENs

We present Reference-Aware Variant Embedding Networks (RAVENs). Human genomes share a 3 billion base-pairs reference template punctuated by an average of 5-7 million individual variations, primarily comprising single nucleotide polymorphisms (SNPs) and insertion or deletions. Due to redundancies in the genetic code, non-coding regulatory function and unknown roles, it is extremely difficult to map how these sequence-level variations propagate across genomic, transcriptomic, and proteomic strata to dictate phenotype. Directly correlating millions of high-dimensional features with specific outcomes has severe computational bottlenecks; traditional Genome-Wide Association Studies (GWAS) are constrained by multiple-testing burdens to yield candidate sources. While deep learning can capture complex non-linear interactions, standard sequence models face severe scaling trade-offs between quadratic attention mechanisms and inefficient long-context recurrence when processing long stretches of DNA, in the absence of a priori filtering heuristics. In this study we focus on efficiently representing all SNPs that differentiate an subject's gene from its reference. The final representation must entail known phenotypical differences due to sequence differences, and possibly uncover new relationships between genotype and phenotype. We first develop Positional-CDF, Locus-frame, Unit-base, and Mutation-type Encoding (PLUME), a deterministic, lossless encoding of genetic differences from a reference. We then train RAVEN models to process and compress PLUME tokens with Self-supervised Embedding of EDits (SEED), obtaining a rich latent space of Single Nucleotide Variants through predictive and autoencoding objectives. The informativeness of RAVEN embeddings is validated on human, animal and bacterial genetic data via classification tasks and visualizations. PLUME and RAVEN allow for reductions up to x600 and x8.0-14,258 in feature width, compared to full-sequence and Variant Call Files, respectively. Our results show that sequences projected in SEED-induced vector spaces are clustered by genes and ancestry, with directions that encode the number, position, and contents of mutations. Aggregating gene representations for each individual, we obtain biometric identifiers, clustered by interpretable external features. Across experiments with data of several species, separate regions of the embedding spaces are associated with phenotype and clinical differences. PLUME and SEED are naturally extended to Insertion-Deletion mutations, non-coding RNA and amino-acid sequences. The computational compactness of RAVENs may foster a democratization of transfer learning, fine-tuning and total pretraining of models tailored to application domain, as well as lowering the costs of scaling foundation models.

Authors

Institutions

Publication Details

Journal
bioRxiv (Cold Spring Harbor Laboratory)
Published
2026-12-03
DOI
https://doi.org/10.64898/2026.12.03.771065
Primary Topic
Genetic Associations and Epidemiology
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Highly informative gene embeddings via reference-aware encoding and self-supervised learning: training RAVENs

Mikele Milia, Federico Del Pup, Manfredo Atzori, Barbara Di Camillo et al.
bioRxiv (Cold Spring Harbor Laboratory)
Genetic Associations and Epidemiology
preprint

Highly informative gene embeddings via reference-aware encoding and self-supervised learning: training RAVENs

Mikele Milia, Federico Del Pup, Manfredo Atzori, Barbara Di Camillo, Andrea Zanola, Louis Fabrice Tshimanga, Riccardo Fratti, Henning Müeller, Valerio Nucera
preprint en

Abstract

We present Reference-Aware Variant Embedding Networks (RAVENs). Human genomes share a 3 billion base-pairs reference template punctuated by an average of 5-7 million individual variations, primarily comprising single nucleotide polymorphisms (SNPs) and insertion or deletions. Due to redundancies in the genetic code, non-coding regulatory function and unknown roles, it is extremely difficult to map how these sequence-level variations propagate across genomic, transcriptomic, and proteomic strata to dictate phenotype. Directly correlating millions of high-dimensional features with specific outcomes has severe computational bottlenecks; traditional Genome-Wide Association Studies (GWAS) are constrained by multiple-testing burdens to yield candidate sources. While deep learning can capture complex non-linear interactions, standard sequence models face severe scaling trade-offs between quadratic attention mechanisms and inefficient long-context recurrence when processing long stretches of DNA, in the absence of a priori filtering heuristics. In this study we focus on efficiently representing all SNPs that differentiate an subject's gene from its reference. The final representation must entail known phenotypical differences due to sequence differences, and possibly uncover new relationships between genotype and phenotype. We first develop Positional-CDF, Locus-frame, Unit-base, and Mutation-type Encoding (PLUME), a deterministic, lossless encoding of genetic differences from a reference. We then train RAVEN models to process and compress PLUME tokens with Self-supervised Embedding of EDits (SEED), obtaining a rich latent space of Single Nucleotide Variants through predictive and autoencoding objectives. The informativeness of RAVEN embeddings is validated on human, animal and bacterial genetic data via classification tasks and visualizations. PLUME and RAVEN allow for reductions up to x600 and x8.0-14,258 in feature width, compared to full-sequence and Variant Call Files, respectively. Our results show that sequences projected in SEED-induced vector spaces are clustered by genes and ancestry, with directions that encode the number, position, and contents of mutations. Aggregating gene representations for each individual, we obtain biometric identifiers, clustered by interpretable external features. Across experiments with data of several species, separate regions of the embedding spaces are associated with phenotype and clinical differences. PLUME and SEED are naturally extended to Insertion-Deletion mutations, non-coding RNA and amino-acid sequences. The computational compactness of RAVENs may foster a democratization of transfer learning, fine-tuning and total pretraining of models tailored to application domain, as well as lowering the costs of scaling foundation models.

bioRxiv (Cold Spring Harbor Laboratory)
University of Padua (IT), HES-SO Valais-Wallis (CH)
Genetic Associations and Epidemiology
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon