Correcting Large Language Model Behavior via Influence Function
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. Further more, 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.
Authors
- Bin Liang (ORCID: https://orcid.org/0000-0001-9131-5478)
- Lei Yu (ORCID: https://orcid.org/0000-0002-1922-6638)
- Yuanzhao Zhai (ORCID: https://orcid.org/0000-0003-1385-0074)
- Yi Zhang (ORCID: https://orcid.org/0000-0002-5867-9322)
- Yue Yu (ORCID: https://orcid.org/0000-0002-2617-459X)
- Han Zhang (ORCID: https://orcid.org/0000-0002-0166-1973)
- Ruifeng Xu (ORCID: https://orcid.org/0009-0000-4425-0763)
- Lin Gui (ORCID: https://orcid.org/0000-0003-3452-3347)
- Zhuo Zhang (ORCID: https://orcid.org/0000-0003-0739-8499)
- Hanyang Peng
- Hui Wang (ORCID: https://orcid.org/0009-0005-8063-9051)
Institutions
- National University of Defense Technology (CN)
- Chinese University of Hong Kong (HK)
- King's College London (GB)
- Harbin Institute of Technology (CN)
- Peng Cheng Laboratory (CN)
Publication Details
- Journal
- Proceedings of the AAAI Conference on Artificial Intelligence
- Published
- 2025-04-11
- DOI
- https://doi.org/10.1609/aaai.v39i13.33586
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- Natural Science Foundation of Guangdong Province
- Engineering and Physical Sciences Research Council
- National Key Research and Development Program of China