- Introduction
- Repo Architecture
- Environment Setup
- Data Generation
- LLM Simulation and Evaluation
- Acknowledgement
This is the official repository for Computational Reasoning of Large Language Models. This repository includes the scripts and instructions for generating data, running LLM simulations, and evaluating model performance. We also release at huggingface.
TMBench # Root directory
├── README.md
├── assets # Plot Figures
│ └── TMBench.pdf
├── data
│ ├── TMBench.json # Base variant
│ ├── TMBenchGreek.json # Greek-letter variant
│ ├── TMBenchNumber.json # Number variant
│ └── TMBenchSpecial.json # Special-character variant
├── requirements.txt # Python dependencies
├── results # Saved results
├── scripts
│ └── RUNME.sh # Bash script for data generation, LLM simulation and evaluation
└── src
├── acc.py # Accuracy computation and evaluation metrics
├── established_bench # Evaluation of established bench
│ ├── aime2024.py
│ ├── gpqa_diamond.py
│ ├── math500.py
│ └── print_result.py
├── predict.py # Inference for running LLM simulation
├── predict_close_ai.py # Inference for running LLM API
├── prompt.py # Prompt construction for model input
└── tag_generate.py # Generates data with the m-Tag system
- Python 3.10.16
- Cuda 12.4
- PyTorch 2.6.0
- Required libraries are listed in
requirements.txt.
pip install -r requirements.txt
To generate the data required for Turing Machine evaluation, run the following command:
python tag_generate.py --output_path OUTPUT_PATH
python src/predict.py --model $model --bench_name TMBench --chat
--model: The model to use for prediction (e.g.,Qwen/Qwen2.5-14B-Instruct).--bench_name: The name of the benchmark (e.g.,TMBench).--chat: Option to use chat-based interaction.
For close-source model:
python src/predict_close_ai.py --model gemini-2.5-pro-exp-03-25 --bench_name TMBench --api google
Evaluate the model's performance with the following command:
python src/acc.py --model $model --bench_name TMBench --chat
We acknowledge the contributions of the following state-of-the-art language models and well-established benchmarks that supported our study:
Models: Gemini, Gemma, DeepSeek, Qwen, LLaMA, Grok, Claude, GPT, and Doubao
Datasets: AIME, MATH500, GPQA and MMLU-Pro
@article{wu2025turing,
title={Turing Machine Evaluation for Large Language Model},
author={Wu, Haitao and Han, Zongbo and Huang, Huaxi and Zhang, Changqing},
journal={arXiv preprint arXiv:2504.20771},
year={2025}
}
For any additional questions, feel free to email wuhaitao@tju.edu.cn .
