arXiv:2610.27711cs.AIOct 2026

Manuscript Offprint

arXiv:2610.27711

How Fine-Tuning Objectives Shape Layer-Wise Information in LLM Hallucination Detection

Kaiyang Wan, Forrest Sheng Bao, Amin Ahmad, Yuxia Wang

Abstract

Under matched conditions, classifier-head fine-tuning (CLS) paradigm consistently outperforms the LLM-as-Judge sequence-to-sequence (S2S) on binary hallucination detection. We trace this gap to the representations induced by the two objectives. Static analysis shows that CLS learns a task-specific discriminative direction, pushing hidden states into a clear two-cluster geometry with stronger class separation and linearly decodable label information. By contrast, S2S relies on the pretrained language-modeling head to make decisions. This minimizes the pressure to reorganize representations, leaving the hidden states much closer to the pretrained backbone. Our analysis also reveals that the CLS signal saturates before the final layer, after which upper layers form a plateau of statistically interchangeable and largely redundant representations. However, endpoint redundancy alone does not show whether these layers are dispensable during training. Further training-dynamics analysis reveals 1) a lower pretrained substrate, 2) a narrow upper-middle InfoWindow where task information emerges, and 3) a later-synchronizing upper plateau that mirrors this signal. This mechanism motivates us to remove layers above the InfoWindow. Truncating 31% of the network leaves accuracy unchanged within seed noise on Qwen3-4B and 8B and cuts latency by 1.4×. The same depth fraction, fixed before any analysis of the target models, transfers to Llama-3.2-3B and Mistral-7B-v0.3, and the layer structure behind it reappears there and on QNLI and SST-2. We hope this helps guide efficient task-specific LLM design.

1 Introduction

Hallucination detection is to identify whether a model produces unsupported content relative to its input or factually false claims contradicting world knowledge [Manakul et al., 2023, Wang et al., 2024b]. It is central to the built-in RAG in LLMs [Lewis et al., 2020, Gao et al.] and agentic systems [Madaan et al., 2023, Wan et al., 2025, 2026], where downstream modules and users demand reliable, efficient verification of model outputs [Belyi et al., 2025, Orgad et al.]. We study hallucination detectors fine-tuned using labeled data based on pretrained LLM backbones, comparing two paradigms: 1) LLM-as-Judge sequence-to-sequence fine-tuning (S2S) generates a verbal verdict such as Yes or No [Gu et al., 2023]; and 2) Classifier-head fine-tuning (CLS) attaches a task-specific linear head for binary prediction [Houlsby et al., 2019, Tang et al., 2024].

At first sight, S2S appears to benefit from a stronger inductive prior. S2S preserves the pretrained LLM head and optimizes the same objective. It directly exploits representations shaped by large-scale next-token prediction [Radford et al., 2019, Brown et al., 2020]. CLS, in contrast, replaces the generative readout with a randomly initialized binary projection, introducing new parameters and an objective departing from LLM's pretraining objective [Wolf et al., 2020], which weakens the transfer of pretrained knowledge. This comparison would suggest that S2S should provide a stronger detector. Yet under matched fine-tuning conditions, CLS outperforms S2S on every backbone we test, and the

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

gap survives reseeding, likelihood scoring, and calibration. This empirical reversal motivates our central question: why does a “weaker” discriminative head yield stronger hallucination detectors?

In a static view of the fine-tuned representation space, we find that the two objectives induce markedly different hidden-state geometries. Under CLS, the model learns a task-specific discriminative direction and reorganizes hidden states into a linearly decodable two-cluster structure. Under S2S, the model instead mediates the binary decision through a pretrained full-vocabulary language-modeling head and leaves the hidden representation substantially closer to the pretrained backbone. We quantify this divergence with Fisher scores [Fisher, 1936], which reveal substantially stronger class separation by CLS. We further use layer-wise V-information [Xu et al.] and linear probing [Alain and Bengio, 2016, Belinkov, 2022] to show that CLS exposes considerably more linearly decodable label information.

The static analysis also shows that the CLS signal saturates in the mid-to-upper layers, well before the final layer, forming a plateau of statistically interchangeable representations. This raises whether the plateau contains complementary task information or redundant encodings of the same binary signal. The answer implies different interventions: complementarity favors layer fusion, whereas redundancy favors upper-layer truncation or early exiting [Xin et al., 2020, Fan et al.]. We test these possibilities with bootstrap layer-interchangeability tests [Tibshirani and Efron, 1993] and partial information decomposition (PID), which separates redundant, unique, and synergistic contributions across sources [Williams and Beer, 2010, Bertschinger et al., 2014]. Both analyses support redundancy, suggesting that the plateau mainly preserves an already learned binary signal.

However, static redundancy alone cannot infer that the upper layers are dispensable during fine-tuning. These layers could still be necessary during optimization if they form task signals early and propagate gradients that influence how lower layers update. We therefore examine the training trajectory to identify where the classification signal first emerges and how it propagates across depth. Our training-dynamics analysis reveals that task-relevant information grows only within a narrow upper-middle band of three to four layers. Below this band, label decodability remains close to the pretrained level. Within the band, label information accumulates rapidly, so we name it the InfoWindow. Above it, layers become aligned with the task only at later stage of training and mainly inherit the signal produced within the InfoWindow. Together with the endpoint redundancy analysis, this temporal ordering suggests that the upper plateau reflects a signal that has already formed below.

This mechanism yields a principled early-exit strategy. We retain the lower substrate, the InfoWindow, and a short stabilization margin, and remove the redundant layers above them. On Qwen3-4B and 8B, this truncation removes 31% of the network, keeps accuracy within seed noise of full depth, and lowers latency by 1.4×1.4\times. Since the static and dynamic analyses require substantial computation, we further evaluate whether the derived rule generalizes beyond the analyzed backbone. We fix the exit depths for Llama-3.2-3B and Mistral-7B-v0.3 as fractions of depth before running any analysis on them, and the transfer succeeds. Per-layer probing run afterwards finds the same substrate, InfoWindow, and plateau in both models, and again on QNLI and SST-2, suggesting that InfoWindow-guided truncation provides a practical route toward efficient task-specific LLM fine-tuning.

Our contributions are as follows: i) We measure the CLS–S2S gap under matched conditions and locate it in the learned representations, where CLS induces a stronger two-cluster geometry and higher label decodability that a fresh linear head cannot recover from S2S features (Sections 3 and 4). ii) We show that the CLS signal saturates into a statistically interchangeable and largely redundant upper plateau, as measured by bootstrap confidence intervals and PID (Section 5). iii) We identify an InfoWindow training dynamic, in which task information accumulates in a narrow upper-middle band and later synchronizes across the upper plateau (Section 5.3). iv) We turn these analyses into an early-exit rule that removes 31% of Qwen3 layers with accuracy unchanged within seed noise and 1.4× lower latency, and transfers as a depth prior to Llama-3.2-3B and Mistral-7B-v0.3, where probing confirms the structure the prior assumes (Section 6, Appendix F).

References (100)

Couldn't load all references. Reload the page to try again.