paper-with-me

홈 › Papers

LayerCake: Token-Aware Contrastive Decoding within Large Language Model Layers

2025-07-06 · Jingze Zhu, Yongliang Wu, Wenbo Zhu, Jiawang Cao, Yanqiang Zheng, Jiawei Chen, Xu Yang, Bernt Schiele, Jonas Fischer, Xinting Hu arxiv

Large language models (LLMs) excel at natural language understanding and generation but remain vulnerable to factual errors, limiting their reliability in knowledge-intensive tasks. While decoding-time strategies provide a promising efficient solution without training, existing methods typically treat token-level and layer-level signals in isolation, overlooking the joint dynamics between them. In this work, we introduce a token-aware, layer-localized contrastive decoding method that aligns specific token types with their most influential transformer layers to improve factual generation. Through empirical attention analysis, we identify two key patterns: punctuation tokens receive dominant attention in early layers, while conceptual tokens govern semantic reasoning in intermediate layers. By selectively suppressing attention to these token types at their respective depths, we achieve the induction of controlled factual degradation and derive contrastive signals to guide the final factual decoding. Our method requires no additional training or model modification, and experiments demonstrate that our method consistently improves factuality across multiple LLMs and various benchmarks.

📄 PDF Abstract BibTeX arXiv:2507.04404

Code (0)

등록된 구현이 없습니다.

Tasks

Natural Language Understanding

Similar Papers 제목 키워드 기반

Steering Multimodal Large Language Models Decoding for Context-Aware Safety

2025-09-23 · Zheyuan Liu, Zhangchen Xu, Guangyao Dou, Xiangchi Yuan 외 arxiv

Multimodal Large Language Models (MLLMs) are increasingly deployed in real-world applications, yet their ability to make context-aware safety decisions remains limited. Existing methods often fail to balance oversensitiv…

Mitigating Posterior Salience Attenuation in Long-Context LLMs with Positional Contrastive Decoding

2025-06-10 · Zikai Xiao, Ziyang Wang, Wen Ma, Yan Zhang 외

While Large Language Models (LLMs) support long contexts, they struggle with performance degradation within the context window. Current solutions incur prohibitive training costs, leaving statistical behaviors and cost-e…

Active Layer-Contrastive Decoding Reduces Hallucination in Large Language Model Generation

2025-05-29 · Hongxiang Zhang, Hao Chen, Tianyi Zhang, Muhao Chen

Recent decoding methods improve the factuality of large language models~(LLMs) by refining how the next token is selected during generation. These methods typically operate at the token level, leveraging internal represe…

Decision MakingHallucinationLanguage ModelingLanguage Modelling+2

Reducing Object Hallucination in Large Audio-Language Models via Audio-Aware Decoding

2025-06-08 · Tzu-wen Hsu, Ke-Han Lu, Cheng-Han Chiang, Hung-Yi Lee

Large Audio-Language Models (LALMs) can take audio and text as the inputs and answer questions about the audio. While prior LALMs have shown strong performance on standard benchmarks, there has been alarming evidence tha…

HallucinationObject Hallucination

CHASD: Language Increment-Calibrated Contrastive Decoding against Hallucination in LVLMs

2026-05-22 · Xiaoyi Huang, Kejia Zhang, Zhiming Luo arxiv

Large Vision-Language Models have shown strong multimodal reasoning capabilities, yet they remain susceptible to object hallucinations when language priors dominate insufficient or misaligned visual evidence. Training-fr…

Multimodal Reasoning