ERB-Domain Envelope Stage
- ERB-Domain Envelope Stage is a signal processing module that applies smooth, band-limited spectral gain modifications based on the human auditory system.
- It features a compact U-Net style architecture with separable convolutions and grouped GRUs to efficiently predict ERB-band gains.
- Integrated into deep filtering pipelines, it optimizes compressed spectral loss for low-complexity, real-time speech enhancement.
The ERB-domain envelope stage is a specialized signal processing module central to perceptually motivated speech enhancement systems such as DeepFilterNet. Its purpose is to apply smooth, band-limited spectral gain modifications to noisy audio, operating in a frequency decomposition aligned with the human auditory system’s critical bands. Specifically, it predicts and applies gain values on ERB (Equivalent Rectangular Bandwidth)–scaled frequency bands, facilitating effective envelope shaping with a compact, low-complexity neural architecture (Schröter et al., 2021).
1. ERB Frequency Decomposition and Feature Extraction
The ERB scale provides a perceptually meaningful linearization of the frequency axis, frequently used for auditory modeling. The ERB rate as a function of frequency (Hz) is defined as:
The instantaneous ERB bandwidth is
To construct the filter bank, the frequency interval is partitioned into contiguous intervals, each corresponding to an ERB band. Each band has a center frequency , calculated by inverting at uniformly spaced ERB-rate positions. For each band, all discrete STFT bins satisfying
are assigned to band 0, establishing a rectangular filter bank 1.
Given a time-frequency representation 2 (where 3 indexes the time frame), ERB-band log-power features are computed as:
4
A small constant 5 ensures numerical stability. Each ERB band undergoes per-band normalization via an exponential moving average over 61 s timescales before neural processing.
2. Envelope Subnetwork: Architecture and Gain Prediction
The ERB-domain envelope stage employs a neural network module with a compact U-Net–style architecture, with the following components:
- Encoder: Separable 2D convolutions (kernel 7 in time × ERB), 8 channels, batch normalization, ReLU activations, and 9 add-skip convolutions.
- Latent Pathway: Grouped linear layers and grouped GRUs (input split into 0 groups, each processed by a GRU of size 64, then shuffled and recombined).
- Decoder: Expands the representation back to 1 outputs.
The final output is a real-valued gain vector:
2
where values are clipped to 3 via nonlinearity for stability and interpretability.
3. Gain Application: Reconstruction of Full-Band Gain
The predicted ERB-band gains are distributed back to STFT bins through an inverse filter-bank (transpose of 4):
5
The gain-enhanced spectrogram is generated by element-wise multiplication:
6
A summary of the mapping flow is shown below.
| Stage | Input Dimension | Output Dimension |
|---|---|---|
| ERB feature extraction | 7 (noisy STFT) | 8 (ERB log-power, 9) |
| Envelope subnetwork | 0 | 1 (gains) |
| Gain application | 2 + 3 | 4 (enhanced STFT) |
All steps are designed for low computational overhead, allowing real-time execution.
4. Optimization and Training Objective
The ERB-domain envelope stage is not trained in isolation but receives gradients from a unified loss that integrates both the envelope and subsequent deep-filter stages. The principal objective is the compressed spectral loss:
5
where 6 compresses magnitudes to match perceptual loudness scaling. Here, 7 denotes the system output, 8 the clean reference, and 9 the phase.
When trained in attenuation-limited mode, 0 is clamped so the minimum SNR is preserved, avoiding over-suppression.
5. Algorithmic Workflow and Implementation Details
The algorithmic sequence for the ERB-domain envelope stage consists of:
- Acquisition of a block of waveform audio 1.
- STFT computation: 2, with configurable 3 and 50% overlap.
- ERB filter bank application and log-power feature computation: 4.
- Normalization of 5 via exponential moving average.
- Envelope network inference to predict 6.
- Reconstruction of per-bin gains 7 via the inverse filter bank.
- Application of 8 to 9 for the enhanced envelope STFT 0.
- Output 1 passed to the subsequent deep-filter stage for periodic/harmonic enhancement.
Key implementation specifications:
- 2.
- STFT window lengths 3 samples (5–30 ms at 48 kHz).
- Model size of the envelope stage: 40.88 M parameters (full network: 51.78 M).
- Multiply–accumulate count: 6250 M MAC/s for envelope stage; 70.35 G MAC/s total.
- All convolutions in the envelope stage are causal post-initial look-ahead of 8 frames (adds latency~2x frame-shift).
- Efficiency is further improved by fusing batch norm with convolutions, using separable convolutions, and leveraging grouped linear and GRU layers; no exotic operations are employed.
6. Significance and Limitations
The ERB-domain envelope stage is a critical component for imposing perceptually meaningful spectral shaping while maintaining a low parameter count and low computational burden. By restricting gain prediction to ERB bands, the system achieves robust smoothing and reduction of artifacts, particularly under resource-limited constraints or real-time needs. There is no separate loss on the envelope stage; all parameter updates serve the joint objective of maximizing spectral fidelity post all stages (Schröter et al., 2021).
A plausible implication is that this envelope stage’s operation aligns enhancement with human auditory perception, especially for background noise reduction and intelligibility, but fine periodic structure must be restored by following harmonic enhancement modules. The envelope stage’s flexibility (by adjusting 9, window sizes, and normalization) also offers adaptability across deployment scenarios.
7. Related Methodological Context
The ERB-domain envelope stage forms only one part of DeepFilterNet’s two-stage architecture; subsequent deep filtering modules operate on the periodic elements preserved and clarified by the envelope enhancement. The use of ERB-domain gains is a direct response to the limitations of conventional full-band or sub-band masking, providing improved perceptual quality and efficiency. No separate stage-loss or hand-tuned SNR heuristics are required, as all learning is integrated under the compressed spectral loss. This approach exemplifies the trend in deep speech enhancement of tightly coupling perceptual modeling and computational efficiency (Schröter et al., 2021).