Enhancing Semantic Consistency of Large Language Models through Model Editing: An Interpretability-Oriented Approach
Not on the map. Why?
Abstract (arXiv)
A Large Language Model (LLM) tends to generate inconsistent and sometimes contradictory outputs when presented with a prompt that has equivalent semantics but is expressed differently from the original prompt. To achieve semantic consistency of an LLM, one of the key approaches is to finetune the model with prompt-output pairs with semantically equivalent meanings. Despite its effectiveness, a data-driven finetuning method incurs substantial computation costs in data preparation and model optimization. In this regime, an LLM is treated as a ``black box'', restricting our ability to gain deeper insights into its internal mechanism. In this paper, we are motivated to enhance the semantic consistency of LLMs through a more interpretable method (i.e., model editing) to this end. We first identify the model components (i.e., attention heads) that have a key impact on the semantic consistency of an LLM. We subsequently inject biases into the output of these model components along the semantic-consistency activation direction. It is noteworthy that these modifications are cost-effective, without reliance on mass manipulations of the original model parameters. Through comprehensive experiments on the constructed NLU and open-source NLG datasets, our method demonstrates significant improvements in the semantic consistency and task performance of LLMs. Additionally, our method exhibits promising generalization capabilities by performing well on tasks beyond the primary tasks.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Builds on 20 of its 30 references that are in the map. First posted on arXiv 19 Jan 2025.
Builds on
20 of 30 references.
References · 20
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,308
- 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,281
- 2016Understanding intermediate layers using linear classifier probescited by 1,279
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,259
- 2022Memory-Based Model Editing at Scalecited by 443
- 2023Editing Large Language Models: Problems, Methods, and Opportunitiescited by 367
8 more
- 2021Measuring and Improving Consistency in Pretrained Language Modelscited by 361
- 2023How Good Are GPT Models at Machine Translation? A Comprehensive Evaluationcited by 344
- 2020Modifying Memories in Transformer Modelscited by 222
- 2023Is ChatGPT a Good Sentiment Analyzer? A Preliminary Studycited by 96
- 2022Prompt Consistency for Zero-Shot Task Generalizationcited by 66
- 2023Improving Activation Steering in Language Models with Mean-Centringcited by 64
- 2022Measuring Reliability of Large Language Models through Semantic Consistencycited by 38
- 2023Predicting Question-Answering Performance of Large Language Models through Semantic Consistencycited by 28
Built on by
Citing papers per year: 2025: 8; 2026: 6.
14 papers.
Sort:
By area:
- 2025Robustness in Large Language Models: A Survey of Mitigation Strategies and Evaluation Metricscited by 12
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safetycited by 10
- 2026StaRPO: Stability-Augmented Reinforcement Policy Optimizationcited by 5
- 2025ConMeC: A Dataset for Metonymy Resolution with Common Nounscited by 4
- 2025Semantic Mastery: Enhancing LLMs with Advanced Natural Language Understandingcited by 4
- 2025CAPE: Context-Aware Personality Evaluation Framework for Large Language Modelscited by 4
- 2025Flip-Flop Consistency: Unsupervised Training for Robustness to Prompt Perturbations in LLMscited by 3
- 2026Tracing the Data Trail: A Survey of Data Provenance, Transparency and Traceability in LLMscited by 3
- 2026Probing the Lack of Stable Internal Beliefs in LLMscited by 2
- 2026Automated Creativity Evaluation of Language Models Across Open-Ended Taskscited by 2
- 2026Controlling Distributional Bias in Multi-Round LLM Generation via KL-Optimized Fine-Tuningcited by 1
- 2026LLM Explainability with Counterfactual Chains and Causal Graphscited by 1
- 2026Automated Creativity Evaluation of Language Models Across Open-Ended Tasks10 Jun 2026
- 2026LLM Explainability with Counterfactual Chains and Causal Graphs4 Jun 2026
- 2026StaRPO: Stability-Augmented Reinforcement Policy Optimization10 Apr 2026
- 2026Controlling Distributional Bias in Multi-Round LLM Generation via KL-Optimized Fine-Tuning7 Apr 2026
- 2026Probing the Lack of Stable Internal Beliefs in LLMs26 Mar 2026
- 2026Tracing the Data Trail: A Survey of Data Provenance, Transparency and Traceability in LLMs19 Jan 2026
- 2025Label Forensics: Interpreting Hard Labels in Black-Box Text Classifier1 Dec 2025
- 2025Flip-Flop Consistency: Unsupervised Training for Robustness to Prompt Perturbations in LLMs16 Oct 2025
- 2025Certifiable Safe RLHF: Semantic Grounding and Fixed Penalty Constraint Optimization for Safer LLM Alignment3 Oct 2025
- 2025CAPE: Context-Aware Personality Evaluation Framework for Large Language Models28 Aug 2025
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safety5 Jun 2025
- 2025Robustness in Large Language Models: A Survey of Mitigation Strategies and Evaluation Metrics24 May 2025
2 more
- 2025Robustness in Large Language Models: A Survey of Mitigation Strategies and Evaluation Metricscited by 12
- 2025ConMeC: A Dataset for Metonymy Resolution with Common Nounscited by 4
- 2025Semantic Mastery: Enhancing LLMs with Advanced Natural Language Understandingcited by 4
- 2025CAPE: Context-Aware Personality Evaluation Framework for Large Language Modelscited by 4
- 2025Flip-Flop Consistency: Unsupervised Training for Robustness to Prompt Perturbations in LLMscited by 3
- 2026Tracing the Data Trail: A Survey of Data Provenance, Transparency and Traceability in LLMscited by 3
- 2026Probing the Lack of Stable Internal Beliefs in LLMscited by 2
- 2026Automated Creativity Evaluation of Language Models Across Open-Ended Taskscited by 2
- 2026Controlling Distributional Bias in Multi-Round LLM Generation via KL-Optimized Fine-Tuningcited by 1
- 2026LLM Explainability with Counterfactual Chains and Causal Graphscited by 1
- 2025Label Forensics: Interpreting Hard Labels in Black-Box Text Classifiercited by 0
- 2026Automated Creativity Evaluation of Language Models Across Open-Ended Tasks10 Jun 2026
- 2026LLM Explainability with Counterfactual Chains and Causal Graphs4 Jun 2026
- 2026Controlling Distributional Bias in Multi-Round LLM Generation via KL-Optimized Fine-Tuning7 Apr 2026
- 2026Probing the Lack of Stable Internal Beliefs in LLMs26 Mar 2026
- 2026Tracing the Data Trail: A Survey of Data Provenance, Transparency and Traceability in LLMs19 Jan 2026
- 2025Label Forensics: Interpreting Hard Labels in Black-Box Text Classifier1 Dec 2025
- 2025Flip-Flop Consistency: Unsupervised Training for Robustness to Prompt Perturbations in LLMs16 Oct 2025
- 2025CAPE: Context-Aware Personality Evaluation Framework for Large Language Models28 Aug 2025
- 2025Robustness in Large Language Models: A Survey of Mitigation Strategies and Evaluation Metrics24 May 2025
- 2025Semantic Mastery: Enhancing LLMs with Advanced Natural Language Understanding1 Apr 2025
- 2025ConMeC: A Dataset for Metonymy Resolution with Common Nouns10 Feb 2025