Paper: arXiv 2612.05165

Authors: Joseph Engelberg, Songrun He, Linying Lv, Asaf Manela, William Mullins, Luka Vulicevic, Jimmy Wu

Abstract

Large language models are increasingly central to finance research, yet their training on recent data raises lookahead bias concerns. Whether this bias materially affects a given application is an empirical question, but answering it requires benchmarks themselves free of lookahead bias. We survey two complementary strategies. The first, changing the text, anonymizes inputs so the model cannot link them to its training data; we focus on entity neutering, which uses the language model itself to iteratively remove identifying information. The second, changing the model, trains models exclusively on data available before each historical period; we focus on chronologically consistent language models for pretraining and instruction tuning. We illustrate both approaches when predicting stock returns from news and offer guidance on tool selection across research contexts.

Complexity vs Empirical Score

  • Math Complexity: 3.5/10
  • Empirical Rigor: 6.0/10 (capped from 6.5: transaction costs not modelled; reported Sharpe ratio of 4.9 is implausibly high for daily or lower-frequency data; see penalty flags)
  • Quadrant: Street Traders — empirical and applied, lower math complexity (effective empirical rigor capped from 6.5)

Why this score: The paper provides a clear, highly practical survey of measuring and mitigating lookahead bias in LLMs using entity neutering and chronologically consistent models. While mathematical derivations are light, the empirical strategy and focus on real-world financial applications are robust and well-grounded.

Research Flowchart

  flowchart TD
    A["Research Goal: Measure & Mitigate Lookahead Bias in LLMs"] --> B["Data & Inputs: Financial News & Stock Return Datasets"]
    B --> C["Methodology Step 1: Text Modification via Entity Neutering"]
    B --> D["Methodology Step 2: Chronologically Consistent Model Training"]
    C --> E["Computational Process: Iterative ID Removal & Return Prediction"]
    D --> E
    E --> F["Outcomes: Reduced Bias, Validated Benchmarks & Tool Selection Guidance"]

Evidence Card

What the authors claim, on what data, and who has checked it. Read from the paper's own text by a language model: every quote is verbatim, nothing was re-run. How to read this card

Proposes

The paper proposes two complementary mitigation strategies: entity neutering of text inputs and chronologically consistent language models that are pretrained and instruction‑tuned only on data available up to each historical period.

Source sentence
The first, changing the text, anonymizes inputs so the model cannot link them to its training data; we focus on entity neutering, which uses the language model itself to iteratively remove identifying information. The second, changing the model, trains models exclusively on data available before each historical period; we focus on chronologically consistent language models for pretraining and instruction tuning.

Assumes 3

  • Sentiment scores from the language model are assumed to reflect only information available at the time of publication. statistical
    Source sentence
    This inference rests on the assumption that the model’s sentiment scores reflect only information available at the time of publication.
  • The bias analysis assumes that models trained on data extending through recent years may have seen future outcomes. model
    Source sentence
    That assumption fails when frontier language models are trained on text extending through recent years.
  • Financial research assumes that prices reflect information available at the time, i.e., market efficiency. market
    Source sentence
    Finance research depends on the principle that prices reflect information available at the time.

Data

Backtest sample: 2008-01 – 2023-07 · US equities (news‑driven stocks) · equities · daily

  • historical news articles text-news public
    Source sentence
    2 The Lookahead Bias Problem Consider a simple research design: extract sentiment from historical news articles using a language model, then test whether sentiment predicts subsequent stock returns. If positive sentiment predicts positive returns, the researcher infers that news articles contain value-relevant information not yet reflected in prices.
  • stock returns market-prices public
    Source sentence
    If positive sentiment predicts positive returns, the researcher infers that news articles contain value-relevant information not yet reflected in prices.
  • VIX index macro public
    Source sentence
    For strongly negative news, the difference in next-day abnormal returns rises from 3.3 bps when VIX is below its 75th percentile to 9.5 bps when it is above it. Lopez-Lira et al. (2026) find that GPT-4o’s mean absolute percentage error in recalling VIX falls from 6.7% over 1990–2023 to 0.34% in the final ten years before its October 2023 cutoff.
  • S&P 500 daily closing prices (2000‑2024) market-prices public
    2000-2024 · S&P 500
    Source sentence
    We repeat this prompt for every S&P 500 trading day from January 3, 2000, to July 31, 2024, which precedes the knowledge cutoffs of the Gemma models we use. Table 2. Forecast Accuracy of LLM Recall by Model Size Forecast Performance Model MAPE (%) DA (%) Panel A: LLM forecasts Gemma 3 (1B) 64.570 49.093 Gemma 3 (4B) 16.913 53.907 Gemma 3 (12B) 4.047 54.457 Gemma 3 (27B) 4.158 57.847 Gemma 4 (31B) 2.556 58.139 Panel

Costs

Not modeled A trading or execution result is reported without costs.

Source sentence
9The Sharpe ratios reported in this exercise are based on gross strategy returns and therefore do not account for transaction costs.

Finds 5

Reported performance (Chronologically consistent LLM news sentiment long-short): Sharpe 4.90

  • Sentiment extracted from neutered text agrees with raw text 96% of the time and its return predictability nearly matches that of raw text. predictive-accuracy
    Source sentence
    The sentiment extracted from neutered text agrees with the sentiment from raw text 96% of the time.4 More importantly, the return predictability of neutered text nearly matches that of raw text. Stocks with positive sentiment on a given day earn similar next-day abnormal returns whether that sentiment is extracted from raw or neutered articles.
  • The performance gap between raw and neutered text provides an upper bound on lookahead bias, which appears modest in daily news‑based return prediction. statistical
    Source sentence
    Results from both strategies suggest that lookahead bias in daily news-based return prediction appears modest. The strong predictability documented in this recent research largely survives when researchers eliminate or control for lookahead bias.
  • LLM recall forecasts achieve a directional accuracy of 58%, which the authors attribute to lookahead bias. predictive-accuracy
    Source sentence
    A directional accuracy of 58% is large and likely reflects lookahead bias: Lopez-Lira et al. (2026) show that when the same prompt targets dates after the knowledge cutoff, accuracy falls sharply.
  • Lookahead bias is larger for large, prominent firms, recent or salient periods, and longer (annual) horizons. statistical
    Source sentence
    The scope for lookahead bias is likely greater for large, prominent firms, more recent or salient periods, annual horizons, market and macroeco-nomic aggregates, and larger models.
  • Sharpe ratios reported are based on gross returns and do not account for transaction costs. performance
    Source sentence
    9The Sharpe ratios reported in this exercise are based on gross strategy returns and therefore do not account for transaction costs.

Checked by others

Supported by

  • Your AI, Not Your View: The Bias of LLMs in Investment Analysis (2025)
    On the question: Does firm size affect the magnitude of LLM bias in investment analysis?
    Compare the findings

    This paper: Lookahead bias is larger for large, prominent firms, recent or salient periods, and longer (annual) horizons.

    That paper: Bias scores consistently decline as company size decreases, and the gap between highest- and lowest-bias quantiles is statistically significant across all models evaluated.

    Both report higher bias for larger firms; A shows bias scores drop as size decreases, B finds lookahead bias larger for large firms, especially over annual horizons.

Contradicted by

  • Anonymization and Information Loss (2025)
    On the question: Does sentiment extracted from earnings call transcripts predict contemporaneous stock returns, and how does anonymization affect this predic
    Compare the findings

    This paper: Sentiment extracted from neutered text agrees with raw text 96% of the time and its return predictability nearly matches that of raw text.

    That paper: Sentiment scores from raw transcripts are a strong signal of contemporaneous returns (coeff. = 2.487, t = 18.832), and this explanatory power is substantially attenuated after anonymization.

    A finds coeff = 2.487 (t = 18.832) with strong attenuation after anonymization, while B reports 96% agreement and return predictability that nearly matches raw text, contradicting A's attenuation claim.

Qualified by

  • Predictive Power of LLMs in Financial Markets (2024)
    On the question: How does look-ahead bias impact LLM-based predictions of financial returns using textual sources like the Beige Book and daily news?
    Compare the findings

    This paper: The performance gap between raw and neutered text provides an upper bound on lookahead bias, which appears modest in daily news‑based return prediction.

    That paper: The authors report an unavoidable look-ahead bias in GPT regardless of prompt quality, and find that the Beige Book contains correlation information but GPT has too much look-ahead bias.

    Both studies confirm the presence of look-ahead bias; A finds it unavoidable in GPT with Beige Book data, while B measures a modest bias in daily news‑based predictions.

  • Look-Ahead-Bench: a Standardized Benchmark of Look-ahead Bias in Point-in-Time LLMs for Finance (2026)
    On the question: How much look‑ahead bias do LLMs exhibit in financial return prediction?
    Compare the findings

    This paper: The performance gap between raw and neutered text provides an upper bound on lookahead bias, which appears modest in daily news‑based return prediction.

    That paper: Standard LLMs show significant lookahead bias, with alpha decay exceeding -15 percentage points between the in-sample and out-of-sample periods, while Pitinf models maintain stable performance.

    A finds bias causing >15 pp alpha decay between in‑sample and out‑of‑sample; B finds a modest bias measured by a small raw‑vs‑neutered performance gap in daily news‑based predictions.

Code

https://github.com/LukaVuli/Entity_Neutering — the authors' own repository

Extracted 2026-12-05 · same card as JSON · A language model chose these items: check the source sentence before relying on one.

Cited References (33)

  1. Sample-Dependent Results Using Accounting and Market Data: Some Evidence (1986) — link
  2. Survivorship Bias in Performance Studies (1992) — link
  3. Mutual Fund Survivorship (2002) — link
  4. Extracting Training Data from Large Language Models (2021) — link
  5. Quantifying Memorization Across Neural Language Models (2023) — link
  6. Survivorship Bias and Attrition Effects in Measures of Performance Persistence (1999) — link
  7. Expected Returns and Large Language Models (2026) — link
  8. Total Recall? Evaluating the Macroeconomic Knowledge of Large Language Models (2025) — link
and 25 more
  1. AI ’s Predictable Memory in Financial Analysis (2025) — link
  2. Entity Neutering (2026) — link
  3. Assessing Look-Ahead Bias in Stock Return Predictions Generated by GPT Sentiment Analysis — → 2309.17322
  4. Time Travel in LLM s: Tracing Data Contamination in Large Language Models (2024) — link
  5. Chronologically Consistent Large Language Models — → 2502.21206
  6. Chronologically Consistent Reasoning Models (2025) — link
  7. NoLBERT : A No Lookahead(back) Foundational Language Model (2025) — link
  8. Robust Performance Hypothesis Testing with the S harpe Ratio (2008) — link
  9. Caution Ahead: Numerical Reasoning and Look-Ahead Bias in AI Models (2026) — link
  10. Can ChatGPT Forecast Stock Price Movements? Return Predictability and Large Language Models — → 2304.07619
  11. The Memorization Problem: Can We Trust LLM s’ Economic Forecasts? (2026) — link
  12. Large Language Models: An Applied Econometric Framework (2026) — link
  13. Data Contamination: From Memorization to Exploitation (2022) — link
  14. Proving Test Set Contamination in Black-Box Language Models (2024) — link
  15. To the Cutoff… and Beyond? A Longitudinal Perspective on LLM Data Contamination (2024) — link
  16. StoriesLM : A Family of Language Models with Time-Indexed Training Data (2024) — link
  17. Lookahead Bias in Pretrained Language Models (2025) — link
  18. BERT : Pre-training of Deep Bidirectional Transformers for Language Understanding (2019) — link
  19. The Llama 3 Herd of Models (2024) — link
  20. Language Models are Unsupervised Multitask Learners (2019) — link
  21. GLUE : A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding (2019) — link
  22. HellaSwag : Can a Machine Really Finish Your Sentence? (2019) — link
  23. Gemma 3 Technical Report (2025) — link
  24. Gemma 4 Technical Report (2026) — link
  25. FlashAttention : Fast and memory-efficient exact attention with IO -awareness (2022)

3 of 33 cited works are in the corpus; resolved via arXiv source bundles, Semantic Scholar and OpenAlex. Corpus-wide: 2716 linked papers.