arXiv:2609.10287cs.LGSep 2026

Manuscript Offprint

arXiv:2609.10287

Training Trajectories Determine Circuit Removability in Annealable Soft-Prior Transformers

Zonglin Yang, Ziming Zhao, Wei Tang, Xunyu Jiang, Yihong Liu, Tailin Chen, Zifu Yu, Jiayu Liu

Zonglin Yang 1∗^{1*}, Ziming Zhao 2^{2}, Wei Tang 2^{2}, Xunyu Jiang 2^{2}, Yihong Liu 2^{2}, Tailin Chen 2^{2}, Zifu Yu 3^{3}, and Jiayu Liu 1^{1}

1^{1} Criminal Science and Technology, Guangdong Police College, China 3258244847@qq.com; 3960432092@qq.com

2^{2} Cybersecurity and Law Enforcement, Guangdong Police College, China 765979068@qq.com; 3311739267@qq.com; 1581367121@qq.com zzm1030082097@gmail.com; 3278324576@qq.com

3^{3} Traffic Management Engineering, Guangdong Police College, China yuzifu@yuzifu.top

Abstract. Soft positional priors can help small Transformers learn retrieval circuits, but it is unclear whether the resulting circuits remain functional once the prior is removed. We test this with an annealable soft-prior Transformer whose attention biases can be learned, faded, or zeroed during training and evaluation. On associative recall, unforced models perform well with the prior active (0.772±0.020)(0.772 \pm 0.020) but collapse at zero gate (0.095±0.009)(0.095 \pm 0.009). Smooth fade-to-zero training preserves high zero-gate accuracy (0.734±0.028)(0.734 \pm 0.028), whereas forced-zero training, hard switching, and post hoc continuation fail to recover the same effect. The pattern also appears on Markov induction. Linear regression ICL provides a boundary case because zero-gate training can learn that task directly. Mechanistic traces show that circuit consolidation occurs after the gate reaches zero, even though the responsible heads vary across seeds. These results suggest that circuit removability in small discrete retrieval tasks depends on the training trajectory, not just the final architecture.

Keywords: In-context learning · Induction heads · Positional encoding · Training dynamics · Mechanistic interpretability · Annealing.

1 Introduction

In small Transformers trained on synthetic in-context learning (ICL) tasks, a single inductive bias can determine whether a retrieval circuit forms. Relative position biases, local priors, and specialized positional encodings can make recall of values by key and induction much easier [19,21,15,4,7]. Standard evaluation leaves these priors active at inference, so it cannot distinguish a circuit that works without the prior from one that depends on the prior permanently.

We ask whether the prior can be removed after it helps a circuit form. Removability distinguishes two mechanisms under the same architecture: the

∗^{*} Corresponding author.

Z. Yang et al.

Figure

Fig. 1: Conceptual overview. Under unforced training, the positional prior becomes necessary: the model works with an active gate but collapses when the gate is zeroed. With fade-to-zero training, the model first forms a retrieval circuit shaped by the prior, follows the gate as it decreases, and consolidates a prior-free circuit. Hard switches and post hoc continuation test whether a warm start or extra zero-gate training can recover the same circuit.

model either learns an internal attention pattern that implements retrieval or continues to rely on an external bias term. Removing the bias at evaluation tests which mechanism the model uses.

We add gated position and content biases to each attention head. The gate value can be learned freely, clamped, or scheduled during training. On associative recall, freely trained models achieve high normal accuracy but fail at zero gates. A fade-to-zero trajectory, which holds the gate at 0.5, smoothly reduces it to 0, and then continues training with the prior absent, preserves high zero-gate accuracy. Neither a warm start nor extra zero-gate training explains the result: abrupt switches and post hoc continuation from an unforced checkpoint both fall far short.

Several smooth training paths work, but abrupt removal does not. Mechanistic traces show that the heads that carry retrieval differ across seeds, while the timing of consolidation is stable and occurs after the gate is already zero. The same pattern holds on Markov induction, whereas linear regression ICL behaves differently: forced-zero training solves the task, so it can form a circuit without the prior, unlike the discrete retrieval tasks.

Contributions.

– We introduce an annealable soft-prior Transformer and evaluation protocol that distinguishes prior-active performance from prior-free circuit removability.

– We show that fade-to-zero training preserves zero-gate retrieval on associative recall and Markov induction, while unforced training, forced-zero training, hard switching, post hoc continuation, prior dropout, and a dual condition loss do not reproduce the same effect. Schedule sweeps and three-seed mechanism traces further show that smooth removal produces stable consolidation timing despite variation in head identity.

– We identify a boundary case in linear regression ICL, where removability failure exists for unforced training but a zero-gate model can learn the task directly.

References (26)