TL;DR
PANAMA introduces an open-source active learning framework to train parametric guitar amplifier models—featuring fully functional virtual knobs—using a fraction of the usual data. By intelligently selecting just 75 knob configurations via gradient-based model disagreement, PANAMA matches the audio quality of state-of-the-art non-parametric modelers that only capture a single static snapshot.
What Problem Does This Paper Address?
Data-driven black-box amp modeling has taken the guitar world by storm, led by powerful open-source tools like Neural Amp Modeler (NAM). However, most open-source solutions only create "captures"—static snapshots of an amplifier at one specific knob setting.
While commercial alternatives offer parametric models where virtual knobs actually work, building them is a data-collection nightmare. Because the combination of knob settings grows exponentially with each added control (e.g., Gain, Bass, Middle, Treble), capturing enough data requires thousands of manual recordings or complex robotic knob-turning setups. PANAMA solves this bottleneck by using active learning to automatically find and record only the most informative knob configurations.
Methods
Instead of selecting data from a pre-existing pool, PANAMA operates in a continuous space of knob settings ($g \in [0,1]^k$) using an approach called Membership Query Synthesis.
The framework relies on a clever hybrid architecture and an iterative loop:
- The Ensemble: PANAMA trains an ensemble of four independent, fast-to-train LSTM models on the currently collected data.
- Disagreement Optimization: To find the next best knob settings to sample, the framework calculates a "cross-model disagreement" metric based on the variance of the ensemble's outputs across both raw waveforms and Mel-spectrogram domains.
- Gradient Propagation: Because the entire pipeline is differentiable, PANAMA propagates gradients from the disagreement metric directly back to the knob settings ($g$). This allows it to use gradient-based optimization (Adam) to pinpoint exactly which knob configurations cause the most confusion among the models.
- Data Collection: The system records the real amplifier's response at these high-disagreement settings, adds them to the dataset, and repeats the loop.
Once the active learning process finishes, a final, high-fidelity feedforward WaveNet model is trained on the optimized dataset to exploit the data for maximum audio quality.
Datasets
- Training Input: A fixed, roughly 3-minute guitar signal adapted from NAM.
- Evaluation/Testing: 30 minutes of guitar audio across various musical genres from the IDMT-SMT-GUITAR dataset.
- Ground Truth: Generated via a digital amp simulator configured with 6 virtual knobs: Gain, Bass, Mid, Treble, Master, and Presence. The models were evaluated against approximately 1,000 randomly sampled unseen knob configurations.
Key Insights and Ideas
- The Extremes Fallacy: Active learning naturally pushes toward extreme knob values (0.0 or 1.0), as shown in the distribution histogram below. However, when the authors tried a naive heuristic that simply sampled extreme values using a Beta distribution, it performed worse than purely random sampling. This proves that active learning's selection strategy is highly sophisticated and goes far beyond just picking edge cases.
- Architectural Synergy: LSTMs train exceptionally fast, making them perfect for the repetitive retraining cycles required during active learning. WaveNet is computationally heavier but superior at audio synthesis. Combining them yields a framework that is both fast to train and highly accurate.
Key Results
- Perceptual Parity: In MUSHRA listening tests, a PANAMA model trained on just 75 actively sampled configurations (
Ours-75) achieved results with no statistically significant difference from NAM, the leading non-parametric baseline.
- Quantitative Performance: The hybrid LSTM-WaveNet approach achieved a Test MSE of $1.61 \times 10^{-4}$ and a Mel-spectrogram loss of $2.55$, significantly outperforming setups that used only LSTMs or only WaveNets for both stages.
Limitations and Future Work
While highly promising, the ground truth data for this study was generated using a digital amp simulator rather than a physical tube amplifier. Testing the framework on physical hardware—where real-world noise, analog quirks, and manual recording constraints come into play—remains an important next step. Additionally, while the system scales beautifully to 6 knobs, extending it to complex multi-channel amplifiers or time-varying effects (like delay and modulation) will require further validation.
Summary updated