Speech language models do not read audio directly. They read discrete tokens produced by a speech tokenizer, a neural encoder that turns a waveform into a short sequence of codebook indices. The best tokenizers are hierarchical. A first codebook captures what was said, and later codebooks capture how it was said, such as speaker voice, prosody and room acoustics. That tokenizer is the piece that would run always-on, on a low-power device next to the microphone. Memristor crossbars are a natural fit for that setting. They are arrays of tiny resistive cells that store weights as analog conductances and compute matrix-vector products in place. Their catch is that every cell is noisy. The same programming pulse gives a slightly different conductance each time (cycle-to-cycle variation), and no two cells are alike (device-to-device variation). This note asks a question nobody has tested: when a hierarchical speech tokenizer runs on noisy memristor hardware, which part of the semantic–acoustic hierarchy breaks first, and can a fixed budget of memristor cells be split between the two streams so that both survive?
The central claim is that device noise will not hurt a hierarchical tokenizer uniformly. This follows from how residual vector quantization (RVQ) works. RVQ quantizes the encoder output with a first codebook, then quantizes what is left over with the next codebook, and so on. A wrong choice in the first, semantic codebook therefore changes the leftover signal that every later acoustic codebook sees. The hypothesis is that a large share of acoustic-token errors under device noise are cascaded from semantic-token flips rather than caused directly. If so, spending precision where the semantic decision is made, and running the acoustic residual on cheaper cells, should beat uniform noise-aware training at the same total cell count.
The opposite outcome is also possible. The research file's own gap analysis speculates that the dense acoustic residuals are the fragile part. The first experiment is built to tell these two cases apart before any allocation method is designed.
Prior work and what it leaves open
The only large-scale speech model evaluated on memristor hardware is Running Conventional Automatic Speech Recognition on Memristor Hardware: A Simulated Approach. It maps the linear layers of a 42-million-parameter Conformer speech recognizer onto the Synaptogen crossbar simulator, with signed weights stored as differential pairs of cells. Because post-training quantization at 3 bits collapses to 30.7% word error rate (WER), it relies on quantization-aware training (QAT), which exposes the model to low-precision, noisy weights during training. That paper supplies this proposal's method: its simulator, its differential mapping and its QAT recipe. It also sets the baseline to beat.
It treats every layer with the same precision, however, and its task is recognition with a single text output. There is no multi-codebook representation whose parts might tolerate noise differently.
On the speech side, SpeechTokenizer and HASRD build exactly the hierarchy studied here. SpeechTokenizer distills HuBERT's semantic layer into the first RVQ codebook and leaves timbre and acoustics to codebooks 2 through 8. HASRD refines the same split and shows that each stream alone is insufficient: semantic-only decoding sounds robotic, and acoustic-only decoding is unintelligible. These papers motivate the project, because they establish that the streams carry different information. Both assume exact floating-point execution.
StableToken is the closest robustness precedent. It shows that semantic tokens flip when small input perturbations push encoder outputs across a codebook decision boundary. It counters this with several parallel projection heads that take a bit-wise majority vote, cutting unit edit distance on noisy FLEURS from 26.17% to 10.17%. Its noise is environmental audio, not hardware. Its redundancy also multiplies the cost of the projection, which on a crossbar means multiplying cells. This proposal borrows its diagnosis (errors come from inputs lying near decision boundaries) and tests its remedy as a cell-matched competitor.
Finally, Transforming memristor noises into computational innovations argues that device noise can be put to use, for example as a physical source of randomness. This proposal does not pursue that line. A tokenizer's job is to be repeatable, so here the noise is something to contain.
Core Claim
For a hierarchical tokenizer on memristor crossbars, deployment robustness is governed by how close encoder outputs typically sit to the nearest competing codeword, measured relative to the output noise the hardware adds. The first codebook matters most because its errors propagate down the residual chain.
Let $z$ be the encoder output for a frame and $c_1, c_2$ the nearest and second-nearest codewords at some RVQ level. The decision margin is
$$m = \|z - c_2\|^2 - \|z - c_1\|^2.$$
A token flips when hardware noise with standard deviation $\sigma$ at the encoder output shrinks $m$ below zero. The expected flip rate should therefore track the fraction of frames with $m/\sigma$ below a threshold of order one. This follows from treating accumulated conductance noise as roughly Gaussian at the output, the regime in which the cited QAT results report tight error bars.
Two interventions follow. The first is margin-aware noisy training: QAT with simulated device noise, plus a hinge penalty on first-codebook frames whose $m/\sigma$ falls below a target. The second is sensitivity-based cell allocation: extra bit-slices or redundant copies go to the layers whose noise most increases token flips, under a hard cap on total memristor cells and converter resolution.
Research Program
The work starts with a diagnostic study. SpeechTokenizer and HASRD will be retrained on LibriSpeech following their published recipes. Every convolution will be rewritten as a matrix product, and every linear and convolutional layer will be mapped onto simulated crossbars in the style of the memristor ASR paper. The codebook nearest-neighbor search is itself a matrix product, so it will be placed on the crossbar in one condition and kept digital in another. Recurrent state and normalization stay digital, as in that paper.
For each of many simulated chips (independent device-to-device draws) and programming runs (cycle-to-cycle draws), the study records per-codebook flip rates against the floating-point reference tokens. Each flip at level $k$ is labeled as direct if levels $1$ to $k-1$ were unchanged, and as cascaded otherwise. This decomposition answers the central question without depending on any new method.
Next comes allocation. A per-layer sensitivity is estimated by injecting noise one layer at a time and measuring the resulting increase in semantic and acoustic flips. That sensitivity is used to distribute a fixed cell budget. The budget options are bit-slice depth between 3 and 8 bits, matching the range explored in the ASR paper, and one to three redundant copies averaged digitally. The result is compared against the uniform allocation that uses the same number of cells.
Finally, the margin penalty is added and its two ingredients are separated by ablation. The study also crosses device noise with StableToken's environmental noise conditions, because a real always-on device faces both at once.
Baselines
The naive reference point is post-training quantization of the float tokenizer onto the simulated crossbars, with no noise-aware training. Given the 30.7% WER collapse reported for 3-bit post-training quantization in the ASR paper, this is expected to show how bad things get without any mitigation. The float digital tokenizer serves as the ceiling.
The strongest existing method is uniform noise-aware QAT with differential-pair mapping, exactly as in the memristor ASR paper. On TED-LIUMv2 dev that paper reports 9.2 ± 0.12% WER at 3-bit weights on simulated memristors, against 7.2% unquantized. It is the strongest competitor because it is the only demonstrated recipe for keeping a deep speech model accurate on noisy crossbars. It will be run at every uniform bit depth and given the same data, training steps, simulator settings and hyperparameter search budget as the proposed method. The comparison is made at matched total cell count and converter bit-width.
For tokenizers themselves there is no reported result found on Lacuna for any speech tokenizer on memristor hardware. The digital reference points are HASRD's ViSQOL of 4.50 at 3.1 kbps and SpeechTokenizer's 4.26 at 6.0 kbps.
A cell-matched Voting-LFQ port of StableToken, using its released code at Tencent/StableToken, serves as the redundancy competitor. Its extra projection heads are charged against the same cell budget.
Two ablations isolate the key ingredients: allocation without the margin penalty, and the margin penalty under uniform allocation.
The proposal beats the baselines if, at the same cell budget, it lowers first-codebook flip rate and resynthesized WER, with the gap exceeding the chip-to-chip spread across seeds, while not reducing speaker similarity or ViSQOL. It also counts as a win if it matches uniform QAT's quality with measurably fewer cells.
Why not just…?
Why not just run uniform QAT at a higher bit depth? This is the real threat. The ASR paper shows WER flat at 8.3% from 5 to 8 bits, so enough uniform precision may make the whole question moot. The answer is to fix the budget. If uniform QAT at the budget-equivalent depth matches the allocated model, the allocation idea fails and the report will say so. The diagnostic study remains useful either way, because it tells hardware designers which layers actually need the precision.
Why not just quantize to INT4 on a digital accelerator? That is deterministic and removes the problem entirely, and nothing here disputes it for accuracy. The case for crossbars rests on energy and memory-traffic arguments made in the hardware literature, such as the 150× efficiency of the Bayesian prototype reported in the noise survey. Those figures are not re-measured here. INT4 digital is reported as a quality reference, and cell count and converter bits are reported as honest cost proxies rather than claimed energy savings.
Why not just use StableToken's voting everywhere? Voting directly targets boundary flips, but it multiplies projection cost by the number of branches. The cell-matched comparison shows whether spending that redundancy uniformly beats spending it only where sensitivity is high. StableToken also votes only on a single semantic stream, so it says nothing about the acoustic residuals.
Why not just keep the codebook lookup digital? This is cheap and removes noise from the nearest-codeword search. But if most flips originate in encoder noise, a digital lookup changes little. The analog-versus-digital lookup condition in the diagnostic study measures exactly this.
Proposed Experiments
Tokenizers are trained on LibriSpeech and evaluated on LibriSpeech test-clean. Robustness is also tested on the Codec-SUPERB protocol from Codec-SUPERB @ SLT 2024: Whisper WER on resynthesized audio, speaker-verification error rate, emotion accuracy and audio-event accuracy. That benchmark reports that its STOI intelligibility metric correlates above 0.8 with the downstream tasks, which makes it a reasonable proxy. Environmental noise conditions follow the FLEURS protocol of StableToken. Semantic usefulness is checked with a small recognizer trained on clean first-codebook tokens and tested on memristor-produced tokens. Every number is reported as mean and standard deviation over at least ten simulated chips.
The first decisive check is the direct-versus-cascaded decomposition. If cascaded flips dominate acoustic errors, the semantic chokepoint hypothesis holds. If direct acoustic flips dominate, allocation should favor the residual path, and the method adapts accordingly.
The second decisive check is whether flip rate tracks the fraction of low-margin frames across layers and bit depths, as the margin model predicts.
The third decisive check is the matched-budget comparison against uniform QAT. That comparison alone determines whether stream-aware allocation is worth building into hardware.
References
- Running Conventional Automatic Speech Recognition on Memristor Hardware: A Simulated Approach
- SpeechTokenizer: Unified Speech Tokenizer for Speech Language Models
- HASRD: Hierarchical Acoustic and Semantic Representation Disentanglement
- StableToken: A Noise-Robust Semantic Speech Tokenizer for Resilient SpeechLLMs
- Transforming memristor noises into computational innovations
- Codec-Superb @ SLT 2024: A Lightweight Benchmark For Neural Audio Codec Models