paper-with-me

홈 › Papers

In-Context Sharpness as Alerts: An Inner Representation Perspective for Hallucination Mitigation

2024-03-03 · Shiqi Chen, Miao Xiong, Junteng Liu, Zhengxuan Wu, Teng Xiao, Siyang Gao, Junxian He

Large language models (LLMs) frequently hallucinate and produce factual errors, yet our understanding of why they make these errors remains limited. In this study, we delve into the underlying mechanisms of LLM hallucinations from the perspective of inner representations, and discover a salient pattern associated with hallucinations: correct generations tend to have sharper context activations in the hidden states of the in-context tokens, compared to the incorrect ones. Leveraging this insight, we propose an entropy-based metric to quantify the ``sharpness'' among the in-context hidden states and incorporate it into the decoding process to formulate a constrained decoding approach. Experiments on various knowledge-seeking and hallucination benchmarks demonstrate our approach's consistent effectiveness, for example, achieving up to an 8.6 point improvement on TruthfulQA. We believe this study can improve our understanding of hallucinations and serve as a practical solution for hallucination mitigation.

📄 PDF Abstract BibTeX arXiv:2403.01548

Code (1)

hkust-nlp/activation_decoding 공식 구현 jax

Tasks

HallucinationTruthfulQA

Similar Papers 제목 키워드 기반

Sharpness-Aware Minimization and Muon: Robustness under the Spectral Norm

2026-07-28 · Wenzhi Zhong, Edward Milsom, Michael Murray arxiv

Sharpness-Aware Minimization (SAM) aims to improve generalization by encouraging insensitivity to small, worst-case parameter perturbations. However, the notion of a "small" perturbation is inherently geometry-dependent:…

Enhancing Generalization via Sharpness-Aware Trajectory Matching for Dataset Condensation

2025-02-03 · Boyan Gao, Bo Zhao, Shreyank N Gowda, Xingrun Xing 외

Dataset condensation aims to synthesize datasets with a few representative samples that can effectively represent the original datasets. This enables efficient training and produces models with performance close to those…

Bilevel OptimizationDataset Condensation

Model Generalization: A Sharpness Aware Optimization Perspective

2022-08-14 · Jozef Marus Coldenhoff, Chengkun Li, Yurui Zhu

Sharpness-Aware Minimization (SAM) and adaptive sharpness-aware minimization (ASAM) aim to improve the model generalization. And in this project, we proposed three experiments to valid their generalization from the sharp…

modelvalid

A simple connection from loss flatness to compressed neural representations

2023-10-03 · Shirui Chen, Stefano Recanatesi, Eric Shea-Brown

Sharpness, a geometric measure in the parameter space that reflects the flatness of the loss landscape, has long been studied for its potential connections to neural network behavior. While sharpness is often associated …

Sensitivity

A Graph-Based Approach to Alert Contextualisation in Security Operations Centres

2025-09-16 · Magnus Wiik Eckhoff, Peter Marius Flydal, Siem Peters, Martin Eian 외 arxiv

Interpreting the massive volume of security alerts is a significant challenge in Security Operations Centres (SOCs). Effective contextualisation is important, enabling quick distinction between genuine threats and benign…

Graph Matching