EAR: Erasing Concepts from Unified Autoregressive Models
Abstract
Autoregressive (AR) models have achieved unified and strong performance across both visual understanding and image generation tasks. However, removing undesired concepts from AR models while preserving overall generative quality remains an open and critical challenge. Existing Concept Erasure (CE) methods, primarily designed for diffusion models, fail when applied to AR architectures due to fundamental differences in their sequential generative process. In this paper, we propose the Erasure Autoregressive Model (EAR), the first fine-tuning framework specifically designed for CE in AR models. EAR addresses the fact that concepts in AR models manifest as dynamic trajectories within the hidden states, not as static vectors. Specifically, it introduces Windowed Gradient Accumulation (WGA), which accumulates alignment loss over windows of the hidden state trajectory to target stable conceptual features rather than noisy, isolated patches, and Thresholded Loss Masking (TLM), which selectively applies gradients only to trajectory windows where the target concept is strongly present, preserving utility for non-target concepts. To facilitate rigorous evaluation, we also propose Erase Concept Generator and Visual Filter (ECGVF), a novel benchmark for the CE task. ECGVF uses multiple LLMs to generate high-quality contrastive prompt pairs and employs visual classifiers for rigorous filtering to ensure dataset quality and cross-model comparability. Extensive experiments on the AR model Janus-Pro using our ECGVF benchmark demonstrate that EAR achieves 91% average removal rate while maintaining generative fidelity on unrelated prompts. Additional cross-architecture experiments on Lumina-mGPT show that EAR also transfers beyond Janus-specific settings, while disentanglement analysis confirms that closely related but safe concepts remain largely intact. Our code is available at https://github.com/immc-lab/ear.