Teaching Domain Language Models When Their Knowledge Was True

A language model trained on scientific literature absorbs claims without any record of when they were made or what kind of study made them. A 1998 case report and a 2014 randomized trial become the same kind of text. The result is a model that cannot tell a current finding from a superseded one, and that sounds equally confident about both after its training cutoff. This proposal tests a simple fix during domain continual pre-training, which means further training a general model on specialist text. Each biomedical document gets a short, standardized metadata header: publication year, study design, and venue type. The model learns to predict the document conditioned on that header. The header is sometimes deliberately dropped, and in a final phase it is removed entirely, so the model still works when metadata is missing.

The claim is not that metadata speeds up training. Metadata Conditioning Accelerates Language Model Pre-training (MeCo) already showed that, and also showed that random hashed group labels work about as well as real URLs. That second finding is exactly what makes a sharper question worth asking. Is there anything a semantically meaningful, ordered label such as a year gives a model beyond grouping similar documents together? Our hypothesis is that it does. Year-conditioned training should produce a model whose knowledge is indexed by time. Asking "as of 2009" should then change its answers in the right direction, and its confidence should fall in a calibrated way for questions whose evidence postdates its training. We test this under strict chronological splits of biomedical benchmarks, where hashed-year labels serve as the control that separates grouping from temporal meaning.

Core Claim

In biomedical continual pre-training, conditioning on real publication-year metadata, compared with conditioning on hashed labels that preserve the same grouping, yields three things. First, time-sensitive answers can be steered by an "as of" date. Second, the model is better calibrated on questions whose supporting evidence appeared after its cutoff. Third, that calibration can decide when to call retrieval. Grouping alone should reproduce MeCo-style efficiency gains but none of these three temporal behaviors. A second claim addresses the reality that biomedical metadata is incomplete and inconsistent: training with random field dropout keeps most of the benefit when the majority of documents lack a given field.

Where This Sits

The work that motivates this proposal comes from three strands. Mitigating Temporal Misalignment by Discarding Outdated Facts shows that models state outdated facts confidently. That paper trains a separate BERT model to predict how long a fact lasts, then compares that lifespan with the time elapsed since the evidence to decide when to retrieve. SituatedQA shows that 16.5% of open-domain questions change answers over time, and that retrieval models are 15 points less accurate on updated facts. Algorithmic fairness datasets: the story so far and Data reporting standards: making the things we use better document how missing provenance makes reused data unreliable. That is the regime our dropout design targets.

The work that supplies our method is MeCo: the metadata prefix, loss computed only on the document, and a metadata-free cooldown over the last 10% of training. We reuse all of it. What we change is the content of the prefix, from URL to structured, time-ordered fields, and the setting, from a general web crawl to a specialist corpus evaluated chronologically. FastDoc also uses document metadata and taxonomies for cheap domain pre-training of encoders. However, it samples documents without regard to time and assumes the metadata is clean, which are the two assumptions we relax.

The closest prior work, and the main constraint on our design, is StreamingQA. It already prefixes news documents with publication dates and questions with reference dates. So "put the date in front of the document" is not new. What StreamingQA does not do is fourfold. It does not isolate whether the date acts as time or merely as a group label, since it has no hashed control. It does not measure calibration or retrieval gating. It does not test missing metadata. It does not work in a technical domain where claims carry study-design context. Continuous Knowledge Metabolism and FinanceHarness enforce point-in-time evaluation in science and finance, but only through inference-time prompting of frozen models. We change the weights instead.

Research Program

We continually pre-train a roughly 1B-parameter decoder on PubMed abstracts published up to a cutoff year $T$. The primary cutoff is 2015, with a second cutoff to check robustness. Each abstract gets a header such as "Year: 2011 | Design: randomized trial | Venue: clinical journal". The design and venue fields come from the database's own indexing tags, which are sparse and inconsistent: the metadata gap in practice. During the first 90% of tokens, each field is independently dropped with probability $p$. The final 10% uses no header. Abstracts published after $T$ are held out entirely for evaluation, and we also enforce a one-year buffer before the test period. We borrow the buffer from Temporal Convolutional Networks for the Advance Prediction of ENSO, which separates genuine prediction from near-cutoff persistence the same way.

The analysis asks three questions. Does year conditioning change what the model says when we prompt with an explicit "as of" year? Does the model's confidence on post-$T$ questions track how far past $T$ the evidence lies? And how much benefit survives as $p$ rises toward the missing rates actually seen in the corpus? We also test a cheap repair for the gap: fill in missing years with predictions from a small text-only date classifier, then compare training on filled-in years against training on true years.

Proposed Experiments

We build chronological versions of two existing biomedical benchmarks by dating their source abstracts. PubMedQA PQA-L is split into questions from pre-$T$ and post-$T$ abstracts. Reported reference points on the original random split are 55.2% accuracy for majority class, 68.1% for multi-phase fine-tuned BioBERT, and 78.0% for human experts. SciFact claims are re-partitioned by the dates of their evidence abstracts. We then add a small "superseded evidence" set: pairs where a later abstract contradicts an earlier one on the same claim, which we build from SciFact's contradiction labels. The reported SciFact pipeline scores are 60.6 F1 with oracle abstracts and 39.5 F1 under open retrieval.

The chronological re-splits are our own construction, so no prior number exists on them. We will report the original splits alongside for comparability. SituatedQA and StreamingQA serve as general-domain checks that the method is not specific to biomedicine. For them we train the same recipe on StreamingQA's WMT news corpus at small scale.

We measure four things. The first is held-out perplexity on post-$T$ abstracts as a function of training tokens. The second is accuracy split by pre-$T$ versus post-$T$ questions. The third is "as-of steerability": on the superseded set, accuracy when the prompt names the earlier year versus the later year. The fourth is expected calibration error, which measures the gap between stated confidence and actual accuracy, reported against the years elapsed since $T$. Finally, retrieval gating: using the model's own confidence to decide whether to retrieve, we trace accuracy against the fraction of queries sent to retrieval.

Baselines

The naive reference point is continual pre-training on the same abstracts, with the same tokens, compute, and learning-rate schedule, and no header at all. Every other system must beat it on the post-$T$ split to show value.

The strongest pre-training competitor is MeCo as published, conditioned only on venue, the closest analogue in PubMed to a URL. MeCo reported matching baseline accuracy with 33% less data (160B vs. 240B tokens) and a +1.0 average gain on OLMES at 1.6B parameters, per Metadata Conditioning Accelerates Language Model Pre-training. We run it with identical data, the same cooldown, and the same tuning sweep over prefix format.

The ablation that isolates our key ingredient is a hashed-year control. Each year becomes a random string, so documents are grouped exactly as the year header groups them, but the label carries no order. Our temporal claims hold only if real years beat hashed years on steerability and calibration while the two tie on perplexity. A second ablation is a StreamingQA-style date-only prefix with no cooldown and no design fields. It separates the contribution of study-design metadata from that of time.

The strongest inference-time competitor is the fact-duration gating of Mitigating Temporal Misalignment by Discarding Outdated Facts, applied on top of the no-header model with the same retrieval index. That paper reports 50–60% lower calibration error on SituatedQA, and 20.5 exact match while retrieving for only 45% of queries. We beat it if our model's own confidence reaches equal or better accuracy at a lower retrieval fraction on the biomedical post-$T$ split, and matches it on SituatedQA.

Continual fine-tuning on post-$T$ abstracts serves as a reference ceiling rather than a competitor. StreamingQA reports that such updates need 95% fewer steps than retraining, at a cost of about a 5% drop on older knowledge.

Why not just…?

Why not just use retrieval over a date-filtered index? For answering post-cutoff questions, retrieval will probably win, and we do not claim otherwise. But retrieval has known failure modes. SituatedQA's 15-point gap on updated facts and the open-retrieval drop in SciFact from 60.6 to 39.5 F1 both show that swapping in new documents is not enough, and RealTime QA reports failures when coverage is thin. Retrieval also always costs something. Our proposal competes on a different question: knowing when to retrieve and how far to trust stored knowledge. The gating experiment is where this gets settled.

Why not just train a separate fact-lifespan model, as Zhang and Choi do? This is the real threat. If an external lifespan classifier added to a plain domain model matches our gating curve, then conditioning inside pre-training adds nothing, and we will report that. One consideration favors our approach: their method needs the fact's start date, which unstructured text often lacks, whereas a year-conditioned model uses document dates that already exist. The head-to-head gating comparison decides the matter.

Why not just put the date in the prompt at inference, with no metadata training? A model never trained with dates has no learned link between a year token and the state of the literature. We include this as a zero-cost baseline on the as-of steerability test. If it matches the trained model, the pre-training component is unnecessary.

Why not just prefix dates as StreamingQA did? That design is the date-only ablation above. The additions we test are the hashed control, the cooldown, the design fields, and missing-field dropout. If the date-only prefix matches our full recipe, the contribution shrinks to a grouping-versus-time analysis plus a result on robustness to missing metadata. That would still be publishable, but it would be narrower.

Decisive Checks

The proposal rises or falls on one pattern. Real-year conditioning and hashed-year conditioning should give indistinguishable perplexity curves, which would confirm MeCo's grouping account. At the same time, real years should give clearly better as-of steerability on the superseded-evidence set and lower calibration error that grows with years past $T$. If hashed years match real years on steerability, the "time-aware knowledge" claim is false. If the fact-duration gate on a plain model matches our retrieval efficiency, the practical case collapses. And if benefits vanish once field dropout reaches the corpus's actual missing rates, the method does not survive the metadata gap it is meant to address. Each outcome is informative, and each can be reached with a 1B-parameter model and publicly dated abstracts.