SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2510.26096 · NeurIPS · 2025

ALMGuard: Safety Shortcuts and Where to Find Them as Guardrails for Audio-Language Models

Ke Xu, Jie Hao, Minhui Xue, Yuxin Cao, Derui Wang, Jin Dong, Weifei Jin, Junjie Su

arXiv · PDF · Open in the Atlas

Code that ran

7 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 4 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 5 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2510.26096.json · badge: /api/ran/2510.26096.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
WeifeiJin/ALMGuard canonical (classifier label)
classifier basis: census
7 ran · 5 no recorded run
FunctionStatusWhere it lives
extract_prefix_number Ran
ran, honoured the contract we drafted
WeifeiJin/ALMGuard/AIR-bench/cal_score.py
pointer only (licence: NONE) · get_code("f0ae8c33b1126961")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WeifeiJin/ALMGuard when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_input_embeds Ran
ran; our contract draft was wrong, not the code
WeifeiJin/ALMGuard/utils.py
pointer only (licence: NONE) · get_code("9f41cd96267d6bc7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WeifeiJin/ALMGuard when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_perturb Ran
ran, honoured the contract we drafted
WeifeiJin/ALMGuard/utils.py
pointer only (licence: NONE) · get_code("73c92993abbf3787")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WeifeiJin/ALMGuard when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mel_filters Ran
ran, honoured the contract we drafted
WeifeiJin/ALMGuard/whisper/audio.py
pointer only (licence: NONE) · get_code("12c6c409a1e359c3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WeifeiJin/ALMGuard when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pad_or_trim Ran
ran; our contract draft was wrong, not the code
WeifeiJin/ALMGuard/whisper/audio.py
pointer only (licence: NONE) · get_code("9f13de1c23e4003d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WeifeiJin/ALMGuard when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sinusoids Ran
ran, honoured the contract we drafted
WeifeiJin/ALMGuard/whisper/model.py
pointer only (licence: NONE) · get_code("e529c9641c178fe0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WeifeiJin/ALMGuard when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sorrybench_evaluate Ran
ran; our contract draft was wrong, not the code
WeifeiJin/ALMGuard/llm_evaluation.py
pointer only (licence: NONE) · get_code("1dea33e18fd05a0f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WeifeiJin/ALMGuard when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_sorrybench_pipeline Not yet run
unverified (harvested, no recorded run)
WeifeiJin/ALMGuard/llm_evaluation.py
pointer only (licence: NONE) · get_code("c87203973f499743")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WeifeiJin/ALMGuard when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_audio Not yet run
unverified (harvested, no recorded run)
WeifeiJin/ALMGuard/whisper/audio.py
pointer only (licence: NONE) · get_code("80abc0b281d75575")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WeifeiJin/ALMGuard when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_perturb Not yet run
unverified (harvested, no recorded run)
WeifeiJin/ALMGuard/eval_qwen.py
pointer only (licence: NONE) · get_code("f8a39516628f22a9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WeifeiJin/ALMGuard when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

openai_tts Not yet run
unverified (harvested, no recorded run)
WeifeiJin/ALMGuard/datasets/openai_tts.py
pointer only (licence: NONE) · get_code("14a82fce86cab897")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WeifeiJin/ALMGuard when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

qwen_infer Not yet run
unverified (harvested, no recorded run)
WeifeiJin/ALMGuard/eval_qwen.py
pointer only (licence: NONE) · get_code("c60dd1ae7e5aaea9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, WeifeiJin/ALMGuard when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 4 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
sinusoids 9 other papers
8 dated earlier, 1 later
2212.04356 (2022-12)
Robust Speech Recognition via Large-Scale Weak Supervision
2306.05284 (2023-06)
Simple and Controllable Music Generation
2307.03183 (2023-07)
Whisper-AT: Noise-Robust Automatic Speech Recognizers are Also Strong General Audio Event Taggers
and 6 more not named here
pad_or_trim 5 other papers
4 dated earlier, 1 later
2212.04356 (2022-12)
Robust Speech Recognition via Large-Scale Weak Supervision
2308.06112 (2023-08)
Lip2Vec: Efficient and Robust Visual Speech Recognition via Latent-to-Latent Visual to Audio Representation Mapping
2406.10082 (2024-06)
Whisper-Flamingo: Integrating Visual Features into Whisper for Audio-Visual Speech Recognition and Translation
and 2 more not named here
load_audio 2 other papers
1 dated earlier, 1 later
2406.10082 (2024-06)
Whisper-Flamingo: Integrating Visual Features into Whisper for Audio-Visual Speech Recognition and Translation
2604.13073 (2026-04)
OmniTrace: A Unified Framework for Generation-Time Attribution in Omni-Modal LLMs
mel_filters 2 other papers
1 dated earlier, 1 later
2406.10082 (2024-06)
Whisper-Flamingo: Integrating Visual Features into Whisper for Audio-Visual Speech Recognition and Translation
2604.13073 (2026-04)
OmniTrace: A Unified Framework for Generation-Time Attribution in Omni-Modal LLMs

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Recent advances in Audio-Language Models (ALMs) have significantly improved multimodal understanding capabilities. However, the introduction of the audio modality also brings new and unique vulnerability vectors. Previous studies have proposed jailbreak attacks that specifically target ALMs, revealing that defenses directly transferred from traditional audio adversarial attacks or text-based Large Language Model (LLM) jailbreaks are largely ineffective against these ALM-specific threats. To address this issue, we propose ALMGuard, the first defense framework tailored to ALMs. Based on the assumption that safety-aligned shortcuts naturally exist in ALMs, we design a method to identify universal Shortcut Activation Perturbations (SAPs) that serve as triggers that activate the safety shortcuts to safeguard ALMs at inference time. To better sift out effective triggers while preserving the model's utility on benign tasks, we further propose Mel-Gradient Sparse Mask (M-GSM), which restricts perturbations to Mel-frequency bins that are sensitive to jailbreaks but insensitive to speech understanding. Both theoretical analyses and empirical results demonstrate the robustness of our method against both seen and unseen attacks. Overall, ALMGuard reduces the average success rate of advanced ALM-specific jailbreak attacks to 4.6% across four models, while maintaining comparable utility on benign benchmarks, establishing it as the new state of the art. Our code and data are available at https://github.com/WeifeiJin/ALMGuard.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2510.26096")
get_code_for_paper("2510.26096")
have("2510.26096")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2510.26096.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2510.26096.svg)](https://syntology.ai/paper/2510.26096)

Connect an agent — have() is free.