Skip to main content
Proceedings of the National Academy of Sciences of the United States of America logoLink to Proceedings of the National Academy of Sciences of the United States of America
. 2026 Feb 19;123(8):e2533582123. doi: 10.1073/pnas.2533582123

Hallucination, monofacts, and miscalibration: An empirical investigation

Miranda Muqing Miao a,1, Michael Kearns a,1
PMCID: PMC12933039  PMID: 41712648

Significance

We show that hallucination in large language models can be controlled through deliberate manipulation of training data frequency distributions. By sampling training data from heavy-tailed distributions that naturally reduce rare facts, and by strategically repeating small subsets of training examples during fine-tuning, we reduce hallucination rates by up to 40% without sacrificing accuracy. Our findings challenge the widespread practice of deduplicating training data and reveal that the distribution of fact frequencies could fundamentally affect model reliability. This work establishes training data composition as a primary lever for hallucination control, offering practitioners a simple, interpretable alternative to complex post hoc intervention methods that operate on model internals.

Keywords: large language models, hallucination, model calibration

Abstract

Hallucinated facts in large language models have recently been shown to obey a statistical lower bound determined by the monofact rate (related to the classical Good-Turing missing mass estimator) minus model miscalibration [A. T. Kalai, S. S. Vempala, “Calibrated language models must hallucinate” in Proceedings of the 56th Annual ACM Symposium on Theory of Computing (STOC) (New York, NY, USA, 2024), pp. 160–171]. We present empirical investigation of this three-way relationship in classical n-gram models and fine-tuned transformer models. By generating training data from Pareto distributions with varying shape parameters, we systematically control the monofact rate and establish its positive relationship with hallucination. To bridge theory and practice, we derive an empirical analog of the hallucination bound by replacing the population miscalibration term (Section 1.1) with an empirical bin-wise Kullback-Leibler (KL) divergence and confirm its practical viability. We then introduce selective upweighting—a simple yet effective technique that strategically repeats as little as 5% of training examples—to deliberately inject miscalibration into the model. This intervention reduces hallucination by up to 40%, challenging universal deduplication policies. Our experiments reveal a critical trade-off: selective upweighting maintains preinjection levels of accuracy while substantially reducing hallucination, whereas standard training gradually improves accuracy but fails to address persistently high hallucination, indicating an inherent tension in optimization objectives.


Consider the case of writing a biography of a living person with an large language models (LLMs). The model may confidently state that “John Smith was born in Seattle in 1982, earned his PhD from Stanford in 2008, and now leads AI research at Tech Corp,” but these “facts” could be fabricated. Such hallucinations (plausible but verifiably false statements) are a critical issue for language models, especially in high stakes scenarios: when lawyers submit hallucinated legal cases or doctors receive incorrect medical advice (1, 2).

A growing body of work traces hallucination back to how models encode, retain, and forget factual information during pretraining and supervised fine-tuning (SFT). During pretraining, synthetic recall tasks reveal learning plateaus and inaccuracy spikes when models learn new facts (3). During SFT, exposure to unfamiliar data causes an increase in hallucination, underscoring how new knowledge acquisition can compromise generation fidelity (4). Other studies introduce methods such as embedding nonparametric memory into the learning objective and injecting event memories directly into the weights of LLMs (5, 6).

A second research direction develops post hoc hallucination reduction techniques that are applied after pretraining and SFT. Some find that latent-space steering via a truthfulness separator vector can create separable clusters of faithful and fabricated outputs (7). Others realize that follow-up questioning can expose inconsistencies in fabricated citations, allowing models to self-diagnose hallucinations (8). Other work finds ways to suppress attention layers that disproportionately drive fabrication (9). While effective, these intervention methods address symptoms rather than the fundamental statistical mechanisms that cause hallucinations.

Recent theory by Kalai and Vempala provides a formal and theoretical treatment of hallucination (10). Their work demonstrates a more fundamental cause: calibrated language models must hallucinate at a rate associated with the prevalence of rare facts (related to the classical Good-Turing missing mass estimator) in their training data. Specifically, they prove that for arbitrary facts whose veracity cannot be systematically determined from training data, their hallucination rate has a statistical lower bound tied to the fraction of facts that appear exactly once in training (the monofact rate) minus model miscalibration. Model miscalibration is the sum of bin-wise absolute difference between the model’s predicted confidence scores and the corresponding probability mass under the true data distribution (see full definition in Section 1.1).

In our work, we restrict attention to factual hallucinations to align with the Kalai–Vempala framework by focusing on attribute-level correctness in generated statements (e.g., a movie’s actor or title; a person’s birth-year or job title).

We demonstrate that the statistical mechanisms governing hallucination in language models can be understood and manipulated through deliberate control of training data properties. We test whether the theoretical relationship between monofact prevalence, model miscalibration, and hallucination identified by Kalai and Vempala (10) can guide practical mitigation strategies across model architectures and scales.

We validate this framework empirically by confirming that monofact rate positively correlates with hallucination rates in both n-gram models and fine-tuned large language models. Crucially, we show that intentional miscalibration could reduce hallucination by up to 40% while holding monofact rates constant. We test these relationships using structured movie facts (comma-separated tuples) for n-gram models and naturalistic biographical text for supervised fine-tuning.

To enable practical application, we provide an empirical analog of the population-level miscalibration term in the Kalai–Vempala theorem with empirical KL-divergence, which requires no knowledge of the true data distribution. We generate training data using heavy-tailed Pareto distributions to satisfy the i.i.d. sampling requirements of the theoretical framework while reflecting established power-law patterns in natural language (1113). Among several distribution families tested, Pareto distributions prove most effective for controlling monofact rates.

Extending recent work showing that power-law-distributed pretraining data accelerates factual recall (3), we systematically map Pareto shape parameters to monofact rates during supervised fine-tuning. We find that lower monofact rates consistently reduce hallucination and shorten learning plateaus. We introduce a practical intervention: sample upweighting during training as a way to inject higher miscalibration into a trained model. Applied to a small sample of the training examples, this approach reduces hallucination significantly in 6 of 8 configurations tested (P<0.01), with effectiveness varying systematically by monofact rate.

1. Preliminaries

To investigate hallucination in a controlled setting, we need to carefully define what constitutes a fact versus a hallucination. Consider the statement “Timothée Chalamet starred in Dune: Part Two directed by Denis Villeneuve.” This is a true movie fact. However, if our model generates “Timothée Chalamet starred in Dune: Part Two directed by Christopher Nolan,” this would be a hallucination—a plausible but false statement.

Let U be the universe of all plausible statements (or “factoids”) in a given domain. We partition U into T, the subset of true statements, and F=UT, the complementary set of falsehoods. The labels T and F represent ground-truth annotations rather than model predictions. During training, the model sees only training data ST; the unobserved remainder is H=US.* After training, the language model assigns a distribution g over T and generates a sample set G. The truth set T is governed by the true distribution p, which we control experimentally.

Theorem 1

(Kalai and Vempala’s Hallucination Lower Bound).

fgenM^FMis(g,p)3emδ6ln(6/δ)n, [1]

where M^F is the empirical monofact rate (fraction of facts seen exactly once in S), Mis(g,p) is the miscalibration between g and true p (see definition below), m is a sparsity parameter, n=|S|, and δ is the confidence level. For realistic data sizes the final two terms are negligible, leaving hallucination essentially governed by monofact rate and miscalibration. See Kalai–Vempala for details.

While treating the Kalai–Vempala bound as an equality to derive precise coefficients for monofact rates and miscalibration seems appealing, our explorations showed these coefficients fluctuate significantly across model class, model capacities, and data characteristics. We therefore focus on the qualitative three-way relationship, yielding qualitative insights for practical language model training.

Rather than strictly checking Eq. 1, we treat it as a guide and vary M^F and Mis(g,p) directly to study their practical impact on hallucination. Key assumptions for the framework are i) i.i.d. sampling from p, ii) a sparse truth set relative to U, iii) S only samples true facts from T. Additional assumptions can be found in SI Appendix.

We follow Kalai and Vempala’s definition of hallucination (10). A generation is a hallucination if it lies outside the truth set T, i.e. Fgen:=GF; the hallucination rate is then fgen=|Fgen|/|G|.

Kalai et al. generalized the lower bound in Eq. 1 using a reduction from Is-It-Valid (IIV) classification, recovering it as a special result for arbitrary-fact hallucinations in their section 3.3.1 (14). This 2025 formulation shows that hallucination is lower-bounded by twice the IIV misclassification rate, minus calibration terms. Our experimental design aligns with section 3.3.1 of Kalai et al. (14). However, we focus on the monofact-calibration framework because these quantities can be directly observed and manipulated through training data structure, whereas IIV classification rates are less amenable to data-centric intervention.

1.1. Calibration.

Calibration asks whether probabilities assigned by a model match empirical frequencies. Analogous to a weather forecaster whose “30% rain” on x days prediction should coincide with rain on roughly 30% of those days, a language model is calibrated if, among statements it rates near q, the proportion that are factual is also q.

1.1.1. Logarithmic binning.

Following Kalai and Vempala (10), we partition the unit interval into logarithmic bins and set ϵ=0.1 unless otherwise indicated.

Bi=[(1ϵ)i+1,(1ϵ)i],i0

and place each statement x in the unique bin whose range contains g(x). We have also tested adaptive partitions, yielding indistinguishable results.

1.1.2. Miscalibration metric.

For any partition B(g) induced by g, form the coarsened distribution pB(g)(x)=p(B)/|B| for xB. Miscalibration is the total-variation distance between g and this coarsening. Then miscalibration is defined as:

Mis(g,p):=pB(g)gTV [2]
=12BB(g)xBp(B)|B|g(x) [3]

Because p(B)=xBp(x) and g(B)=xBg(x), Eq. 2 is equivalently the sum of within-bin total-variation distances,

Mis(g,p)=BB(g)TVB(p,g),

with larger values indicating worse calibration.Throughout this paper miscalibration is measured exclusively on the pair (g,p) under the partition defined by g.

While minimal miscalibration or so-called perfect calibration is typically desirable in machine learning, the Kalai–Vempala framework reveals a tension: perfect calibration on rare facts could force models to assign probability to unseen (potentially false) completions. Our intervention deliberately introduces miscalibration to concentrate probability mass on well-learned facts, reducing hallucination. In this context, strategically directed miscalibration is beneficial.

1.2. An Empirical Analog.

Kalai–Vempala’s bound includes miscalibration, a term that depends on the unknown truth distribution p, which is often unobserved in real-world applications. We replace this unobservable term with the empirical bin-wise Kullback–Leibler divergence

DKL(p^B(g)gB(g))=BB(g)p^Blogp^BgB,

where B(g) is the probability-bin partition defined in Section 1.1, p^B is the empirical frequency of true statements in bin B measured on the training sample S, and gB is the model’s total probability mass on that bin.

We adopt KL divergence to address the empirical-model gap because KL divergence is similar to cross-entropy loss, the standard training objective for modern language models. This choice provides a natural and interpretable metric that directly measures how the model’s learned distribution deviates from empirical frequencies in the same units used during optimization. An analogous bound using total variation or empirical Expected Calibration Error (ECE) follows from similar mathematical arguments. However, we present the KL formulation for its closer connection to training dynamics.

Throughout this paper, all reported miscalibration values are computed using the exact definition of Eq. 2, following Kalai and Vempala (10).

The empirical KL-divergence DKL(p^B(g)gB(g)) serves as a practical proxy when the true distribution p is unavailable; in our controlled experiments where p is known, we report both metrics.

Theorem 2

(Empirical KL-Divergence Hallucination Bound). Fix b=|B(g)|>1, sparsity parameter m as in Eq. 1, and confidence δ(0,1). With probability at least 1δ over the draw of S,

fgenM^F12DKL(p^B(g)gB(g))3emδ6 ln (12/δ)nb ln 2 + ln(2/δ)2n. [4]

1.2.1. Proof sketch.

A triangle inequality splits Mis(g,p) into (i) the sampling error pB(g)p^B(g)TV and (ii) the empirical-model gap p^B(g)gB(g)TV. The Bretagnolle–Huber–Carol inequality controls i) by O(b/n), while Pinsker’s inequality turns ii) into 12DKL(p^B(g)gB(g)). A union bound on these two events delivers inequality Eq. 4; see SI Appendix for details.

1.2.2. Intuition.

While miscalibration is measured exclusively on (g,p), DKL(p^B(g)gB(g)) in inequality Eq. 4 is entirely data-driven and measured on (g,p^). With sufficiently large n, as DKL(p^B(g)gB(g))0, the lower bound approaches the empirical monofact rate M^F. The additional sampling penalty (bln2+ln(2/δ))/(2n) requires that the number of bins b be small relative to n: because the term scales as O(b/n), one needs nb for the penalty to vanish.

1.3. Constructing Data from Pareto Distributions.

To construct p and vary the monofact rate we replicate each fact in T a random number of times, drawing that count from several candidate distributions. Gaussian and Poisson choices compress mass toward the mean and fail to generate a diverse range of monofact rates (SI Appendix, Fig. S4). A heavy-tailed Pareto distribution

f(x; γ,xm)=γxmγxγ+1,xxm,

with shape γ and scale xm, proves ideal. Sweeping γ with a fixed xm = 1 yields a smooth continuum from dense duplication to monofact-dominated samples (Fig. 1). The resulting multiset constitutes our population distribution p. We sample with replacement from the expanded multiset to form S, a subset of T. Adjusting γ thus directly tunes the empirical monofact rate M^F while preserving i.i.d. sampling.

Fig. 1.

Multi-line graph shows count of facts vs. number of appearances for lambda values 1, 2, 3, and 4.

Illustration of fact repetition frequencies across varying parameters (γ). Plot shows how often a fact appears (x-axis) versus how many facts have that appearance count (y-axis, logarithmic scale).

2. n-Gram Methodology

We start with classical n-gram models because they serve as an ideal controlled environment where we have authority over experimental variables including data generation, model architecture, training process, and evaluation methods. This provides a laboratory setting to test the Kalai–Vempala theoretical framework before advancing to more complex LLM experiments. These n-gram models offer an analytically tractable sandbox where we can produce thousands of trained models, unlike the compute-constrained LLM SFT experiments.

To closely mirror the “Factoid Assumptions” of Kalai and Vempala (10, §4.1], our n-gram dataset consists of comma-separated six-tuples and each document only consists of one fact. Among several orders of n we find bigrams strike the best balance: they accommodate sufficient but not excessive local dependencies in our tuples to make hallucination observable and easily analyzed. Higher-order models unsurprisingly memorize better and hallucinate less, but we observe that the quantitative relationship among monofact rate, miscalibration, and hallucination remains invariant across n.

For the n-gram model only, we frame “facts” as structured, comma-separated six-tuples to focus a simplified language-setting without noise. We derive the true-fact set T from the IMDb noncommercial dataset (15). Each entry is a six-tuple Actor, Costar, Movie, Director, Genre, and Year. We sample 10,000 instances with replacement to train each n-gram model.

We report results for bigram models; trigram experiments yielded qualitatively identical findings but risk being considered overpowered for our simple six-entity statements. Our design aligns with the prompt-free setting of Kalai and Vempala (10). For the SFT experiments, we additionally measure prompt completion accuracy to capture performance on both prompt-free generation and cloze-like completion.

2.1. Statement Generation Process.

Let g denote the distribution over six-tuples x=(t1,,t6). For any pair of tokens (t1,t2), the bigram model learns g(t1,t2)=g(t1)g(t2t1), where g(t1) is the marginal over first tokens and g(t2t1) the conditional over second tokens. Generating a new six-tuple proceeds sequentially, giving g(x)=g(t1)i=15g(ti+1ti).

To be more specific, we first draw t1g(t1) and then, for each position i=1:5, sample ti+1g(ti+1ti). Note that while this approach is similar to standard bigram language modeling, it does not exploit the full structure of our movie data where each position has its own distinct token space. Instead, we treat all position pairs equivalently in building our transition probabilities. For evaluation, each model is trained on |S|=10,000 statements and generates an equal number of new statements.

2.2. Controlled Miscalibration Injection.

To dissect the role of miscalibration while holding the monofact rate fixed, we introduce a lightweight upweighting routine that perturbs the learned transition counts of a trained bigram model to inject miscalibration into g.

Let the initial bigram counts be C0(ti,tj). Choose a subset EkS of size k. For every token pair (ti,tj) occurring in Ek, add one extra count: C1(ti,tj)C0(ti,tj)+1(ti,tj)Ek. The same increment is applied to initial-state counts. SI Appendix, Fig. S1 details this update with comprehensive steps and then calls the normalization subroutine to convert counts back into normalized probabilities.

Upweighting only a fraction of the training data induces selective overconfidence, while keeping the empirical monofact rate constant. As k grows, miscalibration and hallucination first increase and decline to baseline once Ek=S (the global duplication cancels after normalization). This controlled knob lets us chart hallucination as a function of miscalibration.

3. n-Gram Model Results

3.1. Monofact and Hallucination.

Our controlled simulations validate the monofact–hallucination relationship in Eq. 1. The Left panel of Fig. 2 shows an approximately linear rise in hallucination as the monofact rate grows: the hallucination rate climbs from 0% to 50% when the monofact share increases from 0% to 100%. This trend roughly matches the factor-0.5 slope.

Fig. 2.

Four scatter plots show relationships between model parameters. Hallucination vs. monofact rate, shape parameter vs. monofact rate, etc.

Each dot represents a sample of statements. Left: Results show a positive relationship between monofact rate and hallucination. Middle Left: Heavy-tailed document distributions yield lower monofact rates. Middle Right: Miscalibration increases with monofact rate, suggesting better learning and calibration in low-monofact distributions. Right: Strong positive correlation between empirical KL divergence and miscalibration metrics.

The Middle Right panel of Fig. 2 confirms that monofact rate and miscalibration naturally move in tandem without intervention. The Right panel further shows that empirical KL divergence successfully tracks miscalibration, supporting its use as a practical proxy for our defined setting.

Fig. 3 reports mean bin-wise miscalibration for three monofact ranges without any miscalibration injection. As monofact rates and hallucination fall, miscalibration in the right-most (lowest-confidence) bin contracts toward zero and we observe a similar increase in polarity. What dampens hallucination organically is not simply the magnitude of miscalibration, but relative polarity of bin-wise miscalibration gained from sampling training data using Pareto distributions.

Fig. 3.

A six panel figure shows miscalibration and empirical K L divergence vs. probability bin interval for monofact percentage less than 0.9.

Top: Average miscalibration per probability bin (binning created by a logarithmic binning strategy with ϵ=0.1) for three monofact percent ranges. Bottom: Average empirical KL divergence per probability bin for three monofact percent ranges.

3.2. Miscalibration Injection as a Hallucination-Reduction Mechanism.

With monofact rates fixed, Fig. 4 traces the effect of the upweighting algorithm for controlled miscalibration injection. Upweighting just 312 examples (6% of the corpus) could significantly increase overall miscalibration and KL divergence while halving hallucination in some cases (SI Appendix, Fig. S4 shows additional results). Miscalibration and KL divergence return to its baseline when k nears |S| due to normalization. The hallucination reduction effect is most pronounced in high-monofact situations. We find that our miscalibration injection method pushes bin-wise polarity even higher while increasing the total magnitude of miscalibration and KL divergence.

Fig. 4.

Four line graphs show miscalibration, empirical K L divergence, and hallucination rates vs. number of upweighted training examples.

Top: Relationship between miscalibration (blue line, Left y-axis) and hallucination rates (red line, Right y-axis) for select fixed monofact rates. Dotted lines indicate metrics prior to any interventions. Each subplot shows how miscalibration and hallucination evolve as we duplicate token occurrence for more and more statements from the training data (size of 5,000). Initial miscalibration (before upweighting intervention) is shown as the leftmost point of each blue curve at k=0 upweighted examples. Bottom: Relationship between empirical KL Divergence (green line, Left y-axis) and hallucination rates (red line, Right y-axis) for select fixed monofact rates.

4. Supervised Fine-Tuning Methodology

To test whether the theoretical relationship between monofact rates, miscalibration, and hallucination extends to modern language models, we fine-tuned Transformer models on synthetic biographical data with similarly controlled fact-frequency distributions. This approach allows us to systematically manipulate monofact rates while measuring hallucination in naturalistic text generation-a setting more representative of real-world applications than n-gram models.

We generated 10,000 unique biographies, each containing seven attributes: name, birth date, hometown, college, major, job title, and employer. Each attribute was sampled from pools of varying sizes to create natural frequency imbalances-for instance, 100,000 unique names versus 174 unique college majors-mirroring the long-tailed distributions observed in real-world knowledge bases. Biography text was assembled using four randomly selected template variants (e.g., “[name] was born on [date]” versus “[name]’s birthday is [date]”) to introduce linguistic diversity while preserving factual content. Data pipeline details could be found in SI Appendix.

Following recent work showing that power-law-distributed training data accelerates factual learning, we controlled monofact rates by sampling biographies according to Pareto distributions with varying shape parameters γ. Lower γ values produce datasets where most biographies appear multiple times (low monofact rate), while higher γ values approach uniform sampling where nearly every biography appears only once (high monofact rate). This generates training sets spanning monofact rates from 15.5% to 99.8% while maintaining a fixed vocabulary and total training budget.

All models are fine-tuned using standard cross-entropy (negative log-likelihood) loss on next-token prediction:

L=1|S|(x1,,xT)St=1Tlogpθ(xtx<t),

where S is the training corpus and θ denotes model parameters. During upweighting, selected examples contribute to the loss multiple times per epoch according to their duplication factor.

4.1. Upweighted Training.

We conduct SFT training on the T5-SMALL, T5-LARGE (16), GPT2-MEDIUM, and GPT2-LARGE (17), tracking four metrics throughout training: hallucination rate (measuring whether generated biographies contain correct attributes), miscalibration (total variation distance between p and g distributions), empirical KL divergence, and forced-generation inaccuracy (testing factual recall through prompted completion). This experimental design allows us to measure how data frequency distributions affect both what models learn and how confidently they express that knowledge. Specifically:

  • Inaccuracy: The error rate on forced-generation factual recall. Given a prompt (e.g., “[Name]’s birthday is ——”), we measure whether the model’s most likely completion matches ground truth. This captures errors during prompted recall.

  • Hallucination rate: |GF|/|G|, where G is the set of generated statements and F is the set of falsehoods. This captures errors during free-form generation, where the model produces plausible but false statements unprompted.

These metrics are not complements: a model may achieve low inaccuracy on prompted recall while exhibiting high hallucination during open-ended generation, or vice versa.

To test miscalibration injection as a hallucination mitigation strategy, we trained models under three upweighting regimes. The baseline regime trains without any sample reweighting, allowing us to measure the natural relationship between monofact rates and hallucination. In the last-stage upweighting regime, we train normally for the first two-thirds of training, then upweight a small fraction (5% to 30%) of training examples by duplicating them multiple times (5× to 10×) during the final training stage. This deliberately injects miscalibration after the model has learned most factual content. Conversely, the first-stage upweighting regime applies duplication early in training, then returns to standard training—testing whether miscalibration injection works only as a final intervention or throughout learning. By comparing hallucination rates across these three regimes while holding monofact rates constant, we isolate the causal effect of intentional miscalibration on model outputs.

Additional information on training configurations, template specifications, and evaluation protocols appear in SI Appendix.

5. Supervised Fine-Tuning Results

5.1. Upweighted Training Results.

In this section, we present detailed results for T5-SMALL and then discuss findings across additional model architectures and scales. Results are consistent across all four LLMs and model sizes unless otherwise noted.

Without any miscalibration injection, Fig. 5 illustrates for that low-monofact data facilitates faster convergence, hallucination prevention, and better overall accuracy, echoing the finding that data sampled from a Pareto distribution enables shorter knowledge acquisition plateaus (3).

Fig. 5.

Line graphs show hallucination rate, miscalibration, empirical K L divergence, and inaccuracy vs. training steps for different monofact percentages.

(T5-Small) Four training statistics (from Left to Right: hallucination, miscalibration, KL divergence, inaccuracy) for every 5 steps during supervised fine-tuning for four training regimes with varying monofact rates but a fixed sample size of 10,000.

Fig. 6 tracks SFT metrics when miscalibration is injected at step 510 on a dataset with a 27.65% monofact rate. Miscalibration and empirical KL divergence rise and remain elevated, yet the hallucination rate drops by roughly 40%. Overall inaccuracy dips slightly after the intervention and then stabilizes at roughly preinjection level, indicating that accuracy is not harmed by miscalibration injection. However, there is a clear hallucination–accuracy trade-off compared with the uninjected baseline: inaccuracy continues to inch downward while hallucination stays higher; the optimizer therefore favors overall accuracy improvements unless we intervene.

Fig. 6.

Four line graphs compare baseline and up-weighted duplication for hallucination rate, miscalibration, empirical K L divergence, and inaccuracy.

(T5-Small) Four training statistics (from Left to Right): hallucination, miscalibration, KL divergence, inaccuracy) for every 5 steps during supervised fine-tuning by upweighting 5% of the training data 10 times as the last stage of fine-tuning for a training sample with 27.65% monofact rate. The dashed black line indicates when last-stage upweighting injection takes place. Initial miscalibration prior to intervention is visible as the value before the vertical dashed line.

5.2. Model Architecture Discussion.

To understand why last-stage upweighting reduces hallucination, we tested the same intervention at the start of training (Fig. 8) for encoder–decoder models T5-SMALL and T5-LARGE. Early-stage upweighting leaves terminal hallucination rates unchanged but reduces overall error slightly (1 to 3%). We hypothesize that early injection aids initial learning of generic data representations, while late-stage injection reinforces previously encountered examples, thereby suppressing hallucination more effectively in encoder–decoder architectures.

Fig. 8.

Four bar graphs compare miscalibration and K L divergence with/without upweighting, all with a monofact rate of 27.65%.

(T5-Small) Left: Miscalibration per probability bin (binning created by a logarithmic binning strategy with ϵ= 0.1) for LLM SFT post 5% upweighting with a duplication factor of 10. Middle Left: Average miscalibration per probability bin with no upweighting. Middle Right: Empirical kl divergence per probability bin post 5% upweighting with a duplication factor of 10. Right: Empirical kl divergence per probability bin with no upweighting.

This pattern reverses for decoder-only models (Table. 1). Both GPT2-MEDIUM and GPT2-LARGE benefit more from first-stage upweighting for hallucination mitigation, leading to reduction of 8 to 10%. This architectural dependence likely reflects differences in how bidirectional versus autoregressive attention mechanisms incorporate distributional biases during learning. Practitioners should therefore select upweighting timing based on their model architecture, with last-stage interventions for encoder–decoder models and first-stage interventions for decoder-only models.

Table 1.

Upweighting timing effects on hallucination across model architectures and scales

Model type Last-stage First-stage First and last-stage
Encoder–Decoder (T5-Small)
Encoder–Decoder (T5-Large)
Decoder–Only (GPT2-Medium)
Decoder–Only (GPT2-Large)

= reduces hallucination; = increases hallucination; and – = minimal to no impact.

Combining first and last-stage upweighting does not preserve the benefits observed from either intervention alone. Across all architectures tested, combined upweighting at both stages yields no improvement in hallucination rates, suggesting that excessive upweighting could disrupt the model’s learned representations.

5.3. Practical Guidance for Upweighting Interventions.

A key question remains: how do we decide on the magnitude and size of the injections? SI Appendix, Fig. S2 surveys a few upweighting configurations, formed by crossing three sample shares (5,15,30%) with three duplication multipliers (1,5,10), under progressively higher monofact rates (15.5, 27.6, 31.4%).

To translate our empirical findings into actionable recommendations, we conducted two complementary analyses of upweighting configurations across varying monofact rates and computational budgets. First, a marginal utility analysis weights trade-offs between hallucination reduction, miscalibration increase, and computational cost according to different deployment priorities (e.g., hallucination-focused versus cost-conscious applications).

Across multiple scenarios, training data sampled with Pareto shape parameter γ=1.5 (corresponding to 27% monofact rate) emerges as a robust choice, providing hallucination reduction (up to 38%) with moderate miscalibration increases (up to 17%) at 1.5× baseline computational cost. We also find that upweighting 15% of training examples with 5× duplication during the final training stage offers the best cost–benefit ratio. For practitioners willing to accept higher computational costs, γ=2.0 configurations on the Pareto frontier achieve hallucination reductions up to 62% at 2.5× baseline cost.

5.4. Miscalibration Injection Results.

Fig. 7 shows that upweighting sharply redistributes probability mass toward more confident bins (Left), yielding higher polarity. To show that the impact of our injection on polarity is statistically significant, we run the Kolmogorov–Smirnov test (illustrated by Fig. 9) on bin-wise miscalibration and KL divergence distributions and find that all 8 upweighting configurations are statistically significant besides when duplication factor is 1, using a P-value threshold of 0.01.

Fig. 7.

Four line graphs compare baseline vs. 5% up-weight. Metrics: hallucination rate, miscalibration, K L divergence, inaccuracy.

(T5-Small) Four training statistics (from Left to Right): hallucination, miscalibration, KL divergence, inaccuracy) for every 5 steps during supervised fine-tuning by upweighting 5% of the training data 10 times as the first stage of fine-tuning for a training sample with 27.65% monofact rate. The dashed black line indicates when first-stage upweighting injection ends and normal SFT starts.

Fig. 9.

Four bar graphs compare K S statistic and P-value for miscalibration and K L divergence across different percentages and multipliers.

Kolmogorov–Smirnov test statistics for pre- and post injection bin-wise miscalibration & KL divergence (monofact rate = 27.65%). Left and Middle Left: D-values for 8 configurations, P-value results (log) for miscalibration. The blue dotted line represents sig. threshold of 0.01. Middle Right and Right: KL divergence results.

6. Discussion

Why does selective upweighting reduce hallucination? Our results suggest the mechanism operates through confidence redistribution rather than simple memorization. By upweighting a subset of facts, we make the model overconfident on those specific instances, concentrating probability mass in high-confidence bins. This increased “polarity” reduces the probability of sampling from the uncertain tail of the distribution, where monofacts and plausible falsehoods are statistically indistinguishable. The model becomes more likely to generate facts it has learned with high confidence, rather than venturing into uncertain territory where hallucinations occur. In effect, the intervention strategically reshapes the confidence distribution to favor high-confidence generations over uncertain ones.

Our current intervention upweights a randomly selected subset of training examples. We hypothesize that targeted duplication of monofacts specifically would yield more effective hallucination reduction, particularly at high duplication factors. Under the Kalai–Vempala framework, monofacts are precisely the facts most vulnerable to hallucination: the model has seen them only once and assigns them lower confidence, placing them in probability bins where true and plausible-but-false completions are difficult to distinguish. Random upweighting may “waste” duplication effort on already-frequent facts that the model has learned with high confidence. Investigating targeted versus random upweighting is a promising direction for future work.

7. Conclusion and Limitations

Hallucination is not a mysterious failure mode but a predictable outcome of monofact rates and model miscalibration. By unifying the Kalai–Vempala theoretical framework with controlled experiments, we demonstrate that training data sampled from heavy-tailed distributions naturally lowers monofact rates and reduces hallucination, and that intentional miscalibration—injected through selective upweighting of training examples—further decreases hallucination by up to 40% without compromising accuracy. Our empirical KL-divergence bound provides a practical analog of the original theorem, requiring no knowledge of the true data distribution. The intervention is simple: reinforce a small, targeted subset of samples during the final stage of supervised fine-tuning. This reshapes calibration by concentrating probability mass in high-confidence bins while suppressing low-confidence predictions. These findings challenge the assumption that deduplication is universally beneficial and identify data-centric mechanisms for hallucination control.

Nevertheless, our approach has important limitations. Most significantly, selective upweighting may introduce unintended biases: models could become predisposed to generate upweighted facts during free generation, analogous to the “Golden Gate Claude” phenomenon where amplifying a single latent feature induced pervasive mentions of the Golden Gate Bridge (18). Practitioners should therefore carefully audit which samples receive emphasis. Moreover, our experiments focus on structured biographical facts; generalization to other domains and fact types remains to be established.

More broadly on limitations, our findings raise an important question about the tension between hallucination reduction and generalization. Standard deduplication practices exist primarily to prevent overfitting and promote generalization to unseen examples. While our results demonstrate that strategic duplication lowers hallucination rates, excessive duplication could impair the model’s capacity for compositional reasoning or rule-based generalization. Consider arithmetic facts (e.g., “17+38=55”) or letter-counting queries (e.g., “How many R’s are there in BLUEBERRY?”): these tasks require learning underlying rules rather than memorizing specific instances. Whether upweighting helps or harms such systematic generalization remains an open question for future investigation.

Supplementary Material

Appendix 01 (PDF)

Acknowledgments

We give very warm thanks to Adam Kalai, Santosh Vempala, Chris Callison-Burch, Lyle Ungar, and Bryan Li for helpful discussions.

Author contributions

M.M.M. and M.K. designed research; performed research; analyzed data; and wrote the paper.

Competing interests

The authors declare no competing interest.

Footnotes

Reviewers: A.K., OpenAI; and S.S.V., Georgia Institute of Technology.

*Notation differs from ref. 10: their Y,F,H,O,U correspond to our U,T,F,S,H.

Let bN and define thresholds ai by x:g(x)aig(x)=i/b; the partition {(0,a1],(a1,a2],} balances mass across b bins.

For instance, choosing a bin width ε=0.1 yields b200 bins. Choosing n=105 with δ=0.01, the term is approximately 0.027.

Contributor Information

Miranda Muqing Miao, Email: miaom@seas.upenn.edu.

Michael Kearns, Email: mkearns@cis.upenn.edu.

Data, Materials, and Software Availability

Data for both n-gram and SFT experiments are provided. They are available on the project’s github and linked here: https://github.com/mmiao2/Hallucination (19). All other study data are included in the article and/or SI Appendix.

Supporting Information

References

  • 1.D. K. Pham, B. Q. Vo, Towards reliable medical question answering: Techniques and challenges in mitigating hallucinations in language models. arXiv [Preprint] (2024). http://arxiv.org/abs/2408.13808 (Accessed 10 November 2025).
  • 2.R. Shin, Humiliated lawyers fined \$5,000 for submitting ChatGPT hallucinations in court: ‘I heard about this new site, which I falsely assumed was, like, a super search engine.’ https://fortune.com/2023/06/23/lawyers-fined-filing-chatgpt-hallucinations-in-court/. Accessed 10 November 2025.
  • 3.N. Zucchet et al., How do language models learn facts? Dynamics, curricula and hallucinations. arXiv [Preprint] (2025). http://arxiv.org/abs/2503.21676 (Accessed 1 November 2025).
  • 4.K. Kang, E. Wallace, C. Tomlin, A. Kumar, S. Levine, Unfamiliar finetuning examples control how language models hallucinate. arXiv [Preprint] (2024). http://arxiv.org/abs/2403.05612 (Accessed 10 November 2025).
  • 5.Z. Zhong, T. Lei, D. Chen, Training language models with memory augmentation. arXiv [Preprint] (2022). http://arxiv.org/abs/2205.12674 (Accessed 10 November 2025).
  • 6.X. Pan, E. Hahami, Z. Zhang, H. Sompolinsky, Memorization and knowledge injection in gated LLMs. arXiv [Preprint] (2025). http://arxiv.org/abs/2504.21239 (Accessed 10 November 2025).
  • 7.S. Park, X. Du, M. H. Yeh, H. Wang, Y. Li, How to steer LLM latents for hallucination detection? arXiv [Preprint] (2025). http://arxiv.org/abs/2503.01917 (Accessed 10 November 2025).
  • 8.A. Agrawal, M. Suzgun, L. Mackey, A. T. Kalai, Do language models know when they’re hallucinating references? arXiv [Preprint] (2023). http://arxiv.org/abs/2305.18248 (Accessed 10 November 2025).
  • 9.H. Li, H. Chi, M. Liu, W. Yang, Look within, why LLMs hallucinate: A causal perspective. arXiv [Preprint] (2024). http://arxiv.org/abs/2407.10153 (Accessed 10 November 2025).
  • 10.A. T. Kalai, S. S. Vempala, “Calibrated language models must hallucinate” in Proceedings of the 56th Annual ACM Symposium on Theory of Computing (STOC), R. O’Donnell, Ed. (Association for Computing Machinery, New York, NY, USA, 2024), pp. 160–171.
  • 11.Piantadosi S. T., Zipf’s word frequency law in natural language: A critical review and future directions. Psychon. Bull. Rev. 21, 1112–1130 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Cancho R., Solé R. V., Two regimes in the frequency of words and the origins of complex lexicons: Zipf’s law revisited. J. Quant. Linguist. 8, 165–173 (2001). [Google Scholar]
  • 13.Baayen R. H., Word Frequency Distributions (Kluwer Academic, Dordrecht, 2001). [Google Scholar]
  • 14.A. T. Kalai, O. Nachum, S. S. Vempala, E. Zhang, Why language models hallucinate. arXiv [Preprint] (2025). 10.48550/arXiv.2509.04664 (Accessed 10 November 2025). [DOI]
  • 15.IMDb.com, Inc., IMDb Non-Commercial Datasets (2024). https://developer.imdb.com/non-commercial-datasets/. Accessed 15 March 2024.
  • 16.Raffel C., et al. , Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res. 21, 1–67 (2020).34305477 [Google Scholar]
  • 17.A. Radford, J. Wu, R. Child, D. Luan, D. Amodei, I. Sutskever, Language models are unsupervised multitask learners. OpenAI Technical Report (2019). https://cdn.openai.com/better-language-models/language_models_are_unsupervised_multitask_learners.pdf.
  • 18.A. Templeton et al., “Scaling Monosemanticity: Extracting Interpretable Features from Claude 3 Sonnet.” Transformer Circuits Thread (2024). https://transformer-circuits.pub/2024/scaling-monosemanticity/index.html.
  • M. Miao, mmiao2/Hallucination. GitHub. https://github.com/mmiao2/Hallucination. Deposited 3 February 2026.

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Appendix 01 (PDF)

Data Availability Statement

Data for both n-gram and SFT experiments are provided. They are available on the project’s github and linked here: https://github.com/mmiao2/Hallucination (19). All other study data are included in the article and/or SI Appendix.


Articles from Proceedings of the National Academy of Sciences of the United States of America are provided here courtesy of National Academy of Sciences

RESOURCES