Qwen-Scope: Sparse Autoencoder Toolkit
- Qwen-Scope is a mechanistic-interpretability suite that uses layer-wise sparse autoencoders to diagnose, control, and improve Qwen models.
- The system integrates 14 SAE groups across 7 Qwen variant backbones, supporting inference-time steering, evaluation analysis, and data-centric safety workflows.
- It leverages sparse feature activations as actionable control handles to enable targeted interventions like code-switch reduction and repetition suppression.
Searching arXiv for "Qwen-Scope" and closely related papers on Qwen SAEs/mechanistic interpretability. Qwen-Scope is an open-source suite of sparse autoencoders (SAEs) built on the Qwen model family and positioned as a representation-level interface for diagnosing, controlling, evaluating, and improving LLMs. It comprises 14 groups of SAEs across 7 model variants from the Qwen3 and Qwen3.5 series, spanning both dense and mixture-of-expert (MoE) architectures, and is designed to move SAEs beyond post-hoc interpretability into practical model-development workflows such as inference-time steering, evaluation analysis, data-centric safety pipelines, and post-training optimization (Deng et al., 12 May 2026).
1. Definition and placement within the Qwen ecosystem
Qwen-Scope is a mechanistic-interpretability system centered on layer-wise SAEs trained on residual-stream activations from Qwen backbones. Its stated objective is to make sparse, interpretable feature representations operational for model development rather than limiting them to descriptive analysis (Deng et al., 12 May 2026). In this sense, Qwen-Scope sits downstream of the broader Qwen program, which introduced Qwen as a family of base pretrained LLMs, aligned chat models, and specialized code and mathematics variants with strong tool-use and planning capabilities (Bai et al., 2023).
The released coverage is organized around seven backbones: five dense models and two MoE models. The dense variants are Qwen3-1.7B, Qwen3-8B, Qwen3.5-2B, Qwen3.5-9B, and Qwen3.5-27B (instruct). The MoE variants are Qwen3-30B-A3B and Qwen3.5-35B-A3B. The release covers every transformer layer in each backbone, yielding 14 SAE groups in total (Deng et al., 12 May 2026).
| Backbone class | Model variants | SAE configuration |
|---|---|---|
| Dense | Qwen3-1.7B, Qwen3-8B, Qwen3.5-2B, Qwen3.5-9B, Qwen3.5-27B (instruct) | , Top- |
| MoE | Qwen3-30B-A3B, Qwen3.5-35B-A3B | with Top-, and with Top- |
The central claim of the project is not merely that sparse features are interpretable, but that they can serve as reusable interfaces across multiple downstream workflows. This suggests a shift from “interpretability as inspection” to “interpretability as tooling,” with SAE feature activations functioning as manipulable state variables tied to model behavior (Deng et al., 12 May 2026).
2. Sparse autoencoder design and training objective
Each Qwen-Scope SAE is a layer-wise encoder-decoder model trained on residual-stream activations. The encoder is a single linear map , followed by a Top- ReLU that preserves only the largest positive activations and zeroes the rest. The decoder is a linear map . For dense backbones with hidden size 0, the width is 1. For MoE backbones with hidden size 2, Qwen-Scope releases both 3 and 4 variants (Deng et al., 12 May 2026).
The training objective is a reconstruction loss under an exact sparsity constraint:
5
Because Top-6 enforces 7 exactly, no explicit 8 penalty is added. To mitigate feature death, an auxiliary dead-feature loss 9 is included with weight 0, producing the full objective
1
During training, rare outlier activations with extremely large 2-norm are filtered out for stability (Deng et al., 12 May 2026).
The optimization setup is conventional for dictionary-learning-style sparse representation learning: AdamW, learning rate 3, batch size 1,024 activations per update, Top-4 values 50 or 100, and training data drawn from raw residual-stream activations on the original Qwen pretraining corpus (Deng et al., 12 May 2026). The exact-sparsity design is important because many subsequent workflows depend on binary or thresholded notions of feature presence, not merely on dense reconstruction fidelity.
3. Inference-time steering and feature-level control
A major practical contribution of Qwen-Scope is inference-time steering through SAE feature directions. The method begins with a contrastive identification step: a positive set and negative set are collected, feature activations 5 are computed, and features are ranked by
6
A direction 7 is then injected or suppressed during inference by modifying the residual representation:
8
where 9 amplifies and 0 suppresses the feature (Deng et al., 12 May 2026).
The reported case studies are concrete. On Qwen3-8B, an unintended Chinese feature, identified as feature id 6159, becomes highly activated when an English prompt accidentally triggers Chinese generation; setting 1 on this feature removes the Chinese text while preserving fluency. A second case study uses a classical-Chinese feature, id 36398, whose activation shifts a modern Chinese story continuation into a classical literary register. These interventions require no weight updates and produce immediate output changes (Deng et al., 12 May 2026).
Qwen-Scope explicitly reports that ablations confirm minimal impact on general fluency and comparable next-token probabilities outside the steered directions, although perplexity numbers are not reported (Deng et al., 12 May 2026). This is significant because it frames SAE directions as local control handles rather than global model edits. A plausible implication is that the latent basis learned by the SAEs is sparse enough to support targeted interventions without inducing broad distributional drift.
4. Evaluation analysis through feature coverage and overlap
Qwen-Scope also introduces SAE-based proxies for benchmark redundancy and inter-benchmark similarity. For a benchmark 2 with 3 samples and a panel of 4 models, the paper defines a true model-ranking vector 5 on 6, a subset ranking 7, and the expected Kendall’s 8 agreement
9
Because direct computation costs 0 forward passes, Qwen-Scope replaces it with a feature-coverage proxy. Let 1 denote the set of active features for sample 2, and let
3
The feature-coverage AUC is
4
and feature redundancy is defined as
5
Across 17 benchmarks, including MMLU, GSM8K, MATH, and MBPP, the paper reports a Spearman correlation 6 between 7 and 8 (Deng et al., 12 May 2026).
For inter-benchmark similarity, the framework uses feature overlap. For benchmarks 9, the asymmetric overlap is
0
and the symmetric variant is
1
The direct correlation between 2 and the Pearson correlation of model score vectors is reported as 68.4% (Pearson) and 60.7% (Spearman). After partialling out MMLU as a proxy for general ability, Pearson rises to 75.5% and Spearman to 71.3% (Deng et al., 12 May 2026). The paper gives GSM8K being 63% subsumed by MATH as an example of how such overlap measures can guide benchmark suite design.
The significance of these results lies in replacing expensive cross-model evaluation with a feature-space proxy computed from internal activations. This suggests that benchmark redundancy can be studied as a coverage property of internal capability features rather than solely as a correlation among final task scores.
5. Data-centric workflows: toxicity detection and safety synthesis
Qwen-Scope develops two data-centric pipelines: multilingual toxicity classification and safety-oriented data synthesis. In the toxicity setting, SAEs on Qwen3-1.7B and Qwen3-8B are used to construct a fully transparent, rule-based detector over the TextDetox multilingual corpus, consisting of 13 languages with 5 k examples each and a 50% toxic / 50% clean split. The data are partitioned into 4 k discovery examples and 1 k test examples per language (Deng et al., 12 May 2026).
Feature discovery is performed at layer 3. For example 4, token 5, and feature 6, the activation tensor is 7, and feature presence is defined by
8
The selection statistic is
9
and the rule-based classifier is
0
The reported results are that the best single-layer F1 exceeds 0.90 with 1, middle layers are most predictive, English-discovered features transfer with mean F1 approximately 0.7–0.8 to related languages such as Russian and French, and larger 8B models show stronger and more stable transfer. A simple proxy,
2
identifies the best classification layer without held-out evaluation; combining one feature per top-3 layers improves worst-case F1; and only 10% of discovery data recovers approximately 99% of full-data performance (Deng et al., 12 May 2026).
The safety-synthesis workflow uses WildJailbreak training prompts and responses as seed data. For each layer-feature pair 4, feature coverage on the seed set is
5
Features are assigned semantic relevance scores 6 from a judge model on their textual explanations; a target set 7 is formed by thresholding these scores, and missing targets 8 are identified by absent coverage. The synthesis pipeline then generates vanilla prompts, adversarial variants, and responses, retaining only examples whose activations actually trigger the desired target feature. Dataset-level coverage is measured by
9
Feature-driven synthesis reaches 99.7% of 0 under a small budget, whereas natural sampling and random safety synthesis leave large gaps (Deng et al., 12 May 2026).
Downstream supervised fine-tuning on Qwen3-8B combines Alpaca (50 k) with real safety data at budgets of 8 k, 40 k, 120 k, or 200 k, optionally plus 4 k synthetic safety examples. Using only 4 k real plus 4 k feature-driven synthetic data yields safety accuracy 77.75%, compared with 71.75% using 8 k real only, while preserving or improving general benchmarks such as IFEval, TruthfulQA, MMLU, GSM8K, and BBH (Deng et al., 12 May 2026).
6. Post-training optimization, empirical effects, and nomenclature
Qwen-Scope extends SAE signals into post-training optimization in two forms: supervised fine-tuning to reduce code-switching and reinforcement learning with rare-negative augmentation to suppress repetition. For code-switching, the failure metric is the unexpected code-switching ratio
1
Language-specific features 2 are identified using the “monolinguality” score
3
where 4 is the mean activation on language 5 and 6 is the mean activation on other languages. The auxiliary suppression loss is
7
and the total training loss is
8
On Qwen3-1.7B and Qwen3-8B, baseline code-switch ratios for any 9 zh/ru/ko are 0.81%/0.19%/0.36% for 1.7B and 0.96%/0.16%/0.43% for 8B. On the 210 k setting, SAE-guided SFT reduces zh to 0.22% (0), ru to 0.03% (1), and ko to 0.00% (2), with similar gains at 110 k and no degradation on multilingual benchmarks such as MMLU, Flores, and HellaSwag (Deng et al., 12 May 2026).
For repetition, Qwen-Scope identifies repetition features by contrasting activations on a token’s first occurrence versus repeated occurrences, then verifies causality by steering:
3
This signal is inserted into a DAPO reinforcement-learning loop by sampling 4 normal rollouts and one steered negative rollout per prompt. On Qwen3-1.7B, 8B, and 30B, vanilla RL yields only modest repetition reduction, whereas SAE-guided RL rapidly drives the repetition ratio to near zero; general-capability benchmarks remain competitive, with mixed task-dependent gains and regressions (Deng et al., 12 May 2026).
The paper’s broader conclusion is that a single SAE suite can support steering, evaluation, data construction, and post-training optimization within one representational framework (Deng et al., 12 May 2026). A common misconception is that “Qwen-Scope” refers to one of the unrelated 2026 papers titled “SCOPE,” such as “SCOPE: Selective Conformal Optimized Pairwise LLM Judging” or “SCOPE: Real-Time Natural Language Camera Agent at the Edge.” Those works concern pairwise LLM judging and PTZ camera agents, respectively, and are distinct from Qwen-Scope despite the shared acronymal surface form (Badshah et al., 13 Feb 2026, Hindsbo et al., 1 Jun 2026).
Within the Qwen research trajectory, Qwen-Scope therefore occupies a specific niche: it is not a new base model family, nor an alignment stack, nor an agent architecture, but a mechanistic-interpretability and model-development toolkit built on top of Qwen backbones. Its significance lies in operationalizing sparse internal features as reusable control and analysis primitives, thereby connecting model internals to observable downstream behavior in a way that is both technically explicit and directly actionable (Deng et al., 12 May 2026).