Lune

EMNLP Findings2025

When Format Changes Meaning: Investigating Semantic Inconsistency of Large Language Models

Cheongwoong Kang, Jongeun Baek, Yeonjea Kim, Jaesik Choi

Abstract

Large language models (LLMs) have demonstrated remarkable capabilities in natural language processing tasks. However, they remain vulnerable to semantic inconsistency, where minor formatting variations result in divergent predictions for semantically equivalent inputs. Our comprehensive evaluation reveals that this brittleness persists even in state-of-the-art models such as GPT-4o, posing a serious challenge to their reliability. Through a mechanistic analysis, we find that semantic-equivalent input changes induce instability in internal representations, ultimately leading to divergent predictions. This reflects a deeper structural issue, where form and meaning are intertwined in the embedding space. We further demonstrate that existing mitigation strategies, including direct fine-tuning on format variations, do not fully address semantic inconsistency, underscoring the difficulty of the problem. Our findings highlight the need for deeper mechanistic understanding to develop targeted methods that improve robustness.

Ask Lune

Ask anything. The answer quotes the paper.

Lune reads all of it and the papers around it, then shows you the passages behind every answer.

Questions to start from

Lune answers from

the full paper · related work

Get the answer

Free to start. No credit card required.

Builds on16

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
  3. Retrieval-Augmented Generation for Knowledge-Intensive NLP TasksPatrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni et al.NeurIPS 2020 · 19,162 citations
  4. Large Language Models are Zero-Shot ReasonersTakeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo et al.NeurIPS 2022 · 8,168 citations
  5. The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes et al.ICLR 2020 · 4,112 citations

Related papers

  1. When Punctuation Matters: A Large-Scale Comparison of Prompt Robustness Methods for LLMsMikhail Seleznyov, Mikhail Chaichuk, Gleb Ershov, Alexander Panchenko et al.EMNLP Findings 2025 · 2 citations
  2. Toward Automated Robustness Evaluation of Mathematical ReasoningYutao Hou, Zeguan Xiao, Fei Yu, Yihan Jiang et al.ACL Findings 2026
  3. Enhancing Semantic Consistency of Large Language Models through Model Editing: An Interpretability-Oriented ApproachJingyuan Yang, Dapeng Chen, Yajing Sun, Rongjun Li et al.ACL Findings 2024 · 7 citations
  4. Can Large Language Models Always Solve Easy Problems if They Can Solve Harder Ones?Zhe Yang, Yichang Zhang, Tianyu Liu, Jian Yang et al.EMNLP 2024 · 2 citations
  5. Harnessing Non-Adversarial Robustness in Large Language ModelsQinghua Zhou, Ellina Aleshina, Andrey Lovyagin, Oleg Somov et al.ICML 2026
Dusk over the sea between two cliffs drawn in fine vertical lines