SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2601.15115 · 2026

Training-Free and Interpretable Hateful Video Detection via Multi-stage Adversarial Reasoning

Yuchen Zhang, Zeyu Fu, Shuonan Yang

arXiv · PDF · Open in the Atlas

Code that ran

5 of 7 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, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 2 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.15115.json · badge: /api/ran/2601.15115.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
Multimodal-Intelligence-Lab-MIL/MARS community
Papers with Code archive
5 ran · 2 no recorded run
FunctionStatusWhere it lives
clean_json_response Ran
ran; our contract draft was wrong, not the code
Multimodal-Intelligence-Lab-MIL/MARS/code/MARS/gemini2.5flash.py
code served (permissive licence) · get_code("f69eb6fd71b774b4")
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, 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.

import json

# Test case 1: Valid JSON with ```json markers
response_text_1 = '```json\n{"key": "value", "number": 42}\n```'

# Test case 2: Valid JSON with ``` markers
response_text_2 = '```\n{"status": "ok", "data": [1, 2, 3]}\n```'

# Test case 3: Valid JSON without markers
response_text_3 = '{"name": "test", "active": true}'

# Test case 4: Invalid JSON (will trigger JSONDecodeError)
response_text_4 = 'This is not JSON at all'

# Using test case 1 as the main argument
ARGS = {
    'response_text': response_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 tuple, ndim 1, dtype family float — a tuple 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
clean_text Ran
ran; our contract draft was wrong, not the code
Multimodal-Intelligence-Lab-MIL/MARS/code/MARS/gemini2.5flash.py
code served (permissive licence) · get_code("e609dfa06255ac50")
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 torch

torch.manual_seed(0)

ARGS = {
    'text': '  hello world  '
}
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 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
create_turn_prompt Ran
ran; our contract draft was wrong, not the code
Multimodal-Intelligence-Lab-MIL/MARS/code/MARS/gemini2.5flash.py
code served (permissive licence) · get_code("6f8fcab1838b516d")
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 json

# Test for turn 1 - basic description
ARGS_turn_1 = {
    'turn': 1,
    'transcript': 'This is a sample transcript about a video showing people in a park.',
    'previous_results': None
}

# Test for turn 2 - hate speech detection
ARGS_turn_2 = {
    'turn': 2,
    'transcript': 'Sample transcript for hate analysis.',
    'previous_results': None
}

# Test for turn 3 - non-hate analysis
ARGS_turn_3 = {
    'turn': 3,
    'transcript': 'Sample transcript for non-hate analysis.',
    'previous_results': None
}

# Test for turn 4 - final determination with previous results
previous_results_turn_4 = {
    'turn_1': {
        'parsed_response': {
            'objective_visual_description': 'Two people arguing in a public space, one wearing red shirt, one wearing blue. Raised voices but no physical contact.'
        }
    },
    'turn_2': {
        'parsed_response': {
            'evidence': 'Heated argument with aggressive language',
            'reasoning': 'Could be interpreted as confrontational',
            'strength': 0.6
        }
    },
    'turn_3': {
        'parsed_response': {
            'evidence': 'Personal dispute between individuals, no group targeting',
            'reasoning': 'No identity-based discriminatory language present',
            'strength': 0.8
        }
    }
}

ARGS_turn_4 = {
    'turn': 4,
    'transcript': 'Argument between two individuals about a personal matter.',
    'previous_results': previous_results_turn_4
}

# Use turn 1 as the primary example
ARGS = ARGS_turn_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
get_frames_from_folder Ran
ran; our contract draft was wrong, not the code
Multimodal-Intelligence-Lab-MIL/MARS/code/MARS/gemini2.5flash.py
code served (permissive licence) · get_code("11fb9487de1cfda6")
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.

import os
import tempfile
import numpy as np
from PIL import Image

# Create a temporary directory with some test images
temp_dir = tempfile.mkdtemp()

# Create 8 dummy image files
for i in range(8):
    img = Image.new('RGB', (10, 10), color=(i*30, i*30, i*30))
    img.save(os.path.join(temp_dir, f'frame_{i:03d}.png'))

ARGS = {
    'folder_path': temp_dir,
    'num_frames': 6
}
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 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
load_image_for_gemini Ran
ran, honoured the contract we drafted
Multimodal-Intelligence-Lab-MIL/MARS/code/MARS/gemini2.5flash.py
code served (permissive licence) · get_code("578d1c267cb9b593")
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 PngImageFile. 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 tempfile
import os
from PIL import Image

# Create a temporary image file for testing
temp_dir = tempfile.mkdtemp()
temp_image_path = os.path.join(temp_dir, "test_image.png")

# Create a small test image (4x3 pixels)
test_image = Image.new('RGB', (4, 3), color=(255, 0, 0))
test_image.save(temp_image_path)

ARGS = {
    "image_path": temp_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 PngImageFile — a PngImageFile output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PngImageFile 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
classify_multimodal_content_single_turn Not yet run
unverified (harvested, no recorded run)
Multimodal-Intelligence-Lab-MIL/MARS/code/MARS/gemini2.5flash.py
code served (permissive licence) · get_code("82f67fdd61f3b486")
How it ran

no invocation recorded.

process_video_multi_turn Not yet run
unverified (harvested, no recorded run)
Multimodal-Intelligence-Lab-MIL/MARS/code/MARS/gemini2.5flash.py
code served (permissive licence) · get_code("aadfaa0259ae42af")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 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 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.

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

Hateful videos pose serious risks by amplifying discrimination, inciting violence, and undermining online safety. Existing trainingbased hateful video detection methods are constrained by limited training data and lack of interpretability, while directly prompting large vision-language models often struggle to deliver reliable hate detection. To address these challenges, this paper introduces MARS, a training-free Multi-stage Adversarial ReaSoning framework that enables reliable and interpretable hateful content detection 1 . MARS begins with the objective description of video content, establishing a neutral foundation for subsequent analysis. Building on this, it develops evidence-based reasoning that supports potential hateful interpretations, while in parallel incorporating counter-evidence reasoning to capture plausible non-hateful perspectives. Finally, these perspectives are synthesized into a conclusive and explainable decision. Extensive evaluation on two real-world datasets shows that MARS achieves up to 10% improvement under certain backbones and settings compared to other training-free approaches and outperforms state-of-the-art training-based methods on one dataset. In addition, MARS produces human-understandable justifications, thereby supporting compliance oversight and enhancing the transparency of content moderation workflows. Warning: This paper contains sensitive materials that many will find hateful or offensive; however, this is necessary due to the nature of the task.

For agents

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

get_harvested_code_for_paper("2601.15115")
get_code_for_paper("2601.15115")
have("2601.15115")

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

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

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

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

Connect an agent — have() is free.