Papers for

content moderation engineers

Papers whose findings have a practical use for this group, as judged from the abstract. Open a paper to read what it means in practice.

Linear probes detect harmful prompts well despite model changes

Linear Probes Transfer from Base to Distilled Language Models despite Rotation

Abstract: Linear probes, classifiers that read a language model's internal activations, are widely used to detect harmful requests. They are cheap to train and run, and an auditor who has trained one would like to reuse it when the model is replaced by a successor rather than retrain it for every release. We test how well probes can be reused. For four base models (Qwen2.5-Math-7B, Llama-3.1-8B, Qwen2.5-14B, Qwen2.5-32B) we train a probe on the base model with the XSTest prompt set and apply it, unchanged, to two successors of that base: the DeepSeek-R1 distilled reasoning model and the developer's instruction-tuned chat model. We find that the successors rotate the direction separating unsafe from safe prompts by 17$^\circ$ to 35$^\circ$, yet on XSTest the transferred probe's AUC changes by only $-0.011$ to $+0.027$, and on an independent OR-Bench evaluation, never used for training, by $-0.015$ to $+0.053$. On XSTest, whose safe prompts deliberately contain alarming words, the probes beat a classifier that sees only the prompt text by 0.15 to 0.20 AUC. On the OR-Bench prompts that margin shrinks to 0.03 to 0.20, and the probes flag 29\% to 42\% of prompts that sound harmful but are benign, so part of what they read is the appearance of harm rather than harm itself. A probe trained on a base model can thus be reused, in these families, after distillation and after instruction tuning; how much it reads beyond textual cues depends on the test set.

Mon 26 OctArtificial IntelligenceComputation and LanguageMachine Learning
The gist
Linear probes are simple tools that check inside language models to spot harmful requests. The authors tested if probes trained on one model still work well on newer, changed models without retraining. They found probes still perform well even after the models were distilled or instruction-tuned, despite some internal rotations. This means auditors can reuse probes across model versions, saving effort. However, probes sometimes flag safe prompts as harmful based on wording, not true harm.
Open → 2610.35586v1

Enhanced method improves text model forgetfulness without retraining

Enhanced Masked Diffusion Unlearning

Abstract: Masked diffusion language models (MDLMs) generate text by iteratively unmasking tokens with bidirectional context. As these models reach real-world deployment, machine unlearning becomes essential. This process aims to remove the influence of a designated "forget set" without retraining from scratch, so that sensitive, copyrighted, or restricted content can no longer be elicited while preserving retained capabilities. Masked Diffusion Unlearning (MDU) is the first publicly available unlearning method customized for these models: it tunes the model $p_θ$ to match a frozen prompt-masked anchor $p_{\mathrm{anchor}}$ on the forget set by minimizing the anchor-last divergence $\mathrm{KL}(p_θ\Vert p_{\mathrm{anchor}})$. We identify two failure modes of MDU. First, random answer masking can leave key forget tokens visible to the anchor even when the question is fully masked. Second, at a memorized (near-one-hot) prediction, the anchor-last logit gradient vanishes while the anchor-first divergence $\mathrm{KL}(p_{\mathrm{anchor}} \Vert p_θ)$ logit gradient does not. As a result, MDU training stalls on the tokens we most need to forget. Backed by theoretical and empirical analyses, we propose Enhanced Masked Diffusion Unlearning (EMDU): anchor-first KL divergence toward a frozen anchor whose entire answer span is masked. On TOFU and RWKU benchmarks using LLaDA-8B and Dream-7B, our EMDU matches or exceeds the forgetting of MDU and adapted AR baselines, while better preserving retain utility.

Sun 18 OctMachine LearningArtificial IntelligenceComputation and Language
The gist
It's important for language models to forget certain sensitive or restricted information without needing to be completely retrained. The authors studied a previous approach that tried to erase such data but found it struggled when the model had very confident answers or when key parts of the data were still visible. They developed an improved method that addresses these problems by changing how the model measures differences from a fixed reference, helping it forget better while keeping its useful skills intact. Tests showed the new method works well on popular benchmarks and models.
Open → 2610.25447v1

Flow matching models learn flexible concept erasure with bregman divergences

BEM: Learning Bregman Divergences for Concept Erasure in Flow Matching Models

Abstract: Concept erasure removes harmful, private, or copyrighted concepts from text-to-image models while preserving their other abilities. Leading models such as FLUX and Stable Diffusion 3 are trained with flow matching, and erasure methods for them fine-tune the model toward a guided teacher's velocities under a Euclidean loss. Yet the squared distance is only one member of a larger family: Bregman divergences are exactly the losses under which flow matching recovers the correct velocity field, and each member shapes differently what is erased and what is preserved. We introduce BEM (Bregman erasure matching), which is, to our knowledge, the first to learn this divergence through bi-level optimization, so that the fine-tuned model forgets the concept on unseen prompts while its unrelated generations stay unchanged. In the experiments we target the suppression of nudity, violence, real identities, and copyrighted characters. Under the evaluation protocol of GEM, BEM removes more of the concept than GEM on most settings, cutting the unsafe rate on bloody gore from 53.9% to 14.4% and the FID on nudity from 8.64 to 6.64, while retention holds on some concepts and degrades on others.

Sat 17 OctMachine LearningComputer Vision and Pattern Recognition
The gist
Some AI models that create images from text can accidentally produce unwanted content like nudity or violence. The authors studied a new way to help these models forget specific unwanted concepts without harming their ability to make other images. They use a special kind of mathematical loss called a Bregman divergence, which lets them better control what is erased and what stays. Their method, called BEM, learns this loss automatically to remove harmful content more effectively than existing methods.
Open → 2610.24508v1

Text-to-image models can selectively erase concepts without retraining

Compositional Concept Erasure in Text-to-Image Diffusion Models via Hierarchically Grounded Semantic Surgery

Abstract: Removing copyrighted, unsafe, or user-specified concepts from a deployed text-to-image diffusion model is now a practical requirement. Weight-editing methods can suppress fixed targets, but they require per-target retraining and modify the model checkpoint. Training-free methods, on the other hand, are deployment-friendly, but they suffer from text-side routing failures on compositional prompts. In such prompts, the erase target may be invoked through a related class rather than its lexical name, and its modifiers may migrate onto preserved objects. This paper proposes Hierarchically Grounded Semantic Surgery (HGSS), a training-free framework for compositional concept erasure. The framework lifts both the routing signal and the edit operator used by text-side erasure. First, hierarchical span grounding resolves erase-target spans through lexical, taxonomic, and semantic evidence, while guarding against broad-hypernym and compound-head false positives. Second, dynamic attribute binding refines the text conditioning during early denoising via a counterfactual reference and a preserve-aware cross-attention objective, keeping surviving attribute-noun bindings intact. HGSS selectively removes the erase target without updating model weights or adding learned parameters. On SEE, HGSS cuts hierarchical evasion from 29.54 to 10.02 and roughly halves pairwise attribute leakage, achieving the best Neighbor E and AttrP scores among the reported erasure methods. On UnlearnCanvas, HGSS slightly improves the six-metric average over the matched Semantic Surgery baseline, reaching state-of-the-art.

Mon 5 OctComputer Vision and Pattern Recognition
The gist
It can be important to remove certain concepts from AI image generators, like copyrighted or unsafe items, without changing the entire model. The authors show a new way to do this that works well even when the concepts appear inside complex descriptions. Their method figures out exactly which parts of the text relate to the concept to erase and keeps other details intact, all without retraining the AI. This improves how well the undesired concepts are removed while preserving the rest of the image generation.
Open → 2610.07337v1