Confining Analog Compute Errors to the Band the Network Is Inventing

Speech bandwidth extension is the task of turning muffled telephone-quality speech, which only contains frequencies up to about 4 kHz, into fuller "wideband" speech by predicting the missing upper frequencies from the ones that are present. Neural models do this well, but they are too expensive for the devices that would benefit most, such as earbuds, hearing aids, and always-on voice front ends. On those devices the cost is mostly not the arithmetic. It is moving millions of weights from memory to the processor for every audio frame. Compute-in-memory chips remove that cost by doing the multiply-accumulate inside the memory array itself. They pay for this with analog noise, conductance drift, and coarse analog-to-digital converters (ADCs) that read out the partial sums. On image classifiers that noise is catastrophic unless the network is retrained around it.

Our proposal rests on a structural fact about bandwidth extension that classifiers lack. The low band is already known, and the network only has to invent the high band, where listeners are known to forgive fine-detail errors. We propose to build the extension network so that it never touches the low band. The input baseband passes through bit-exact, and the network's output is high-pass filtered before it is added. Then we spend analog precision unevenly. The few outputs that set the loudness and shape of the high-band envelope get accurate readout. The bulk of the computation, which generates high-band fine structure, runs on comparator-only, ADC-less readout. The claim we test is that this "band-confined, perceptually allocated" design keeps most of the energy savings of the cheapest compute-in-memory readout while staying perceptually close to a floating-point model. A uniformly hardware-aware model at the same energy should not.

Core Claim and What Is New

Nobody in the file has run bandwidth extension, or any audio-rate generative network, on compute-in-memory. Every hardware demonstration targets text or image classification: ALBERT on a phase-change memory chip (Demonstration of transformer-based ALBERT model on a 14nm analog AI inference chip), SRAM processing-in-memory on CIFAR (PIM-QAT), ternary-partial-sum readout on ResNets (HCiM), and LSTMs on memristor crossbars for gait and airline-passenger series (Long short-term memory networks in memristor crossbar arrays).

The obvious next paper would take a bandwidth extension network, apply hardware-aware noise-injection training, and report scores. We think that is a weaker contribution, because it treats audio as one more task. Our proposal does something those papers cannot. In a classifier, every output depends on every analog error. In bandwidth extension we can give an architectural guarantee about where errors are allowed to land, and then match readout precision to perceptual sensitivity.

Two lines of prior work motivate the design. First, hybrid reconstruction, which keeps the baseband unmodified and adds only synthesized high band, was introduced to protect speaker identity (Artificial bandwidth extension for speech signals using speech recogniton). We reuse it for a different reason: it makes the low band immune to hardware noise. Second, listening tests show that pitch-aligned high-band harmonics give no significant gain over simple spectral folding, which mirrors the low-band spectrum upward (The effect of highband harmonic structure in the artificial bandwidth expansion of telephone speech; Quality improvement of telephone speech by artificial bandwidth expansion - listening tests in three languages). We read this as evidence that fine structure is a cheap place to absorb error.

That same evidence also constrains us. It says nothing about envelope errors or about broadband readout noise, which may sound like hiss or clicks rather than misplaced harmonics. Envelope accuracy is the part we keep precise, and whether ternary noise in the fine-structure path is audible is the central empirical question, not an assumption.

Research Program

The model is a two-branch causal network derived from the two-stage design of A Two-Stage Approach to Speech Bandwidth Extension. That model first predicts high-band log-magnitude spectra with a dilated temporal convolutional network (a 1D convolution stack whose gaps between taps grow layer by layer, giving a long view of past audio with few weights), then refines the waveform with a Wave-U-Net. We restructure it into two parts. An envelope head outputs a small number of high-band sub-band gains per 16 ms frame. A fine-structure generator produces a unit-energy high-band excitation that the gains shape. The output is high-pass filtered above the telephone cutoff and summed with the upsampled, untouched input. We will also build a causal, streaming variant at the latency of Streaming SEANet (Real-time Speech Frequency Bandwidth Extension), so that results apply to telephony.

Hardware is modeled in simulation, layer by layer, with three effects. Partial-sum quantization follows the effective-number-of-bits and thermal-noise model of PIM-QAT. Comparator-only binary or ternary readout with digital scale factors follows HCiM. Phase-change memory programming noise and drift over time follow the ALBERT chip study. Every weight sits on an array once and stays there, so there is no weight traffic.

Each layer is assigned a readout precision. We compare three policies. The uniform policy uses the same ADC bits everywhere. The perceptual policy uses higher-bit readout for the envelope head and ternary readout for the fine-structure generator. The learned policy chooses per-layer bit-widths under an energy budget, using a loss that combines multi-resolution spectral error with a high-band envelope error term. Training is hardware-aware in all cases, with noise injection and the PIM-QAT straight-through estimators, so that the only difference between policies is where precision goes.

Energy is reported with an analytical model. It counts ADC conversions by bit-width, comparator operations, array activations, and, for digital baselines, weight bytes fetched from off-chip memory. Constants come from published circuit papers. We will not claim chip-measured energy. The HCiM reductions (28× against 7-bit and 12× against 4-bit ADC baselines) are context for scale, not predictions for our network.

Baselines

The do-nothing reference is the narrowband input upsampled to 16 kHz with no high band. Every metric must improve on it, and it fixes the floor for the downstream speech-recognition test.

The classical reference is spectral folding with an envelope estimated by a small digital model, as in source-filter bandwidth extension (Synthesizing High Frequency Audio from Low Bandwidth Signals). This baseline is run at full digital precision. It is the strongest low-cost competitor because the harmonic-structure listening tests suggest folding is perceptually adequate for fine structure.

The strongest neural reference is the two-stage temporal-convolution model of Lin et al. (A Two-Stage Approach to Speech Bandwidth Extension). It reports wideband PESQ of 4.08 on the Valentini corpus with about 2.7M parameters. On LibriSpeech it reports a word error rate of 12.67%, falling to 11.29% with multi-style training, against an 11.19% oracle wideband rate. We retrain it at floating point on our exact data split and use it as the quality ceiling. We will also run the same model INT8-quantized on a digital pipeline, with weight-fetch energy counted. Streaming SEANet is included as the causal reference. For it, no reported PESQ or LSD on Valentini was found on Lacuna; the paper reports only that MUSHRA ratings were "nearly indistinguishable" from ground truth and a 1.5 ms per-frame cost on a mobile CPU.

The key compute-in-memory baseline is the same two-branch model under the uniform policy with full hardware-aware training. It mirrors what the ALBERT and PIM-QAT papers would do for this task. All compute-in-memory variants share data, training steps, hyperparameter search budget, and noise models. Beating this baseline means one of two things. Either the perceptual policy matches its quality, within MUSHRA confidence intervals and with no PESQ drop beyond run-to-run spread, at clearly lower modeled energy. Or it gives higher quality at equal energy.

Two ablations isolate the ingredients. Removing the baseband pass-through, so the network outputs the full band, tests whether confining errors to the high band matters. Swapping the policies, with ternary readout on the envelope and precise readout on the fine structure, tests whether the allocation follows perception rather than parameter count.

Why not just…?

Why not just use spectral folding with a tiny envelope model on a microcontroller? This is the most serious threat. If the envelope model fits in on-chip SRAM, there is no memory wall to solve, and the listening-test evidence says folding handles fine structure acceptably. We address it directly. Folding plus envelope is a full baseline, and we also run it on compute-in-memory. Lin et al.'s downstream recognition results, a word error rate of 12.67% for their neural model against 18.27% for a weaker Wave-U-Net, suggest that model quality matters for machine listeners, but they do not test folding. If folding plus a sub-100k-parameter envelope model matches the neural ceiling on PESQ, log-spectral distance, word error rate, and MUSHRA, we will report that the memory wall is not binding for 16 kHz extension. We would then move the compute-in-memory question to 48 kHz fullband extension, where vocoder-style generators (Audiodec; Diffusion Generative Vocoder for Fullband Speech Synthesis Based on Weak Third-order SDE Solver) are far larger.

Why not just run an INT8 model on an edge CPU or neural accelerator? Streaming SEANet already runs in real time on a phone core, so latency is not the problem; the energy budget of a hearable is. We compare against the INT8 digital pipeline with off-chip weight fetches counted. We report the crossover model size at which weight movement starts to dominate, so readers can see where digital deployment remains the better choice.

Why not just apply standard hardware-aware training uniformly, as was done for ALBERT? That is exactly our uniform-policy baseline under an identical training budget. If it matches the perceptual policy at equal energy, our allocation idea is wrong. The perceptual allocation is only worth proposing if it beats this baseline.

Proposed Experiments

All models train on the Valentini-Botinhao corpus for 8 kHz to 16 kHz extension. We report wideband PESQ, log-spectral distance computed separately on the high band and the full band, and LibriSpeech word error rate from a fixed wideband recognizer, compared against the published 11.19% oracle. A MUSHRA test is reserved for the float ceiling, uniform and perceptual policies at matched energy, folding plus envelope, and the no-pass-through ablation. Each condition is swept across ADC bit-widths and simulated drift from zero to 30 days, with and without digital drift compensation, giving quality-versus-energy curves.

Three results decide the question. First, with pass-through, does ternary readout in the fine-structure generator cost less than one MUSHRA confidence interval relative to float? Second, without pass-through, does the same noise produce measurable low-band degradation and higher word error rate? Third, does the perceptual policy sit strictly above the uniform policy's quality-energy curve? If the first fails, the psychoacoustic argument does not extend to readout noise. If the second fails, pass-through is not the mechanism. If the third fails, the gain comes only from hardware-aware training, and the contribution shrinks to a benchmark.