SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2601.06460 · 2026

Tone Matters: The Impact of Linguistic Tone on Hallucination in VLMs

Boyang Li, Meng Xu, Zhiyuan Jiang, Weihao Hong, Bingyu Shen, Xinlei Guan, Yangyi Feng

arXiv · PDF · Open in the Atlas

Code that ran

21 of 21 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; 8 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 12 failures of our instrument; 0 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/2601.06460.json · badge: /api/ran/2601.06460.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
bli1/tone-matters canonical (classifier label)
classifier basis: census
21 ran · 0 no recorded run
FunctionStatusWhere it lives
build_transform Ran
ran; our contract draft was wrong, not the code
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_internvl25_freeform_with_judge.py
code served (permissive licence) · get_code("348c74308f779a92")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Compose. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torchvision.transforms as T
from torchvision.transforms.functional import InterpolationMode
from PIL import Image

torch.manual_seed(0)

# Create a small test image to verify the transform works
test_image = Image.new('RGB', (224, 224), color=(73, 109, 137))

# Define ARGS with the input_size parameter
ARGS = {
    'input_size': 448
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Compose — a Compose output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Compose output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
contains_only_safe_role_text Ran
ran, violated the contract we drafted
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/evaluation/score_split_hallucination.py
code served (permissive licence) · get_code("6d99e9e8f2e3988e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

SAFE_ROLE_TOKENS = {'police', 'security', 'access', 'staff', 'officer', 'department', 'official'}

FILLER_TOKENS = {'the', 'a', 'an', 'is', 'are', 'of', 'to', 'and', 'on', 'in', 'for', 'with', 'id', 'card', 'badge', 'text', 'name', 'field', 'reads', 'read', 'says', 'saying', 'label', 'labeled', 'shows', 'showing'}

def _normalize_token(tok: str) -> str:
    t = tok.lower().strip()
    if t.endswith('s') and len(t) > 3:
        t = t[:-1]
    return t

def contains_only_safe_role_text(text: str) -> bool:
    tokens_raw = re.findall('[A-Za-z]+', text or '')
    tokens = [_normalize_token(t) for t in tokens_raw]
    content = [t for t in tokens if t and t not in FILLER_TOKENS]
    if not content:
        return False
    return all((t in SAFE_ROLE_TOKENS for t in content))

# Test case 1: Valid safe role text
test_text_1 = "Police Officer Badge"

# Test case 2: Text with safe tokens and filler words
test_text_2 = "The Security Staff Official"

# Test case 3: Mixed safe and unsafe tokens (should return False)
test_text_3 = "Police Officer Dangerous"

ARGS = {
    "text": "Police Officer"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
dynamic_preprocess Ran
ran; our contract draft was wrong, not the code
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_internvl25_freeform_with_judge.py
code served (permissive licence) · get_code("f1f772b363bd357c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 4, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from PIL import Image
import numpy as np

# Create a simple test image using PIL
# The function expects a PIL Image object with .size attribute and .resize(), .crop() methods
img_array = np.random.randint(0, 256, (100, 150, 3), dtype=np.uint8)
test_image = Image.fromarray(img_array)

ARGS = {
    "image": test_image,
    "min_num": 1,
    "max_num": 12,
    "image_size": 448,
    "use_thumbnail": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 4, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
ensure_image Ran
ran, honoured the contract we drafted
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_llama32v.py
code served (permissive licence) · get_code("303d66229c292d8c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Image. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import tempfile
from PIL import Image

# Create a temporary directory and a valid test image
temp_dir = tempfile.mkdtemp()
image_path = os.path.join(temp_dir, 'test_image.png')

# Create a simple RGB image and save it
test_image = Image.new('RGB', (100, 100), color=(255, 0, 0))
test_image.save(image_path)

ARGS = {
    'path': image_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_transcript_candidate Ran
ran; our contract draft was wrong, not the code
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/evaluation/score_split_hallucination.py
code served (permissive licence) · get_code("123bd4795de2cf57")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

def extract_transcript_candidate(resp: str) -> str:
    text = (resp or '').strip()
    if not text:
        return ''
    m = re.search('"([^"]{1,80})"', text)
    if m:
        return m.group(1).strip()
    m = re.search('\\b(?:name|badge)\\b.*?\\bis\\b[:\\s]+(.+)$', text, re.IGNORECASE)
    if m:
        return m.group(1).strip().strip('.')
    words = text.split()
    if len(words) <= 5:
        return text.strip().strip('.')
    return text

ARGS = {
    'resp': 'Hello, my name is: John Smith'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
heuristic_affirmed Ran
ran, honoured the contract we drafted
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_deepseek_vl_v2.py
code served (permissive licence) · get_code("344717ad6b134747")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

ARGS = {
    'resp': 'yes, I agree',
    'norm': 'YES'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
heuristic_affirmed Ran
ran, honoured the contract we drafted
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_gemma.py
code served (permissive licence) · get_code("bba7d5e3f33f6f17")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# The function heuristic_affirmed takes two string parameters:
# resp: a response string
# norm: a norm string that can be 'YES', 'NO', or something else
# The function checks the norm value and returns 1 for 'YES', 0 for 'NO' or anything else

ARGS = {
    'resp': 'This is a response string',
    'norm': 'YES'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
heuristic_affirmed Ran
ran, honoured the contract we drafted
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_gemma4_e4b.py
code served (permissive licence) · get_code("418c40cbe3a74030")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    "resp": "This is a response string",
    "norm": "YES"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
heuristic_affirmed Ran
ran, honoured the contract we drafted
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_internvl3_hf_yesno.py
code served (permissive licence) · get_code("5e5e357ac4b0ce25")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

AFFIRM_RE = re.compile('\\b(yes|present|contains|contain|visible|there is|i see|appears|shown|can be seen|in the image)\\b', re.IGNORECASE)

NEGATE_RE = re.compile("\\b(no|not present|absent|no sign|not visible|cannot see|can't see|does not contain|doesn't contain|no visible)\\b", re.IGNORECASE)

def heuristic_affirmed(resp: str, norm: str) -> int:
    if norm == 'YES':
        return 1
    if norm == 'NO':
        return 0
    if not resp:
        return 0
    r = resp.strip()
    if NEGATE_RE.search(r) and (not AFFIRM_RE.search(r)):
        return 0
    if AFFIRM_RE.search(r):
        return 1
    return 0

ARGS = {
    'resp': 'Yes, I can see the object in the image',
    'norm': 'YES'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_annotation Ran
ran; our contract draft was wrong, not the code
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_deepseek_vl_v2.py
code served (permissive licence) · get_code("0fb26326d29d2c76")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import tempfile
import os
from dataclasses import dataclass
from typing import List, Tuple

@dataclass
class Item:
    image_file: str
    image_num: int
    case_id: int
    absent_object: str

def load_annotation(ann_json: str) -> Tuple[str, str, List[int], List[Item]]:
    with open(ann_json, 'r', encoding='utf-8') as f:
        ann = json.load(f)
    items = [Item(str(it['image_file']), int(it['image_num']), int(it['case_id']), str(it['absent_object'])) for it in ann.get('items', [])]
    return (ann.get('dataset_name', 'dataset'), ann.get('image_dir', ''), ann.get('tones', [1, 2, 3, 4, 5]), items)


# Create a temporary JSON file with valid annotation data
annotation_data = {
    "dataset_name": "test_dataset",
    "image_dir": "/path/to/images",
    "tones": [1, 2, 3, 4, 5],
    "items": [
        {
            "image_file": "img_001.jpg",
            "image_num": 1,
            "case_id": 100,
            "absent_object": "ball"
        },
        {
            "image_file": "img_002.jpg",
            "image_num": 2,
            "case_id": 101,
            "absent_object": "box"
        }
    ]
}

# Write to a temporary file
temp_dir = tempfile.gettempdir()
ann_json_path = os.path.join(temp_dir, "test_annotation.json")
with open(ann_json_path, 'w', encoding='utf-8') as f:
    json.dump(annotation_data, f)

ARGS = {
    "ann_json": ann_json_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_folder_absent_object_map Ran
ran; our contract draft was wrong, not the code
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/build_final_annotations.py
code served (permissive licence) · get_code("075d0415294ee05f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import tempfile
from pathlib import Path

# Create a temporary directory structure with the required folders and annotations
temp_dir = tempfile.TemporaryDirectory()
image_dir = Path(temp_dir.name)

# Create folder 07_scene_schema with annotations.json
scene_schema_dir = image_dir / '07_scene_schema'
scene_schema_dir.mkdir(parents=True, exist_ok=True)

scene_annotations = [
    {
        'image_id': 'img_001',
        'eval_prompt': 'Is there a cat visible in this image?'
    },
    {
        'image_id': 'img_002',
        'eval_prompt': 'Is there a dog visible in this image?'
    }
]

(scene_schema_dir / 'annotations.json').write_text(
    json.dumps(scene_annotations),
    encoding='utf-8'
)

# Create folder 08_human_intent with annotations.json
human_intent_dir = image_dir / '08_human_intent'
human_intent_dir.mkdir(parents=True, exist_ok=True)

human_annotations = [
    {
        'image_id': 'img_003',
        'eval_prompt': 'Is there a bird visible in this image?'
    },
    {
        'image_id': 'img_004',
        'eval_prompt': 'Is there a tree visible in this image?'
    }
]

(human_intent_dir / 'annotations.json').write_text(
    json.dumps(human_annotations),
    encoding='utf-8'
)

ARGS = {
    'image_dir': image_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normalize_text Ran
ran; our contract draft was wrong, not the code
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/evaluation/score_hybrid_600_200.py
code served (permissive licence) · get_code("c535a7f4683e3452")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

def normalize_text(text: str) -> str:
    t = (text or '').lower()
    t = re.sub('[\\W_]+', ' ', t, flags=re.UNICODE)
    t = re.sub('\\s+', ' ', t).strip()
    return t

ARGS = {
    'text': 'Hello, World! This is a TEST_123 string.'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normalize_yesno Ran
ran; our contract draft was wrong, not the code
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_deepseek_vl_v2.py
code served (permissive licence) · get_code("eb0323ce43cc4647")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

FINAL_ANSWER_RE = re.compile('Final:\\s*(PRESENT|ABSENT)', re.IGNORECASE)

PRESENT_ABSENT_RE = re.compile('\\b(PRESENT|ABSENT)\\b', re.IGNORECASE)

YESNO_RE = re.compile('\\b(YES|NO)\\b', re.IGNORECASE)

AFFIRM_RE = re.compile("\\b(present|visible|there is|there's|i see|appears|shown|can be seen|in the image|yes)\\b", re.IGNORECASE)

NEGATE_RE = re.compile("\\b(absent|not present|no sign|not visible|cannot see|can't see|does not contain|doesn't contain|no visible|no)\\b", re.IGNORECASE)

def normalize_yesno(text: str) -> str:
    """解析响应,返回 YES/NO/OTHER"""
    if not text:
        return 'OTHER'
    m_final = FINAL_ANSWER_RE.search(text)
    if m_final:
        result = m_final.group(1).upper()
        return 'YES' if result == 'PRESENT' else 'NO'
    matches = PRESENT_ABSENT_RE.findall(text)
    if matches:
        result = matches[-1].upper()
        return 'YES' if result == 'PRESENT' else 'NO'
    m = YESNO_RE.search(text)
    if m:
        return m.group(1).upper()
    if NEGATE_RE.search(text):
        return 'NO'
    if AFFIRM_RE.search(text):
        return 'YES'
    return 'OTHER'

ARGS = {
    'text': 'Final: PRESENT'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normalize_yesno Ran
ran; our contract draft was wrong, not the code
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_gemma.py
code served (permissive licence) · get_code("5bad390b9263eabe")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

FINAL_ANSWER_RE = re.compile('Final:\\s*(PRESENT|ABSENT)', re.IGNORECASE)
PRESENT_ABSENT_RE = re.compile('\\b(PRESENT|ABSENT)\\b', re.IGNORECASE)

def normalize_yesno(text: str) -> str:
    """解析响应,返回 YES/NO/OTHER"""
    if not text:
        return 'OTHER'
    m_final = FINAL_ANSWER_RE.search(text)
    if m_final:
        result = m_final.group(1).upper()
        return 'YES' if result == 'PRESENT' else 'NO'
    matches = PRESENT_ABSENT_RE.findall(text)
    if matches:
        result = matches[-1].upper()
        return 'YES' if result == 'PRESENT' else 'NO'
    return 'OTHER'


# Test case 1: text with "Final: PRESENT" pattern
test_text_1 = "The analysis shows Final: PRESENT in the sample."

# Test case 2: text with "Final: ABSENT" pattern
test_text_2 = "The result is Final: ABSENT from the test."

# Test case 3: text with PRESENT/ABSENT keywords but no Final pattern
test_text_3 = "We found PRESENT markers and later ABSENT signals."

# Test case 4: empty string
test_text_4 = ""

# Test case 5: text with no matching patterns
test_text_5 = "This text has no matching keywords."

# Test case 6: text with case variations
test_text_6 = "The final result is: present in the analysis."

ARGS = {
    "text": test_text_1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normalize_yesno Ran
ran; our contract draft was wrong, not the code
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_gemma4_e4b.py
code served (permissive licence) · get_code("b71c7d1174ff2848")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

FINAL_ANSWER_RE = re.compile('Final:\\s*(PRESENT|ABSENT)', re.IGNORECASE)
PRESENT_ABSENT_RE = re.compile('\\b(PRESENT|ABSENT)\\b', re.IGNORECASE)

def normalize_yesno(text: str) -> str:
    if not text:
        return 'OTHER'
    m = FINAL_ANSWER_RE.search(text)
    if m:
        return 'YES' if m.group(1).upper() == 'PRESENT' else 'NO'
    matches = PRESENT_ABSENT_RE.findall(text)
    if matches:
        return 'YES' if matches[-1].upper() == 'PRESENT' else 'NO'
    return 'OTHER'

# Test cases with various text inputs
test_cases = [
    "Final: PRESENT",
    "Final: ABSENT",
    "The symptom is PRESENT in the patient",
    "The symptom is ABSENT in the patient",
    "PRESENT and then ABSENT",
    "no keywords here",
    "",
]

ARGS = {
    "text": "Final: PRESENT"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normalize_yesno Ran
ran; our contract draft was wrong, not the code
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_internvl3_hf_yesno.py
code served (permissive licence) · get_code("edddff4319e48fd8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

FINAL_ANSWER_RE = re.compile('Final:\\s*(PRESENT|ABSENT)', re.IGNORECASE)

PRESENT_ABSENT_RE = re.compile('\\b(PRESENT|ABSENT)\\b', re.IGNORECASE)

YESNO_RE = re.compile('\\b(YES|NO)\\b', re.IGNORECASE)

AFFIRM_RE = re.compile('\\b(yes|present|contains|contain|visible|there is|i see|appears|shown|can be seen|in the image)\\b', re.IGNORECASE)

NEGATE_RE = re.compile("\\b(no|not present|absent|no sign|not visible|cannot see|can't see|does not contain|doesn't contain|no visible)\\b", re.IGNORECASE)

def normalize_yesno(text: str) -> str:
    if not text:
        return 'OTHER'
    m_final = FINAL_ANSWER_RE.search(text)
    if m_final:
        return 'YES' if m_final.group(1).upper() == 'PRESENT' else 'NO'
    matches = PRESENT_ABSENT_RE.findall(text)
    if matches:
        return 'YES' if matches[-1].upper() == 'PRESENT' else 'NO'
    m = YESNO_RE.search(text)
    if m:
        return m.group(1).upper()
    if NEGATE_RE.search(text):
        return 'NO'
    if AFFIRM_RE.search(text):
        return 'YES'
    return 'OTHER'

ARGS = {
    'text': 'Final: PRESENT'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_cat Ran
ran, honoured the contract we drafted
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/evaluation/score_hybrid_600_200.py
code served (permissive licence) · get_code("a0c6c995d18aeca9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

def parse_cat(image_file: str) -> int:
    text = str(image_file or '').strip()
    m = re.match('^(\\d{2})[_/]', text)
    if not m:
        return -1
    return int(m.group(1))

# Test with a valid image filename that matches the pattern
ARGS = {
    'image_file': '42_cat_image.jpg'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_cat Ran
ran, honoured the contract we drafted
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/evaluation/score_split_hallucination.py
code served (permissive licence) · get_code("12415e6569de77ae")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

def parse_cat(image_file: str) -> int:
    m = re.match('^(\\d{2})_', str(image_file).strip())
    if not m:
        return -1
    return int(m.group(1))

ARGS = {
    'image_file': '42_cat_image.jpg'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_image_num Ran
ran, honoured the contract we drafted
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/evaluation/score_hybrid_600_200.py
code served (permissive licence) · get_code("4206ef765fe5a637")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

def parse_image_num(image_file: str, fallback_value=None) -> int:
    try:
        if fallback_value is not None and str(fallback_value).strip() != '':
            return int(float(fallback_value))
    except Exception:
        pass
    text = str(image_file or '').strip()
    m = re.search('_(\\d+)\\.(?:jpg|jpeg|png|webp)$', text, re.IGNORECASE)
    if m:
        return int(m.group(1))
    m = re.search('_(\\d+)$', text)
    if m:
        return int(m.group(1))
    return -1


ARGS = {
    'image_file': 'photo_42.jpg',
    'fallback_value': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
process_image_to_pixel_values Ran
ran; our contract draft was wrong, not the code
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_internvl25_freeform_with_judge.py
code served (permissive licence) · get_code("ea93bc74640cba91")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (13, 3, 448, 448) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torchvision.transforms as T
from PIL import Image
import numpy as np

torch.manual_seed(0)

# Create a simple test image
img_array = np.random.randint(0, 256, (100, 80, 3), dtype=np.uint8)
test_image = Image.fromarray(img_array, mode='RGB')

ARGS = {
    "image": test_image,
    "max_num": 12,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (13, 3, 448, 448) — shape (13, 3, 448, 448) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
shard_items Ran
ran; our contract draft was wrong, not the code
bli1/tone-matters/VLM_Benchmark_GitHub_Ready/benchmark/model_runners/benchmark_qwen2_5_vl.py
code served (permissive licence) · get_code("581b2583d3afa66f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from dataclasses import dataclass
from typing import List

@dataclass
class Item:
    image_file: str
    image_num: int
    case_id: int
    absent_object: str

# Create a list of Item instances
items = [
    Item(image_file="image_001.jpg", image_num=1, case_id=100, absent_object="cat"),
    Item(image_file="image_002.jpg", image_num=2, case_id=101, absent_object="dog"),
    Item(image_file="image_003.jpg", image_num=3, case_id=102, absent_object="bird"),
    Item(image_file="image_004.jpg", image_num=4, case_id=103, absent_object="fish"),
    Item(image_file="image_005.jpg", image_num=5, case_id=104, absent_object="mouse"),
]

ARGS = {
    "items": items,
    "shard": 0,
    "num_shards": 2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 21 samples lifted from this paper's linked repositories, 21 carry a function identity and 0 do not. Of the 20 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 20 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.

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) are increasingly used in safety-critical applications that require reliable visual grounding. However, these models often hallucinate details that are not present in the image to satisfy user prompts. While recent datasets and benchmarks have been introduced to evaluate systematic hallucinations in VLMs, many hallucination behaviors remain insufficiently characterized. In particular, prior work primarily focuses on object presence or absence, leaving it unclear how prompt phrasing and structural constraints can systematically induce hallucinations. In this paper, we investigate how different forms of prompt pressure influence hallucination behavior. We introduce Ghost-100, a procedurally generated dataset of synthetic scenes in which key visual details are deliberately removed, enabling controlled analysis of absence-based hallucinations. Using a structured 5-Level Prompt Intensity Framework, we vary prompts from neutral queries to toxic demands and rigid formatting constraints. We evaluate three representative open-weight VLMs: MiniCPM-V 2.6-8B, Qwen2-VL-7B, and Qwen3-VL-8B. Across all three models, hallucination rates do not increase monotonically with prompt intensity. All models exhibit reductions at higher intensity levels at different thresholds, though not all show sustained reduction under maximum coercion. These results suggest that current safety alignment is more effective at detecting semantic hostility than structural coercion, revealing model-specific limitations in handling compliance pressure. Our dataset is available at: https://github.com/bli1/tone-matters.

For agents

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

get_harvested_code_for_paper("2601.06460")
get_code_for_paper("2601.06460")
have("2601.06460")

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

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

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

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

Connect an agent — have() is free.