{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2605-13672","title":"SpurAudio: A Benchmark for Studying Shortcut Learning in Few-Shot Audio Classification","arxiv_id":"2605.13672","date":"2026-05-13","proceeding":null,"authors":["Giries Abu Ayoub","Morad Tukan","Loay Mualem"],"abstract":"Few-shot classification (FSC) is widely used for learning from limited labeled data, yet most evaluations implicitly assume that target concepts are independent of contextual cues. In real-world settings, however, examples often appear within rich contexts, allowing models to exploit spurious correlations between foreground content and background signals. While such effects have been studied in few-shot image classification, their role in few-shot audio classification remains largely unexplored, and existing audio benchmarks offer limited control over contextual structure. We introduce SpurAudio, a benchmark that leverages the natural separability of foreground events and background environments in audio to enable controlled, multi-level evaluation of contextual shifts across support and query sets. Using this benchmark, we show that many state-of-the-art few-shot methods suffer severe performance degradation when background correlations are disrupted, despite achieving similar accuracy under standard evaluation protocols. Crucially, this vulnerability persists even in large pretrained audio foundation models, ruling out limited backbone capacity as an explanation. Moreover, methods that appear comparable under conventional benchmarks can exhibit markedly different sensitivity to spurious correlations, revealing systematic algorithmic strengths and vulnerabilities tied to how feature representations interact with classifier heads at inference time. These findings provide new insight into the behavior of few-shot methods in audio and highlight the need for benchmarks that explicitly probe context dependence when evaluating FSC models.","url_abs":"https://arxiv.org/abs/2605.13672","url_pdf":"https://arxiv.org/pdf/2605.13672","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2605.13672","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2605.13672"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/Jerryaa98/SpurAudio","reach":null}],"summary":{"ran":4,"ran_fixture":1,"unverified":8},"by_repo_kind":{"found_in_text":{"samples":13,"ran":5,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"6d18f065c859bcf6","entry":"MetricModel","repo":"Jerryaa98/SpurAudio","repo_kind":"found_in_text","path":"libfewshot_core/model/metric/feat.py","file_url":"https://github.com/Jerryaa98/SpurAudio/blob/HEAD/libfewshot_core/model/metric/feat.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6d18f065c859bcf6"}},{"code_sha256_prefix":"abb0132a11948e66","entry":"MultiHeadAttention","repo":"Jerryaa98/SpurAudio","repo_kind":"found_in_text","path":"libfewshot_core/model/metric/feat.py","file_url":"https://github.com/Jerryaa98/SpurAudio/blob/HEAD/libfewshot_core/model/metric/feat.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"abb0132a11948e66"}},{"code_sha256_prefix":"c4d86e0b4f211908","entry":"ProtoLayer","repo":"Jerryaa98/SpurAudio","repo_kind":"found_in_text","path":"libfewshot_core/model/metric/feat.py","file_url":"https://github.com/Jerryaa98/SpurAudio/blob/HEAD/libfewshot_core/model/metric/feat.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c4d86e0b4f211908"}},{"code_sha256_prefix":"db7336a23c3c2b29","entry":"ScaledDotProductAttention","repo":"Jerryaa98/SpurAudio","repo_kind":"found_in_text","path":"libfewshot_core/model/metric/feat.py","file_url":"https://github.com/Jerryaa98/SpurAudio/blob/HEAD/libfewshot_core/model/metric/feat.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"db7336a23c3c2b29"}},{"code_sha256_prefix":"c3fb8f120d94b1cc","entry":"hierarchical_cumsum_with_carry","repo":"Jerryaa98/SpurAudio","repo_kind":"found_in_text","path":"libfewshot_core/model/metric/feat.py","file_url":"https://github.com/Jerryaa98/SpurAudio/blob/HEAD/libfewshot_core/model/metric/feat.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c3fb8f120d94b1cc"}},{"code_sha256_prefix":"56696393367f0720","entry":"AbstractModel","repo":"Jerryaa98/SpurAudio","repo_kind":"found_in_text","path":"libfewshot_core/model/metric/feat.py","file_url":"https://github.com/Jerryaa98/SpurAudio/blob/HEAD/libfewshot_core/model/metric/feat.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"56696393367f0720"}},{"code_sha256_prefix":"5036e89f93ad4f3d","entry":"FEAT","repo":"Jerryaa98/SpurAudio","repo_kind":"found_in_text","path":"libfewshot_core/model/metric/feat.py","file_url":"https://github.com/Jerryaa98/SpurAudio/blob/HEAD/libfewshot_core/model/metric/feat.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5036e89f93ad4f3d"}},{"code_sha256_prefix":"e436a7281b8d1c16","entry":"ModelType","repo":"Jerryaa98/SpurAudio","repo_kind":"found_in_text","path":"libfewshot_core/model/metric/feat.py","file_url":"https://github.com/Jerryaa98/SpurAudio/blob/HEAD/libfewshot_core/model/metric/feat.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e436a7281b8d1c16"}},{"code_sha256_prefix":"5dcb2aabb03bacc7","entry":"init_weights","repo":"Jerryaa98/SpurAudio","repo_kind":"found_in_text","path":"libfewshot_core/model/metric/feat.py","file_url":"https://github.com/Jerryaa98/SpurAudio/blob/HEAD/libfewshot_core/model/metric/feat.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5dcb2aabb03bacc7"}},{"code_sha256_prefix":"1034ff8dbf0df0dd","entry":"weights_init_kaiming","repo":"Jerryaa98/SpurAudio","repo_kind":"found_in_text","path":"libfewshot_core/model/metric/feat.py","file_url":"https://github.com/Jerryaa98/SpurAudio/blob/HEAD/libfewshot_core/model/metric/feat.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1034ff8dbf0df0dd"}},{"code_sha256_prefix":"61f3589a88624ab8","entry":"weights_init_normal","repo":"Jerryaa98/SpurAudio","repo_kind":"found_in_text","path":"libfewshot_core/model/metric/feat.py","file_url":"https://github.com/Jerryaa98/SpurAudio/blob/HEAD/libfewshot_core/model/metric/feat.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"61f3589a88624ab8"}},{"code_sha256_prefix":"bfbe5620c30c7148","entry":"weights_init_orthogonal","repo":"Jerryaa98/SpurAudio","repo_kind":"found_in_text","path":"libfewshot_core/model/metric/feat.py","file_url":"https://github.com/Jerryaa98/SpurAudio/blob/HEAD/libfewshot_core/model/metric/feat.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bfbe5620c30c7148"}},{"code_sha256_prefix":"9a3307300f261044","entry":"weights_init_xavier","repo":"Jerryaa98/SpurAudio","repo_kind":"found_in_text","path":"libfewshot_core/model/metric/feat.py","file_url":"https://github.com/Jerryaa98/SpurAudio/blob/HEAD/libfewshot_core/model/metric/feat.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9a3307300f261044"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}