← Latest papers
💰 quantitative finance

DatedGPT: Preventing Lookahead Bias in Large Language Models with Time-Aware Pretraining

The paper introduces DatedGPT, a family of twelve 1.3B-parameter language models trained on temporally partitioned data with strict annual cutoffs from 2013 to 2024 to eliminate lookahead bias in financial forecasting while maintaining competitive performance.

Original authors: Yutong Yan, Raphael Tang, Zhenyu Gao, Wenxi Jiang, Yao Lu

Published 2026-03-13
📖 4 min read☕ Coffee break read

Original authors: Yutong Yan, Raphael Tang, Zhenyu Gao, Wenxi Jiang, Yao Lu

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are hiring a financial advisor to help you predict next year's stock market. You want them to be brilliant, but you also need them to be honest about what they know.

The problem with most modern AI models (Large Language Models) is that they are like students who have secretly peeked at the answer key before taking the test. They were trained on the entire internet, which includes news from 2024. So, if you ask them, "What happened to the stock market in 2024?" they might give you a perfect answer. But that's not because they are smart at predicting the future; it's because they already saw the future in their training data. In finance, this is called Lookahead Bias, and it makes their predictions useless for real-world investing.

Enter DATEDGPT.

The "Time-Traveling Librarian" Analogy

Think of the researchers behind this paper as a team of Time-Traveling Librarians.

Instead of giving one AI model the entire history of the internet (which is messy and full of spoilers), they built 12 separate libraries, one for each year from 2013 to 2024.

  • The 2013 Library: Contains only books, news, and websites available up to December 31, 2013.
  • The 2020 Library: Contains everything up to 2020, but nothing from 2021, 2022, or 2023.
  • The 2024 Library: Contains the most recent data, but strictly stops at the end of 2024.

They then trained a specific AI "student" for each library. The student who studied in the 2013 Library has never heard of ChatGPT, the 2020 pandemic, or the 2024 election. If you ask them about these things, they genuinely don't know. They aren't "forgetting"; they were never taught that information.

How They Did It (The Recipe)

  1. The Ingredients (Data): They took a massive pile of internet text (about 100 billion words per year) and chopped it up strictly by the date it was crawled (found) by search engines. They made sure no "future" ingredients slipped into the "past" pots.
  2. The Cooking (Training): They cooked 12 separate AI models from scratch. Each model only ate the food available in its specific year.
  3. The Special Sauce (Instruction Tuning): To make these models helpful chatbots, they taught them how to follow instructions (like "write an email" or "analyze this news"). But they were super careful here too. They filtered out any instructions that mentioned future events. For example, they wouldn't ask the 2018 model to "Write a script about the 2020 Olympics" because that would be cheating.

Why This Matters: The "Perplexity" Test

How do we know the 2020 model really doesn't know about 2021?

The researchers used a test called Perplexity. Imagine you are reading a book. If the book talks about things you've read before, it's easy to understand (low "confusion" or perplexity). If it talks about things you've never seen, it's confusing (high perplexity).

They fed the 2020 model news headlines from 2013, 2014, all the way to 2024.

  • Before 2020: The model understood the news easily (low confusion).
  • After 2020: The model suddenly got very confused (high confusion) because it had never seen these words before.

This "jump" in confusion proved that the model was truly blind to the future. It wasn't just pretending; it was genuinely unaware.

The Result: A Fair Forecasting Tool

The paper shows that these "time-traveling" models are actually quite smart. Even though they are smaller than the giant AI models everyone uses today, they perform just as well on general tasks like answering questions or writing stories.

But their superpower is integrity.

  • If you want to know what a 2019 investor would have thought about a stock, you ask the 2019 model.
  • If you want to know what a 2024 investor thinks, you ask the 2024 model.

They provide a Web Demo (like a time machine chat interface) where you can switch between these models to see how their answers change as time moves forward.

In a Nutshell

DATEDGPT is a family of AI models that act like honest historians. They don't cheat by peeking at the future. They are designed specifically for finance and prediction tasks where knowing the answer before the event happens ruins the whole game. By strictly cutting off their knowledge at a specific date, they ensure that when they make a prediction, it's based on what was actually known at that time, not on what they secretly memorized from tomorrow.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →