Open-Source-O1 / o1_Reasoning_Patterns_Study

Apache License 2.0
12 stars 0 forks source link

o1_Reasoning_Patterns_Study

This is the repo for the paper A Comparative Study on Reasoning Patterns of OpenAI's o1 Model.

Enabling Large Language Models (LLMs) to handle a wider range of complex tasks (e.g., coding, math) has drawn great attention from many researchers. As LLMs continue to evolve, increasing the number of model parameters yields diminishing performance improvements and heavy computational costs. Recently, OpenAI's o1 model has shown that inference strategies (i.e., Test-time Compute methods) can also significantly enhance the reasoning capabilities of LLMs. However, the mechanisms behind these methods are still unexplored. In our work, to investigate the reasoning patterns of o1, we compare o1 with existing Test-time Compute methods (BoN, Step-wise BoN, Agent Workflow, and Self-Refine) by using OpenAI's GPT-4o as a backbone on general reasoning benchmarks in three domains (i.e., math, code and commonsense reasoning). Specifically, first, our experiments show that the o1 model has achieved the best performance on most datasets. Second, as for the methods of searching diverse responses (e.g., BoN), we find the reward models' capability and the search space both limit the upper boundary of these methods. Third, as for the methods that break the problem into many sub-problems, the Agent Workflow has achieved better performance than Step-wise BoN due to the domain-specific system prompt for planning better reasoning processes. Fourth, we summarize six reasoning patterns of o1 and provide a detailed analysis across different reasoning benchmarks.

Dataset

Our filtered data can be found in this repo: data.

Running

You can run the run.sh to reproduce the results on our main table.

bash run.sh

You can change the '--N' and 'step_wise_type' and 'dataset_name' to obtain the results at different settings.

As for the evaluation of the Code task result (USACO), we are organizing this part of the code. As for Self-Refine, we use the code from Self-Refine. As for the Agent Workflow, we utilize the state-of-the-art agent framework Agents 2.0: Symbolic Learning Enables Self-Evolving Agents on the HotpotQA and Collie, and we use the GPTs for USACO and AIME.

Results in Our Paper

We will release the output files of our main results soon ...

Citation

@article{qu2024overview,
  title={Overview of the NLPCC 2024 Shared Task on Chinese Metaphor Generation},
  author={Qu, Xingwei and Zhang, Ge and Wu, Siwei and Li, Yizhi and Lin, Chenghua},
  journal={arXiv preprint arXiv:2408.04378},
  year={2024}
}