← Latest papers
💬 NLP

Asking For An Old Friend: Diagnosing and Mitigating Temporal Failure Modes in LLM-based Statutory Question Answering

This paper introduces a benchmark for time-sensitive German statutory question answering and demonstrates that while retrieval-augmented generation with temporal filtering effectively mitigates post-cutoff staleness and recency bias in legal LLMs, vanilla models and web search approaches suffer from severe temporal failures, highlighting the necessity of enforcing temporal validity as a hard constraint for reliable legal AI.

Original authors: Max Prior, Andreas Schultz, Matthias Grabmair

Published 2026-05-25
📖 5 min read🧠 Deep dive

Original authors: Max Prior, Andreas Schultz, Matthias Grabmair

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 have a brilliant legal assistant who has read every law book in Germany up until a specific date—let's say, November 2024. This assistant is incredibly smart, but they have a major blind spot: they don't know that the world has changed since they stopped reading.

This paper is about testing that assistant on two specific ways they get confused by time, and then trying to fix those confusions.

The Two Time-Travel Glitches

The researchers found that when asking this AI assistant about laws, it makes two distinct types of mistakes:

  1. The "Outdated Map" Problem (Post-Cutoff Staleness):
    Imagine you are driving in 2025, but your GPS is using a map from 2020. The GPS tells you to turn left where a new highway now blocks the road.

    • The Glitch: If a law changed after the AI stopped learning, the AI will confidently apply the old, superseded rule. It doesn't know the new law exists.
    • The Result: The AI gives a wrong answer but sounds very sure of itself.
  2. The "Newest Shiny Toy" Problem (Recency Bias):
    Imagine you ask your assistant, "What was the speed limit on this street in 1995?" Even though you have a time machine (the old law) right there on the desk, the assistant grabs the current speed limit sign because it looks fresher and more "relevant."

    • The Glitch: The AI prefers the most recent version of a law, even when the specific situation you are asking about happened in the past and requires the old version.
    • The Result: The AI applies the wrong (too new) law to an old situation.

The Experiment: A Legal "Stress Test"

To test this, the researchers created a special exam with 312 questions based on real German laws. They made sure the questions were tricky:

  • Some required knowing a law that changed after the AI's "birthday" (its training cutoff).
  • Some required applying a law from 2017 to a case that happened in 2017, even though the law changed in 2024.

They tested five different AI models (like ChatGPT, Claude, and DeepSeek) in four different ways:

  1. The "Brain Only" Mode: The AI answers using only what it memorized during training.
  2. The "Google Search" Mode: The AI is allowed to browse the live internet.
  3. The "Time-Travel Library" (RAG-kNN): The AI is given a digital library, but a strict librarian (a filter) only hands it books that were valid on the specific date of the question.
  4. The "Table of Contents" Mode: Similar to the library, but the AI picks the chapters from a list before reading the full text.

What They Found

1. The "Brain Only" Mode Failed Miserably
When the AI had to rely on its memory alone, it was terrible at handling time.

  • For questions about laws changed after its training, it got the reasoning almost completely wrong (scoring near 0%). It confidently applied old rules to new situations.
  • It rarely admitted, "I don't know." Instead, it just guessed wrong.

2. The "Time-Travel Library" Fixed It
When the researchers used the RAG methods (the library with the strict date filter), the AI's performance skyrocketed.

  • By forcing the AI to look only at the laws that were valid at the time of the event, the answers became accurate.
  • It didn't matter if the AI was looking at a law from 2017 or 2025; as long as the "librarian" filtered the books correctly, the AI got the answer right.
  • Key Takeaway: The AI doesn't need to "learn" new laws; it just needs to be forced to look at the right version of the law at the right time.

3. The "Google Search" Mode Was Unreliable
Allowing the AI to search the live internet helped a little bit compared to the "Brain Only" mode, but it introduced a new problem.

  • The AI started showing a strong Recency Bias. When asked about old cases, the search engine often pulled up the current law because it's "fresh" and popular online.
  • The AI then applied the current law to the old case, getting the answer wrong again. It couldn't resist the "shiny new toy."

The Verdict

The paper concludes that for legal questions, time is a hard rule, not a suggestion.

You cannot just ask an AI, "What is the law?" and expect a correct answer. You have to tell it, "What was the law on this specific date?" and you must physically restrict its access to only the documents from that time.

  • Without filters: The AI is like a lawyer who only reads yesterday's newspaper and thinks it's today.
  • With filters (RAG): The AI becomes a lawyer who has a perfect, organized archive and knows exactly which book to pull off the shelf based on the date of the event.

The study proves that while AI is powerful, it needs a "time machine" (a strict date filter) to be reliable in the legal world. Without it, it's prone to confidently giving you outdated or historically incorrect advice.

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 →