EasyEdit2: An Easy-to-use Steering Framework for Editing Large Language Models

Ziwen Xu, Shuxun Wang, Kewei Xu, Haoming Xu, Mengru Wang +5 more
4/21/2025
cs.CLcs.AIcs.CV

Official code: zjunlp/EasyEdit (2,923 stars, MIT, last commit 2026-04-01).

Abstract

In this paper, we introduce EasyEdit2, a framework designed to enable plug-and-play adjustability for controlling Large Language Model (LLM) behaviors. EasyEdit2 supports a wide range of test-time interventions, including safety, sentiment, personality, reasoning patterns, factuality, and language features. Unlike its predecessor, EasyEdit2 features a new architecture specifically designed for seamless model steering. It comprises key modules such as the steering vector generator and the steering vector applier, which enable automatic generation and application of steering vectors to influence the model's behavior without modifying its parameters. One of the main advantages of EasyEdit2 is its ease of use-users do not need extensive technical knowledge. With just a single example, they can effectively guide and adjust the model's responses, making precise control both accessible and efficient. Empirically, we report model steering performance across different LLMs, demonstrating the effectiveness of these techniques. We have released the source code on GitHub at https://github.com/zjunlp/EasyEdit along with a demonstration notebook. In addition, we provide a demo video at https://www.youtube.com/watch?v=AkfoiPfp5rQ for a quick introduction.

View on arXivView PDF

Code Implementations(1)

zjunlp/EasyEditOfficial100%
MIT

[ACL 2024] An Easy-to-use Knowledge Editing Framework for LLMs.

2,923377MDX, ShellMay 9, 20236 months agoMIT
artificial-intelligencebaichuanchatgptcknowediteasyedit+15 more

Similar Papers

Cite this paper

@article{xu2025easyedit,
  title  = {EasyEdit2: An Easy-to-use Steering Framework for Editing Large Language Models},
  author = {Ziwen Xu and Shuxun Wang and Kewei Xu and Haoming Xu and Mengru Wang and Xinle Deng and Yunzhi Yao and Guozhou Zheng and Huajun Chen and Ningyu Zhang},
  year   = {2025},
  eprint = {2504.15133},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.15133v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.15133.svg)](https://codeofpaper.com/paper/2504.15133)

Discussion