# Crafting Reversible SFT Behaviors in Large Language Models

*Yuping Lin, Pengfei He, Yue XING, Yingqian Cui, Jiayuan Ding, Subhabrata Mukherjee, Hui Liu, Zhen Xiang*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/155280) · [OpenReview](https://openreview.net/forum?id=6pycuJTqQi) · [alphaXiv](https://www.alphaxiv.org/abs/2605.06632) · [Open on the map](../papers.html#p155280)

Category: [LLM Reasoning, Memory & RAG](../pcat/19.md) › [Activation Steering for LLM Control](../pgroup/108.md) · Type: new method · Keywords: SFT behavior localization, causal necessity, sparse subnetwork, behavior reversal, language model alignment

Areas: [Interpretability](../areas/interpretability.md) › Mechanistic Interpretability › Attribution and Interpretability

## Summary
The paper introduces Loss-Constrained Dual Descent (LCDD) and SFT-Eraser to compress SFT-induced behaviors into sparse, causally necessary carriers and enable their reversal via a soft prompt.

## Explained to a 5-year-old
When we teach a big robot brain new tricks, it learns them everywhere. We want to hide those tricks in a tiny secret spot so we can turn them off later. The researchers found a way to make those secret spots that really matter for the tricks. They also made a special key that can turn the tricks off when we need to. This helps keep the robot brain safe and lets us control what it does.

## Explained to a 5-year-old, longer
When we teach a big computer brain new things, it changes a lot of its parts. We would like to know where those new things live so we can turn them off if we want. Usually we can only see which parts are related, but we can't be sure they are needed. The researchers wanted to make the new things live in a very small, important part of the brain. They created a method that picks a tiny piece of the brain and makes sure it still works well. They also built a special signal that can tell that tiny piece to undo the new thing. This way we can hide the new behavior and later turn it off without changing the whole brain. It helps us make the computer brain safer and more flexible. We can choose which tricks to keep and which to remove. This could be useful for many kinds of computer brains that help us with language, pictures, or other tasks. It also gives us a way to understand how our computer brains think.

## For a technical reader
The paper shows how to force fine-tuned language models to store specific behaviors in small, essential subnetworks. By optimizing masks and weights under a budget, they create these carriers, and a soft prompt can later erase the behavior without retraining the whole model. Experiments confirm that the carriers are truly necessary and that a simple trigger can undo the behavior, offering a path to safer, more controllable model deployments.

## Problem
Supervised fine-tuning (SFT) adds new behaviors to language models but does not guarantee that these behaviors are localized to specific subnetworks, making it hard to control or reverse them at inference time.

## Method
The approach jointly optimizes routing masks and model weights under a utility budget to create sparse carriers that preserve target behaviors, and introduces a soft prompt optimized via activation matching on carrier channels to reverse those behaviors.

## Results
The approach creates sparse carriers that retain target behaviors and can be reversed with high effectiveness, while ablations show that the sparsity is essential-trigger optimization alone on standard SFT models fails.

## Contributions
The paper demonstrates that SFT-induced behaviors can be deliberately compressed into causally necessary sparse subnetworks and provides a method to reverse them at inference time, establishing a new direction for localizing and controlling model behaviors.

## Practical relevance
This work enables safer and more controllable deployment of fine-tuned language models by allowing selective suppression of unwanted behaviors without model modification.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/155280)
