TL;DR
Large Language Models (LLMs) often come with a stated "knowledge cutoff" date, but this paper reveals that the actual knowledge within an LLM can be much older and vary significantly across different data sources. The authors introduce a method to uncover these "effective cutoffs" and find that they often diverge from reported dates due to issues in data collection and deduplication.
What Problem Does This Paper Address?
When LLMs are released, they are often accompanied by a "knowledge cutoff date," implying that their training data stops at a certain point in time. This is crucial for applications requiring up-to-date information. However, this single date is a simplification. The problem is that different components of the training data might have different temporal boundaries, and the LLM's actual knowledge about a specific resource might not align with the reported overall cutoff. This discrepancy can lead to LLMs providing outdated information, even when users believe they are getting current data. For instance, an LLM might claim a March 2024 cutoff, but its knowledge of a specific tax code might effectively end in 2022, leading to incorrect advice.
Methods
The core of the paper's methodology involves probing LLMs to determine their "effective cutoff" for specific resources. This is achieved by measuring the LLM's perplexity on different versions of a resource over time. The authors hypothesize that an LLM will exhibit lower perplexity (i.e., be more "familiar") with versions of a resource that were present in its training data. By plotting perplexity against time for various versions of a resource, they identify the "effective cutoff" as the point where perplexity is minimized. This method is novel because it doesn't require access to the LLM's training data itself, relying instead on the model's output. They also analyze the underlying pre-training datasets to understand the causes of observed discrepancies.
Datasets
The paper utilizes several datasets for their analysis:
- WIKISPAN: A newly constructed dataset containing monthly versions of the 5000 most edited Wikipedia articles from April 2016 to April 2023. This serves as a resource with frequent updates.
- NEWSSPAN: A dataset of New York Times articles collected from CommonCrawl dumps, spanning from January 2016 to July 2020. This represents a resource that builds over time.
- Pre-training Datasets: The authors analyze open pre-training datasets used by various LLMs, including:
- C4 (Colossal Clean Crawled Corpus): A heavily processed CommonCrawl dump from April 2019.
- The Pile: An 800GB curated dataset comprising 22 sub-datasets, including Pile-CC and a Wikipedia dump from March 2020.
- RefinedWeb (RW): Documents from CommonCrawl dumps spanning 2008 to February 2023, with certain URLs excluded.
Key Insights and Ideas
- Reported Cutoffs are Oversimplifications: The most striking insight is that a single reported cutoff date for an LLM is often misleading. The actual knowledge embedded within the model is more nuanced and resource-specific.
- Effective Cutoffs Vary Wildly: The "effective cutoff" for different resources within the same LLM can differ significantly from each other and from the reported overall cutoff.
- CommonCrawl is a Temporal Minefield: Newer dumps of CommonCrawl data, while seemingly up-to-date, often contain a substantial amount of older content, leading to temporal misalignments in LLM knowledge.
- Deduplication is Tricky: LLM deduplication pipelines, while aiming to remove redundant data, often fail to catch semantically equivalent but lexically different versions of documents, or they might remove crucial older versions. This can inadvertently skew the model's effective cutoff.
- Resource-Level Analysis is Crucial: Understanding LLM knowledge requires looking beyond a global cutoff and examining individual resources or data sources.
Key Results
- For the NEWSSPAN dataset, the perplexity curves generally increased around early 2020, aligning with the end of the CommonCrawl dumps used in some training sets, suggesting the method can identify effective cutoffs for news data.
- For WIKISPAN, Pile-based models (GPT-Neo, GPT-J, Pythia) showed a clear perplexity drop around March 2020, matching the Wikipedia dump date in the Pile.
- However, more recent models like RedPajamas showed an effective cutoff around 2019, despite having an explicit 2023 Wikipedia dump, indicating issues with their training data.
- C4-derived models (RedPajamas, OLMo, LLaMA) showed effective cutoffs influenced by the C4 dump date (April 2019), even when trained on later CommonCrawl dumps, highlighting the temporal bias of C4.
- The paper demonstrates that model size (e.g., Pythia and LLaMA suites) does not fundamentally alter the observed effective cutoff dates, suggesting the data itself is the primary driver.
- In closed-data models, Mistral/LLaMA-2 showed earlier effective cutoffs for Wikipedia, while Gemma showed a later effective cutoff, indicating varying success in aligning Wikipedia data.
Limitations and Future Work
- Limitations:
- The method relies on perplexity, which can be influenced by factors other than temporal knowledge.
- The analysis is primarily focused on open-data LLMs, with closed-data models being speculative.
- The definition of "near-duplicate" and the threshold for semantic equivalence (e.g., edit distance < 0.2) are parameters that could be further explored.
- Future Work:
- The authors suggest that LLM dataset curators need to be more careful about temporal misalignments and deduplication.
- Practitioners using LLMs should be aware that reported cutoffs are not absolute and may need to perform their own checks for critical applications.
- Further investigation into the nuances of deduplication pipelines and their impact on temporal knowledge is warranted.
- Extending the analysis to a wider range of resources and LLMs is a natural next step.
Summary updated