mlsanityData to 7 Oct 2026

Summoning the Oracle to Slay It: Mitigating Look-Ahead Bias in Financial Backtesting with Large Language Models

arXiv 2605.24564 ↗First posted 23 May 2026cs.AI cs.CE cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

Backtesting large language models (LLMs) on historical financial data is unreliable when their pre-training data include the evaluated events. An LLM trained in 2024 may already encode how stocks moved during 2018-2020. We name this failure parametric look-ahead bias and propose FinCAD, an inference-time adaptation of Context-Aware Decoding that attenuates contributions from memorised historical outcomes without retraining. FinCAD pairs an adversarial bias-discovery pipeline that learns a model-specific memory-activating prior prompt with an entity- and date-adaptive rule that scales the CAD strength using a per-(entity, date) confidence signal. Across five 7-14B LLMs and five mega-cap equities, the largest model-level mean in-sample return correction is -67.1%. For the three larger models, 2025 out-of-sample returns remain within 8K and mean Sharpe within ±0.10 of baseline; mean general-benchmark accuracy remains positive or within -1.7 points for four of five models. On an eleven-model leaderboard, FinCAD raises the subset-averaged in-sample/out-of-sample Spearman correlation from +0.779 to +0.846, yielding rankings that are more closely aligned with post-cutoff performance.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 32 of its 47 references that are in the map. First posted on arXiv 23 May 2026.

Builds on

32 of 47 references.

References · 32

  1. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
  4. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  5. 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,758
  6. 2022Mass-Editing Memory in a Transformercited by 976
  7. 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
  8. 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 598
  9. 2024TOFU: A Task of Fictitious Unlearning for LLMscited by 507
  10. 2022Knowledge Unlearning for Mitigating Privacy Risks in Language Modelscited by 424
  11. 2023Who's Harry Potter? Approximate Unlearning in LLMscited by 366
  12. 2023Trusting Your Evidence: Hallucinate Less with Context-aware Decodingcited by 319
20 more
  1. 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 270
  2. 2024TradingAgents: Multi-Agents LLM Financial Trading Frameworkcited by 182
  3. 2023FinMem: A Performance-Enhanced LLM Trading Agent with Layered Memory and Character Designcited by 163
  4. 2024A Multimodal Foundation Agent for Financial Trading: Tool-Augmented, Diversified, and Generalistcited by 137
  5. 2025Demystifying Domain-adaptive Post-training for Financial LLMscited by 24
  6. 2025Can LLM-based Financial Investing Strategies Outperform the Market in Long Run?cited by 19
  7. 2023Integrating Stock Features and Global Information via Large Language Models for Enhanced Stock Return Predictioncited by 16
  8. 2024TradExpert: Revolutionizing Trading with Mixture of Expert LLMscited by 11
  9. 2026Look-Ahead-Bench: a Standardized Benchmark of Look-ahead Bias in Point-in-Time LLMs for Financecited by 11
  10. 2026Evaluating LLMs in Finance Requires Explicit Bias Considerationcited by 11
  11. 2025A Fast and Effective Solution to the Problem of Look-ahead Bias in LLMscited by 8
  12. 2025Detecting Lookahead Bias in LLM Forecastscited by 7
  13. 2024MANA-Net: Mitigating Aggregated Sentiment Homogenization with News Weighting for Enhanced Market Predictioncited by 6
  14. 2024Modeling News Interactions and Influence for Financial Market Predictioncited by 6
  15. 2026Spectral Attention Steering for Prompt Highlightingcited by 6
  16. 2025FinGEAR: Financial Mapping-Guided Enhanced Answer Retrievalcited by 5
  17. 2025AlphaQuanter: An End-to-End Tool-Augmented Agentic Reinforcement Learning Framework for Stock Tradingcited by 5
  18. 2026Time is Not a Label: Continuous Phase Rotation for Temporal Knowledge Graphs and Agentic Memorycited by 3
  19. 2025Learn to Rank Risky Investors: A Case Study of Predicting Retail Traders' Behaviour and Profitabilitycited by 2
  20. 2025One More Question is Enough, Expert Question Decomposition (EQD) Model for Domain Quantitative Reasoningcited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 2.

2 papers.