NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TRACE: Transcoder-based Concept Editing

Pierre Joly, Aditya Kumar, Adam Dziedzic, Franziska BoenischOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

TRACE (TRAnscoder-based Concept Editing) is a novel framework that allows developers to "surgically" remove unwanted concepts—like NSFW content, copyrighted styles, or specific objects—from image generative models without retraining them. By integrating sparse transcoders directly into the model's backbone, TRACE achieves state-of-the-art results in concept suppression while maintaining high image quality and resisting adversarial attacks.

What Problem Does This Paper Address?

As text-to-image models like Stable Diffusion and Flux become more powerful, they also become harder to control. These models often inadvertently generate undesirable content, including copyrighted characters, harmful imagery, or protected artistic styles.

Current solutions fall into two flawed camps:

  1. External Modules: Safety filters or "add-on" modules are easy to implement but trivial to bypass in local or open-source deployments.
  2. Internal Edits: Directly modifying model weights (like UCE or LOCOEDIT) is more permanent but often degrades overall image quality, especially when trying to remove multiple concepts sequentially.

The challenge is to find a "white-box" intervention that is permanent (integrated into the model), precise (removes only the target concept), and scalable (works across different architectures like Diffusion and Autoregressive models).

Methods

The authors introduce TRACE, which leverages Transcoders—a specialized type of sparse autoencoder.

The Core Mechanism

In most text-to-image architectures, there is a narrow "bottleneck" or transformation layer where text embeddings are injected into the generative backbone. TRACE replaces these standard layers with a Transcoder.

Key Technical Innovations:

  • Monosemantic Decomposition: The Transcoder learns to break down complex text representations into sparse, "monosemantic" features (features that represent a single, clear concept).
  • TopK Activation: Unlike standard sparse autoencoders that use ReLU and L1 regularization (which can lead to "dead" neurons), TRACE uses a TopK activation function. This enforces a hard sparsity constraint, ensuring only the most relevant features for a given prompt are active.
  • Surgical Intervention: Once the Transcoder is trained, removing a concept is simple: identify the specific latent features associated with the unwanted concept (e.g., "Van Gogh style") and redirect them to the representation of an "empty token."
  • Model-Agnostic Training: The Transcoder is trained in isolation to replicate the behavior of the original layer it replaces. This means the massive generative backbone never needs to undergo expensive backpropagation.

Datasets

The authors evaluated TRACE using several benchmarks:

  • UnlearnCanvas: Used for style and object removal tasks across ten distinct styles (e.g., Pop Art, Ukiyoe) and twenty object categories.
  • I2P (Image-to-Prompt): Used to evaluate the removal of NSFW/nudity concepts.
  • MS-COCO 2014: Used to sample prompts for training the Transcoder's modulation layers.
  • Ring-A-Bell: An adversarial prompting framework used to test the robustness of the concept removal against "jailbreak" attempts.

Key Insights and Ideas

  • Internal vs. External: Because the Transcoder becomes a permanent part of the model's backbone, it cannot be simply "detached" by a user, making it much more robust for open-source deployment than external filters.
  • Sequential Stability: One of the biggest "aha" moments is TRACE's performance in sequential editing. Traditional weight-editing methods suffer from "spectral drift"—the more concepts you remove, the more the model's overall performance decays. Because TRACE just redirects specific sparse latents, removing ten concepts is functionally as clean as removing one.
  • Bottleneck Efficiency: By targeting the specific gate where text enters the image generator, the authors found they could control the entire output with a relatively small, efficient layer.

Key Results

  • State-of-the-Art Performance: TRACE outperformed leading baselines (UCE, LOCOEDIT) across all tested models, including Stable Diffusion 3.5, FLUX.1-dev, and Infinity-8B.
  • Accuracy Gains: On the 12-billion parameter Flux model, TRACE improved style removal accuracy by up to 21 percentage points over existing methods.
  • Robustness to Attacks: In adversarial testing (Ring-A-Bell), TRACE significantly reduced attack success rates. For SD3.5, the success rate dropped from 58.08% (original) to just 25.21%, far lower than UCE (43.44%).
  • Efficiency: The "upfront cost" of training a Transcoder is relatively low (e.g., ~10 minutes on an A100), and the actual unlearning of a new concept takes less than a second.

Limitations and Future Work

  • Learned Representation Dependency: TRACE can only remove concepts that the base model has already learned and represented internally. If a concept is extremely rare or "tangled" with other features in the base model's training, the Transcoder may struggle to isolate it.
  • Monosemanticity Limits: While TopK helps, perfect disentanglement of every possible concept remains an ongoing challenge in the field of mechanistic interpretability.
  • Future Directions: The authors suggest extending this work to broader concept types and exploring even more complex multi-modal architectures where text and image features are more deeply intertwined.

Summary updated

BibTeX
@misc{joly2026trace,
  author = {Pierre Joly and Aditya Kumar and Adam Dziedzic and Franziska Boenisch},
  title = {{TRACE: Transcoder-based Concept Editing}},
  year = {2026},
  url = {https://openreview.net/forum?id=yZirk1CoZQ},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure