Papers › SPA-VL: A Comprehensive Safety Preference Alignment Dataset for Vision Language Model

SPA-VL: A Comprehensive Safety Preference Alignment Dataset for Vision Language Model

17 Jun 2024arXiv:2406.12030archive 2025-07-28

Yongting Zhang, Lu Chen, Guodong Zheng, Yifeng Gao, Rui Zheng, Jinlan Fu, Zhenfei Yin, Senjie Jin, Yu Qiao, Xuanjing Huang, Feng Zhao, Tao Gui, Jing Shao

The emergence of Vision Language Models (VLMs) has brought unprecedented advances in understanding multimodal information. The combination of textual and visual semantics in VLMs is highly complex and diverse, making the safety alignment of these models challenging. Furthermore, due to the limited study on the safety alignment of VLMs, there is a lack of large-scale, high-quality datasets. To address these limitations, we propose a Safety Preference Alignment dataset for Vision Language Models named SPA-VL. In terms of breadth, SPA-VL covers 6 harmfulness domains, 13 categories, and 53 subcategories, and contains 100,788 samples of the quadruple (question, image, chosen response, rejected response). In terms of depth, the responses are collected from 12 open-source (e.g., QwenVL) and closed-source (e.g., Gemini) VLMs to ensure diversity. The construction of preference data is fully automated, and the experimental results indicate that models trained with alignment techniques on the SPA-VL dataset exhibit substantial improvements in harmlessness and helpfulness while maintaining core capabilities. SPA-VL, as a large-scale, high-quality, and diverse dataset, represents a significant milestone in ensuring that VLMs achieve both harmlessness and helpfulness.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2406.12030")

Code

Syntology Ran 7 of 9 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 5 ran with no contract checked.

By repository: official repository: 9 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

echosechen/spa-vl-rlhf officialmentioned in paperpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

9 samples harvested; 7 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
5ran
2unverified

Licence: 0 of the 9 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from echosechen/spa-vl-rlhf. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

batch_select echosechen/spa-vl-rlhf/models/ppo/reward_model.py official repository ran · our draft was wrong MIT (permissive) · 2154e44a6b59e432 · report
unpack_dict echosechen/spa-vl-rlhf/models/ppo/reward_model.py official repository ran · our draft was wrong MIT (permissive) · a6989412aca721c1 · report
adjust_queries echosechen/spa-vl-rlhf/infer_json.py official repository ran fingerprinted MIT (permissive) · d81457ff8457bb3b · report
all_gather_and_cat echosechen/spa-vl-rlhf/all_utils/distributed_utils.py official repository ran fingerprinted MIT (permissive) · 5aa59c85970b28a7 · report
create_scheduler echosechen/spa-vl-rlhf/all_utils/trainer_utils.py official repository ran MIT (permissive) · 42596ac916e883a5 · report
setup echosechen/spa-vl-rlhf/all_utils/distributed_utils.py official repository ran fingerprinted MIT (permissive) · 4098e9c2afde4a5d · report
truncate_after_eos_with_padding echosechen/spa-vl-rlhf/models/dpo/dpo_trainer.py official repository ran MIT (permissive) · 6ff9248489766439 · report
custom_gather echosechen/spa-vl-rlhf/infer_json.py official repository unverified MIT (permissive) · 4d9dae8e7537c18a · report
setup_accelerator echosechen/spa-vl-rlhf/all_utils/trainer_utils.py official repository unverified MIT (permissive) · ddf566ec4ea0d353 · report

Tasks

Language ModelingLanguage ModellingSafety Alignment

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections