arXiv:2610.41381cs.SDOct 2026

Manuscript Offprint

arXiv:2610.41381

From prediction error to sparse events: Biologically inspired signed-dyadic coding for Mandarin keyword spotting

Zijian Zhou, Rui Liu, Rongxiang Nie, Rui Ma, Ziyao Zhang, Xin Du

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

Abstract

In continuous spiking keyword spotting, temporally correlated acoustic frames can repeatedly trigger memory access and neural computation at a dense input interface, even when hidden activity is sparse. Predictive processing and sensory adaptation suggest retaining predictable input locally and responding selectively to deviations. Inspired by this mechanism, we propose Predictive Signed-Dyadic Coding (PG). PG maintains a local prediction for each input channel and transmits an event only when the residual exceeds a learned threshold. Each event carries a sign and a finite power-of-two magnitude, and the receiver reconstructs it with fixed-point shifts and additions. In Mandarin keyword spotting, INPUT-PG reaches 90.00% accuracy while reducing mean SRAM reads by 33.87% and inference cycles by 32.77%. PG provides a hardware interface for research on low-power continuous speech processing and event-based sensory systems.

1 Introduction

Continuous keyword spotting processes an acoustic stream one frame at a time under tight energy and latency budgets. Adjacent log-mel frames are temporally correlated, but a dense input interface still transfers every frame and repeatedly triggers memory access and downstream computation. The input interface therefore adds work even when hidden activity is sparse. Biological predictive processing, efficient coding, and sensory adaptation describe related mechanisms in which a system maintains an internal estimate, attenuates predictable input, and responds selectively to deviations [1, 2, 7, 8, 16, 21]. We translate this mechanism into a local-state encoder that preserves predictable content and transmits significant mismatches.

Existing event encoders expose different trade-offs. Rate coding represents amplitude through repeated events over a time window, and TTFS coding represents it through spike latency [13, 17]. Delta-style encoding uses changes from a reference state, but applying the same operation to already thresholded hidden spikes can create events for both rising and falling transitions. The placement of an event code therefore matters as much as the code itself.

We propose Predictive Signed-Dyadic Coding (PG), a trainable lossy event code for the acoustic input. PG maintains a local prediction for each channel, computes the residual from the current frame, and emits an event only when the residual crosses a learned threshold. Each event carries a sign and a magnitude selected from a finite dyadic alphabet. The receiving datapath reconstructs each update with fixed-point comparisons, shifts, and additions, yielding a multiplier-free interface.

We evaluate Mandarin keyword spotting with three deployment schemes. DIRECT encodes every input frame, INPUT-PG applies PG only at the acoustic input, and ALL-PG applies PG at the input and hidden boundaries. On 720 test clips, INPUT-PG reaches 90.00% accuracy while reducing mean SRAM reads by 33.87% and inference cycles by 32.77%. A routed evaluation on one fixed clip reports a 39.49% reduction in incremental inference energy, excluding weight loading. Software workload is evaluated over 720 test clips, whereas routed energy is evaluated on one fixed clip.

The resulting study identifies selective input prediction as the useful deployment point for this task. It connects temporal redundancy in acoustic frames with measurable reductions in memory traffic and execution work, and provides a hardware interface for low-power continuous speech processing and event-based sensory systems.

Figure

Figure 1. Predictive signed-dyadic coding and its interface with keyword classification. PG maintains a shared prediction, transmits thresholded signed-dyadic residuals, and reconstructs the input before the Deep-SNN. Temporal aggregation produces the keyword scores.

Our contributions are the following.

  1. Predictive Signed-Dyadic Coding (PG), a trainable lossy event code that maintains a local prediction, suppresses predictable input, and represents threshold-crossing residuals with a finite signed-dyadic alphabet for fixed-point reconstruction;

  2. A selective placement principle for predictive event coding, evaluated through DIRECT, INPUT-PG, and ALL-PG across a feedforward Deep-SNN and a causal LIF-TCN. The comparison shows why prediction is useful where temporal redundancy remains, whereas coding an already thresholded hidden stream can add workload.

  3. A 720-clip integer evaluation that jointly measures task accuracy, input activity, SRAM reads, and inference cycles. INPUT-PG reaches 90.00% accuracy and reduces mean SRAM reads and inference cycles by 33.87% and 32.77%.

  4. A routed Sky130HD evaluation that measures a 39.49% reduction in incremental inference energy for one fixed hardware clip, excluding weight loading. Software accuracy and workload are evaluated separately over 720 test clips.