TEMPO: Temporal Enforcement via Mode-Separated Policy Optimization for Trustworthy LLM Backtesting

Zeyu Zhang, Bradly C. StadieNeurIPS 2026

TL;DR

When we test how well Large Language Models (LLMs) predict the future by looking at historical events ("backtesting"), they routinely cheat by sneaking in facts from the future that were baked into their pre-training data. You can't simply erase these memories, because a fact that is "from the future" for a 2020 test is totally fair game for a 2022 test. This paper introduces TEMPO, a reinforcement learning method that teaches LLMs temporal discipline—acting strictly like an observer frozen at a specific point in time—allowing us to honestly evaluate their forecasting skills in a single forward pass.

What Problem Does This Paper Address?

Imagine asking an LLM to stand in December 2019 and predict which tech stocks will perform best over the next six months. Because the model was trained on data up to 2025, it already knows the COVID-19 pandemic is weeks away. Even if you explicitly prompt it, "Do not use information after December 2019," the model’s parametric memory inevitably leaks post-cutoff knowledge into its reasoning, wildly inflating its apparent forecasting accuracy.

Existing fixes fall short. Prompting fails when the "forbidden" knowledge is causally tied to the outcome. Knowledge unlearning (surgically erasing facts from weights) doesn't work because temporal rules change with every question: a 2021 earnings report is illegal for a 2020 cutoff, but vital evidence for a 2022 cutoff. Meanwhile, filtering out leaked claims after generation breaks the logical flow of the model's reasoning and slows down inference. The authors frame this not as a knowledge-storage problem, but as a knowledge-use problem: models don't need amnesia; they need self-control.

Methods

The authors use Group Relative Policy Optimization (GRPO)—a critic-free reinforcement learning algorithm that generates a group of candidate answers for a single prompt and scores them relative to each other.

First, the model is required to output a structured response: an explicit list of atomic evidence claims (each tagged with a declared source date), a reasoning section citing those claims, and a final prediction. A date-plausibility verifier checks if any claim's effective date crosses the prompt's cutoff date.

The core innovation of TEMPO is its two-mode reward gate:

Figure 1: Overview of one TEMPO training step. For each training instance (x, t, y), the policy πθ generates G completions, each parsed into a structured output with an evidence list, reasoning, and prediction. A date-plausibility verifier counts leaked claims per completion. The core design contribution is the group-level mode gate: if any completion in the group contains a leaked claim, the entire group enters leakage mode with an exponential penalty reward (Eq. 3); only when all completions are clean does the group enter performance mode to optimize task accuracy (Eq. 4). This hard separation ensures leakage elimination is a prerequisite for performance optimization. The resulting rewards drive a clipped GRPO policy update.

If you simply blend "don't leak" and "be accurate" into a single score, the high variance of task accuracy drowns out the leakage penalty. Instead, TEMPO uses a hard binary switch at the group level:

  • Leakage Mode: If even one candidate completion in the sampled group contains a post-cutoff leak, the entire group enters Leakage Mode. Task accuracy is completely ignored, and completions are rewarded solely for having fewer leaks (via a smooth exponential decay penalty).
  • Performance Mode: Only when 100% of completions in the group are completely leak-free does the gate flip to Performance Mode. Now, the model is rewarded for prediction accuracy, multiplied by quality gates that ensure it actually cites diverse evidence rather than outputting empty truisms just to stay "clean."

Datasets

The authors evaluate two Mixture-of-Experts models (Qwen3-30B-A3B and Qwen3.5-35B-A3B) across three historical prediction tasks spanning a spectrum of leakage sensitivity, with strictly non-overlapping train and evaluation splits:

  • Stock Ranking (High sensitivity): Ranking five same-sector companies by 6-month total return (Eval covers the Dec 2019–Jun 2020 COVID-19 onset).
  • Salary Prediction (Medium sensitivity): Estimating average annual contract values for free-agent athletes changing teams (Trained on NFL/MLB/NHL; evaluated out-of-distribution on NBA).
  • Legal Case Prediction (Low sensitivity): Predicting the probability a petitioner prevails in US Supreme Court and federal appellate cases based on facts and procedural history.

Crucially, they also introduce a Control set of events resolved after February 2026 (past both models' pre-training cutoffs) to establish an honest, zero-leakage performance floor.

Key Insights and Ideas

  • An Emergent Two-Phase Curriculum: You don't need to manually schedule when training switches from "stop cheating" to "predict better." Early in training, almost every group triggers Leakage Mode. As the model learns temporal discipline, clean groups naturally become the norm (jumping from 0% to >81% on the hardest task), automatically transitioning training into Performance Mode.
  • Date-Filtered RAG Can Backfire: You might think giving a model a search engine hard-filtered to pre-cutoff dates would stop it from relying on future memories. Surprisingly, Retrieval-Augmented Generation (RAG) often amplifies leakage (jumping from 8.1% to 18.2% on salary prediction), because articles published around a cutoff date frequently discuss forward-looking contract rumors or post-cutoff dynamics that slip past metadata filters.
  • Harmless Residual Leaks: Using a Shapley-value metric that weighs leaks by how much they sway the final answer (Decision-Critical Leakage Rate, or DCLR), TEMPO is the only method whose DCLR is consistently lower than its raw leakage rate—meaning its rare, remaining mistakes happen on peripheral claims rather than driving the prediction.

Key Results

TEMPO slashes overall leakage rates from 2.1–12.7% (standard prompting) down to 0.6–3.7% across all six model-task combinations, approaching the verifier's ~0.7% false-positive floor.

Evaluation results across three temporal prediction tasks and two models.
  • Better Honest Reasoning: Once forced to play fair, the model actually learns to reason better from valid fundamentals. On Salary Prediction, TEMPO cuts leakage while improving prediction accuracy by 6–13% over the prompted baseline (e.g., 0.558 to 0.631 on Qwen3.5-35B), well above the zero-knowledge control floor.
  • Coherent Chains of Thought: Compared to TimeSPEC (an inference-time verify-and-filter pipeline), TEMPO maintains vastly higher evidence citation coverage (91–99% vs. 71–76% on stock and salary tasks) because it generates clean evidence and reasoning together in a single forward pass without external API calls or post-hoc surgery.

Limitations and Future Work

TEMPO polices what the model says, not necessarily what it thinks. While it forces every prediction to be backed by an auditable trail of valid pre-cutoff evidence—and auxiliary probes found no obvious hidden reliance on memorized outcomes—the authors note that proving the model isn't subtly steering its internal representations using memorized answers will require mechanistic interpretability tools. Additionally, TEMPO requires open-weight models, date-annotated training tasks, and was only tested on the Qwen architecture family. Finally, because training and evaluation rely on a date-plausibility verifier, future scaling will need to continually guard against models learning to subtly game the judge.

Summary updated

Abstract

Backtesting large language models on historical events requires reasoning exclusively from information available before a specified cutoff date. Yet models routinely leak post-cutoff knowledge from pre-training into their reasoning, inflating apparent accuracy and undermining evaluation validity. Prompt-based constraints fail when suppressed content is causally related to the prediction, and knowledge unlearning cannot address this problem because temporal compliance is instance-specific: the same fact may be legitimate evidence for one cutoff date and a violation for another. Rather than erasing knowledge, the model must learn \emph{temporal discipline}---selecting evidence conditioned on each instance's cutoff date. We propose TEMPO (Temporal Enforcement via Mode-separated Policy Optimization), which trains this discipline via two contributions: (1) a two-mode reward where a leakage mode drives post-cutoff claims to zero as a hard prerequisite before a performance mode optimizes task performance; and (2) a GRPO-based training pipeline that enables the model to discover temporally valid reasoning strategies. We prove that training monotonically decreases leakage, converges linearly to a small neighborhood of the leak-free optimum, and improves task performance once compliance is achieved. On three prediction tasks and two models, TEMPO reduces leakage from 2--13\% to 0.6--3.7\% across all conditions, with task performance improving 6--13\% where strong pre-cutoff signals exist and maintained where the prediction task is inherently difficult from valid information alone.
BibTeX
@inproceedings{zhang2026tempo,
  author = {Zeyu Zhang and Bradly C. Stadie},
  title = {{TEMPO: Temporal Enforcement via Mode-Separated Policy Optimization for Trustworthy LLM Backtesting}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=uBLxMX8IFP},
}
Figure