Skip to main navigation Skip to search Skip to main content

Correcting Large Language Model Behavior via Influence Function

  • Han Zhang
  • , Zhuo Zhang
  • , Yi Zhang
  • , Yuanzhao Zhai
  • , Hanyang Peng
  • , Yu Lei
  • , Yue Yu
  • , Hui Wang
  • , Bin Liang
  • , Lin Gui*
  • , Ruifeng Xu*
  • *Corresponding author for this work
  • Harbin Institute of Technology Shenzhen
  • Pengcheng Laboratory
  • National University of Defense Technology
  • Chinese University of Hong Kong
  • King's College London
  • Guangdong Provincial Key Laboratory of Novel Security Intelligence Technologies

Research output: Contribution to journalConference articlepeer-review

Abstract

Recent advancements in AI alignment techniques have significantly improved the alignment of large language models (LLMs) with static human preferences. However, the dynamic nature of human preferences can render some prior training data outdated or even erroneous, ultimately causing LLMs to deviate from contemporary human preferences and societal norms. Existing methodologies, either curation of new data for continual alignment or manual correction of outdated data for re-alignment, demand costly human resources. To address this, we propose a novel approach, LLM BehAvior Correction with INfluence FunCtion REcall and Post-Training (LANCET), which needs no human involvement. LANCET consists of two phases: (1) using a new method LinFAC to efficiently identify the training data that significantly impact undesirable model outputs, and (2) applying an novel Influence-driven Bregman Optimization (IBO) technique to adjust the model’s outputs based on these influence distributions. Our experiments show that LANCET effectively and efficiently corrects inappropriate behaviors of LLMs while preserving model utility. Furthermore, LANCET exhibits stronger generalization ability than all baselines under out-of-distribution harmful prompts, offering better interpretability and compatibility with real-world applications of LLMs.

Original languageEnglish
Pages (from-to)14477-14485
Number of pages9
JournalProceedings of the AAAI Conference on Artificial Intelligence
Volume39
Issue number13
DOIs
StatePublished - 11 Apr 2025
Externally publishedYes
Event39th Annual AAAI Conference on Artificial Intelligence, AAAI 2025 - Philadelphia, United States
Duration: 25 Feb 20254 Mar 2025

Fingerprint

Dive into the research topics of 'Correcting Large Language Model Behavior via Influence Function'. Together they form a unique fingerprint.

Cite this