arXiv:2610.24921cs.SDOct 2026

Manuscript Offprint

arXiv:2610.24921

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

Yulin Sun, Shenghua Li, Yong Dou, Xinwang Liu, Cheng Yang, Kele Xu

Yulin Sun, Shenghua Li, Yong Dou, Xinwang Liu, Senior Member, IEEE, Cheng Yang, and Kele Xu, Senior Member, IEEE

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.

Index Terms—Audio-Language Models, Few-Shot Learning, Prompt Learning, Audio Classification, Cross-Modal Fusion.

I. INTRODUCTION

CONNECTING acoustic events with natural language is central to multimodal understanding [1]-[3]. Vision-Language Models have established strong correspondences between visual observations and semantic concepts [4]-[6]. Audio-Language Models (ALMs), by contrast, must align language with signals that unfold over time and vary markedly across recordings. Recordings of the same event can differ in source distance, background interference, and recording conditions [7]-[10]. This variability makes reliable audio-language alignment particularly difficult when only a few labeled examples are available.

Prompt learning adapts ALMs without fine-tuning the full backbone, using input-independent contexts or instance-conditioned prompts formed before text encoding [11]-[13].

Figure

Fig. 1. Cross-benchmark mean accuracy and Macro-F1 (%) of the five methods shown across 11 audio classification benchmarks in the main 16-shot setting. Stars mark the highest mean for each metric among the methods shown.

CoOp and CoCoOp optimize input prompts by propagating gradients through the text encoder while retaining its pretrained weights. The main PALM formulation instead adapts encoded text features with input-independent class representations. Acoustic variation motivates conditioning these representations on each input while retaining class-specific information. These prompt baselines classify audio features by similarity to class representations, without using class information to refine the audio features before scoring [11].

Pre-scoring audio-text interaction has been explored through parameter-free alignment and multi-grained correspondence learning [14], [15]. The question here is how to combine instance-conditioned class representations with audio refinement after text encoding while keeping pretrained encoders fixed.

We present DF-PALM (Dynamic Fusion Prompt Learning for Audio-Language Models), a dynamic feature-space prompt-learning framework for frozen ALMs. DF-PALM combines an Instance-Level Dynamic Context Generator with Asymmetric Cross-Modal Fusion. The first adds a shared audio-conditioned residual to class-specific contexts after text encoding. The second refines the audio representation against the conditioned class representations, which remain fixed across fusion layers for each input. This design combines instance conditioning with class-guided audio refinement in feature space, without requiring audio-conditioned text-encoder passes.

Our main contributions are as follows:

• DF-PALM couples post-encoding instance conditioning

All authors are with the College of Computer Science and Technology, National University of Defense Technology, Changsha, China. Yulin Sun, Yong Dou, Cheng Yang, and Kele Xu are also with the State Key Laboratory of Complex & Critical Software Environment (e-mail: sunyulin@nudt.edu.cn; lishenghua23@nudt.edu.cn; yongdou@nudt.edu.cn; xinwangliu@nudt.edu.cn; delpiero710@126.com; kele.xu@ieee.org).

Corresponding author: Kele Xu.

with class-guided audio refinement through a conditioned class matrix shared by fusion and final scoring, while keeping both pretrained encoders fixed.

  • Across 11 benchmarks in the main 16-shot setting, DF-PALM achieved the highest cross-benchmark mean accuracy and Macro-F1 among the evaluated methods (Appendix C; Fig. 1). It led the four evaluated prompt-learning methods on both metrics across all four shot settings. Capacity controls and evaluations on two additional backbones further supported the proposed feature-space design.

  • We quantify the computational cost of DF-PALM at both module and end-to-end levels, separating operator-counted FLOPs from measured latency and memory.

References (51)