DF-PALM: Dynamic Fusion Prompt Learning for Audio--Language Models

Yulin Sun, Shenghua Li, Yong Dou, Xinwang Liu, Cheng Yang, Kele XuarXiv 2026 · arXiv

TL;DR

DF-PALM introduces a dynamic, feature-space prompting framework that adapts audio-language models to individual audio clips without re-running expensive encoders. By combining instance-conditioned class prompts with a novel asymmetric fusion mechanism, it significantly outperforms existing methods in few-shot audio classification while adding less than 1% to the computational cost.

What Problem Does This Paper Address?

Few-shot audio classification—identifying sounds from just a handful of examples—is notoriously difficult. Unlike images, which are relatively stable, audio signals are highly variable. A "dog bark" recorded in a quiet room sounds fundamentally different from one recorded on a busy street or from a distance.

Current state-of-the-art methods like PALM (Prompt Learning for Audio-Language Models) attempt to bridge the gap between audio and text by learning "prompts" in the feature space. However, PALM has two major limitations:

  1. Static Prompts: It uses the same learned class representations for every input, ignoring the specific acoustic context of a given recording.
  2. No Pre-scoring Refinement: It compares audio and text features directly for classification without allowing the class information to "refine" the audio representation first.

The challenge is to introduce this dynamic, input-aware adaptation without sacrificing the efficiency of using frozen, pre-trained encoders.

Methods

The authors propose DF-PALM (Dynamic Fusion PALM), which operates entirely in the feature space after the audio and text have been processed by their respective frozen encoders. The architecture consists of two primary novel components:

  • Instance-Level Dynamic Context Generator: Instead of using a fixed prompt for each class, this module takes the global audio feature and generates a small "residual" vector. This residual is added to the class prompts, effectively tailoring the class representations to the specific audio input. Crucially, this happens after text encoding, avoiding the need to pass gradients back through the heavy text encoder.
  • Asymmetric Cross-Modal Fusion: This is the "aha" architectural choice. The model uses a multi-layer cross-attention mechanism where the audio feature acts as the Query, and the conditioned class representations act as the Keys and Values.
Fig. 2. Overview of DF-PALM. (A) Frozen encoders produce global audio and base class representations; Mean Pool denotes the backbone’s aggregation into a global audio vector. (B) Meta Net denotes the dynamic context generator gϕ, and Dynamic Text Guidance denotes the conditioned class matrix T(x). Class-specific mixing follows Equation (4). (C) Asymmetric fusion refines the audio representation against this matrix. (D) Normalized similarity scoring uses the logit scale in Equation (9).

The fusion is "asymmetric" because the class matrix remains fixed across all fusion layers for a given input, while only the audio state is iteratively refined. This allows the model to "look" for class-specific cues within the audio signal before the final similarity scoring.

Datasets

The researchers evaluated DF-PALM across a diverse suite of 11 audio classification benchmarks, covering:

  • Acoustic Scenes: TUT2017
  • Sound Events: ESC-50, ESC50-Actions, UrbanSound8K, SESA
  • Speech Emotion/Vocalizations: CREMA-D, RAVDESS, VocalSound
  • Music/Instruments: Beijing-Opera, NS-Instruments, GT-Music-Genre

They primarily used PENGI as the frozen backbone but also validated their findings on LAION-CLAP and OpenFLAM to ensure the method generalizes across different model architectures.

Key Insights and Ideas

  • Feature-Space is the Place: By performing adaptation after encoding, DF-PALM avoids the massive computational overhead of "input-space" methods (like CoCoOp) that require re-encoding text for every new audio sample.
  • The Power of Asymmetry: Updating only the audio representation during fusion is key. It prevents the semantic meaning of the class prompts from drifting while allowing the audio feature to become more "class-aware" before the final comparison.
  • Efficiency Matters: Despite adding dynamic components, the inference cost (FLOPs) increases by only 0.39% compared to the static PALM baseline. This makes it highly practical for real-world deployment.
  • Robustness to "Shots": The performance gains are consistent whether you have 4, 8, 16, or 32 labeled examples per class, showing that the dynamic adaptation isn't just overfitting to small samples.
Fig. 3. Cross-benchmark performance across shot settings. Panels (a) and (b) show mean accuracy and Macro-F1 for four prompt-learning methods; panels (c) and (d) show paired DF-PALM-minus-PALM differences. Markers denote mean benchmark-level differences, error bars denote 95% bootstrap percentile intervals from 200,000 resamples, and dotted lines mark zero. Scores use fold and seed aggregation with equal benchmark weighting; 16-shot points reproduce the main experiment.

Key Results

In the standard 16-shot evaluation across all 11 benchmarks:

  • Accuracy: DF-PALM achieved a mean accuracy of 80.69%, a significant 4.11 percentage point improvement over the original PALM.
  • Macro-F1: It reached 80.32%, outperforming PALM by 4.30 points.
  • State-of-the-Art: It outperformed all evaluated baselines, including specialized few-shot methods like ProKeR and FS-AVG.
Bar chart showing DF-PALM achieving the highest mean accuracy and Macro-F1 across 11 benchmarks compared to baselines like CoCoOp, PALM, and ProKeR.

The method also proved robust across different backbones, showing consistent gains of 0.74 to 1.37 points on LAION-CLAP and OpenFLAM without any additional hyperparameter tuning.

Limitations and Future Work

While the paper demonstrates strong results, a few areas remain for exploration:

  • Task Scope: The current work focuses strictly on audio classification. Future research could investigate if this dynamic fusion approach benefits other tasks like audio captioning or audio-text retrieval.
  • Backbone Dependency: While tested on three backbones, the performance is still inherently tied to the quality of the underlying frozen encoders.
  • Class Scalability: The computational cost grows linearly with the number of classes. While efficient at 50 classes, extremely large-scale classification (thousands of classes) might require further optimization of the cross-attention mechanism.

Summary updated

Abstract

Few-shot audio classification requires audio--language models to distinguish variable acoustic events from limited labeled data. PALM's main formulation adapts encoded class representations without changing pretrained encoders, but its class representations remain input-independent and classification uses audio features without class-conditioned refinement. We introduce DF-PALM, a dynamic feature-space prompting framework that combines audio-conditioned class representations with asymmetric cross-attention for audio refinement. Class representations are conditioned after text encoding, held fixed across fusion layers for each input, and reused for final scoring. Both pretrained encoders remain frozen, avoiding audio-conditioned text-encoder passes. With PENGI as the frozen backbone, the main 16-shot evaluation covered 11 benchmarks and six baselines. DF-PALM achieved 80.69% mean accuracy and 80.32% macro-averaged F1, exceeding PALM by 4.11 and 4.30 percentage points, respectively. Paired benchmark-level tests supported both gains after Holm correction. Across four shot settings, DF-PALM achieved the highest mean accuracy and macro-averaged F1 among the four evaluated prompt-learning methods. The gains extended to LAION-CLAP and OpenFLAM, with significant improvements over PALM in both metrics. At 50 candidate classes, operator-counted inference floating-point operations increased by 0.39% relative to PALM. These results support instance-conditioned feature-space adaptation as an effective approach to few-shot audio classification. Our code is publicly available at GitHub https://github.com/sunyulin0421/DF-PALM.
BibTeX
@misc{sun2026df,
  author = {Yulin Sun and Shenghua Li and Yong Dou and Xinwang Liu and Cheng Yang and Kele Xu},
  title = {{DF-PALM: Dynamic Fusion Prompt Learning for Audio--Language Models}},
  year = {2026},
  eprint = {2610.24921},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.24921},
}

Loading related content...

Figure