FOUNDINT.AI
TRIHELIX AI team Published

Article

Beginner

An AI Backtest Can Remember the Years It Tests

An AI fund's backtest may run over years its model already learned. Find the date its training data ends and ask what each side can show. Invented example.

Responsible Practice AI Literacy

Next month, the Invented Sample Halverby Foundation’s investment committee takes up a new pitch. Its consultant has sent a deck for a stock fund whose picks come from an AI model, and the first chart says the model would have beaten the market every year since 2015 (our invented line). The fund never traded in most of those years. The treasurer asks: did the AI simply know the answers?

This is a teaching example, not a case study. The foundation, the consultant and the fund are invented.

A timeline with one marked date where the AI model's training data ends. Years to the left may already be known to the model; years to the right are the only clean test.

Find the line

Our reading: every AI model of this kind is built from text gathered up to some date. A backtest runs a strategy over past years as if it had been in use then. So the first question about any AI backtest is a date, and which side of it the test years fall on.

Before the line, the model may already know

A paper posted on arXiv by three University of Florida researchers, first in April 2025 and revised in December 2025, opens with its conclusion: “Large language models (LLMs) cannot be trusted for economic forecasts during periods covered by their training data.”

Asked about dates before October 2023, when its training data ends, the main model tested, a widely used AI chatbot model, could recall “specific S&P 500 index levels with perfect precision on certain dates, unemployment rates accurate to a tenth of a percentage point,” according to the same paper.

Our reading: inside those years, a backtest can be a test the model has already seen the answers to. The authors argue that with data from before the cutoff “we cannot distinguish whether a model demonstrates genuine forecasting ability or simply recalls memorized information.”

Moving the line does not work

A pitch may say the adviser told the model to forget later years. The Florida team tried that.

In the Florida paper, where the tested model’s training data ends in October 2023 and threshold accuracy means correct calls on whether quarterly GDP growth came in above 2.5%, the authors write that “When we instruct GPT-4o to ignore any information after 2010 when forecasting quarterly GDP growth direction, the model achieves 97.6% threshold accuracy before the artificial cutoff and 98.0% after, nearly identical performance despite the explicit constraint” and that “In contrast, actual post-knowledge cutoff accuracy is only 40%” over the real quarters after its cutoff, October 2023 to February 2025, a sample they warn is small enough that tests have “low power to distinguish genuine forecasting skill from undetected memorization.”

In plain words, the instruction changed almost nothing.

Instructions to pretend it is an earlier year cannot help, the authors argue, because “prompts cannot change what information is encoded in the model’s parameters.”

Removing company names and dates is not a full fix either; the abstract reports that “masking fails as LLMs reconstruct entities and dates from minimal context.”

Before the line, the error can run either way

A paper posted on arXiv in September 2023 by two Columbia researchers had an older chatbot model sort news headlines as good, bad or neutral news, then tested a strategy that bought on good news and sold on bad, and compared January 2015 to September 2021, when that model’s training data ended, with October 2021 to December 2022.

Inside the training years, the Columbia authors found, “surprisingly, that the anonymized headlines outperform,” which they put down to “a distraction effect, in which general knowledge of the companies named interferes with the measurement of a text’s sentiment.”

Their summary of the two forces: “Look-ahead bias overstates the performance of trading strategies based on an LLM’s predictions, but the distraction effect can be positive or negative.”

Their conclusion is plain: “Any backtest that includes an LLM’s training window is tainted by the LLM’s exposure to information about subsequent events.”

Our reading: inside the training years, a backtest can make an AI strategy look better or worse than it would really be. A good chart and a bad chart from those years say equally little.

After the line: the only clean test, and a slow one

The Florida authors say tests of forecasting should “focus exclusively on data beyond their training cutoff,” and admit that enough of that data “may take years to accumulate.”

The Columbia paper describes the same limit: researchers testing these models have been held to “the out-of-sample period that begins at the end of the model’s training period.”

Our reading: a fund built on a recent model may have only a short clean history. That is a fact to put on the table, not a flaw to hide.

What this means for your committee

Our reading, four questions to ask:

  • On what date does the AI model’s training data end?
  • Which of the test years fall after that date?
  • How much weight do results from before it get? Ours: little, good or bad.
  • What did real accounts earn after that date, after fees? Neither paper looks at fees; that point is ours.

The same-day tutorial, Check an AI Fund Pitch Before It Reaches the Investment Committee, turns these questions into a desk check, with a lab.

The line in one table

Where the test years sitWhat the backtest can showWhat to ask the adviser
Before the training data endsPossibly memory, in either directionWhen does the training data end?
Before it, told to forget later yearsThe same problem, relabeledWhat did the model see in training?
Before it, with names removedStill possibly memoryHow was the masking tested?
After the training data endsThe closest thing to a fair testHow many periods, and after fees?

Common mistakes

  • Reading a long backtest as a long track record.
  • Accepting an instruction to forget as a fix.
  • Treating a weak backtest as proof the model is honest.
  • Asking about returns before asking for the training date.

Check your understanding

  1. Why can’t telling the model to ignore later data fix the problem? (Prompts do not change what the model learned in training, the Florida authors argue.)
  2. Can the training years only make results look better? (No. The Columbia authors found the error can run either way.)
  3. Which years give the cleanest test? (Years after the model’s training data ends, as the Florida authors advise.)

Limitations

The Florida paper and the Columbia paper tested chatbot models on U.S. market and economic data, one main model each, and both are papers posted on arXiv. Neither tested a live fund, a fund’s fees or any other kind of AI model. Every step for a committee here is our reading. The Invented Sample Halverby Foundation, its consultant and the fund are invented. This is not investment advice. This is general information, not legal or tax advice.

Sources (2)