TL;DR
FxSearcher is a novel, gradient-free framework for text-driven audio transformation that uses Bayesian Optimization to navigate the parameter space of any standard audio effect (FX) chain. By incorporating a negative "guiding prompt" to penalize harsh artifacts, it bypasses the constraints of differentiable digital signal processing (DDSP) and delivers high-quality audio transformations that closely align with human preferences.
What Problem Does This Paper Address?
Text-driven audio transformation allows users to modify audio signals using natural language descriptions (e.g., "make this guitar sound like it's in a massive cathedral"). Current approaches generally fall into two categories, both with significant drawbacks:
- Black-box Neural Networks: These models offer wide transformation capabilities but lack interpretability and risk corrupting the original audio signal.
- Differentiable Digital Signal Processing (DDSP): These methods integrate audio effects directly into deep learning frameworks using gradient descent (e.g., Text2FX). However, they require every effect in the chain to be fully differentiable. This excludes complex, commercial-grade effects like bitcrushers, distortions, or advanced pitch shifters, severely limiting sonic diversity.
Other methods use Large Language Models (LLMs) to predict parameters, but they ignore the source audio entirely, operating purely on text.
FxSearcher bridges this gap by introducing a gradient-free optimization framework that can control any audio effect plugin, regardless of its differentiability, while keeping the source audio in the loop.
Methods
FxSearcher treats the audio production chain as a black-box function and optimizes its parameters iteratively without gradients.
- Bayesian Optimization (BO): The authors employ BO with a Gaussian Process (GP) surrogate model to efficiently navigate a 26-parameter space across six sequential, non-differentiable audio effects (Equalizer $\rightarrow$ Distortion $\rightarrow$ BitCrush $\rightarrow$ PitchShift $\rightarrow$ Delay $\rightarrow$ Reverb) provided by Spotify's Pedalboard library.
- Dual-Prompt Score Function: To evaluate how well a set of parameters matches the text prompt, the framework uses Contrastive Language-Audio Pretraining (CLAP) embeddings. Instead of simply maximizing similarity to the target text ($T_{target}$), the objective function subtracts the similarity to a negative guiding prompt ($T_{guide}$): $$S_{final}^{(t)} = S_{target}^{(t)} - S_{guide}^{(t)}$$ The guiding prompt explicitly describes undesirable artifacts: "A harsh, distorted, muddy, unclear, over-saturated, unpleasant sound." This acts as a crucial regularizer during the search.
Datasets
The framework was evaluated across two domains:
- Speech Domain: Audio samples drawn from the LibriSpeech corpus.
- Instrumental Domain: Audio samples drawn from a public Kaggle music instrument classification dataset.
- Prompts: A evaluation set of 150 text prompts was prepared. 120 prompts were automatically generated using GPT-based LLMs (60 for speech, 60 for instruments), and 30 were manually crafted by the researchers.
Key Insights and Ideas
- The "CLAP Gaming" Phenomenon: The authors discovered that optimizing purely for a target text prompt causes the optimizer to exploit the CLAP metric. It drives parameters to extreme values, yielding high semantic similarity scores on paper, but producing over-processed, unlistenable audio to human ears.
- Negative Prompts as Regularizers: Introducing the negative guiding prompt ($T_{guide}$) penalizes these extreme distortions. It acts as an acoustic stabilizer, smoothing out the loudness distribution and preserving the structural integrity of the original audio.
- Monotonic Improvement via FX Diversity: As more non-differentiable effects (like BitCrush and PitchShift) are appended to the chain, both CLAP and LLM-based evaluation scores consistently improve. A richer sonic palette gives the optimizer more degrees of freedom to find nuanced parameter combinations.
Key Results
- Human Evaluation (MOS): FxSearcher significantly outperformed existing baselines in Mean Opinion Score tests. On a 1–5 scale, FxSearcher achieved a 3.48 for speech (vs. 2.28 for Text2FX) and 3.46 for instruments (vs. 3.19 for Text2FX).
- Intelligibility & Quality: In ablation studies, removing the guiding prompt caused the Word Error Rate (WER) of transformed speech to spike from 37.5% to 53.0%, proving that the regularizer is essential for maintaining speech clarity.
- Computational Efficiency: FxSearcher averages 71.9 seconds per sample, making it nearly 3× faster than the gradient-based Text2FX (197.4 seconds), while operating at a comparable speed to text-only LLM approaches.
Limitations and Future Work
- Execution Speed: While faster than gradient-based optimization, taking ~72 seconds per sample prevents FxSearcher from being used for real-time, interactive audio editing applications.
- Fixed Chain Topology: The order of the audio effects is predetermined based on standard sound engineering conventions. The framework cannot dynamically reorder or swap out effects during the optimization process.
Summary updated