When a language model is pre-trained on biological sequences, it sees millions of near-duplicates: evolution copies genes and mutates them, so any large sequence database is full of proteins that are 70, 80, 95 percent identical to each other. This redundancy is known to silently inflate benchmark scores — models memorize recurring short motifs and act as lookup tables rather than learning chemistry — and standard training diagnostics cannot see it. Separately, generative models that produce new biological sequences routinely hallucinate: they emit sequences that look plausible but violate basic biophysics, or claim functions they cannot have. This proposal argues these two facts are connected, and that nobody has tested the connection. The core claim: the redundancy structure of the pre-training corpus causally shapes downstream generative hallucination, so a specialized sequence model pre-trained under strict redundancy control should hallucinate less on genuinely novel targets than the same model pre-trained on the natural, redundant corpus — at identical compute and identical inference-time machinery. The converse finding, that redundancy is irrelevant to hallucination, would be equally decisive, because it would tell the field that hallucination must be fixed entirely at inference time.
Core Claim
The hypothesis rests on a mechanism borrowed from the clinical-AI literature: statistical de-grounding. Zijian Shao et al. argue in Grounding AI Explanations in Experience that hallucination in specialized domains arises when the model's parametric memory is dominated by surface statistics rather than domain rules, so it defaults to global likelihood when queried. In sequence models, redundant pre-training corpora supply exactly such surface statistics: over-represented short motifs whose continuations can be memorized. Three results motivate transferring this to pre-training. Grazioli et al. showed in On TCR binding predictors failing to generalize to unseen peptides that models hitting AUROC 0.95 on random splits collapse to roughly 0.55 on hard splits where test peptides are absent from training — pure memorization. Zhang et al. showed in PepBenchmark that the leak operates at the level of short sub-sequences ($k$-mers) that survive whole-sequence clustering tools, and that deduplication alone drops scores by up to 17 percent. And Krishnan et al. in Evaluating out of distribution generalization of protein language models proved the leak operates during pre-training itself: leaking the test set into masked-language-model pre-training inflated downstream domain-annotation sensitivity by 1.7 to 5.4 percent while pre-training loss and validation perplexity stayed identical — the leak was invisible to every standard monitor.
What none of this work touches is generation. Krishnan et al. evaluate only frozen-embedding classification. The generative systems on the other side of the gap — ProLLaMA (ProLLaMA), which continuously pre-trains LLaMA-2-7B on 53 million UniRef50 sequences and then generates superfamily-conditioned sequences, and MCTH (Leveraging generative hallucination and biophysics-informed modeling), which filters frozen generators with tree search — both report strong numbers on standard splits, and neither controls homology between pre-training, instruction tuning, and evaluation. So we do not know whether ProLLaMA's TM-scores of 0.8–0.9 on superfamily-guided generation reflect biophysical understanding or evolutionary recall, and we do not know whether its unconditional generations averaging pLDDT 66.49 would improve if the pre-training corpus were de-redundantified. This proposal builds the missing experiment: a controlled, dose-response study of corpus redundancy versus generative hallucination, plus a redundancy-aware pre-training objective intended to convert the correlation into an intervention.
Research Program
The program has three connected components, all on protein sequences where the homology structure of the data is best understood.
First, the controlled redundancy study. Following the protocol of Krishnan et al. in Evaluating out of distribution generalization of protein language models, we partition roughly 81 million Pfamseq sequences with the CHISEL homology-aware splitting tool into a training universe and a strictly non-homologous hold-out universe of superfamilies and sequences. We then pre-train ESM-2-architecture models (650M parameters, matching Krishnan et al. so their numbers anchor ours) under graded redundancy regimes over the same training universe: the natural redundant corpus, a 90-percent-identity-clustered deduplicated corpus, a CHISEL homology-partitioned corpus, and a corpus additionally partitioned by the Hybrid-split logic of PepBenchmark, which clusters sequences sharing indicative short motifs so that no active $k$-mer crosses splits. Total token budget, model size, and training steps are held fixed; only the redundancy structure of the data varies. We then adapt each base model with the ProLLaMA recipe — LoRA instruction tuning on superfamily-conditioned generation — using instruction data restricted to training-universe superfamilies, and prompt it to generate sequences for held-out superfamilies with no homologs anywhere in the pipeline. Hallucination rate is defined as one minus the fraction of generations passing an external biophysical validity panel: folding confidence from a Boltz-2-style predictor, physicochemical plausibility via the multi-dimensional scorer ProLLaMA itself uses in its Evolutionary Protein Generation Framework, and consistency between the claimed superfamily and the predicted fold. This gives a dose-response curve: hallucination rate on novel targets as a function of corpus redundancy at fixed compute. The de-grounding account predicts hallucination falls monotonically as redundancy is removed; the memorization account of Grazioli et al. additionally predicts the natural-redundancy model's apparent quality collapses on hard splits, mirroring the 0.95-to-0.55 AUROC collapse they documented for discriminative models.
Second, the intervention: a redundancy-aware pre-training objective. Standard masked modeling weights every masked token uniformly, so promiscuous $k$-mer contexts — exactly the ones PepBenchmark showed drive spurious performance — dominate the gradient. We reweight the loss by how rare the surrounding motif is:
$$\mathcal{L} = -\sum_t w(c_t)\, \log p(x_t \mid c_t), \qquad w(c_t) = \mathrm{df}(c_t)^{-\alpha}$$
where $c_t$ is the $k$-mer context surrounding masked residue $x_t$, $\mathrm{df}(c_t)$ is the fraction of training sequences containing that context, and $\alpha \in [0,1]$ interpolates between uniform loss ($\alpha = 0$) and full inverse-frequency downweighting. The exponent form follows standard inverse-document-frequency reweighting; the point is that completions of rare contexts cannot be memorized, so the model is pushed toward generalizable local chemistry. We pre-train under several $\alpha$ values on the natural corpus, so the objective and the data-filtering interventions can be compared and combined — corpus-level cleaning versus loss-level reweighting versus both.
Third, the diagnostic. Because Krishnan et al. showed validation perplexity is blind to contamination, we develop a training-time monitor: the gap in next-token accuracy between high-frequency and low-frequency $k$-mer contexts, measured on held-out non-homologous data throughout pre-training. If this "motif memorization gap" tracks downstream hallucination across our regimes better than perplexity does, the field gains a usable checkpoint-selection signal; if it does not, that is a negative result worth publishing given how widely pLM checkpoints are currently reused.
Baselines
The naive reference point is generation from a model pre-trained on the untouched natural corpus with uniform loss and no homology control anywhere — this is effectively what the field ships today. Its published analogue is ProLLaMA's unconditional generation, which reports an average pLDDT of 66.49 (standard deviation 12.61) in ProLLaMA; we re-run this setting ourselves so the reference number is measured on our held-out universe rather than on UniRef50 random splits.
The strongest competitor is the full ProLLaMA system: continuous pre-training on 53 million sequences, LoRA instruction tuning, and its Evolutionary Protein Generation Framework, which applies a multi-dimensional biophysical scorer and hierarchical segment-level decoding at inference time. It is the strongest existing method because it is the only published system that combines specialized pre-training with a generation-quality mechanism aimed at exactly the hallucination we measure. ProLLaMA reports TM-scores of 0.8–0.9 against target superfamilies and a 67.1 percent exact-match rate on superfamily prediction — but on standard random splits over UniRef50, with no homology control, so these numbers are plausibly inflated in exactly the way Grazioli et al. and Krishnan et al. documented. For a fair comparison we rebuild its recipe at our compute budget on our training universe, with the same LoRA tuning budget and the same EPGF inference scaffolding across all arms, and evaluate on our non-homologous hold-out superfamilies. Beating it means a lower hallucination rate — a higher fraction of generations passing the identical biophysical validity panel — on those held-out targets, at matched compute and matched inference machinery. A second reference point is pure nearest-neighbor retrieval: mutate-and-retrieve homologs for a target superfamily, which is the BLAST-style baseline; on TAPE's remote homology task the alignment baseline scored 0.09 accuracy versus 0.26 for a pre-trained model (Evaluating Protein Transfer Learning with TAPE), so retrieval should collapse on our hold-out and serves as the floor.
The key ablation isolates the objective from the data: the same architecture, the same natural corpus, the same token budget, but uniform loss ($\alpha = 0$). Any hallucination reduction under inverse-frequency reweighting on identical data is attributable to the loss alone; combining reweighted loss with the Hybrid-split corpus then tests additivity. A second ablation applies EPGF-style inference filtering on top of every arm, so we can measure whether a better base representation and inference-time filtering are substitutes or complements.
Why not just…?
Why not just cluster the evaluation set with MMseqs2 or CD-HIT at 30 percent identity? This is the field's default answer, and the file contains two direct refutations. Krishnan et al. showed that downstream-split clustering does nothing about leaks in the pre-training phase: their leak was injected before any fine-tuning split existed, and it inflated downstream sensitivity by up to 5.4 percent while every split-level metric stayed clean. And Zhang et al. in PepBenchmark showed whole-sequence clustering tools do not even stop downstream leakage, because short active motifs cross cluster boundaries. Our design takes both points seriously — we partition at the motif level during pre-training, not just at the sequence level before fine-tuning.
Why not just fix hallucination at inference time with retrieval or biophysical filtering? MCTH demonstrates this works partially: its tree search with Boltz-2 and ProteinMPNN in the loop raised the binder pass rate on CaoData to 37.3 percent versus 20.0 for RFdiffusion (Leveraging generative hallucination and biophysics-informed modeling). But it is a real threat, not a strawman, and our experiments will settle the interaction directly: we run inference-time filtering on every base model, so if filtering alone erases the difference between redundant and clean pre-training, the de-grounding story loses its practical force and the proposal's value reduces to the diagnostic. Two pieces of evidence suggest it will not fully: retrieval-based grounding fails exactly on our target regime — LLaPA's graph retrieval in Large Language and Protein Assistant for Protein-Protein Interactions Prediction depends on finding sequence-similar proxies, which by construction do not exist for non-homologous targets — and the filtering itself costs dozens to hundreds of expensive forward passes per design, so a base model that hallucinates less is cheaper at equal quality.
Why not just prompt or LoRA-tune a large general model instead of pre-training a specialized one? The drowning effect is documented across domains: general web-scale statistics swamp niche signals, which is why MONOCODER, trained only on high-performance computing code, beat much larger general code models (MonoCoder), and why targeted clinical pre-training won in BERTHop (BERTHop). More directly, Männistö found that pre-training predicts downstream success far more than the choice of fine-tuning method (A Comparative Study of PEFT Methods for Python Code Generation), and Shao et al.'s de-grounding account says a general model pushed into a sparse domain defaults to fluent but invalid output. Still, we include a prompted general-LLM arm in the experiment grid as a sanity check rather than arguing it away.
Proposed Experiments and Decisive Checks
The decisive experiment is the dose-response: hallucination rate on held-out superfamilies across the four redundancy regimes at fixed compute, with confidence intervals from multiple seeds. The de-grounding hypothesis is confirmed if the rate falls monotonically with redundancy removal and if the inverse-frequency objective reproduces part of the effect on identical data; it is refuted if the rate is flat, in which case hallucination is a property of architecture and decoding, not corpus structure, and the field should invest entirely in inference-time grounding. Secondary checks test generality and mechanism. We replicate the finding on PepBenchmark's peptide datasets using its Hybrid-split and distribution-controlled negative sampling, and on a TCR-style hard-split task where Grazioli et al.'s 0.95-to-0.55 collapse gives a sharp discriminative analogue. We verify the diagnostic by checking whether the motif memorization gap at intermediate checkpoints predicts final hallucination rate across arms, and whether — unlike perplexity in Krishnan et al.'s study — it separates clean from leaky pre-training runs. Finally, we test whether ontology-grounded pre-training interacts with redundancy, since OntoProtein (OntoProtein: Protein Pretraining With Gene Ontology Embedding) gained mostly in transductive settings; if grounding in a fixed knowledge graph merely memorizes known neighborhoods, its gains should vanish under our homology hold-out, and redundancy-controlled corpora should not. Every number we report on novel targets will be paired with the corresponding random-split number, so the gap between the two quantifies, for generative models, what Krishnan et al. quantified for classifiers: how much of what looks like skill is recall.
References
- Grounding AI Explanations in Experience: A Reflective Cognitive Architecture for Clinical Decision Support
- On TCR binding predictors failing to generalize to unseen peptides
- PepBenchmark: A Standardized Benchmark for Peptide Machine Learning
- Evaluating out of distribution generalization of protein language models
- ProLLaMA: A Protein Large Language Model for Multitask Protein Language Processing
- Leveraging generative hallucination and biophysics-informed modeling for unified biomolecular sequence-structure co-design
- Evaluating Protein Transfer Learning with TAPE
- Large Language and Protein Assistant for Protein-Protein Interactions Prediction
- MonoCoder: Domain-Specific Code Language Model for HPC Codes and Tasks
- BERTHop: An Effective Vision-and-Language Model for Chest X-ray Disease Diagnosis
- A Comparative Study of PEFT Methods for Python Code Generation
- OntoProtein: Protein Pretraining With Gene Ontology Embedding