README.md
August 2, 2025 Β· View on GitHub
AtomThink: Multimodal Slow Thinking with Atomic Step Reasoning
π Contents
π£ News
- [2025-03-14] The model AtomThink-Llama-3.2-Vision-11B is now available on AtomThink-Llama-3.2-Vision-11B!
- [2025-03-14] The model AtomThink-LLaVA1.5-7B is now available on AtomThink-LLaVA1.5-7B!
- [2025-03-14] The dataset AMATH-SFT is now available on AMATH-SFT!
- [2025-03-11] The paper AtomThink: Multimodal Slow Thinking with Atomic Step Reasoning is now available on arXiv!
- [2025-03-11] Thank you for visiting this repository!
π‘Features
Key Features
-
π§ Introduces GPT-o1 style reasoning via long CoT for complex multimodal mathematical tasks.
-
π οΈ Combines a CoT annotation engine, atomic step fine-tuning, and policy search strategies to enhance reasoning.
-
π A capability evaluation metric to perform a quality assessment of each reasoning steps.
-
β‘ Test-time scaling law in MLLM.
-
π State-of-the-art performance in multimodal mathematical reasoning tasks.
Abstract
In this paper, we address the challenging task of multimodal mathematical reasoning by incorporating the notion of ``slow thinking'' into multimodal large language models (MLLMs). Our core idea is that models can learn to adaptively use different levels of reasoning to tackle questions of different complexity. We propose a novel paradigm of Self-structured Chain of Thought (SCoT), which comprises 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 phenomena of overthinking for easier tasks. To introduce structured reasoning into visual cognition, 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 (SFT) 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%.
βοΈ Usage
Quick Start
Install the environment as follows:
pip install -r requirements.txt
Set up your OpenAI API key:
os.environ['OPENAI_API_KEY'] = 'YOUR KEY'
Start training:
cd Atomthink
config=configs/train_full/llama32-11b-vision/llava100k_amath126k_clean_epoch1_2e6.yaml
torchrun --nproc_per_node 8 --master_addr $master_addr --nnodes $nnode --node_rank $node_rank --master_port $port src/train.py $config
Start evaluating:
python src/llamafactory/evaluation/run_evaluation_parallel.py \
--node_rank $node_rank \
--total_gpus $total_gpus \
--nproc_per_node 8 \
--temperature 0.0 \
--tasks_per_gpu 1 \
--config "$config" \
--task 'MathVision' \
--prompt 'slow' \
--method 'slow' \
--atomthink_beam_search_num 2 \
--candidate_num 3 \
--max_sampling_count 300
π Case Study
We present the atomic samples in AMATH dataset.
Example1:
Example2:
π Citation
If you find this project useful, please cite our paper:
@article{xiang2025can,
title={Can Atomic Step Decomposition Enhance the Self-structured Reasoning of Multimodal Large Models?},
author={Xiang, Kun and Liu, Zhili and Jiang, Zihao and Nie, Yunshuang and Cai, Kaixin and Yin, Yiyang and Huang, Runhui and Fan, Haoxiang and Li, Hanhui and Huang, Weiran and others},
journal={arXiv preprint arXiv:2503.06252},
year={2025}
}
@article{xiang2024atomthink,
title={AtomThink: A Slow Thinking Framework for Multimodal Mathematical Reasoning},
author={Xiang, Kun and Liu, Zhili and Jiang, Zihao and Nie, Yunshuang and Huang, Runhui and Fan, Haoxiang and Li, Hanhui and Huang, Weiran and Zeng, Yihan and Han, Jianhua and others},
journal={arXiv preprint arXiv:2411.11930},
year={2024}
}
π License
This project is licensed under the MIT License.
π Acknowledgement
We would like to thank the following repositories for their contributions:
- hiyouga/LLaMA-Factory: This library was used for training.
- bklieger-groq/g1: This library was used for data processing.
- openreasoner/openr: This tool was helpful for deploying the process supervision model.
β¨ Thank you for your interest in our work! β¨