mlsanityData to 7 Oct 2026

Enhancing Semantic Consistency of Large Language Models through Model Editing: An Interpretability-Oriented Approach

arXiv 2501.11041 ↗First posted 19 Jan 2025cs.CLcited by 14

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  5. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  6. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
  7. 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,308
  8. 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,281
  9. 2016Understanding intermediate layers using linear classifier probescited by 1,279
  10. 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,259
  11. 2022Memory-Based Model Editing at Scalecited by 443
  12. 2023Editing Large Language Models: Problems, Methods, and Opportunitiescited by 367
8 more
  1. 2021Measuring and Improving Consistency in Pretrained Language Modelscited by 361
  2. 2023How Good Are GPT Models at Machine Translation? A Comprehensive Evaluationcited by 344
  3. 2020Modifying Memories in Transformer Modelscited by 222
  4. 2023Is ChatGPT a Good Sentiment Analyzer? A Preliminary Studycited by 96
  5. 2022Prompt Consistency for Zero-Shot Task Generalizationcited by 66
  6. 2023Improving Activation Steering in Language Models with Mean-Centringcited by 64
  7. 2022Measuring Reliability of Large Language Models through Semantic Consistencycited by 38
  8. 2023Predicting Question-Answering Performance of Large Language Models through Semantic Consistencycited by 28

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 8; 2026: 6.

14 papers.

Sort:

By area: