Research map / Large language models / Instruction and fine-tuning
Model Surgery: Modulating LLM's Behavior Via Simple Parameter Editing
Huanqian Wang, Yang Yue, Rui Lu, Jingxin Shi, Andrew Zhao, Shenzhi Wang, Shiji Song, Gao Huang
Tsinghua University · Carnegie Mellon University
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| apply model surgery (edit selected gate-projection rows with the toxic probe) | LLaMA2-7B · RealToxicityPrompts | toxicity: 51.4 -> 5.17 | Improved |
| apply model surgery | LLaMA2-7B · ToxiGen | toxicity: 79.1 -> 39.9 | Improved |
| apply model surgery | LLaMA2-7B · General ability average | average score: 35.9 -> 34.9 | No clear effect |
| fine-tune with LoRA instead of model surgery | LLaMA2-7B · ToxiGen / general ability | toxicity / avg: ToxiGen 79.1 -> 86.7; avg 35.9 -> 22.9 | Hurt |
| apply model surgery for jailbreak resistance | LLaMA2-7B-Chat · Jailbreak benchmark | refusal rate: 64.6 -> 77.4 | Improved |
| apply model surgery in inverse direction | LLaMA2-7B-Chat · Jailbreak benchmark | refusal rate: 64.6 -> 49.5 (more susceptible) | Improved |
| apply model surgery toward positive attitude | LLaMA2-7B · Attitude adjustment | % positive: 36.4% -> 54.8% | Improved |
| use behavior probe instead of random probe (ablation) | Model surgery · RealToxicityPrompts | toxicity: 41.2 -> 5.17 | Improved |
| select behavior region instead of random region (ablation) | Model surgery · RealToxicityPrompts | toxicity: 15.0 -> 5.17 | Improved |
| use min similarity + addition instead of max similarity + subtraction (ablation) | Model surgery · RealToxicityPrompts | toxicity: 34.8 -> 5.17 | Improved |
| edit gate projection instead of other weight matrices (ablation) | Model surgery · RealToxicityPrompts | toxicity: up_proj 38.28, down_proj 26.02, gate_proj 5.17 | Improved |
| edit layers in second quarter (Q2) (ablation) | Model surgery · RealToxicityPrompts | toxicity: excluding Q2: 23.1 vs 5.17 with all layers | Improved |
Open problems in fine-tuning generalization and delta compression
Do fine-tuning findings hold beyond small English-only models and automatic judges?
- Experiments stop at small or mid-sized models. · 21 papers state it
- Only English or one other language is tested. · 19 papers state it
- Scores come from LLM judges with no human check. · 12 papers state it
Closest papers by meaning
- Large Language Models can Become Strong Self-Detoxifiers (ICLR 2025 · similarity 0.89)
- Detoxifying Large Language Models via Autoregressive Reward Guided Representation Editing (NeurIPS 2025 · similarity 0.89)
- ShiQ: Bringing back Bellman to LLMs (NeurIPS 2025 · similarity 0.87)
- IF-Guide: Influence Function-Guided Detoxification of LLMs (NeurIPS 2025 · similarity 0.87)
- UniDetox: Universal Detoxification of Large Language Models via Dataset Distillation (ICLR 2025 · similarity 0.87)
- Look Before You Leap: Enhance Attention and Vigilance Regarding Harmful Content with GuidelineLLM (AAAI 2025 · similarity 0.87)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.