Manuscript Offprint
arXiv:2610.24921DF-PALM: Dynamic Fusion Prompt Learning for Audio--Language Models
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].

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.
A. Audio-Language Representation Learning
Audio-Language Models (ALMs) learn shared representations that connect acoustic signals with natural-language descriptions [16], [17]. Contrastive models such as AudioCLIP [8] and CLAP [7], [18] align global audio and text embeddings for zero-shot transfer. Generative ALMs such as PENGI [19] connect audio encoders to pretrained language models through prefixes, adapters, or related interfaces [20], [21].
Despite their broad transfer capabilities, adapting ALMs to data-scarce downstream tasks can still require substantial optimization. This has motivated approaches that adapt pretrained representations without updating the full backbone [22], [23].
B. Prompt Learning in Multimodal Models
Prompt learning adapts pretrained models through learnable context parameters rather than full-backbone updates [24], [25]. Initially developed for natural-language models [26], [27], this approach was subsequently extended to multimodal architectures.
In vision-language models, CoOp [12] replaces handcrafted prompts with learnable but input-independent context vectors. CoCoOp [13] introduces instance conditioning by generating context vectors from visual features. Because CoCoOp's conditioned prompts are formed before text encoding, their optimization requires gradients to pass through the text encoder. Other developments include multi-modal prompt learning [28] and prompt distribution learning [29].
PALM [11] brings prompt learning to ALMs by optimizing encoded text features rather than input tokens. This design moves learnable adaptation into feature space and leaves the text-encoder parameters unchanged, with input-independent class representations in its main formulation. PALM's ablations also explore audio feedback to encoded text features. DF-PALM builds on this feature-space setting by coupling instance-conditioned class representations with audio refinement against a class matrix held fixed across fusion layers and reused for final scoring.
TABLE I COMPARISON OF PROMPT-LEARNING PARADIGMS. LEARNED INDICATES WHETHER PROMPT CONTEXT IS OPTIMIZED; OPT. SPACE DENOTES THE OPTIMIZATION SPACE. STATIC/DYNAMIC INDICATE WHETHER CONTEXT DEPENDS ON THE CURRENT AUDIO INPUT. TIMES WERE MEASURED IN THE MATCHED ESC-50 8-SHOT SETTING.
| Method | Learned | Opt. Space | Context | Time |
|---|---|---|---|---|
| Zero-Shot | ✕ | N/A | Manual | N/A |
| CoOp | ✓ | Input | Static | 1 h 28 min |
| CoCoOp | ✓ | Input | Dynamic | 5 h 51 min |
| PALM | ✓ | Feature | Static | 1 h 24 min |
| DF-PALM | ✓ | Feature | Dynamic | 1 h 27 min |
C. Cross-Modal Alignment and Parameter-Efficient Adaptation
Fusion encoders learn interactions between modalities before prediction [30]–[33], and audio–language methods also introduce alignment after pretraining. PAT selects and weights textual prompts and uses text-guided frame-level audio reweighting to improve zero-shot classification without additional trainable parameters [14]. Zhao et al. learn multi-grained audio–text correspondences using a key-value cache, cross-modal contrast, and optimal transport for few-shot audio recognition [15]. DF-PALM learns instance conditioning and asymmetric fusion directly from global audio vectors and encoded class names, retaining both pretrained encoders.
Parameter-efficient adaptation also includes inserted adapters [22] and low-rank adaptation (LoRA), which learns low-rank updates to pretrained weight matrices [34]. The three-stage ASPL* variant introduces affine modulation within the audio encoder and combines it with text-side prompt learning [35]. These approaches modify encoder processing through inserted modules or weight updates. DF-PALM places its trainable conditioning and fusion modules after the pretrained encoders, operating on their output representations.
Support-set adaptation provides a further approach to few-shot classification using frozen representations. ProKeR combines a zero-shot predictor with support information through kernel adaptation [36], whereas FS-AVG averages support audio embeddings into class prototypes [37]. We evaluate both methods with the same PENGI backbone used by DF-PALM.
For the selected configurations in the matched ESC-50 8-shot setting, DF-PALM required 1 h 27 min of training, compared with 5 h 51 min for CoCoOp and 1 h 24 min for PALM (Table I).
III. METHODOLOGY
DF-PALM first conditions encoded class representations on each audio input and then uses them to refine the corresponding audio representation (Fig. 2). All trainable adaptation operates in feature space, while the pretrained audio and text encoders remain fixed.
A. Problem Formulation
Let denote a labeled audio dataset, where is an audio waveform and is its class label. We instantiate DF-PALM with the pretrained
A. Inputs & Frozen Backbones
B. Instance-Level Dynamic Context Generator
D. Prediction Score

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 , and Dynamic Text Guidance denotes the conditioned class matrix . 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).
PENGI audio–language backbone, comprising a frozen audio encoder and a frozen text encoder [19].
For an input , the audio encoder produces a global representation . The encoder includes the backbone's pooling and projection, so the context generator receives one global vector per waveform. For class , the fixed input is its unmodified class-name string, specified in Appendix A. Its base class representation is :
For each forward batch, the frozen text encoder computes the base class representations once and shares them across samples in the batch.
Following PALM [11], feature-space prompt learning associates each class with a trainable context vector . A learnable scalar determines the class-specific mixing coefficient . Static feature-space prompting forms
Both and , however, remain independent of the audio input.
B. Instance-Level Dynamic Context Generation
The Instance-Level Dynamic Context Generator conditions the feature-space context on the global audio representation. A bottleneck network predicts an input-dependent residual:
where denotes ReLU. We use and , with a reduction ratio of . The bottleneck reduces the hidden width from to .
The residual is shared across classes and added to each class-specific context vector:
Each conditioned class representation combines the shared audio-dependent residual with its class-specific context vector and mixing coefficient . Class-specific mixing and L2 normalization determine how this residual changes each class representation. The shared context generator provides instance conditioning with a parameter count independent of the number of classes. Conditioning follows text encoding and requires no audio-conditioned text-encoder pass; the text-encoder parameters remain frozen.
C. Asymmetric Cross-Modal Fusion
The instance-conditioned class representations are stacked as
Let . At fusion layer , the current audio state forms a single query token, while provides the keys and values:
where denotes multi-head cross-attention [38]. A post-norm residual update gives
For each input, the conditioned class matrix remains fixed across fusion layers while the audio state is refined.
Each layer uses this matrix as its key and value input and updates only the audio state. This direction of updating defines the asymmetric structure. During training, the classification loss optimizes the context and fusion parameters through this computation.
D. Prediction and Optimization
For sample , let denote the conditioned representation of class , and let denote the corresponding refined audio representation. The class logit is
where denotes the inner product and is the fixed logit scale used in the implementation. Because both representations are L2-normalized, the inner product is equivalent to cosine similarity.
For a mini-batch of size B, the cross-entropy objective is
Training optimizes the class-specific prompt parameters , the context generator , and the cross-attention layers, while the pretrained audio and text encoders remain frozen. Algorithm 1 summarizes the batch forward pass; the dynamic class representations are constructed separately for each audio input.
E. Design Rationale and Complexity
a) Asymmetric update: Instance conditioning first adapts the class representations to the input. Asymmetric fusion then refines the audio state against the same class matrix used for final scoring, separating class conditioning from audio refinement. Section IV-G evaluates the contribution of audio refinement and compares this design with joint self-attention.
b) Computational complexity: We characterize the incremental computational cost of the adaptation modules beyond the frozen backbone. The context generator requires operations per input, followed by operations to construct the instance-conditioned class representations. At each fusion layer, attention scoring and value aggregation require operations. Including the query, key, value, and output projections, the fusion cost is
For fixed d and L, this cost grows linearly with the number of classes. The C-dependent terms correspond to constructing and attending over the class matrix, which is the behavior isolated by the module-level scalability profile in Section IV-I.
IV. EXPERIMENTS
The main evaluation used PENGI's pretrained encoders for sequence-level classification across 11 audio classification benchmarks. The autoregressive decoder was excluded from prediction and the reported parameter counts. The experiments assessed performance across acoustic tasks and shot
Algorithm 1 Batch forward pass of DF-PALM
Input: Audio mini-batch ; fixed class-prompt batch ; frozen encoders
Parameter: Context generator ; prompt parameters ; L fusion layers; fixed logit scale
Output: Logit matrix
1: Compute representations shared across the mini-batch 2: 3: for do 4: 5: 6: end for 7: 8: for do 9: 10: 11: for do 12: 13: 14: end for 15: 16: 17: for do 18: 19: 20: 21: end for 22: for do 23: 24: end for 25: end for 26: return S
settings, component contributions, configuration sensitivity, and computational cost. Comparisons covered prompt learning, support-set kernel adaptation (ProKeR), and training-free audio-prototype adaptation (FS-AVG). An additional 16-shot evaluation with LAION-CLAP and OpenFLAM assessed whether the mean gains extended across audio-language backbones.
A. Datasets and Evaluation Metrics
The 11 benchmarks covered acoustic scenes, sound events, speech emotion, musical instruments, and music genres, with 4–50 classes. We followed the PALM partition protocols with disjoint support and test samples. Benchmark specifications and split protocols are given in Appendix A.
We report classification accuracy and macro-averaged F1 score (Macro-F1) [39]. Macro-F1 is the unweighted mean of class-wise F1 scores and was computed identically for all methods. Scores were averaged across folds within each seed and then across the three matched seeds within each benchmark. Cross-benchmark aggregates weight all 11 benchmarks equally, and paired tests use one aggregated value per benchmark.
TABLE II
COMPLETE ACCURACY RESULTS (%) ACROSS 11 AUDIO CLASSIFICATION BENCHMARKS IN THE MAIN 16-SHOT SETTING. ZERO-SHOT USES NO SUPPORT SAMPLES; FS-AVG AND PROKER REQUIRE NO GRADIENT-BASED TRAINING. S-0–S-2 DENOTE MATCHED SEEDS, INCLUDING SUPPORT SUBSETS, AND AVG DENOTES THEIR MEAN. FOLDED BENCHMARKS ARE AVERAGED WITHIN EACH SEED; AVERAGE IS THE UNWEIGHTED CROSS-BENCHMARK MEAN. BOLD MARKS THE HIGHEST MEAN ACROSS ALL SEVEN METHODS IN EACH ROW.
Panel A: Zero-Shot and Input-Space Prompt Learning
| Benchmark | Zero-Shot | CoOp | CoCoOp | ||||||
|---|---|---|---|---|---|---|---|---|---|
| S-0 | S-1 | S-2 | AVG | S-0 | S-1 | S-2 | AVG | ||
| Beijing-Opera | 28.81 | 93.23 | 96.60 | 96.19 | 95.34 | 95.77 | 98.30 | 99.16 | 97.74 |
| CREMA-D | 23.10 | 31.30 | 41.97 | 27.60 | 33.62 | 25.39 | 33.58 | 31.56 | 30.18 |
| ESC50-Actions | 65.25 | 96.25 | 94.00 | 95.50 | 95.25 | 96.31 | 96.20 | 96.48 | 96.33 |
| ESC-50 | 49.65 | 94.10 | 93.90 | 93.45 | 93.82 | 94.60 | 93.70 | 94.50 | 94.27 |
| GT-Music-Genre | 32.50 | 72.50 | 69.50 | 73.50 | 71.83 | 75.00 | 74.50 | 76.00 | 75.17 |
| NS-Instruments | 32.91 | 57.28 | 55.62 | 61.77 | 58.22 | 59.96 | 57.40 | 64.38 | 60.58 |
| RAVDESS | 12.22 | 38.49 | 26.88 | 34.22 | 33.20 | 37.27 | 43.99 | 35.23 | 38.83 |
| SESA | 72.38 | 91.43 | 89.52 | 87.62 | 89.52 | 83.81 | 87.62 | 89.52 | 86.98 |
| TUT2017 | 24.35 | 63.91 | 66.67 | 65.25 | 65.28 | 74.99 | 72.15 | 73.12 | 73.42 |
| UrbanSound8K | 53.49 | 76.00 | 73.78 | 76.66 | 75.48 | 75.76 | 77.84 | 75.97 | 76.52 |
| VocalSound | 41.97 | 71.62 | 74.85 | 66.42 | 70.96 | 80.81 | 78.25 | 74.63 | 77.90 |
| AVERAGE | 39.69 | 71.46 | 71.21 | 70.74 | 71.14 | 72.70 | 73.96 | 73.69 | 73.45 |
Panel B: Support-Set and Feature-Space Adaptation
| Benchmark | FS-AVG (PENGI) | ProKeR (PENGI) | PALM | DF-PALM (Ours) | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| S-0 | S-1 | S-2 | AVG | S-0 | S-1 | S-2 | AVG | S-0 | S-1 | S-2 | AVG | S-0 | S-1 | S-2 | AVG | |
| Beijing-Opera | 99.58 | 100.00 | 100.00 | 94.93 | 95.32 | 97.46 | 95.90 | 97.47 | 90.66 | 97.87 | 95.33 | 98.74 | 100.00 | 100.00 | 99.58 | |
| CREMA-D | 38.62 | 44.66 | 26.73 | 36.67 | 40.16 | 35.66 | 39.29 | 38.37 | 44.53 | 35.80 | 23.44 | 34.59 | 44.06 | 43.05 | 39.15 | 42.09 |
| ESC50-Actions | 98.75 | 99.25 | 98.75 | 98.92 | 98.25 | 99.50 | 97.75 | 98.50 | 97.00 | 96.25 | 96.50 | 96.58 | 98.50 | 99.25 | 99.25 | 99.00 |
| ESC-50 | 96.90 | 97.05 | 97.10 | 97.02 | 97.15 | 96.85 | 96.70 | 96.90 | 95.60 | 96.00 | 96.20 | 95.93 | 97.40 | 96.95 | 97.20 | 97.18 |
| GT-Music-Genre | 78.50 | 80.50 | 78.50 | 79.17 | 79.50 | 78.00 | 78.50 | 78.67 | 79.00 | 78.50 | 82.50 | 80.00 | 79.50 | 81.50 | 82.50 | 81.17 |
| NS-Instruments | 64.55 | 64.72 | 66.89 | 65.39 | 69.46 | 74.27 | 73.78 | 63.94 | 61.08 | 66.48 | 63.83 | 67.94 | 72.63 | 73.95 | 71.51 | |
| RAVDESS | 31.57 | 34.62 | 32.18 | 32.79 | 41.55 | 43.38 | 47.25 | 44.06 | 45.62 | 46.03 | 46.23 | 45.96 | 47.05 | 49.08 | 50.92 | 49.02 |
| SESA | 90.48 | 94.29 | 86.67 | 90.48 | 93.33 | 94.29 | 91.43 | 93.02 | 88.57 | 91.43 | 88.57 | 89.52 | 91.43 | 96.19 | 94.29 | 93.97 |
| TUT2017 | 68.62 | 68.08 | 67.08 | 67.93 | 80.04 | 81.37 | 80.79 | 80.73 | 79.59 | 80.47 | 77.29 | 79.12 | 84.37 | 84.82 | 83.93 | 84.37 |
| UrbanSound8K | 85.73 | 86.55 | 86.90 | 86.39 | 85.39 | 86.68 | 86.15 | 81.20 | 80.37 | 80.74 | 80.77 | 85.68 | 86.42 | 85.73 | 85.94 | |
| VocalSound | 82.23 | 81.12 | 82.65 | 82.00 | 83.18 | 85.24 | 86.52 | 81.01 | 81.68 | 79.64 | 80.78 | 83.68 | 83.32 | 84.29 | 83.76 | |
| AVERAGE | 75.96 | 77.35 | 74.86 | 76.06 | 78.54 | 79.02 | 79.65 | 79.07 | 77.59 | 76.21 | 75.95 | 76.58 | 79.85 | 81.20 | 81.02 | 80.69 |
TABLE III
PAIRED 16-SHOT COMPARISON BETWEEN DF-PALM AND PALM ACROSS 11 BENCHMARKS. MEANS WEIGHT BENCHMARKS EQUALLY AFTER FOLD AND SEED AGGREGATION. △ (PERCENTAGE POINTS) AND 95% BOOTSTRAP PERCENTILE INTERVALS USE BENCHMARK-LEVEL DF-PALM MINUS PALM DIFFERENCES. DENOTES HOLM-ADJUSTED EXACT TWO-SIDED WILCOXON SIGNED-RANK p-VALUES.
| Metric | PALM | DF-PALM | Δ [95% CI] | |
|---|---|---|---|---|
| Accuracy | 76.58 | 80.69 | +4.11 [2.90, 5.37] | |
| Macro-F1 | 76.02 | 80.32 | +4.30 [2.99, 5.67] |
B. Baselines
We compared DF-PALM with six baselines spanning zero-shot inference, prompt learning, kernel adaptation, and prototype adaptation. For CoOp and CoCoOp, we replaced the image encoder with PENGI's audio encoder while retaining their prompt-learning procedures.
Zero-Shot [19] uses the template “This is a recording of {CLASS}”. CoOp [12] learns input-independent context tokens before text encoding, whereas CoCoOp [13] conditions them on each audio input. PALM [11] optimizes input-independent class representations after text encoding and is the principal feature-space baseline.
ProKeR (PENGI) applies the ProKeR kernel formulation [36] to frozen PENGI audio and class-text embeddings. FS-AVG (PENGI) [37] averages the 16-shot audio embeddings within each class and classifies by cosine similarity between normalized queries and prototypes, without text embeddings, gradients, or trainable parameters.
C. Implementation Details
The main evaluation used frozen PENGI encoders and 16 support examples per class. All methods used identical class-wise support subsets. DF-PALM selected its fusion configuration independently within each support set; ProKeR selected its kernel configuration within those supports. Full split and selection protocols are given in Appendices A and B.
All few-shot methods used seeds 0, 1, and 2. DF-PALM retained each run's 16-shot-selected configuration for the other shot settings. Optimization and implementation details are given in Appendix B.
CoOp
CoCoOp
PALM
DF-PALM
(a)

(b)
(c)
(d)
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 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.
TABLE IV CAPACITY AND ADAPTATION CONTROLS IN THE 16-SHOT SETTING (%). ALL METHODS USE THE SAME TRAINING SETTINGS. VALUES ARE UNWEIGHTED MEANS ACROSS 11 BENCHMARKS.
| Method | Adaptation space | Dynamic class representation | Cross-modal fusion | Trainable parameters | Acc. | Macro-F1 |
|---|---|---|---|---|---|---|
| PALM | Encoder output | No | No | Prompt only | 76.58 | 76.02 |
| Linear Probe | Frozen audio output | No | No | Linear head | 77.29 | 76.38 |
| Static-PALM+MLP | Encoder output | No | No | 12.60M audio MLP | 79.47 | 79.11 |
| PALM+Audio-LoRA | Audio encoder internal | No | No | 141,312 LoRA + prompt | 79.27 | 78.93 |
| PALM+ASPL* | Audio encoder internal | No | No | 704 ASPL + prompt | 75.57 | 75.08 |
| DF-PALM | Encoder output | Yes | Yes | 12.78M | 80.69 | 80.32 |
D. Main Results
In the 16-shot PENGI evaluation, DF-PALM achieved the highest cross-benchmark mean accuracy (80.69%) and Macro-F1 (80.32%) among the evaluated methods. Table II reports the complete Accuracy results; Table IX in Appendix C reports the complete Macro-F1 results. ProKeR achieved 79.07% accuracy and 78.30% Macro-F1, whereas FS-AVG achieved 76.06% and 75.41%, respectively. DF-PALM led both metrics on seven benchmarks spanning speech emotion, environmental and action sounds, music, surveillance events, and acoustic scenes.
DF-PALM increased cross-benchmark mean accuracy and Macro-F1 over PALM by 4.11 and 4.30 percentage points, respectively (Table III). Both bootstrap percentile intervals excluded zero, and the exact two-sided Wilcoxon signed-rank tests remained significant after Holm correction (both ).
On the full 11-benchmark suite, DF-PALM increased mean Macro-F1 over ProKeR by +2.02 points (95% CI, [0.74, 3.35]; ), a significant difference after Holm correction. The mean Accuracy difference was +1.62 points (95% CI, [0.43, 2.84]; ). Excluding ESC50-Actions yielded a Macro-F1 gain of 2.17 percentage points over ProKeR (; Appendix D).
Against FS-AVG, DF-PALM improved Accuracy by +4.64 points (95% CI, [1.49, 8.43]; ) and Macro-F1 by +4.91 points (95% CI, [1.63, 8.85]; ). At the benchmark level, DF-PALM won 8 of 11 paired Accuracy comparisons and 9 of 11 paired Macro-F1 comparisons against ProKeR, and 9 of 11 comparisons on both metrics against FS-AVG. Appendix D specifies the paired-testing protocol and benchmark-level inputs.
Across all 11 leave-one-benchmark-out omissions, DF-PALM improved mean Accuracy over PALM by 3.75–4.40 percentage points and mean Macro-F1 by 3.87–4.62 points. Excluding ESC50-Actions yielded gains of 4.28 and 4.48 points, respectively (Table X). Appendix D reports paired statistics for this subset-omission analysis.
Table IV evaluates DF-PALM against a linear probe, a static output-space MLP, and an encoder-internal LoRA control. All methods were trained and evaluated under the same training settings. DF-PALM exceeded Static-PALM+MLP and PALM+Audio-LoRA by 1.22 and 1.42 accuracy points, and 1.21 and 1.39 Macro-F1 points, respectively. DF-PALM's gains over Static-PALM+MLP and PALM+Audio-LoRA were significant for both metrics after Holm correction. These comparisons support the combination of instance conditioning and class-guided audio refinement over the evaluated static output-space and encoder-internal adaptation controls.
PALM+ASPL* extends the encoder-internal controls with stage-wise audio modulation [35]. DF-PALM exceeded PALM+ASPL* by 5.12 percentage points in accuracy and 5.24 points in Macro-F1 under the PALM training configuration.

Fig. 4. Cross-benchmark internal-validation performance across cross-attention depth and head count in the 16-shot setting. Scores summarize four-fold support-set validation, aggregated across dataset folds and seeds with equal benchmark weighting. Configuration selection is performed independently within each support set. The left and right panels show mean accuracy and Macro-F1, respectively. Red outlines mark , , selected in every independent run.
TABLE V CROSS-BACKBONE COMPARISON AT 16 SHOTS. SCORES ARE UNWEIGHTED MEANS ACROSS 11 BENCHMARKS (%). DIFFERENCES AND 95% BOOTSTRAP INTERVALS ARE PERCENTAGE POINTS. HOLM CORRECTION COVERS ALL FOUR TESTS.
| Metric | PALM | DF-PALM | Δ | 95% CI | |
|---|---|---|---|---|---|
| LAION-CLAP | |||||
| Accuracy | 75.50 | 76.87 | +1.37 | [0.71, 1.98] | 0.0098 |
| Macro-F1 | 75.13 | 76.48 | +1.35 | [0.82, 1.87] | 0.0088 |
| OpenFLAM | |||||
| Accuracy | 76.94 | 77.83 | +0.90 | [0.55, 1.31] | 0.0078 |
| Macro-F1 | 76.88 | 77.62 | +0.74 | [0.43, 1.08] | 0.0098 |
TABLE VI CROSS-BENCHMARK COMPONENT ABLATIONS AND FUSION CONTROL (%).
| Method Variant | Mean Accuracy | Macro-F1 |
|---|---|---|
| PALM (Baseline) | 76.58 | 76.02 |
| Dynamic Context only | 79.27 | 78.72 |
| Asymmetric Fusion only | 78.89 | 78.46 |
| Joint Attention | 78.31 | 76.83 |
| DF-PALM (Full) | 80.69 | 80.32 |
E. Cross-Backbone Transfer
At 16 shots, DF-PALM improved mean Accuracy and Macro-F1 over PALM across the same 11 benchmarks on all three evaluated audio–language backbones. On LAION-CLAP [18], DF-PALM increased the mean Accuracy and Macro-F1 by 1.37 and 1.35 percentage points, respectively (Table V). The corresponding gains on OpenFLAM [40] were 0.90 and 0.74 points. All four paired comparisons remained significant after joint Holm correction. Appendix E reports the benchmark-level differences.
F. Performance across Shot Settings
Across training examples per class, DF-PALM achieved the highest cross-benchmark mean accuracy and Macro-F1 among the four prompt-learning methods (Fig. 3). DF-PALM retained each run's 16-shot-selected configuration across shot settings; denotes the number of examples per class used for final training. Its paired gains over
TABLE VII END-TO-END INFERENCE RESOURCE PROFILE AT AND A BATCH SIZE OF ONE ON AN NVIDIA A40 GPU.
| Method | Params (M) Total | FLOPs (G) | Latency (ms) Mean ± SD | Memory (MB) |
|---|---|---|---|---|
| PALM | 98.216 | 165.348 | 448.26 | |
| DF-PALM | 110.950 | 165.990 | 497.40 |
PALM ranged from 0.63 to 4.11 percentage points in accuracy and from 0.72 to 4.30 points in Macro-F1. All 95% bootstrap percentile intervals excluded zero. Benchmark-level results for the additional settings are reported in Appendix F.
G. Ablation Studies
Both components improved on PALM, and their combination achieved the highest mean scores. Relative to PALM, Dynamic Context alone increased cross-benchmark mean accuracy from 76.58% to 79.27% and Macro-F1 from 76.02% to 78.72% (Table VI). Asymmetric Cross-Modal Fusion alone achieved 78.89% and 78.46%, respectively. Relative to Dynamic Context alone, the full model increased mean accuracy and Macro-F1 by 1.42 and 1.60 percentage points, to 80.69% and 80.32%, respectively. The corresponding 95% bootstrap percentile intervals were [0.64, 2.34] and [0.70, 2.70]. Both paired tests remained significant after Holm correction (both ).
Relative to Dynamic Context alone, the full model improved Accuracy on 9 of 11 benchmarks and Macro-F1 on 10 of 11 benchmarks. These results support combining instance-conditioned class representations with class-guided audio refinement, which provides gains beyond conditioning alone.
The joint self-attention control (Table VI) retained the dynamic context generator and matched the fusion depth and head count. It applied self-attention to the audio and class tokens, updating both representations. DF-PALM exceeded this control by 2.38 percentage points in mean Accuracy and 3.48 points in Macro-F1. The paired 95% intervals were [-0.18, 5.80] and [0.46, 7.19], with Holm-adjusted values of 0.278 and 0.037, respectively. Holm correction supported the Macro-F1 gain. Appendix D reports the benchmark-level inputs.

Fig. 5. Module-level scaling on an NVIDIA RTX 4090 GPU: (a) median latency and (b) peak allocated memory. The frozen PENGI backbone was excluded.
H. Hyperparameter Selection and Sensitivity
In the main 16-shot setting, we selected the cross-attention depth L and number of heads H independently within each matched support set. The mean validation Accuracy across the four internal folds determined each selection; all selections yielded . Cross-benchmark aggregation of validation scores summarizes configuration sensitivity. Across the evaluated configurations, mean validation Accuracy and Macro-F1 varied by 0.43 and 0.40 percentage points, respectively (Fig. 4). Validation performance therefore varied little across the evaluated depth and head configurations. The full candidate grid and retraining procedure are given in Appendix B.
I. Computational Cost and Scalability
We measured end-to-end inference cost at and module-level scaling over . Measurement scopes and parameter counts are given in Appendix G.
At , DF-PALM required ms per sample, compared with ms for PALM (Table VII). Relative to PALM, operator-counted FLOPs increased by 0.642 GFLOPs (0.39%), latency by 2.44 ms (approximately 9.5%), and peak allocated memory by 49.14 MB (10.96%).
With the frozen backbone excluded, module-level latency changed little across the evaluated class counts (Fig. 5). At , DF-PALM required 1.224 ms and 72.2 MB per sample, corresponding to differences of 1.084 ms and 52.391 MB relative to PALM. The complete measurement protocols are given in Appendix G.
V. CONCLUSION
DF-PALM combines audio-conditioned feature-space prompts with cross-attention that refines audio representations against fixed, instance-conditioned class representations. Both pretrained encoders remain frozen, confining trainable adaptation to feature space. Across 11 benchmarks using PENGI in the 16-shot setting, DF-PALM achieved the highest mean accuracy and Macro-F1 among the evaluated methods, exceeding PALM by 4.11 percentage points in mean accuracy. It also led the four evaluated prompt-learning methods on both metrics across all four shot settings. DF-PALM improved the cross-benchmark means of both metrics over PALM on all three evaluated audio-language backbones.
These results support instance-conditioned feature-space adaptation as an effective approach to few-shot audio classification. At , DF-PALM required 28.00 ms per sample on an NVIDIA A40 GPU, with a 0.39% increase in operator-counted FLOPs relative to PALM. Module-level latency changed little across the evaluated class counts.
APPENDIX A DATASET SPECIFICATIONS AND TEXT INPUTS
The evaluation uses Beijing-Opera [41], CREMA-D [42], ESC50-Actions and ESC-50 [43], GT-Music-Genre [44], NS-Instruments [45], RAVDESS [46], SESA [47], TUT2017 [48], UrbanSound8K [49], and VocalSound [50]. Table VIII specifies class counts and evaluation splits. Fold-based benchmarks draw supports from the non-test folds; other benchmarks use the baseline's archived training and test partitions. Support and test samples are disjoint. ESC50-Actions is the ten-class human-sound subset of ESC-50 used in PALM [11]. Both benchmarks use the baseline split files without modification.
Class-name strings are loaded unchanged from the classname field and sorted alphabetically. PALM and DF-PALM encode these strings directly as ; CoOp and CoCoOp prepend learned context tokens. Zero-Shot and ProKeR use the fixed template specified in the baseline descriptions, whereas FS-AVG uses no text representations.
APPENDIX B IMPLEMENTATION AND BASELINE ADAPTATION
A. Learned Adaptation
DF-PALM uses a bottleneck reduction ratio of 16 and attention dropout of 0.1. Context vectors use zero-mean normal initialization with standard deviation 0.02; mixing parameters are initialized uniformly on before the sigmoid. CoOp and CoCoOp use 16 context tokens. Training and evaluation batch sizes are 16 and 128. Learned methods use cross-entropy and SGD with initial learning rate 0.05, momentum 0.9, and no weight decay. Evaluation uses the epoch-50 model without checkpoint selection and matched seeds 0, 1, and 2.
The linear probe trains a linear classifier on frozen PENGI audio features. Static-PALM+MLP retains PALM's input-independent class representations and uses a three-layer residual audio MLP with approximately 12.60 million trainable parameters. PALM+Audio-LoRA retains the static class representations and adapts the 12 HTSAT [51] audio-encoder QKV projections with rank-r = 8 factors, scaling , and zero dropout. The 141,312 LoRA parameters are optimized together with the PALM prompt parameters; base encoder
TABLE VIII CHARACTERISTICS AND EVALUATION SPLIT STRUCTURE OF THE 11 BENCHMARKS. YEAR DENOTES THE PUBLICATION YEAR OF THE BENCHMARK REFERENCE CITED IN THIS PAPER; CV DENOTES CROSS-VALIDATION.
| Benchmark | Year | Domain/task | Classes | Split protocol |
|---|---|---|---|---|
| Instrument and Music Classification | ||||
| Beijing-Opera | 2014 | Instrument recognition | 4 | 5-fold CV |
| NS-Instruments | 2017 | Instrument recognition | 10 | Archived train/test |
| GT-Music-Genre | 2012 | Music genre classification | 10 | Archived train/test |
| Environmental, Urban, and Event Audio | ||||
| ESC-50 | 2015 | Environmental sound classification | 50 | 5-fold CV |
| ESC50-Actions | 2015 | Human sound-event classification | 10 | 5-fold CV |
| UrbanSound8K | 2014 | Urban sound classification | 10 | 10-fold CV |
| TUT2017 | 2017 | Acoustic scene classification | 15 | 4-fold CV |
| SESA | 2019 | Surveillance sound-event classification | 4 | Archived train/test |
| Speech Emotion and Human Vocalizations | ||||
| CREMA-D | 2014 | Speech emotion recognition | 6 | Archived train/test |
| RAVDESS | 2018 | Speech emotion recognition | 8 | Archived train/test |
| VocalSound | 2022 | Human vocalization classification | 6 | Archived train/test |
TABLE IX COMPLETE MEAN MACRO-F1 RESULTS (%) IN THE MAIN 16-SHOT SETTING. MEANS AVERAGE FOLDS WITHIN EACH SEED AND THEN THREE MATCHED SEEDS. AVERAGE WEIGHTS BENCHMARKS EQUALLY; BOLD MARKS THE HIGHEST MEAN IN EACH ROW.
| Benchmark | Zero-Shot | CoOp | CoCoOp | FS-AVG | ProKeR | PALM | DF-PALM |
|---|---|---|---|---|---|---|---|
| Beijing-Opera | 13.21 | 95.21 | 97.63 | 95.98 | 95.23 | 99.56 | |
| CREMA-D | 17.20 | 25.81 | 26.00 | 29.81 | 31.16 | 27.83 | 35.61 |
| ESC50-Actions | 61.38 | 95.13 | 96.57 | 98.91 | 98.46 | 96.54 | |
| ESC-50 | 44.78 | 93.68 | 94.10 | 96.92 | 96.76 | 95.83 | |
| GT-Music-Genre | 28.07 | 70.93 | 74.74 | 79.55 | 78.15 | 80.20 | |
| NS-Instruments | 26.00 | 59.25 | 61.52 | 66.79 | 64.38 | 72.88 | |
| RAVDESS | 7.71 | 30.43 | 38.07 | 31.83 | 43.52 | 45.46 | |
| SESA | 68.27 | 88.81 | 86.98 | 89.33 | 92.71 | 89.86 | |
| TUT2017 | 17.95 | 64.40 | 73.06 | 67.79 | 79.99 | 78.95 | |
| UrbanSound8K | 51.44 | 75.23 | 76.26 | 86.53 | 81.10 | 86.67 | |
| VocalSound | 38.34 | 70.13 | 77.55 | 81.76 | 80.86 | 83.68 | |
| AVERAGE | 34.03 | 69.91 | 72.95 | 75.41 | 78.30 | 76.02 |
weights remain frozen. Inference evaluates the low-rank updates alongside the frozen QKV projections, adding audio-encoder matrix operations without a cross-modal fusion block.
PALM+ASPL* combines static PALM class representations with affine modulation after log-mel extraction, patch embedding, and the first HTSAT stage, including downsampling. The modulation widths are 64, 96, and 192, adding 704 trainable parameters. These parameters and the PALM prompts are optimized jointly, while pretrained encoder weights remain frozen. Table IV reports this implementation under the PALM training configuration.
B. Support-Set Configuration Selection
For each benchmark, outer fold where applicable, and seed, DF-PALM selects its fusion configuration within the corresponding 16-shot support set. Four internal folds fit each candidate on 12 examples per class and validate on four. Selection maximizes the mean validation Accuracy across the four internal folds for that run, without pooling scores across outer folds, seeds, or benchmarks. The outer test samples are excluded from both candidate fitting and validation. The procedure uses no labels beyond that run's 16-shot support set.
The search covers eight depths and four head counts with the remaining settings fixed. Each independently selected configuration is retrained on all 16 examples per class and evaluated at epoch 50. All selections yielded , . The corresponding configuration is retained for the 4-, 8-, and 32-shot runs. CoOp, CoCoOp, and PALM use their reported hyperparameters without additional tuning. ProKeR selects its kernel configuration using a class-stratified 12/4 support split, then refits on all 16 examples per class. In the main 16-shot setting, the methods share the support-label budget while retaining their specified selection procedures.
C. Training-Free Predictors
ProKeR applies its kernel formulation [36] to normalized PENGI support embeddings , query embeddings , and class-text embeddings . With one-hot support labels ,
TABLE X
LEAVE-ONE-BENCHMARK-OUT ROBUSTNESS AT 16 SHOTS. DF-PALM SCORES (%) ARE UNWEIGHTED MEANS OVER THE TEN RETAINED BENCHMARKS. △ DENOTES DF-PALM MINUS THE INDICATED REFERENCE IN PERCENTAGE POINTS.
| Omitted Benchmark | Accuracy | Macro-F1 | ||||||
|---|---|---|---|---|---|---|---|---|
| DF-PALM | DF-PALM | |||||||
| Beijing-Opera | 78.80 | +4.09 | +1.41 | +5.13 | 78.39 | +4.29 | +1.86 | +5.43 |
| CREMA-D | 84.55 | +3.77 | +1.41 | +4.56 | 84.79 | +3.95 | +1.77 | +4.82 |
| ESC50-Actions | 78.86 | +4.28 | +1.73 | +5.09 | 78.45 | +4.48 | +2.17 | +5.39 |
| ESC-50 | 79.04 | +4.39 | +1.75 | +5.08 | 78.64 | +4.60 | +2.19 | +5.38 |
| GT-Music-Genre | 80.64 | +4.40 | +1.53 | +4.90 | 80.22 | +4.62 | +1.91 | +5.23 |
| NS-Instruments | 81.61 | +3.75 | +1.88 | +4.49 | 81.06 | +3.87 | +2.25 | +4.79 |
| RAVDESS | 83.86 | +4.21 | +1.29 | +3.48 | 83.40 | +4.32 | +1.62 | +3.63 |
| SESA | 79.36 | +4.07 | +1.69 | +4.75 | 78.93 | +4.29 | +2.07 | +4.91 |
| TUT2017 | 80.32 | +3.99 | +1.42 | +3.45 | 79.94 | +4.21 | +1.81 | +3.76 |
| UrbanSound8K | 80.16 | +4.00 | +1.80 | +5.14 | 79.68 | +4.17 | +2.21 | +5.43 |
| VocalSound | 80.38 | +4.22 | +1.90 | +4.92 | 79.98 | +4.44 | +2.34 | +5.20 |
TABLE XI
BENCHMARK-LEVEL COMPONENT AND FUSION CONTROLS AT 16 SHOTS. VALUES ARE MEAN ACCURACY AND MACRO-F1 (%). DF-PALM RESULTS APPEAR IN TABLE II AND TABLE IX.
| Benchmark | Dynamic Only | Joint Attention | ||
|---|---|---|---|---|
| Acc. | F1 | Acc. | F1 | |
| Beijing-Opera | 98.73 | 98.71 | 88.40 | 87.67 |
| CREMA-D | 40.63 | 34.02 | 43.68 | 28.98 |
| ESC50-Actions | 98.42 | 98.40 | 98.75 | 98.74 |
| ESC-50 | 96.68 | 96.60 | 97.12 | 97.02 |
| GT-Music-Genre | 81.17 | 81.10 | 81.83 | 82.07 |
| NS-Instruments | 67.10 | 67.26 | 71.53 | 72.12 |
| RAVDESS | 48.47 | 48.78 | 33.88 | 32.02 |
| SESA | 92.70 | 92.78 | 93.02 | 92.99 |
| TUT2017 | 82.24 | 82.09 | 83.50 | 83.25 |
| UrbanSound8K | 81.93 | 82.35 | 86.06 | 86.73 |
| VocalSound | 83.87 | 83.80 | 83.65 | 83.58 |
| Mean | 79.27 | 78.72 | 78.31 | 76.83 |
its kernel, coefficients, and logits are
The candidate grid comprises 20 linearly spaced values in [0.5, 3.0] and 10 linearly spaced values in . Validation Accuracy selects the configuration.
FS-AVG [37] averages unnormalized support audio embeddings per class, L2-normalizes the prototypes, and classifies normalized queries by cosine similarity. It uses no text encoder or configuration selection. Both training-free predictors cache audio embeddings; ProKeR encodes fixed class prompts once per benchmark, fold, and seed. DF-PALM computes fixed text representations once per batch without caching across batches.
APPENDIX C COMPLETE MACRO-F1 RESULTS
Table IX complements the main Accuracy table with mean Macro-F1 scores for all seven methods and all 11 benchmarks.
TABLE XII
PAIRED SENSITIVITY ANALYSIS EXCLUDING ESC50-ACTIONS AT 16 SHOTS. △ DENOTES DF-PALM MINUS REFERENCE DIFFERENCES IN PERCENTAGE POINTS OVER THE TEN RETAINED BENCHMARKS. INTERVALS ARE BOOTSTRAP 95% CIs; HOLM CORRECTION COVERS BOTH METRICS WITHIN EACH METHOD PAIR.
| Reference | Metric | Δ [95% CI] | |
|---|---|---|---|
| PALM | Accuracy | +4.28 [2.97, 5.61] | 0.0039 |
| Macro-F1 | +4.48 [3.08, 5.93] | 0.0039 | |
| ProKeR | Accuracy | +1.73 [0.43, 3.05] | 0.0840 |
| Macro-F1 | +2.17 [0.77, 3.58] | 0.0547 | |
| FS-AVG | Accuracy | +5.09 [1.72, 9.12] | 0.0391 |
| Macro-F1 | +5.39 [1.87, 9.53] | 0.0391 |
APPENDIX D PAIRED STATISTICS AND COMPONENT CONTROLS
Metrics are averaged over dataset folds within each matched seed, then over seeds within each benchmark. For full-suite comparisons, each benchmark forms one statistical unit; cross-benchmark means assign equal weight to all 11 benchmarks. Confidence intervals use 200,000 bootstrap resamples of the paired benchmark differences. Exact two-sided Wilcoxon signed-rank tests remove zero differences and average tied ranks. PENGI comparisons apply Holm correction to Accuracy and Macro-F1 within each method pair. Table II and Tables IX and XI report benchmark means; calculations use unrounded values.
The full 11-benchmark suite is retained for comparison with prior work. A separate sensitivity analysis excludes ESC50-Actions to assess the effect of its overlap with ESC-50. The same paired-testing procedure is applied to the ten retained benchmarks (Table XII).
The controls in Table XI compare audio refinement and alternative fusion architectures. Dynamic Context Only retains the audio-conditioned class representations but scores them against the unrefined audio feature. Joint Attention retains the context generator and matches the fusion depth and head count, using self-attention over the audio and class tokens.
TABLE XIII BENCHMARK-LEVEL DF-PALM MINUS PALM DIFFERENCES AT ADDITIONAL SHOT SETTINGS. VALUES ARE PERCENTAGE POINTS AFTER FOLD AND MATCHED-SEED AGGREGATION; THE MEAN WEIGHTS BENCHMARKS EQUALLY.
| Benchmark | Accuracy | Macro-F1 | ||||
|---|---|---|---|---|---|---|
| 4-Shot | 8-Shot | 32-Shot | 4-Shot | 8-Shot | 32-Shot | |
| Beijing-Opera | -1.97 | +0.42 | 0.00 | -1.96 | +0.39 | 0.00 |
| CREMA-D | -1.21 | +2.69 | -0.18 | -0.73 | +1.44 | +0.56 |
| ESC50-Actions | +2.08 | +0.67 | +0.42 | +2.36 | +0.68 | +0.43 |
| ESC-50 | +1.03 | +0.93 | +0.35 | +1.07 | +0.91 | +0.36 |
| GT-Music-Genre | +1.83 | -0.67 | +1.17 | +1.58 | -1.44 | +0.98 |
| NS-Instruments | +3.92 | +2.35 | +1.56 | +5.44 | +2.41 | +1.54 |
| RAVDESS | +0.61 | +0.20 | -0.88 | +0.86 | 0.00 | -1.05 |
| SESA | +8.25 | +1.59 | +1.90 | +8.96 | +1.59 | +2.37 |
| TUT2017 | +2.53 | +1.85 | +0.72 | +2.42 | +1.88 | +0.73 |
| UrbanSound8K | +3.09 | +2.91 | +1.14 | +2.90 | +2.79 | +1.21 |
| VocalSound | +2.82 | +1.48 | +0.78 | +3.01 | +1.30 | +0.77 |
| Mean | +2.09 | +1.31 | +0.63 | +2.35 | +1.09 | +0.72 |
TABLE XIV BENCHMARK-LEVEL DF-PALM MINUS PALM DIFFERENCES ON THE ADDITIONAL BACKBONES AT 16 SHOTS. VALUES ARE PERCENTAGE POINTS; THE MEAN WEIGHTS ALL 11 BENCHMARKS EQUALLY.
| Benchmark | LAION-CLAP | OpenFLAM | ||
|---|---|---|---|---|
| Δ Acc. | Δ F1 | Δ Acc. | Δ F1 | |
| Beijing-Opera | +0.71 | +0.75 | -0.003 | -0.001 |
| CREMA-D | -0.94 | +0.06 | +2.53 | +1.34 |
| ESC50-Actions | +0.75 | +0.76 | +0.50 | +0.42 |
| ESC-50 | +1.37 | +1.39 | +0.55 | +0.57 |
| GT-Music-Genre | +0.33 | -0.10 | +0.83 | +0.59 |
| NS-Instruments | +2.63 | +2.17 | +0.76 | +0.72 |
| RAVDESS | +2.78 | +2.51 | +0.34 | -0.03 |
| SESA | +2.54 | +2.61 | +1.59 | +1.98 |
| TUT2017 | +1.34 | +1.27 | +0.85 | +0.72 |
| UrbanSound8K | +2.17 | +2.06 | +0.96 | +0.90 |
| VocalSound | +1.39 | +1.36 | +0.95 | +0.89 |
| Mean | +1.37 | +1.35 | +0.90 | +0.74 |
to update both representations. DF-PALM instead holds the conditioned class matrix fixed across layers and updates the audio state, as defined in Section III-C. These controls relate the component means in Table VI to their benchmark-level results.
A. Leave-One-Benchmark-Out Robustness
Table X tests whether the aggregate advantage depends on a single benchmark. Each omission removes the same benchmark from both methods and recomputes the paired mean over the ten retained benchmarks. The trained models and test predictions remain unchanged, so the analysis isolates sensitivity to benchmark composition. Omitting ESC50-Actions or ESC-50 also examines sensitivity to including either of these related benchmarks, whose class overlap is specified in Appendix A.
All 11 omissions retained positive mean differences against PALM, ProKeR, and FS-AVG on both metrics. The cross- benchmark ordering therefore persisted regardless of which single benchmark was removed. Excluding ESC-50 retained PALM-relative gains of 4.39 Accuracy and 4.60 Macro-F1 points, complementing the ESC50-Actions omission reported in Section IV-D.
Table XII reports the paired statistics after excluding ESC50-Actions. Mean gains remained positive against all three reference methods; both metrics remained significant against PALM and FS-AVG.
APPENDIX E
EXTERNAL BACKBONE TRANSFER
The additional evaluation tests whether the adaptation design remains effective when the pretrained representation source changes. LAION-CLAP and OpenFLAM supply normalized 512-dimensional audio and text features through the interface defined in Section III. The context generator and fusion layers operate on these features without modifying the pretrained encoders. Thus, the same conditioning and update structure is retained across the three evaluated backbones.
Both methods retain the benchmark partitions, matched 16-shot supports, three seeds, and the same training settings. DF-PALM uses the same , configuration on both additional backbones without further search. Table XIV reports within-backbone differences, comparing DF-PALM with PALM on the same pretrained representations.
Paired tests follow Appendix D, with Holm correction applied jointly to the four backbone–metric comparisons. Bootstrap intervals are marginal intervals for each comparison.
DF-PALM improved Accuracy on ten of the eleven benchmarks with each additional backbone. Macro-F1 improved on ten benchmarks with LAION-CLAP and nine with OpenFLAM. The improvements span multiple task domains, including environmental sounds, instruments, acoustic scenes, and human vocalizations. Together with the PENGI results, this task-level evidence supports the effectiveness of the proposed feature-space adaptation across the three evaluated encoder interfaces.
APPENDIX F BENCHMARK-LEVEL GAINS AT ADDITIONAL SHOT SETTINGS
Table XIII gives the benchmark-level DF-PALM minus PALM gains at 4, 8, and 32 shots. These comparisons retain the fusion configuration selected at 16 shots, testing the same adaptation structure as the number of fitting examples changes. Table II and Table IX provide the 16-shot Accuracy and Macro-F1 results, respectively; ProKeR and FS-AVG are evaluated only at that setting.
At four shots, DF-PALM improved both Accuracy and Macro-F1 over PALM on nine of the eleven benchmarks. These gains cover instrument recognition, music genres, environmental sounds, speech emotion, acoustic scenes, and human vocalizations. Mean differences also remained positive at eight and thirty-two shots.
APPENDIX G
RESOURCE MEASUREMENT SCOPE AND PARAMETER COUNTS
Training times in Table I cover initialization, data loading, 50 training epochs, evaluation, and I/O with the selected configuration; configuration search is excluded. Methods share the ESC-50 8-shot partition and one RTX 4090 GPU.
The end-to-end profile in Table VII includes the frozen PENGI encoders and uses a preloaded waveform, batch size one, and default floating-point precision on an NVIDIA A40. Each of three runs uses 10 warm-up and 100 timed forward passes with CUDA synchronization. Latency summarizes run medians; memory is peak allocated GPU memory, and FLOPs include only profiler-counted operators. Fig. 5 measures adaptation modules alone on an RTX 4090 using synchronized CUDA events at the same batch size and iteration counts.
At and , shared encoders contain 98,165,207 parameters, and PALM optimizes 51,250 class-context and mixing parameters. DF-PALM adds 132,160 generator and 12,601,344 fusion parameters, totaling 12,784,754 optimizer-updated parameters. Counts include biases and normalization parameters and exclude the unused decoder.
REFERENCES
[1] B. Zhu, B. Lin, M. Ning, Y. Yan, J. Cui, W. HongFa, Y. Pang, W. Jiang, J. Zhang, Z. Li, C. W. Zhang, Z. Li, W. Liu, and L. Yuan, "Languagebind: Extending video-language pretraining to n-modality by language-based semantic alignment," 2023.
[2] H.-H. Wu, P. Seetharaman, K. Kumar, and J. P. Bello, “Wav2clip: Learning robust audio representations from clip,” in ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2022, pp. 4563–4567.
[3] C. Tang, W. Yu, G. Sun, X. Chen, T. Tan, W. Li, L. Lu, Z. MA, and C. Zhang, “Salmonn: Towards generic hearing abilities for large language models,” in The Twelfth International Conference on Learning Representations, 2024. [Online]. Available: https://openreview.net/forum?id=14rn7HpKVk
[4] A. Radford, J. W. Kim, C. Hallacy, A. Ramesh, G. Goh, S. Agarwal, G. Sastry, A. Askell, P. Mishkin, J. Clark, G. Krueger, and I. Sutskever, "Learning transferable visual models from natural language supervision," in Proceedings of the 38th International Conference on Machine Learning, ser. Proceedings of Machine Learning Research, M. Meila and T. Zhang, Eds., vol. 139. USA: PMLR, 18–24 Jul 2021, pp. 8748–8763. [Online]. Available: https://proceedings.mlr.press/v139/radford21a.html
[5] C. Jia, Y. Yang, Y. Xia, Y.-T. Chen, Z. Parekh, H. Pham, Q. Le, Y.-H. Sung, Z. Li, and T. Duerig, “Scaling up visual and vision-language representation learning with noisy text supervision,” in Proceedings of the 38th International Conference on Machine Learning, ser. Proceedings of Machine Learning Research, M. Meila and T. Zhang, Eds., vol. 139. PMLR, 18–24 Jul 2021, pp. 4904–4916. [Online]. Available: https://proceedings.mlr.press/v139/jia21b.html
[6] J.-B. Alayrac, J. Donahue, P. Luc, A. Miech, I. Barr, Y. Hasson, K. Lenc, A. Mensch, K. Millicah, M. Reynolds, R. Ring, E. Rutherford, S. Cabi, T. Han, Z. Gong, S. Samangooei, M. Monteiro, J. Menick, S. Borgeaud, A. Brock, A. Nematzadeh, S. Sharifzadeh, M. Binkowski, R. Barreira, O. Vinyals, A. Zisserman, and K. Simonyan, "Flamingo: a visual language model for few-shot learning," in Proceedings of the 36th International Conference on Neural Information Processing Systems, ser. NIPS '22. Red Hook, NY, USA: Curran Associates Inc., 2022.
[7] B. Elizalde, S. Deshmukh, M. A. Ismail, and H. Wang, “Clap learning audio concepts from natural language supervision,” in ICASSP 2023 - 2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). USA: IEEE, 2023, pp. 1–5.
[8] A. Guzhov, F. Raue, J. Hees, and A. Dengel, “Audioclip: Extending clip to image, text and audio,” in ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). Singapore, Singapore: IEEE, 2022, pp. 976–980.
[9] Y. Gong, Y.-A. Chung, and J. Glass, “AST: Audio Spectrogram Transformer,” in Proc. Interspeech 2021, 2021, pp. 571–575.
[10] E. Fonseca, X. Favory, J. Pons, F. Font, and X. Serra, “Fsd50k: An open dataset of human-labeled sound events,” IEEE/ACM Transactions on Audio, Speech, and Language Processing, vol. 30, pp. 829–852, 2022.
[11] A. Hanif, M. T. Agro, M. A. Qazi, and H. Aldarmaki, “Palm: Few-shot prompt learning for audio language models,” in Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, 2024, pp. 18527–18536.
[12] K. Zhou, J. Yang, C. Loy, and Z. Liu, “Learning to prompt for vision-language models,” International Journal of Computer Vision, vol. 130, no. 9, pp. 2337–2348, Sep. 2022.
[13] K. Zhou, J. Yang, C. C. Loy, and Z. Liu, “Conditional prompt learning for vision-language models,” in IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). USA: CVPR, 2022.
[14] A. Seth, R. Selvakumar, S. Kumar, S. Ghosh, and D. Manocha, “PAT: Parameter-free audio-text aligner to boost zero-shot audio classification,” in Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), 2025, pp. 12376–12394.
[15] S. Zhao, L. Xu, Y. Liu, and S. Du, “Multi-grained correspondence learning of audio-language models for few-shot audio recognition,” in Proceedings of the 32nd ACM International Conference on Multimedia, 2024, pp. 9244–9252.
[16] Q. Huang, A. Jansen, J. Lee, R. Ganti, J. Y. Li, and D. P. Ellis, “Mulan: A joint embedding of music audio and natural language,” arXiv preprint arXiv:2208.12415, 2022.
[17] X. Mei, C. Meng, H. Liu, Q. Kong, T. Ko, C. Zhao, M. D. Plumbley, Y. Zou, and W. Wang, “WavCaps: A ChatGPT-assisted weakly-labelled audio captioning dataset for audio-language multimodal research,” IEEE/ACM Transactions on Audio, Speech, and Language Processing, pp. 1–15, 2024.
[18] Y. Wu, K. Chen, T. Zhang, Y. Hui, T. Berg-Kirkpatrick, and S. Dubnov, "Large-scale contrastive language-audio pretraining with feature fusion and keyword-to-caption augmentation," in IEEE International Conference on Acoustics, Speech and Signal Processing, ICASSP. USA: IEEE, 2023.
[19] S. Deshmukh, B. Elizalde, R. Singh, and H. Wang, “Pengi: An audio language model for audio tasks,” in Advances in Neural Information Processing Systems, A. Oh, T. Neumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine, Eds., vol. 36. USA: Curran Associates, Inc., 2023, pp. 18090–18108. [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2023/file/3a2e5889b4bbef997ddb13b55d5acf77-Paper-Conference.pdf
[20] Y. Chu, J. Xu, X. Zhou, Q. Yang, S. Zhang, Z. Yan, C. Zhou, and J. Zhou, "Qwen-audio: Advancing universal audio understanding via unified large-scale audio-language models," arXiv preprint arXiv:2311.07919, 2023.
[21] Y. Gong, H. Luo, A. H. Liu, L. Karlinsky, and J. Glass, “Listen, think, and understand,” arXiv preprint arXiv:2305.10790, 2023.
[22] N. Houlsby, A. Giurgiu, S. Jastrzebski, B. Morrone, Q. De Laroussilhe, A. Gesmundo, M. Attariyan, and S. Gelly, “Parameter-efficient transfer learning for NLP,” in Proceedings of the 36th International
Conference on Machine Learning, ser. Proceedings of Machine Learning Research, K. Chaudhuri and R. Salakhutdinov, Eds., vol. 97. PMLR, 09–15 Jun 2019, pp. 2790–2799. [Online]. Available: https://proceedings.mlr.press/v97/houlsby19a.html
[23] E. Ben Zaken, Y. Goldberg, and S. Ravfogel, “BitFit: Simple parameter-efficient fine-tuning for transformer-based masked language-models,” in Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), S. Muresan, P. Nakov, and A. Villavicencio, Eds. Dublin, Ireland: Association for Computational Linguistics, May 2022, pp. 1–9. [Online]. Available: https://aclanthology.org/2022.acl-short.1/
[24] X. L. Li and P. Liang, “Prefix-tuning: Optimizing continuous prompts for generation,” in Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), C. Zong, F. Xia, W. Li, and R. Navigli, Eds. Online: Association for Computational Linguistics, Aug. 2021, pp. 4582–4597. [Online]. Available: https://aclanthology.org/2021.acl-long.353/
[25] P. Liu, W. Yuan, J. Fu, Z. Jiang, H. Hayashi, and G. Neubig, “Pre-train, prompt, and predict: A systematic survey of prompting methods in natural language processing,” ACM Comput. Surv., vol. 55, no. 9, Jan. 2023. [Online]. Available: https://doi.org/10.1145/3560815
[26] T. Brown, B. Mann, N. Ryder, M. Subbiah, J. D. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, S. Agarwal, A. Herbert-Voss, G. Krueger, T. Henighan, R. Child, A. Ramesh, D. Ziegler, J. Wu, C. Winter, C. Hesse, M. Chen, E. Sigler, M. Litwin, S. Gray, B. Chess, J. Clark, C. Berner, S. McCandlish, A. Radford, I. Sutskever, and D. Amodei, "Language models are few-shot learners," in Advances in Neural Information Processing Systems, H. Larochelle, M. Ranzato, R. Hadsell, M. Balcan, and H. Lin, Eds., vol. 33. Curran Associates, Inc., 2020, pp. 1877–1901. [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2020/file/1457c0d6bfcb4967418bfb8ac142f64a-Paper.pdf
[27] B. Lester, R. Al-Rfou, and N. Constant, “The power of scale for parameter-efficient prompt tuning,” in Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, M.-F. Moens, X. Huang, L. Specia, and S. W.-t. Yih, Eds. Online and Punta Cana, Dominican Republic: Association for Computational Linguistics, Nov. 2021, pp. 3045–3059. [Online]. Available: https://aclanthology.org/2021.emnlp-main.243/
[28] M. U. Khattak, H. Rasheed, M. Maaz, S. Khan, and F. S. Khan, "Maple: Multi-modal prompt learning," in 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2023, pp. 19113–19122.
[29] Y. Lu, J. Liu, Y. Zhang, Y. Liu, and X. Tian, “Prompt distribution learning,” in 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2022, pp. 5196–5205.
[30] J. Li, R. R. Selvaraju, A. D. Gotmare, S. Joty, C. Xiong, and S. Hoi, "Align before fuse: Vision and language representation learning with momentum distillation," in NeurIPS. USA: NIPS, 2021.
[31] J. Li, D. Li, S. Savarese, and S. Hoi, “Blip-2: bootstrapping language-image pre-training with frozen image encoders and large language models,” in Proceedings of the 40th International Conference on Machine Learning, ser. ICML’23. USA: JMLR.org, 2023.
[32] W. Kim, B. Son, and I. Kim, “Vilt: Vision-and-language transformer without convolution or region supervision,” in Proceedings of the 38th International Conference on Machine Learning, ser. Proceedings of Machine Learning Research, M. Meila and T. Zhang, Eds., vol. 139. PMLR, 18–24 Jul 2021, pp. 5583–5594. [Online]. Available: http://proceedings.mlr.press/v139/kim21k.html
[33] J. Yu, Z. Wang, V. Vasudevan, L. Yeung, M. Seyedhosseini, and Y. Wu, "Coca: Contrastive captioners are image-text foundation models," Trans. Mach. Learn. Res., vol. 2022, 2022. [Online]. Available: https://api.semanticscholar.org/CorpusID:248512473
[34] E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, and W. Chen, "LoRA: Low-rank adaptation of large language models," in Proc. Int. Conf. Learn. Represent., 2022. [Online]. Available: https://openreview.net/forum?id=nZeVKeeFYf9
[35] H. Cho, J. Jang, C. Kim, and J. S. Chung, “Acoustic prompting via stage-wise modulation for few-shot learning in audio language models,” arXiv preprint arXiv:2606.15751, 2026.
[36] Y. Bendou, A. Ouasfi, V. Gripon, and A. Boukhayma, “Proker: A kernel perspective on few-shot adaptation of large vision-language models,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2025, pp. 25 092–25 102.
[37] J. Taylor and W. Mack, “Improving Audio Classification by Transitioning from Zero- to Few-Shot,” in Interspeech 2025, 2025, pp. 2585–2589.
[38] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, and I. Polosukhin, “Attention is all you need,” in Proceedings of the 31st International Conference on Neural Information Processing Systems, ser. NIPS’17. Red Hook, NY, USA: Curran Associates Inc., 2017, p. 6000–6010.
[39] M. Sokolova and G. Lapalme, “A systematic analysis of performance measures for classification tasks,” Inf. Process. Manage., vol. 45, no. 4, p. 427–437, Jul. 2009. [Online]. Available: https://doi.org/10.1016/j.ipm.2009.03.002
[40] Y. Wu, C. Tsirigotis, K. Chen, C.-Z. A. Huang, A. Courville, O. Nieto, P. Seetharaman, and J. Salamon, “FLAM: Frame-wise language-audio modeling,” in Forty-second International Conference on Machine Learning (ICML), 2025. [Online]. Available: https://openreview.net/forum?id=7fQohcFrxG
[41] M. Tian, A. Srinivasamurthy, M. Sandler, and X. Serra, “A study of instrument-wise onset detection in beijing opera percussion ensembles,” in 2014 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). Florence, Italy: IEEE, 2014, pp. 2159–2163.
[42] H. Cao, D. G. Cooper, M. K. Keutmann, R. C. Gur, A. Nenkova, and R. Verma, “Crema-d: Crowd-sourced emotional multimodal actors dataset,” IEEE Transactions on Affective Computing, vol. 5, no. 4, pp. 377–390, 2014.
[43] K. J. Piczak, “ESC: Dataset for Environmental Sound Classification,” in Proceedings of the 23rd Annual ACM Conference on Multimedia. Brisbane, Australia: ACM Press, 2015, pp. 1015–1018. [Online]. Available: http://dl.acm.org/citation.cfm?doid=2733373.2806390
[44] B. L. Sturm, “An analysis of the gtzan music genre dataset,” in Proceedings of the Second International ACM Workshop on Music Information Retrieval with User-Centered and Multimodal Strategies, ser. MIRUM '12. New York, NY, USA: Association for Computing Machinery, 2012, p. 7–12. [Online]. Available: https://doi.org/10.1145/2390848.2390851
[45] J. Engel, C. Resnick, A. Roberts, S. Dieleman, M. Norouzi, D. Eck, and K. Simonyan, “Neural audio synthesis of musical notes with wavenet autoencoders,” in Proceedings of the 34th International Conference on Machine Learning - Volume 70, ser. ICML'17. Sydney, Australia: JMLR.org, 2017, p. 1068–1077.
[46] S. R. Livingstone and F. A. Russo, “The ryerson audio-visual database of emotional speech and song (ravdess): A dynamic, multimodal set of facial and vocal expressions in north american english,” PLOS ONE, vol. 13, no. 5, pp. 1–35, 05 2018. [Online]. Available: https://doi.org/10.1371/journal.pone.0196391
[47] T. Spadini, “Sound events for surveillance applications,” Dataset, Oct. 2019. [Online]. Available: https://doi.org/10.5281/zenodo.3519845
[48] A. Mesaros, T. Heittola, and T. Virtanen, “Tut acoustic scenes 2017, development dataset,” Dataset, Mar. 2017. [Online]. Available: https://doi.org/10.5281/zenodo.400515
[49] J. Salamon, C. Jacoby, and J. P. Bello, “A dataset and taxonomy for urban sound research,” in Proceedings of the 22nd ACM International Conference on Multimedia, ser. MM '14. New York, NY, USA: Association for Computing Machinery, 2014, p. 1041–1044. [Online]. Available: https://doi.org/10.1145/2647868.2655045
[50] Y. Gong, J. Yu, and J. Glass, “Vocalsound: A dataset for improving human vocal sounds recognition,” in ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2022, pp. 151–155.
[51] K. Chen, X. Du, B. Zhu, Z. Ma, T. Berg-Kirkpatrick, and S. Dubnov, "Hts-at: A hierarchical token-semantic audio transformer for sound classification and detection," in ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2022, pp. 646–650.