Abstract
Recurrent neural networks (RNNs) have demonstrated impressive results for virtual analog modeling of audio effects. These networks process time-domain audio signals using a series of matrix multiplication and nonlinear activation functions to emulate the behavior of the target device accurately. To additionally model the effect of the knobs for an RNN-based model, existing approaches integrate control parameters by concatenating them channel-wisely with some intermediate representation of the input signal. While this method is parameter-efficient, there is room to further improve the quality of generated audio because the concatenation-based conditioning method has limited capacity in modulating signals. In this paper, we propose three novel conditioning mechanisms for RNNs, tailored for black-box virtual analog modeling. These advanced conditioning mechanisms modulate the model based on control parameters, yielding superior results to existing RNN- and CNN-based architectures across various evaluation metrics.
Introduction
Virtual Analog (VA) modeling aims to create digital replicas of vintage analog hardware. Recurrent Neural Networks (RNNs) are popular for this task because they process audio sample-by-sample with low latency. However, a significant challenge remains in modeling the "knobs" or control parameters (e.g., Gain, Threshold). Most current RNN models handle these parameters by simple concatenation with the audio input. This paper argues that concatenation lacks the capacity to represent the complex, non-linear ways physical circuits respond to parameter changes, often resulting in "mushy" transients and reduced fidelity.
Proposed Conditioning Mechanisms
We propose three advanced conditioning mechanisms that move beyond simple concatenation to modulate the network's internal behavior:
- FiLM-RNN (Feature-wise Linear Modulation): A secondary network predicts scaling and shifting factors applied to the internal features of the main RNN, acting as a dynamic volume and offset control for internal neurons.
- StaticHyper-RNN: A hypernetwork (Multi-Layer Perceptron) takes knob settings and generates the entire weight matrix for the main RNN. This is highly efficient as weights are generated once per knob setting.
- DynamicHyper-RNN: A small "hyper-RNN" generates weights for the "main-RNN" at every single time step. This allows the model to adapt dynamically to the evolving audio signal, mimicking time-varying systems like compressors.
Experimental Setup
The models were evaluated on two distinct audio effects: the Teletronix LA-2A optical compressor and the Boss OD-3 Overdrive pedal. For the OD-3, the authors recorded and released a new dataset consisting of 150 minutes of audio across 25 knob combinations.
Beyond standard L1 and STFT metrics, we introduced a new Transient Metric based on Transient Modeling Synthesis (TMS). This allows for the mathematical isolation of sharp attacks (e.g., drum hits) to evaluate how much detail is lost during processing.
Key Results
In nearly every test, the hypernetwork-based models outperformed the standard concatenation baseline. For the Boss OD-3, the DynamicHyper-GRU achieved the lowest error across L1, STFT, and Loudness (LUFS) metrics. For the LA-2A compressor, the DynamicHyper-GRU was the clear winner, effectively capturing the complex timing and non-linearities of the optical compression circuit.
Computational efficiency was a standout finding. The StaticHyper-GRU required only 0.003 GFLOPs, making it approximately 100 times faster than the standard concatenation approach (0.325 GFLOPs) while providing superior audio quality. This efficiency stems from pre-calculating weights once per knob setting rather than performing extra operations at every sample.
Discussion and Limitations
Despite these advancements, all models showed increased error in the high-frequency spectrum, likely due to digital aliasing or the difficulty RNNs face with fast oscillations. Additionally, some models introduced a slight DC offset. Future work will focus on optimizing these architectures for real-time use as VST plugins within Digital Audio Workstations (DAWs).
Summary updated