Metagenomic read binning from tetranucleotide k-mer profiles, using a contrastive two-layer encoder trained on split halves of unlabeled reads.
No providers recorded yet. Browse all providers
A single wastewater metagenomics survey can push on the order of 1.9 × 10^12 base pairs through a binning pipeline, and one complex sample yields millions to billions of short reads to be grouped back by the genome they came from. That volume is where a hundred-million-parameter transformer becomes the bottleneck: embedding, not clustering, dominates the cost. Long before genome language models, binning tools such as MetaBAT2, VAMB and SemiBin2 used a far cheaper feature — the tetranucleotide frequency profile, a 256-dimensional vector counting how often each 4-mer occurs. This work asks how much of the gain over that classical feature comes from the transformer and how much from simply learning on top of the profile.
The answer is a deliberately small encoder: a two-layer network that takes a read's k-mer profile and maps it to a 256-dimensional embedding, trained with a self-supervised contrastive objective. It was developed at Aalborg University by Abdulkadir Çelikkanat, Andres R. Masegosa and Thomas D. Nielsen, and published at NeurIPS 2024. Theory comes with it: a characterisation of when a read is uniquely reconstructible from its k-mer profile, and a proof that the l1 distance between two profiles is Lipschitz-equivalent to the Hamming distance between the underlying reads — so proximity in profile space is a principled proxy for sequence similarity, not a heuristic.
The authors give the model no name, referring to its variants positionally as Ours(NL) — the
headline non-linear encoder — Ours(POIS) and Ours(KMER); the repository is revisitingkmers
and the code class NonLinearModel.
The non-linear encoder is a multilayer perceptron: a linear map from the 256-dimensional k-mer profile to 512 units, batch normalisation, a sigmoid, dropout of 0.2, then a linear map to the 256-dimensional embedding — 263,936 parameters in total, against 117 million for DNABERT-S. Training uses Adam at a learning rate of 10^-3 for 300 epochs with mini-batches of 10^4 over 10^6 sampled sequences, drawing 200 negative read halves per positive. The default loss treats a pair's match probability as exp(−||z_l − z_r||²) under a Bernoulli likelihood; Poisson and hinge variants are also reported, hinge recovering the most high-quality bins (135 versus 123 clusters on Synthetic 5) but no probabilistic reading.
Pretraining reuses the DNABERT-S corpus: 2 million pairs of non-overlapping 10,000-base sequences from 17,636 viral, 5,015 fungal and 6,402 bacterial GenBank genomes. Evaluation runs on six datasets derived from the CAMI2 challenge — marine and plant-associated environments plus synthetic sets built from fungal and viral references excluded from training — clustering reads with a modified K-Medoid algorithm over the embeddings and scoring how many recovered clusters reach an F1 above 0.9. Performance is comparable to DNABERT-S on the synthetic and plant sets and higher on marine, while the raw cosine k-mer baseline already exceeds HyenaDNA and DNABERT-2. Ablations put the optimum at k = 4, with quality saturating past 2^7 dimensions.
The target workflow is read-level binning for large environmental surveys — wastewater plants, ocean and soil sampling, gut microbiome studies — where fragment counts make per-read transformer inference impractical. Embedding is a forward pass through two small matrices, so the encoder runs comfortably on CPU and slots in ahead of any existing clustering step. The authors also point to taxonomic profiling and phylogenetics.
The real contribution is a calibration point: the classical tetranucleotide profile, given a modest learned projection, holds most of the signal that genome foundation models extract at hundreds of times the parameter count, and the identifiability results explain why. That gives anyone building metagenomic tooling a cheap baseline worth beating before reaching for a transformer. Two limits are worth stating plainly. Evaluation is confined to synthetic and CAMI2 benchmark data, with validation on real long-read samples deferred to future work. And no pretrained checkpoint is distributed — the repository ships training and evaluation code with no releases and no licence file, so users reproduce the model by running the training script.
Much of this page is generated or calculated automatically. Flag anything that looks off and we will re-run it.