Anti-aliasing of neural distortion effects via model fine tuning
Alistair Carson, Alec Wright, Stefan Bilbao
TL;DR
Neural distortion models often suffer aliasing when nonlinearity generates harmonics beyond the Nyquist limit. The paper introduces a teacher–student fine-tuning framework where a frozen teacher produces an alias-free target $\tilde{y}_{\rm teach}$ by removing non-harmonic components from $y_{\rm teach}=f(x, \theta_{\rm teach})$, and a student $y_{\rm stud}=f(x, \theta_{\rm stud})$ learns to reproduce this target by minimizing $\mathcal{L}=\mathrm{ESR}(y_{\rm stud}, \tilde{y}_{\rm teach})+\lambda\mathrm{NMR}(S_{\rm stud}, \tilde{S}_{\rm teach})$ with $\lambda=1$. The method applies a pre-emphasis low-pass filter and trains on synthetic sine tones to create aliasing-free supervision, enabling anti-aliasing in both open-weight LSTMs and TCNs as well as custom models trained on analog pedals. Objective results show significant aliasing reduction, often outperforming 2× oversampling, though harmonic content can shift depending on the model, with LSTMs typically providing the best balance between anti-aliasing and preserving analog-like harmonics. Perceptual tests indicate improved similarity to analog references for sine sweeps after fine-tuning, while guitar/bass signals may retain highest similarity when using LSTMs; overall, the approach offers a practical way to mitigate aliasing without runtime inefficiency. The work highlights a viable path to robust neural distortion models with improved perceptual fidelity and broad applicability to neural audio effects.
Abstract
Neural networks have become ubiquitous with guitar distortion effects modelling in recent years. Despite their ability to yield perceptually convincing models, they are susceptible to frequency aliasing when driven by high frequency and high gain inputs. Nonlinear activation functions create both the desired harmonic distortion and unwanted aliasing distortion as the bandwidth of the signal is expanded beyond the Nyquist frequency. Here, we present a method for reducing aliasing in neural models via a teacher-student fine tuning approach, where the teacher is a pre-trained model with its weights frozen, and the student is a copy of this with learnable parameters. The student is fine-tuned against an aliasing-free dataset generated by passing sinusoids through the original model and removing non-harmonic components from the output spectra. Our results show that this method significantly suppresses aliasing for both long-short-term-memory networks (LSTM) and temporal convolutional networks (TCN). In the majority of our case studies, the reduction in aliasing was greater than that achieved by two times oversampling. One side-effect of the proposed method is that harmonic distortion components are also affected. This adverse effect was found to be model-dependent, with the LSTM models giving the best balance between anti-aliasing and preserving the perceived similarity to an analog reference device.
