Speech enhancement and separation models that work directly on raw audio samples, rather than on spectrograms, avoid the phase-reconstruction artifacts of spectrogram pipelines. They are also the natural choice for hearing aids and other low-latency devices. Their weakness is cost. Audio arrives at 16,000 samples per second, so a model needs a very large receptive field (the span of past audio each output depends on) to hear enough context. Practitioners have so far bought that receptive field by hand: deeper dilated convolution stacks, larger dilation factors, or longer encoder strides. Automated architecture search for audio exists, but it has only searched spectrogram models and only optimized proxies like parameter counts and multiply-accumulates.
This note argues that on a microcontroller running in streaming mode, the receptive field is paid for mainly in on-chip memory, not arithmetic. Every dilated causal convolution must keep a ring buffer of past activations whose size grows with its dilation and channel width, at the frame rate of the stage it sits in. A state-space layer (a learned linear recurrence that carries a fixed-size hidden state forward in time) instead holds a constant-size state no matter how far back it "hears." We propose an architecture search for raw-waveform enhancement whose cost model is this exact streaming-memory accounting, together with measured on-device latency. The search space jointly chooses per-stage downsampling stride, an optional cheap anti-aliasing filter before each downsampling step, per-layer dilation, channel width, and whether each layer is a dilated convolution or a state-space block. The claim is that this search finds models that strictly dominate hand-scaled ones under a fixed SRAM and latency budget. It should do so by placing long-range context at low frame rates and in recurrent state, which proxy-driven search and uniform manual scaling cannot see.
Core Claim
The idea rests on one accounting identity that existing hardware-aware search ignores. Consider a causal streaming model whose stages run at frame rates set by cumulative strides. Its persistent memory, which must stay resident in SRAM between chunks, is approximately
$$M_{state} = \sum_{l \in \text{conv}} b\,(k_l - 1)\,d_l\,C_l \;+\; \sum_{l \in \text{ssm}} b\,N_l\,C_l \;+\; \sum_{s} b\,D_s\,C_s .$$
Here $b$ is bytes per activation, $k_l$, $d_l$ and $C_l$ are kernel size, dilation and channels of convolution layer $l$, $N_l$ is the state size of a recurrent layer, and $D_s$ is the number of frames a skip connection at stage $s$ must delay to stay aligned. The algorithmic latency is bounded below by the product of strides divided by the sample rate. A 16 ms budget at 16 kHz therefore caps total downsampling at 256 samples.
Two consequences follow. First, a fixed receptive field (in milliseconds) costs proportionally less buffer memory the deeper into the downsampling hierarchy it is placed. Second, a state-space layer decouples memory from context length, but on edge hardware it tends to be memory-bandwidth bound rather than arithmetic bound. Whether a convolution or a recurrence is cheaper therefore depends on the device and the budget, and it should be searched rather than assumed.
The "Extra-Dilation" trick from Scaling strategies for on-device low-complexity source separation with Conv-Tasnet shows why this matters. Raising the dilation base keeps FLOPs flat while restoring receptive field, which lifted a 4-block Conv-TasNet from 11.28 to 12.02 dB SI-SDR on Libri2Mix. In streaming mode, however, that larger dilation multiplies the ring-buffer cost. A proxy-driven search would score it as free.
Research Program
Search space. We build a causal waveform U-Net search space of the kind used in DEMUCS (Real Time Speech Enhancement in the Waveform Domain) and aTENNuate (Optimized Real-time Speech Enhancement with Deep SSMs on Raw Audio). The stage count ranges from three to six. Each stage independently chooses:
- a stride of 1, 2, 4 or 8;
- whether to precede downsampling with a short learned depthwise low-pass filter;
- a sequence of blocks, each either a dilated depthwise-separable convolution with a searched dilation or a diagonal state-space block with a searched state size;
- channel width.
Decoder stages are searched independently of the encoder. We take that idea from Conformer Space Neural Architecture Search for Multi-Task Audio Separation, which found asymmetric decoders beat symmetric ones in a spectrogram Conformer.
The anti-aliasing option responds directly to On TasNet for Low-Latency Single-Speaker Speech Enhancement. That paper showed that larger encoder hops collapse quality because the channel-wise separator decimates without band-limiting. Making that filter a searchable, costed option tests whether the collapse is a fixable design flaw rather than an inherent limit on stride.
Cost model. Peak SRAM is computed analytically. It combines the persistent state from the equation above with the largest transient activation within one chunk, both computed from the architecture encoding, so the memory term is exact and differentiable in the relaxed search. Latency per chunk is not assumed additive. The survey Hardware-Aware Neural Architecture Search: Survey and Taxonomy and the per-layer lookup tables of MoGA: Searching Beyond MobileNetV3 rely on additive tables, and SepMamba (SepMamba: State-space models for speaker separation using Mamba) reports that waveform models are memory bound, which is exactly where additive tables are expected to break. We therefore train a small regressor on a few hundred whole-network measurements on each target device. The model contains no learned latency term for memory, because memory is computed analytically.
Search algorithm. We reuse the bounded penalty $\sum_j \lambda_j \max(0, R_j - T_j)$ and the $\lambda$ scheduling of DUCCIO (Enhancing Neural Architecture Search with Multiple Hardware Constraints for Deep Learning Model Deployment on Tiny IoT Devices). Here $R_j$ is resource use and $T_j$ the budget for SRAM, flash and latency. Because the latency regressor is imperfect, we add the gradient projection of ConNAS (Constraint-guided Hardware-aware NAS through Gradient Modification). Whenever a measured candidate violates the latency budget, the projection steers the architecture parameters toward feasibility.
Both methods were developed for image and keyword classification. Our contribution is not a new search algorithm. It is the time-domain search space and the streaming-memory cost model, which these algorithms have never had.
Targets. We deploy on two devices: the GAP8 RISC-V chip used by DUCCIO, and an ARM Cortex-M class microcontroller with at most 512 kB SRAM. Two budget tiers are tested: 16 ms algorithmic latency at roughly 128 kB of state, and 32 ms at roughly 384 kB.
Baselines
Naive reference points. The weakest point is the unprocessed noisy input. On VoiceBank-DEMAND, SEGAN: Speech Enhancement Generative Adversarial Network reports CSIG 3.35, CBAK 2.44, segmental SNR 1.68 dB and COVL 2.63 for it. The second reference point is the smallest hand-scaled Conv-TasNet that fits each budget. The scaling study reports 7.64 dB SI-SDR on Libri2Mix for its 367K-parameter configuration with B=6, R=1, C=64.
Strongest hand-designed competitor. For enhancement this is aTENNuate, a hand-designed raw-waveform state-space hourglass network. It reports PESQ 3.27 on VoiceBank-DEMAND with 0.84M parameters and 0.33 GMACs per second, at 16 ms latency without its PreConv layer and 46.5 ms with it. For separation it is Extra-Dilation Conv-TasNet, at 12.02 dB SI-SDR on Libri2Mix with about 1.5M parameters.
Both models are retrained in causal streaming form with our training recipe, data and step count, then compiled with the same deployment toolchain on the same devices. No reported result on Lacuna gives microcontroller latency or peak SRAM for any time-domain enhancement model, so we measure these ourselves. Beating the baseline means being strictly better at a matched or lower measured budget. That is either a higher PESQ or SI-SDR at equal or lower peak SRAM and measured latency, or equal quality at substantially lower SRAM. We also report whether either hand-designed model fits the 128 kB tier at all.
Spectrogram search baseline. UL-UNAS (UL-UNAS: Ultra-Lightweight U-Nets for Real-Time Speech Enhancement via Network Architecture Search) is the closest existing audio search work. It reports PESQ 3.09 with 171k parameters and 35M MACs, using a reinforcement-learning controller guided by MACs over spectrogram U-Nets. It is deployed under identical budgets so that "time domain versus spectrogram" is compared on hardware rather than on MACs.
Ablations isolating the key ingredient. The first ablation runs the identical search space and algorithm, but the constraint is MACs plus parameters instead of streaming memory plus measured latency. The second is random search over the same space with the same number of trained candidates, filtered by our cost model; this checks that gains come from the space and cost model rather than the optimizer. The third removes, in turn, the state-space option and the anti-aliasing option.
Why not just…?
Why not just hand-scale Conv-TasNet with extra dilation, as the scaling study did? This is the most serious threat, because that study shows most of the quality loss from shrinking comes from lost receptive field, and extra dilation recovers most of it. Our argument is that it recovers receptive field at full frame rate, where every unit of dilation costs buffer memory. We settle this empirically. We re-measure the study's full $B$, $R$, $C$ grid, with and without extra dilation, under our streaming-memory metric on the same devices, and plot it against our Pareto front. If the hand-scaled points lie on our front, the search adds nothing, and we will report that.
Why not just run DUCCIO or ConNAS with ordinary FLOP and parameter constraints on a waveform space? That is exactly the MACs-constrained ablation. If the proxy-constrained search finds the same front once its winners are measured on device, then the streaming-memory model is unnecessary. The prediction is that proxy search over-selects high dilation at early stages and violates SRAM budgets once deployed. We can check this directly by counting budget violations among its selected models.
Why not just search over spectrograms, where vision search tools apply directly? The learned-encoder analysis in the TasNet low-latency paper reports 46% speaker overlap in the STFT domain versus 20% in the learned domain, and 16.0 dB versus 13.4 dB SI-SDR against an STFT U-Net. That is evidence, though not proof, that the waveform domain is worth its cost. Deploying UL-UNAS under identical device budgets tests this at the operating point that matters.
Why not just prune or distill aTENNuate? The scaling study found knowledge distillation gave no clear benefit for Conv-TasNet. Pruning channels cannot move context to a lower frame rate or swap a convolution for a recurrence, and those are the levers our cost model says dominate memory. We include a magnitude-pruned aTENNuate at each budget as an additional point.
Proposed Experiments
Enhancement and separation. Enhancement is trained and evaluated on VoiceBank-DEMAND and reports PESQ, CSIG, CBAK and COVL. Separation uses Libri2Mix with SI-SDR improvement, and WSJ0-2mix as a secondary check against the causal SepMamba figure of 21.4 dB SI-SNRi. That figure was obtained on GPU and is far outside microcontroller budgets, so it is context rather than a target. All quality numbers are paired with measured peak SRAM, flash use, per-chunk latency and energy on both devices.
Cost-model validation. The first decisive check is whether the cost model is right. We compare the analytic $M_{state}$ against measured resident memory, and compare the latency regressor against summed per-layer lookup tables. The test is rank correlation over a few hundred held-out architectures. If additive tables rank architectures as well as the regressor, Gap 3 in the research file is not real for these models, and we will drop the regressor.
Where context lives. The second check is whether the searched models place long-range context at low frame rates and in recurrent state, as the accounting predicts. We test this by tracking how receptive field and state-space usage are distributed across stages as the SRAM budget tightens.
Aliasing. The third check is whether selecting the anti-aliasing filter allows larger strides without the quality collapse the TasNet hop study observed. We test this by sweeping total stride with the filter forced on and forced off.
Overall outcome. The proposal succeeds only if the searched front dominates both the re-measured hand-scaled grid and the proxy-constrained search on at least one device and both tasks.
References
- Scaling strategies for on-device low-complexity source separation with Conv-Tasnet
- Real Time Speech Enhancement in the Waveform Domain
- Optimized Real-time Speech Enhancement with Deep SSMs on Raw Audio
- Conformer Space Neural Architecture Search for Multi-Task Audio Separation
- On TasNet for Low-Latency Single-Speaker Speech Enhancement
- Hardware-Aware Neural Architecture Search: Survey and Taxonomy
- MoGA: Searching Beyond Mobilenetv3
- SepMamba: State-Space Models for Speaker Separation Using Mamba
- Enhancing Neural Architecture Search With Multiple Hardware Constraints for Deep Learning Model Deployment on Tiny IoT Devices
- Constraint-guided Hardware-aware NAS through Gradient Modification
- SEGAN: Speech Enhancement Generative Adversarial Network
- UL-UNAS: Ultra-Lightweight U-Nets for Real-Time Speech Enhancement via Network Architecture Search