CircuitProbe: Predicting Reasoning Circuits in Transformers via Stability Zone Detection
Organizations: Independent Researcher
Abstract
Transformer language models contain localized reasoning circuits, contiguous layer blocks that improve reasoning when duplicated at inference time. Finding these circuits currently requires brute-force sweeps costing 25 GPU hours per model. We propose CircuitProbe, which predicts circuit locations from activation statistics in under 5 minutes on CPU, providing a speedup of three to four orders of magnitude. We find that reasoning circuits come in two types: stability circuits in early layers, detected through the derivative of representation change, and magnitude circuits in late layers, detected through anomaly scoring. We validate across 9 models spanning 6 architectures, including 2025 models, confirming that CircuitProbe top predictions match or are within 2 layers of the optimal circuit in all validated cases. A scaling experiment across the Qwen 2.5 family reveals that layer duplication consistently benefits models under 3B parameters but degrades performance in 7B+ models, making this a practical scaling technique for small language models. CircuitProbe requires as few as 10 calibration examples and its predictions are stable across English, Hindi, Chinese, and French.
Figures & tables
| Model | Year | L | Stability | Magnitude |
|---|---|---|---|---|
| Phi-4 (14B) | 2024 | 40 | [5–10) | [37–40) |
| Qwen2.5-7B | 2024 | 28 | [6–11) | [24–27) |
| Qwen3-8B | 2025 | 36 | [8–11) | [33–36) |
| DS-R1-Qwen (7B) | 2025 | 28 | [6–9) | [25–28) |
| DS-R1-Llama (8B) | 2025 | 32 | [3–6) | [29–32) |
| Mistral-Instruct (7B) | 2023 | 32 | [3–6) | [29–32) |
| Model | Params | Baseline | With Circuit | |
|---|---|---|---|---|
| Qwen2.5-0.5B | 0.5B | 40.0% | 42.4% | +2.4% |
| Qwen2.5-1.5B | 1.5B | 60.0% | 60.4% | +0.4% |
| Qwen2.5-3B | 3B | 49.2% | 54.0% | +4.8% |
| Qwen2.5-7B | 7.6B | 50.4% | 48.8% | 1.6% |
| TinyLlama (Llama) | 1.1B | 16.4% | 26.4% | +10.0% |
| Mistral-Inst. (Mistral) | 7.2B | 52.8% | 47.2% | 5.6% |
Circuits in Language Models
Circuits in language models are interacting internal components that implement behaviors and can be traced with causal interventions.
See all 121 papers