SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.06252 · 2025

Can Atomic Step Decomposition Enhance the Self-structured Reasoning of Multimodal Large Models?

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 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, 1 violated it and 4 have no contract verdict; 0 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/2503.06252.json · badge: /api/ran/2503.06252.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
quinn777/atomthink canonical (classifier label)
classifier basis not recorded on the link
6 ran · 2 no recorded run
FunctionStatusWhere it lives
calculate_tps Ran
ran on a synthesized input
quinn777/atomthink/src/llamafactory/extras/misc.py
code served (permissive licence) · get_code("466b5a0fc956d56b")
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 float, 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 torch
import torch.nn as nn
import torch.distributed as dist
from unittest.mock import MagicMock, patch

torch.manual_seed(0)

# Mock dist.is_initialized and dist.get_world_size since we're not in a distributed context
def mock_is_initialized():
    return False

def mock_get_world_size():
    return 1

# Patch the distributed functions
dist.is_initialized = mock_is_initialized
dist.get_world_size = mock_get_world_size

# Create sample dataset for 'sft' stage
dataset_sft = [
    {'input_ids': [1, 2, 3, 4, 5]},
    {'input_ids': [6, 7, 8]},
]

# Create sample dataset for 'rm' stage
dataset_rm = [
    {'chosen_input_ids': [1, 2, 3], 'rejected_input_ids': [4, 5, 6, 7]},
    {'chosen_input_ids': [8, 9], 'rejected_input_ids': [10, 11, 12]},
]

# Create metrics dict
metrics = {
    'epoch': 2,
    'train_runtime': 10.0,
}

ARGS = {
    'dataset': dataset_sft,
    'metrics': metrics,
    'stage': 'sft',
}
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 float, 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
convert_unsupported_types_to_str Ran
ran on a synthesized input
quinn777/atomthink/src/llamafactory/extras/utils.py
code served (permissive licence) · get_code("67501d2ac4a63e20")
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 torch
import numpy as np

torch.manual_seed(0)

# The function convert_unsupported_types_to_str takes a dict and converts
# unsupported types to strings while recursing through nested dicts and collections.
# We need to create a dict with various types to test the function.

ARGS = {
    "d": {
        "string_key": "string_value",
        "int_key": 42,
        "float_key": 3.14,
        "bool_key": True,
        "none_key": None,
        "list_key": [1, 2, "three"],
        "tuple_key": (1, "two", 3.0),
        "set_key": {1, 2, 3},
        "nested_dict": {
            "inner_string": "value",
            "inner_int": 99,
            "inner_unsupported": torch.tensor([1, 2, 3, 4])
        },
        "tensor_key": torch.tensor([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]]),
        "numpy_array": np.array([1, 2, 3, 4]),
        "custom_object": object(),
        "list_with_dict": [1, {"nested": "dict", "value": 42}],
        "tuple_with_unsupported": (1, 2, torch.randn(2, 4)),
        "set_with_values": {"a", "b", 1, 2}
    }
}
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 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
count_parameters Ran
ran, honoured the contract we drafted
quinn777/atomthink/src/llamafactory/extras/misc.py
code served (permissive licence) · get_code("51381d667ce1d0ac")
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 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.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a simple model with trainable and non-trainable parameters
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        # Trainable parameter
        self.linear1 = nn.Linear(4, 3)
        # Another trainable parameter
        self.linear2 = nn.Linear(3, 2)
        # Register a non-trainable buffer
        self.register_buffer('buffer', torch.randn(5))
        # Create a non-trainable parameter
        self.non_trainable = nn.Parameter(torch.randn(2, 3), requires_grad=False)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

ARGS = {
    'model': model
}
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 tuple, ndim 1, dtype family int — 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
is_env_enabled Ran
ran on a synthesized input
quinn777/atomthink/src/llamafactory/extras/misc.py
code served (permissive licence) · get_code("fbd4a0c3cedaf7f8")
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 os

# The function checks if an environment variable is enabled
# It takes env_var (str) and default (str, default='0')
# and returns bool

# Set up a test environment variable
os.environ['TEST_ENV_VAR'] = 'true'

ARGS = {
    'env_var': 'TEST_ENV_VAR',
    'default': '0'
}
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
is_transformers_version_greater_than Ran
ran on a synthesized input
quinn777/atomthink/src/llamafactory/extras/packages.py
code served (permissive licence) · get_code("86d1f595cfe6228e")
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 torch
import numpy as np
from packaging import version

# The function is_transformers_version_greater_than takes a single parameter 'content'
# which is a string that will be parsed as a version using version.parse()
# The function compares the installed transformers package version against this string

ARGS = {
    'content': '4.0.0'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, packaging, torch — 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
smooth Ran
ran, violated the contract we drafted
quinn777/atomthink/src/llamafactory/extras/ploting.py
code served (permissive licence) · get_code("0b9f48a781766d05")
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 math
from typing import List

# Construct a simple list of scalars for testing the smooth function
scalars = [1.0, 2.0, 3.5, 2.8, 4.1, 3.9, 5.2]

ARGS = {
    "scalars": scalars
}
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
gen_loss_plot Not yet run
unverified (harvested, no recorded run)
quinn777/atomthink/src/llamafactory/extras/ploting.py
code served (permissive licence) · get_code("b0a7fecf74187af6")
How it ran

no invocation recorded.

get_logger Not yet run
unverified (harvested, no recorded run)
quinn777/atomthink/src/llamafactory/extras/logging.py
code served (permissive licence) · get_code("5245a66e965ad53b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 later) and 5 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
count_parameters 1 other paper
1 dated earlier
2410.04223 (2024-10)
Multimodal Large Language Models for Inverse Molecular Design with Retrosynthetic Planning
gen_loss_plot 1 other paper
1 dated earlier
2410.04223 (2024-10)
Multimodal Large Language Models for Inverse Molecular Design with Retrosynthetic Planning
smooth 1 other paper
1 dated earlier
2410.04223 (2024-10)
Multimodal Large Language Models for Inverse Molecular Design with Retrosynthetic Planning

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

In this paper, we address the challenging task of multimodal mathematical reasoning by incorporating the ability of "slow thinking" into multimodal large language models (MLLMs). Our core idea is that different levels of reasoning abilities can be combined dynamically to tackle questions with different complexity. To this end, we propose a paradigm of Self-structured Chain of Thought (SCoT), which is composed of minimal semantic atomic steps. Different from existing methods that rely on structured templates or free-form paradigms, our method can not only generate cognitive CoT structures for various complex tasks but also mitigates the phenomenon of overthinking. To introduce structured reasoning capabilities into visual understanding models, we further design a novel AtomThink framework with four key modules, including (i) a data engine to generate high-quality multimodal reasoning paths; (ii) a supervised fine-tuning process with serialized inference data; (iii) a policy-guided multi-turn inference method; and (iv) an atomic capability metric to evaluate the single step utilization rate. We conduct extensive experiments to show that the proposed AtomThink significantly improves the performance of baseline MLLMs, achieving more than 10\% average accuracy gains on MathVista and MathVerse. Compared to state-of-the-art structured CoT approaches, our method not only achieves higher accuracy but also improves data utilization by 5 times and boosts inference efficiency by 85.3\%. Our code is now public available in https://github.com/Quinn777/AtomThink.

For agents

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

get_harvested_code_for_paper("2503.06252")
get_code_for_paper("2503.06252")
have("2503.06252")

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

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

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

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

Connect an agent — have() is free.