arXiv:2608.27857cs.AIAug 2026

Manuscript Offprint

arXiv:2608.27857

SpikeOPD: Stable On-Policy Distillation for Autoregressive Spiking Language Models

Enqiao Lu, Xingrui Yu, Yiwei Fu, Zhenglin Wan, Pengfei Zhou, Wangbo Zhao, Muqing Jian, Xueyi Zhang, Yang You, Ivor Tsang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Spiking neural networks (SNNs) offer a path to energy-efficient language modeling through sparse encoding and event-driven computation, but training capable spiking language models from scratch remains difficult. A practical alternative is ANN-to-SNN migration through knowledge distillation (KD), where a pretrained artificial neural network (ANN) teacher supervises an SNN student. Existing migration approaches distill on fixed corpus prefixes, whereas autoregressive inference conditions on self-generated prefixes, creating prefix-source mismatch. It manifests as output-policy mismatch with the ANN teacher and internal spiking-dynamics drift between self-generated and matched corpus prefixes. On-policy distillation (OPD) offers a natural way to mitigate both manifestations by continuing teacher supervision on self-generated prefixes. We evaluate a teacher-only full-KL variant, Vanilla OPD, via a controlled stress test and observe it may suffer from delayed rollout-feedback collapse. This result shows that on-policy coverage alone does not ensure stable adaptation. Motivated by these findings, we propose SpikeOPD, a stable on-policy distillation framework for autoregressive SNNs that learns from self-generated prefixes while maintaining rollout stability. It applies full-KL teacher correction to reduce output-policy mismatch, while matched-prefix policy anchoring constrains policy departure from the frozen reference SNN on the same prefixes. Layerwise spike regularization further limits firing-rate deviations during on-policy adaptation. Across three model scales, SpikeOPD improves average accuracy over the corresponding KD SNNs by 0.8, 1.7, and 2.9 points at 0.125B, 0.35B, and 1.3B, respectively, while preserving their sparse-compute profiles.

Introduction

Autoregressive language generation repeatedly applies a large network to produce one token at a time, making dense activation computation and data movement persistent inference costs (Horowitz 2014). Spiking neural networks (SNNs) instead use sparse binary spikes to trigger computation on event-driven neuromorphic hardware (Davies et al. 2018; Roy, Jaiswal, and Panda 2019). This execution model is attractive for long generation, where sparse computation recurs across decoding steps. Recent work has extended SNNs from vision to language encoders and causal generators (Zhu et al. 2023; Lv et al. 2025; Bal and Sengupta 2024; Xing et al. 2024b,a; Guo et al. 2026; Zhou et al. 2026). Yet large generative SNNs remain difficult to train from scratch (Fang et al. 2021; Zheng et al. 2021). We therefore ask how to transfer a pretrained ANN language model into an SNN without losing language ability or sparse activity.

Existing ANN-to-SNN migration strategies directly inherit pretrained ANN weights and then calibrate or fine-tune the resulting SNN (Diehl et al. 2015; Rueckauer et al. 2017; Sengupta et al. 2019; Rathi et al. 2020; Deng and Gu 2021), introduce quantization-like spike representations for language models (Xing et al. 2024b), or transfer ANN knowledge through distillation (Hinton, Vinyals, and Dean 2015). This paper focuses on distillation-based ANN-to-SNN migration, where an ANN teacher supervises an SNN student on fixed corpus prefixes. For example, BiSpikCLM is a causal SNN trained by Spike-Aware Alignment Distillation (SpAD), which transfers embeddings, attention, features, and token targets from an ANN teacher (Guo et al. 2026). During autoregressive inference, the SNN instead conditions on self-generated prefixes, and one changed token can alter every later prefix. This prefix-source mismatch is related to exposure bias and learner-induced covariate shift (Bengio et al. 2015; Ross, Gordon, and Bagnell 2011). A generative SNN additionally exposes recurrent spiking dynamics beyond the cited dense-model formulations (Bellec et al. 2018).

We call the training-to-inference shift from corpus to self-generated prefixes prefix-source mismatch, related to exposure bias and learner-induced covariate shift (Bengio et al. 2015; Ross, Gordon, and Bagnell 2011). Paired-prefix controls isolate two manifestations under matched prompts, positions, and lengths: output-policy mismatch with the ANN teacher and internal spiking-dynamics drift. This gives our first question: RQ1: How does prefix-source mismatch manifest as output-policy mismatch and internal spiking-dynamics drift?

To mitigate both manifestations of prefix-source mismatch, a common choice is on-policy distillation (OPD), which continues teacher supervision on self-generated prefixes. We examine its teacher-only full-KL variant, Vanilla OPD. Because the policy being updated also generates its training prefixes, a large correction can redirect the next rollout and change the following training distribution. This feedback motivates controlling how each correction redirects later rollouts. This gives our second question: RQ2: Can Vanilla OPD

†^{\dagger}Corresponding author: yu_xingrui@a-star.edu.sg.

adapt without sustained degeneration of rollout statistics, which we call rollout-feedback collapse?

We answer both questions empirically. For RQ1, paired-prefix controls show two manifestations of prefix-source mismatch: greater output-policy mismatch with the ANN teacher and internal spiking-dynamics drift across spike rates, hidden states, and membrane potentials. A separate stress test answers RQ2: Vanilla OPD preserves early task accuracy before entering delayed rollout-feedback collapse. These results shape SpikeOPD. Full-KL teacher correction addresses output-policy mismatch, while layerwise spike regularization penalizes firing-rate deviations from a frozen reference SNN. The instability exposed by RQ2 motivates matched-prefix policy anchoring, which compares the active SNN and frozen reference SNN on the same self-generated prefixes to limit policy movement. Hidden-state and membrane-potential gaps remain diagnostics. Across eight tasks, SpikeOPD improves the corresponding KD SNN baselines by 0.8, 1.7, and 2.9 average points at 0.125B, 0.35B, and 1.3B. Our contributions are:

• Diagnostic findings. Paired-prefix diagnostics show that prefix-source mismatch manifests as output-policy mismatch and internal spiking-dynamics drift. Matched-seed stress tests further reveal delayed rollout-feedback collapse in Vanilla OPD.

• Stable on-policy distillation. We propose SpikeOPD, combining full-KL teacher correction, matched-prefix policy anchoring, and layerwise spike regularization over self-generated prefixes.

• Multi-scale validation. Across 0.125B, 0.35B, and 1.3B SNNs, SpikeOPD improves eight-task average accuracy by 0.8, 1.7, and 2.9 points, remains non-collapsed in all 10 matched-seed runs at 0.125B, and retains the analytical sparse-compute profile.