Lune

KDD2026Top-tier venue

HyperEdit: Mitigating Hallucinations of Large Language Models via Hyperbolic Representation Editing

Tongxu Lin, Junping Du, Zhe Xue, Meiyu Liang, Runqing Tang

Abstract

Large language models (LLMs) often generate hallucinations, undermining the reliability of their outputs. While prior work improves truthfulness by contrastive decoding or representation editing, these approaches overlook the hierarchical relationship between truthful and untruthful content, thereby constraining the LLM's knowledge potential. In this paper, we propose HyperEdit, a novel inference-time intervention method that encodes truthful and untruthful content as an entailment hierarchy and performs representation editing in the hyperbolic space to activate the truthfulness of LLMs. Specifically, we employ an auto-encoder to project the representations of LLMs into a hyperbolic space where truthful samples lie closer to the origin and untruthful ones farther away. This results in a truthfulness-aware hyperbolic space, where proximity to the origin indicates higher truthfulness, defining a natural editing direction. During inference, we edit the LLM's internal representations along this hyperbolic direction to elicit more truthful outputs. Experimental results on TruthfulQA and three additional benchmarks demonstrate that HyperEdit consistently enhances truthfulness across various advanced LLMs.

Ask Lune

Know where this paper stands in minutes, not an afternoon.

Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

its abstract · related work

Get the answer

Free to start. No credit card required.

Related papers

  1. TruthX: Alleviating Hallucinations by Editing Large Language Models in Truthful SpaceShaolei Zhang, Tian Yu, Yang FengACL 2024
  2. Spectral Editing of Activations for Large Language Model AlignmentYifu Qiu, Zheng Zhao, Yftah Ziser, Anna Korhonen et al.NeurIPS 2024 · 66 citations
  3. Inference-Time Intervention: Eliciting Truthful Answers from a Language ModelKenneth Li, Oam Patel, Fernanda B. Viégas, Hanspeter Pfister et al.NeurIPS 2023 · 1,549 citations
  4. Enhanced Language Model Truthfulness with Learnable Intervention and Uncertainty ExpressionFarima Fatahi Bayat, Xin Liu, H. V. Jagadish, Lu WangACL Findings 2024 · 2 citations
  5. Are the Hidden States Hiding Something? Testing the Limits of Factuality-Encoding Capabilities in LLMsGiovanni Servedio, Alessandro De Bellis, Dario Di Palma, Vito Walter Anelli et al.ACL 2025 · 9 citations
Dusk over the sea between two cliffs drawn in fine vertical lines