NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Impact of Co-occurrence on Factual Knowledge of Large Language Models

Cheongwoong Kang, Jaesik Choi · DOI

Introduction

Large Language Models (LLMs) are often celebrated for their vast knowledge, yet they frequently struggle with factual accuracy, leading to what researchers call "hallucinations." While it is tempting to assume these models simply "forget" information, recent research suggests a more systemic issue: LLMs often rely on statistical shortcuts rather than a deep semantic understanding of the world.

This paper investigates a specific phenomenon known as subject-object co-occurrence bias. This bias occurs when a model predicts a word not because it is the correct answer to a query, but because it frequently appears alongside the subject in the training data. By quantifying the relationship between training statistics and model performance, the authors demonstrate that even the most advanced models are heavily influenced by these "neighborly" word associations.

Methodology

To investigate the depth of this bias, the researchers employed a knowledge probing framework using Cloze-style prompts (e.g., "The capital of [Subject] is [MASK]"). The study followed a four-step approach:

  1. Co-occurrence Counting: The team analyzed The Pile, an 800GB dataset used to train many open-source models, to calculate how often specific subject-object pairs (like "Canada" and "Ottawa") appeared together.
  2. Correlation Analysis: They measured the performance of various models—including GPT-Neo (125M to 2.7B), GPT-J (6B), and proxies for GPT-3.5 and GPT-4—against these co-occurrence counts using metrics like Hits@1 and Mean Reciprocal Rank.
  3. Statistical Baselines: LLMs were compared against simple frequency-based baselines, such as Joint Probability, to determine if the models were behaving as sophisticated word counters.
  4. Debiased Finetuning: The researchers attempted to mitigate the bias by finetuning models on a "debiased" version of the dataset, where high-frequency co-occurrence samples were undersampled to force the model to look beyond statistical noise.

The "Toronto Trap": Key Insights

The study reveals that LLMs are highly vulnerable to what might be called the "Toronto Trap." If a model sees "Canada" and "Toronto" together 246 times in its training data, but "Canada" and "Ottawa" only 19 times, it is statistically predisposed to predict Toronto as the capital.

The Persistence of Bias

The data shows that in 38% of GPT-J’s failure cases, the model chose an incorrect word simply because it had a higher co-occurrence count than the correct answer. For the rarest facts (those in the lowest frequency bins), this bias ratio climbed to a staggering 95%. This suggests that for many factual queries, the LLM is not "reasoning" about the relation (e.g., "capital of"), but is instead retrieving the most frequent neighbor.

Scaling is Not a Cure

A significant finding of this research is that model scaling does not eliminate co-occurrence bias. While larger models like GPT-4 are more accurate overall, the correlation between co-occurrence and accuracy remains strong. Even as models grow in parameter count, they still find it significantly harder to recall facts where the subject and object rarely meet in the training text. The statistical noise of the pre-training data remains a fundamental hurdle.

Results and Mitigation

The researchers found a clear, positive correlation between the frequency of a subject-object pair in the training data and the model's ability to answer correctly. When GPT-J 6B failed to recall a rare fact, the conditional probability of its incorrect prediction was often significantly higher (0.26) than the probability of the correct rare object (0.01).

The Finetuning Ceiling

While finetuning on a debiased dataset improved the model's ability to memorize specific rare facts present in that set, it failed to provide a general solution. The model essentially learned to memorize the specific "rare" examples it was shown but did not learn a general rule to ignore co-occurrence bias. Consequently, the model still failed on rare facts it had not specifically encountered during the finetuning phase, highlighting a significant "generalization gap."

Conclusion and Future Work

The study concludes that co-occurrence bias is a foundational challenge for LLMs. The reliance on statistical shortcuts over semantic truth persists across model scales and standard finetuning methods.

Future research must address the generalization gap. The authors suggest that simply filtering data (undersampling) is insufficient. Instead, the field requires more sophisticated debiasing algorithms capable of decoupling statistical frequency from semantic truth. Until then, LLMs will likely continue to struggle with the "long tail" of human knowledge, favoring popular associations over rare but accurate facts.

Summary updated

BibTeX
@inproceedings{kang2023impact,
  author = {Cheongwoong Kang and Jaesik Choi},
  title = {{Impact of Co-occurrence on Factual Knowledge of Large Language Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=WQamRhhbsf},
}
Figure