SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.06625 · 2024

ETA: Evaluating Then Aligning Safety of Vision Language Models at Inference Time

arXiv · PDF · Open in the Atlas

Code that ran

9 of 11 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; 1 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 6 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2410.06625.json · badge: /api/ran/2410.06625.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
dripnowhy/eta canonical (classifier label)
classifier basis: census
9 ran · 2 no recorded run
FunctionStatusWhere it lives
calculate_safety_scores Ran
ran, honoured the contract we drafted
dripnowhy/eta/eval_usr.py
pointer only (licence: NONE) · get_code("da2114a8052b6d55")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dripnowhy/eta 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.

check_success_attack Ran
ran, violated the contract we drafted
dripnowhy/eta/eval_asr.py
pointer only (licence: NONE) · get_code("8e8f6b744fcf648c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dripnowhy/eta 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.

collate_fn Ran
ran; our contract draft was wrong, not the code
dripnowhy/eta/llava/eval/model_vqa_loader_eta.py
pointer only (licence: NONE) · get_code("b3b9db8ec8e0d1d1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dripnowhy/eta 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.

encode_image Ran
ran; our contract draft was wrong, not the code
dripnowhy/eta/helpfulscore_ai.py
pointer only (licence: NONE); the stored copy get_code serves, from jongwoopark7978/LVNet, is pointer only (licence: NONE) · get_code("f41cb1a19b154297")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dripnowhy/eta 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_chunk Ran
ran; our contract draft was wrong, not the code
dripnowhy/eta/llava/eval/model_vqa_loader_eta.py
pointer only (licence: NONE) · get_code("42a46570620cd9fa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dripnowhy/eta 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.

gpt4_eval Ran
ran; our contract draft was wrong, not the code
dripnowhy/eta/helpfulscore_ai.py
pointer only (licence: NONE) · get_code("eae64eb562f6b0d1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dripnowhy/eta 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.

gpt4_eval Ran
ran; our contract draft was wrong, not the code
dripnowhy/eta/helpful_wintie_ai.py
pointer only (licence: NONE) · get_code("6d82575864d8ddeb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dripnowhy/eta 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.

is_none Ran
ran, violated the contract we drafted
dripnowhy/eta/llava/eval/model_vqa_mmbench_eta.py
pointer only (licence: NONE); the stored copy get_code serves, from ASTRAL-Group/ASTRA, is pointer only (licence: NONE) · get_code("bae18947b56f2be1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dripnowhy/eta 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.

split_list Ran
ran; our contract draft was wrong, not the code
dripnowhy/eta/llava/eval/model_vqa_loader_eta.py
pointer only (licence: NONE) · get_code("076c252c52cbb161")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dripnowhy/eta 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.

evaluate_safety Not yet run
unverified (harvested, no recorded run)
dripnowhy/eta/eval_usr.py
pointer only (licence: NONE) · get_code("85e3fe4d95b795f8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dripnowhy/eta 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.

get_stopping_criteria Not yet run
unverified (harvested, no recorded run)
dripnowhy/eta/modeling_internlm_xcomposer2.py
pointer only (licence: NONE) · get_code("14c54d6727f29560")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dripnowhy/eta 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 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 5 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 4 the same month, 5 later) and 6 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
split_list 197 other papers
109 dated earlier, 15 the same month, 66 later, 6 same year, order not determinable, 1 undated
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2306.17107 (2023-06)
LLaVAR: Enhanced Visual Instruction Tuning for Text-Rich Image Understanding
2307.10490 (2023-07)
Abusing Images and Sounds for Indirect Instruction Injection in Multi-Modal LLMs
and 194 more not named here
get_chunk 189 other papers
104 dated earlier, 15 the same month, 64 later, 6 same year, order not determinable
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2306.17107 (2023-06)
LLaVAR: Enhanced Visual Instruction Tuning for Text-Rich Image Understanding
2307.10490 (2023-07)
Abusing Images and Sounds for Indirect Instruction Injection in Multi-Modal LLMs
and 186 more not named here
is_none 83 other papers
46 dated earlier, 9 the same month, 26 later, 2 same year, order not determinable
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2308.10253 (2023-08)
StableLLaVA: Enhanced Visual Instruction Tuning with Synthesized Image-Dialogue Data
2308.13566 (2023-08)
MLLM-DataEngine: An Iterative Refinement Approach for MLLM
and 80 more not named here
encode_image 76 other papers
31 dated earlier, 12 the same month, 32 later, 1 same year, order not determinable
2309.05950 (2023-09)
Language Models as Black-Box Optimizers for Vision-Language Models
2311.15732 (2023-11)
GPT4Vis: What Can GPT-4 Do for Zero-shot Visual Recognition?
2312.14867 (2023-12)
VIEScore: Towards Explainable Metrics for Conditional Image Synthesis Evaluation
and 73 more not named here
get_stopping_criteria 1 other paper
1 later
2501.13925 (2025-01)
GeoPixel: Pixel Grounding Large Multimodal Model in Remote Sensing

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

Vision Language Models (VLMs) have become essential backbones for multimodal intelligence, yet significant safety challenges limit their real-world application. While textual inputs are often effectively safeguarded, adversarial visual inputs can easily bypass VLM defense mechanisms. Existing defense methods are either resource-intensive, requiring substantial data and compute, or fail to simultaneously ensure safety and usefulness in responses. To address these limitations, we propose a novel two-phase inference-time alignment framework, Evaluating Then Aligning (ETA): 1) Evaluating input visual contents and output responses to establish a robust safety awareness in multimodal settings, and 2) Aligning unsafe behaviors at both shallow and deep levels by conditioning the VLMs' generative distribution with an interference prefix and performing sentence-level best-of-N to search the most harmless and helpful generation paths. Extensive experiments show that ETA outperforms baseline methods in terms of harmlessness, helpfulness, and efficiency, reducing the unsafe rate by 87.5% in cross-modality attacks and achieving 96.6% win-ties in GPT-4 helpfulness evaluation. The code is publicly available at https://github.com/DripNowhy/ETA.

For agents

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

get_harvested_code_for_paper("2410.06625")
get_code_for_paper("2410.06625")
have("2410.06625")

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

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

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

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

Connect an agent — have() is free.