Large Language Model for Science: A Study on P vs. NP

Qingxiu Dong, Li Dong, Ke Xu, Guangyan Zhou, Yaru Hao +2 more
9/11/2023
cs.CLcs.AI

No official code found. Best implementation: microsoft/LMOps (4,440 stars, MIT, last commit 2026-04-30).

Abstract

In this work, we use large language models (LLMs) to augment and accelerate research on the P versus NP problem, one of the most important open problems in theoretical computer science and mathematics. Specifically, we propose Socratic reasoning, a general framework that promotes in-depth thinking with LLMs for complex problem-solving. Socratic reasoning encourages LLMs to recursively discover, solve, and integrate problems while facilitating self-evaluation and refinement. Our pilot study on the P vs. NP problem shows that GPT-4 successfully produces a proof schema and engages in rigorous reasoning throughout 97 dialogue turns, concluding "P $\neq$ NP", which is in alignment with (Xu and Zhou, 2023). The investigation uncovers novel insights within the extensive solution space of LLMs, shedding light on LLM for Science.

View on arXivView PDF

Code Implementations(1)

microsoft/LMOpsCommunity100%
MIT

General technology for enabling AI capabilities w/ LLMs and MLLMs

4,440377C, C++Dec 13, 20225 months agoMIT
agigptlanguage-modelllmlm+6 more

Similar Papers

Cite this paper

@article{dong2023large,
  title  = {Large Language Model for Science: A Study on P vs. NP},
  author = {Qingxiu Dong and Li Dong and Ke Xu and Guangyan Zhou and Yaru Hao and Zhifang Sui and Furu Wei},
  year   = {2023},
  eprint = {2309.05689},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.05689v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.05689.svg)](https://codeofpaper.com/paper/2309.05689)

Discussion