Skip to content
#small language model Open access

Limits of Layer-Wise Friction Delta as an Ex-Ante Hallucination Predictor: A Pilot Study with Permutation Null Testing

Nov 2026 · Zenodo (CERN European Organization for Nuclear Research)
Topic Modeling

Abstract

Abstract Recent work suggests that layer-wise hidden-state variance carries predictive information about hallucinations in large language models. We test a specific instantiation of this principle, the Friction Delta (∆ = Vearly −Vlate, the difference in normalized hidden-state variance between early and late transformer layers), as an ex-ante predictor of hallucination. Across three open-weight models (Qwen2.5-1.5B, Gemma-2B-IT, Llama-3.2-1B-Instruct, n ≈ 45–49 each, TruthfulQA), we conduct a permutation null test correcting for 49 comparisons (7 layer band splits× 7 feature aggregations). No model produced signal surviving correction at α = 0.05. The strongest result was on Llama-3.2-1B-Instruct (AUROC 0.729, p = 0.060 one-sided, directionconsistent with the flatline hypothesis). However, a rerun in which a single label changed shifted p from 0.035 to 0.060, demonstrating fragility at this sample size. The null’s 95th percentile was approximately 0.75, meaning only effects above that AUROC could have been detected; a moderate effect (AUROC 0.60–0.70) would likely have gone unnoticed. No signal was found on Qwen2.5-1.5B (p = 0.90) or Gemma-2B-IT (p = 0.85 one-sided, with the best feature pointing opposite to the predicted direction). These results suggest that the Friction Delta’s predictive power is architecture-dependent and fragile at small sample sizes, requiring larger pre-registered confirmatory studies. 1 Introduction Hallucination detection in large language models (LLMs) is predominantly a post-hoc enterprise. External classifiers, reward models, and API-based guardrails operate on generated text after it has been serialized, introducing a detection lag: by the time an error is flagged, the model’s internal representation has already collapsed into the degenerate state that produced it. This latency is not merely an engineering inconvenience; it means that the geometric structure of the failure is lost bythe time intervention is possible. A growing body of work proposes an alternative: monitor the hidden-state trajectory during the forward pass, before token emission. Layer-wise variance dynamics, inter-layer information deficiency, and attention rank collapse have all been identified as potential leading indicators of semantic degeneration [2, 3, 4, 5]. If these internal signals reliably precede hallucination, they couldenable ex-ante intervention, steering the model away from failure before it manifests in output. One such proposed metric is the Friction Delta (∆), defined as the difference in hidden-state variance between early (routing) and late (projection) transformer layers [6, 7]. Under the “geometric flatline” hypothesis, hallucination is preceded by ∆ → 0: the depth-wise variance differential collapses, indicating that early-layer routing and late-layer projection are no longer functionally differentiated. This framing is appealing because it offers a single scalar that can be monitored in real time and used to trigger inference-time interventions such as KV-cache grafting or activation steering. However, the empirical evidence for this hypothesis remains limited. Prior work has demonstrated that hidden-state geometry changes during generation, but has not established that specific variance differentials predict downstream hallucination with statistically meaningful accuracy. Small-sample studies without correction for multiple comparisons are vulnerable to selection bias, particularly when the feature space (layer bands, aggregations, directions) is explored post-hoc. This paper makes three contributions: We conduct the first permutation-null-corrected study of the Friction Delta as a hallucinationpredictor, controlling for 49 comparisons (7 layer band splits × 7 feature aggregations) acrossthree model architectures We provide a three-architecture comparison (Qwen2.5-1.5B, Gemma-2B-IT, Llama-3.2-1B-Instruct)revealing architecture-dependent signal. We report an honest null result with power analysis, demonstrating that the pilot was underpowered to detect moderate effects and that the marginal signal on Llama is fragile to single-label perturbations. 2 Related Work 2.1 Layer-Wise Information Deficiency Recent work has shown that when models encounter ambiguous or unanswerable prompts, informa-tion transmission across transformer layers suffers from severe deficiency and variance collapse [2].This directly motivates the Friction Delta mechanism: if depth-wise variance differentials carryinformation about the model’s epistemic state, they may serve as leading indicators of failure. 2.2 Geometric Trajectory Analysis Independent work has demonstrated that factual and hallucinated outputs follow geometricallydistinct trajectories across layers [3]. Factual generations maintain monotonic, low-curvature align-ment, whereas hallucinations exhibit systematic geometric drift, curvature instability, and depth-wise variance collapse. This work identifies three failure modes—drift, instability, and collapse—ofwhich the Friction Delta’s flatline (∆ → 0) is one specific instantiation. 2.3 Internal State Covariance Methods The INSIDE framework [4] uses eigenvalues of intermediate layer covariance matrices (EigenScore)to detect semantic degeneration. This is mathematically adjacent to variance-based ∆ but usesthe full covariance structure rather than just the diagonal (variance). The complementary ap-proach suggests that variance-based metrics may capture a subset of the signal available in the fullcovariance spectrum.2.4 Attention Rank Collapse Deeper transformer layers frequently undergo structural degeneration, where attention matricescollapse to near rank-one structures [5]. This “lazy layer” phenomenon provides a mechanisticexplanation for why late-layer variance might differ from early-layer variance: if late layers stopcontributing diverse projections, the variance differential collapses Contunued in attached files (.tex and .pdf): 3 Method 4 Experimental Setup 5 Results 6 Discussion 7 Conclusion The Friction Delta shows architecture-dependent, marginal signal (p = 0.060 one-sided on Llama-3.2-1B-Instruct, direction consistent with the flatline hypothesis) that does not survive permutation correction at α = 0.05 with n ≈ 45. The null does not exclude a moderate effect: the pilot was underpowered to detect AUROC below 0.75. A pre-registered confirmatory study with n ≥ 2,400 prompts per model, deterministic judging, matched-negative length control, and prefix-only feature computation is needed to resolve whether the Friction Delta carries practical predictive value. The pilot provides the feature family, band grid, and power analysis necessary for such a study.

View source

Similar papers

#small language model Dataset Open access Oct 2026

Socratic guiding questions in synthetic arithmetic data: matched LoRA runs (revision v2)

Supporting data, adapters, predictions and code for the article *Low-Cost LoRA Fine-Tuning of Small Language Models for Multi-Step Arithmetic Reasoning* by Jake O'Grady, Asena Isik Gürhan, Chee Fong Ting and Effirul Ramlan (University of Galway). We generated 20,000 GSM8K-derived arithmetic problems with step-by-step s...

O'Grady, Jake, Gürhan, Asena Isik, Chee, Fong Ting et al. · 465 citations
#computer vision Open access Jun 2016

Software Development in Startup Companies: The Greenfield Startup Model

The results are packaged in the Greenfield Startup Model (GSM), which explains the priority of startups to release the product as quickly as possible, and the need to shorten time-to-market, by speeding up the development through low-precision engineering activities.

Carmine Giardino, Nicolò Paternoster, M. Unterkalmsteiner et al. · 178 citations · ⚡14
#computer vision Open access Oct 2016

Software Startups - A Research Agenda

Software startup companies develop innovative, software-intensive products within limited timeframes and with few resources, searching for sustainable and scalable business models.

M. Unterkalmsteiner, P. Abrahamsson, Xiaofeng Wang et al. · 157 citations · ⚡17
#machine learning Review Open access Oct 2016

“Failures” to be celebrated: an analysis of major pivots of software startups

This study conducts a case survey study based on the secondary data of the major pivots happened in 49 software startups, and demonstrates that customer need pivot is the most common among all pivot types.

Sohaib Shahid Bajwa, Xiaofeng Wang, Anh Nguyen-Duc et al. · 127 citations · ⚡15
#computer vision Review Open access May 2015

A survey study on major technical barriers affecting the decision to adopt cloud services

The comparison of adopter and non-adopter sample reveals three potential adoption inhibitor, security, data privacy, and portability, which underlines the importance of the technical and security perspectives for research investigating the adoption of technology.

Nattakarn Phaphoom, Xiaofeng Wang, S. Samuel et al. · 111 citations · ⚡8
#large language models Review Open access Nov 2020

Status of the WHO recommended timing and frequency of antenatal care visits in Northern Bangladesh

Objective There is dearth of information on the timeliness of antenatal care (ANC) uptake. This study aimed to determine the timely ANC uptake by a medically trained provider (MTP) as per the World Health Organization (WHO) recommendations and the country guideline. Methods Cross-sectional survey was done with 2,731 wo...

B. Sarker, Musfikur Rahman, T. Rahman et al. · 89 citations · ⚡7

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.