Manuscript Offprint

arXiv:2610.09737

A Strength-Monotonic Law for Domain Alignment in Frozen-Embedding Bioacoustic Classification

Yucheng Gong, Rui Zhou, Binbin Zeng, Qiang Ren, Hongjin Hui

Abstract

When does distribution alignment help a frozen foundation-model embedding generalize across acoustic domains? For cross-domain mosquito-species classification we report a strength-monotonic law: the stronger an encoder is on the target task, the more its unseen-domain generalization relies on a distribution-alignment (MMD) term, and the more it is harmed by domain-rebalanced sampling. Across four encoder families and a within-encoder HuBERT layer sweep (n=8), the rebalancing leg orders exactly with encoder strength (Spearman -1.000), while the MMD-benefit leg is monotonic within each stream and -0.857 pooled; fixing architecture and varying only representation strength flips the rebalancing effect from benefit to collapse, controlled within-encoder evidence. The law is actionable: a single MMD term is the sole lever on a strong encoder (removing it costs -0.098 BA unseen_{unseen}, more than the entire six-term composite loss contributes), so we reduce the field's default recipe to a frozen Perch 2.0 embedding, a probe lightweight relative to fine-tuning the backbone, cross-entropy, one MMD, and input augmentation. The reduced recipe stays within seed noise of the full composite (BA unseen_{unseen} 0.299 ± 0.006 vs. 0.307 ± 0.014), whose seed-ensemble (0.313) is numerically close to the published single-modal champion base (0.318); the champion's per-seed variance is unavailable, so we do not claim a tie. As boundary conditions of the same law, three community defaults—backbone fine-tuning, multi-modal fusion, and domain rebalancing—each hurt unseen-domain accuracy under a leave-domain protocol, shown with single-variable, multi-seed evidence. We present a mechanism and the recipe it explains, not a leaderboard entry.

1 Introduction

Acoustic identification of mosquito species underpins vector-borne-disease surveillance, but what matters for deployment is not accuracy on the recording conditions a model was trained on—it is accuracy on a new site or device, that is, an unseen acoustic domain. The BioDCASE 2026 Cross-Domain Mosquito Species Classification (CD-MSC) task makes this gap explicit: its primary metric, balanced accuracy on held-out domains (BA unseen_{unseen}), collapses to 0.175 for the official multi-temporal-resolution CNN baseline even though the same model reaches 0.881 on seen domains, a domain-shift gap of DSG=0.71 [Hou et al., 2026]. The gap, not the in-domain score, is the problem.

Strong audio foundation models are now the default front-end for such tasks, which turns the practical question into one about what to add on top of a frozen embedding. The reflex in competition settings is to add more: fine-tune the backbone, fuse a second modality, rebalance the training domains, and stack a composite objective of several distribution-alignment and contrastive terms. We take the

∗^{*}Equal contribution.

†^{\dagger}Corresponding author.

Preprint. Under review.

opposite stance and ask what the encoder’s own representational strength dictates. The answer is a single empirical regularity that governs both how much alignment helps and which additions backfire.

Our central finding is a strength-monotonic law. Across four encoder families and a within-encoder layer sweep of HuBERT (n=8 representations), the stronger an encoder is on the target task, the more its unseen-domain generalization depends on a single distribution-alignment term (maximum mean discrepancy, MMD), and the more it is destroyed by domain-rebalanced sampling. The rebalancing leg orders exactly with strength (Spearman -1.000 over the pooled n=8 set); the MMD-benefit leg is monotonic within each of the two streams and -0.857 pooled, broken only by one cross-architecture point. Because the four-encoder comparison confounds strength with architecture, we hold architecture, modality, and pre-training data fixed and vary only representation strength along HuBERT's layers; the rebalancing effect flips sign from +0.034 on a weak layer to -0.051 on a strong one across non-overlapping error bars. This is controlled within-encoder evidence—though layer depth also changes representation content, not strength alone—rather than a correlation across heterogeneous models.

The law prescribes an algorithm rather than motivating a new module. On a strong encoder a single MMD term is the only lever that moves BAunseenBA_{unseen}: removing it costs -0.098, which exceeds the +0.072 that the full six-term composite contributes over cross-entropy, while the CORAL, supervised-contrastive, genus-auxiliary, and domain-classification terms are each removable within seed noise. The law therefore licenses a reduction of the field's default recipe to a frozen Perch 2.0 embedding, a probe lightweight relative to fine-tuning the backbone, cross-entropy, one MMD, and input augmentation. The reduced recipe stays within seed noise of the full composite ( BAunseenBA_{unseen} 0.299±0.0060.299 \pm 0.006 vs. 0.307±0.0140.307 \pm 0.014; seed-ensembles 0.308 vs. 0.313), whose ensemble is numerically close to the published single-modal champion base 0.318 [Gstöttenbauer et al., 2026]; the champion's per-seed variance is unavailable, so we test no tie. It is a mechanism-derived simplification, not a tuned leaderboard entry.

The same law predicts where the field’s defaults fail on strong encoders, and we confirm each under the leave-domain protocol with single-variable, multi-seed evidence (except a single progressive-unfreezing run) and a mechanism. Backbone fine-tuning snaps unseen accuracy back to the frozen value and below (0.215 < 0.241), consistent with fine-tuning distorting pre-trained features out of distribution [Kumar et al., 2022]. Multi-modal fusion with the available weak second modality dilutes the strong encoder (0.286 < 0.299). Domain-rebalanced sampling collapses a strong encoder (-0.072). These are corroborating boundary conditions of the strength law, not independent headlines.

We are deliberate about provenance and about what we do not claim. Two priors are reused and neither is ours. The frozen-Perch-plus-rich-probe base is the challenge champion’s [Gstöttenbauer et al., 2026]; the composite domain-generalization loss is DR-BioL’s [Hou et al., 2025], an end-to-end CNN on a different dataset rather than a frozen-embedding method. We reproduce both faithfully—our loss matches the champion’s objective exactly—and claim neither. We also do not reach the deployed champion score of 0.362, which adds a three-feature agreement gate orthogonal to our contribution, and we claim no efficiency advantage over it, since its base is likewise a frozen encoder with a light probe. Stated plainly, the algorithmic contribution is not a new architecture or a new loss; it is the mechanism rendered testable and deployable—a falsifiable design rule, the minimal recipe that instantiates it, and the controlled protocol that verifies it. The algorithm stands or falls with the law, not with a leaderboard delta.

References (31)