|
--- |
|
license: other |
|
license_name: deepseek-license |
|
license_link: LICENSE |
|
--- |
|
<!-- markdownlint-disable first-line-h1 --> |
|
<!-- markdownlint-disable html --> |
|
<!-- markdownlint-disable no-duplicate-header --> |
|
|
|
<div align="center"> |
|
<img src="https://github.com/deepseek-ai/DeepSeek-V2/blob/main/figures/logo.svg?raw=true" width="60%" alt="DeepSeek-V2" /> |
|
</div> |
|
<hr> |
|
<div align="center" style="line-height: 1;"> |
|
<a href="https://www.deepseek.com/" target="_blank" style="margin: 2px;"> |
|
<img alt="Homepage" src="https://github.com/deepseek-ai/DeepSeek-V2/blob/main/figures/badge.svg?raw=true" style="display: inline-block; vertical-align: middle;"/> |
|
</a> |
|
<a href="https://chat.deepseek.com/" target="_blank" style="margin: 2px;"> |
|
<img alt="Chat" src="https://img.shields.io/badge/🤖%20Chat-DeepSeek%20V2-536af5?color=536af5&logoColor=white" style="display: inline-block; vertical-align: middle;"/> |
|
</a> |
|
<a href="https://huggingface.co/deepseek-ai" target="_blank" style="margin: 2px;"> |
|
<img alt="Hugging Face" src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-DeepSeek%20AI-ffc107?color=ffc107&logoColor=white" style="display: inline-block; vertical-align: middle;"/> |
|
</a> |
|
</div> |
|
|
|
<div align="center" style="line-height: 1;"> |
|
<a href="https://discord.gg/Tc7c45Zzu5" target="_blank" style="margin: 2px;"> |
|
<img alt="Discord" src="https://img.shields.io/badge/Discord-DeepSeek%20AI-7289da?logo=discord&logoColor=white&color=7289da" style="display: inline-block; vertical-align: middle;"/> |
|
</a> |
|
<a href="https://github.com/deepseek-ai/DeepSeek-V2/blob/main/figures/qr.jpeg?raw=true" target="_blank" style="margin: 2px;"> |
|
<img alt="Wechat" src="https://img.shields.io/badge/WeChat-DeepSeek%20AI-brightgreen?logo=wechat&logoColor=white" style="display: inline-block; vertical-align: middle;"/> |
|
</a> |
|
<a href="https://twitter.com/deepseek_ai" target="_blank" style="margin: 2px;"> |
|
<img alt="Twitter Follow" src="https://img.shields.io/badge/Twitter-deepseek_ai-white?logo=x&logoColor=white" style="display: inline-block; vertical-align: middle;"/> |
|
</a> |
|
</div> |
|
<div align="center" style="line-height: 1;"> |
|
<a href="https://github.com/deepseek-ai/DeepSeek-V2/blob/main/LICENSE-CODE" style="margin: 2px;"> |
|
<img alt="Code License" src="https://img.shields.io/badge/Code_License-MIT-f5de53?&color=f5de53" style="display: inline-block; vertical-align: middle;"/> |
|
</a> |
|
<a href="https://github.com/deepseek-ai/DeepSeek-V2/blob/main/LICENSE-MODEL" style="margin: 2px;"> |
|
<img alt="Model License" src="https://img.shields.io/badge/Model_License-Model_Agreement-f5de53?&color=f5de53" style="display: inline-block; vertical-align: middle;"/> |
|
</a> |
|
</div> |
|
<p align="center"> |
|
<a href="#2-evaluation-results">Evaluation Results</a> | |
|
<a href="#3-model-&-dataset-downloads">Model & Dataset Downloads</a> | |
|
<a href="#4-license">License</a> | |
|
<a href="#5-contact">Contact</a> |
|
</p> |
|
|
|
|
|
|
|
<p align="center"> |
|
<a href="https://arxiv.org/abs/2405.14333"><b>Paper Link</b>👁️</a> |
|
</p> |
|
|
|
# DeepSeek-Prover: Advancing Theorem Proving in LLMs through Large-Scale Synthetic Data |
|
|
|
## 1. Introduction |
|
|
|
Proof assistants like Lean have revolutionized mathematical proof verification, ensuring high accuracy and reliability. Although large language models (LLMs) show promise in mathematical reasoning, their advancement in formal theorem proving is hindered by a lack of training data. To address this issue, we introduce an approach to generate extensive Lean 4 proof data derived from high-school and undergraduate-level mathematical competition problems. This approach involves translating natural language problems into formal statements, filtering out low-quality statements, and generating proofs to create synthetic data. After fine-tuning the DeepSeekMath 7B model on this synthetic dataset, which comprises 8 million formal statements with proofs, our model achieved whole-proof generation accuracies of 46.3% with 64 samples and 52% cumulatively on the Lean 4 miniF2F test, surpassing the baseline GPT-4 at 23.0% with 64 samples and a tree search reinforcement learning method at 41.0%. Additionally, our model successfully proved 5 out of 148 problems in the Lean 4 Formalized International Mathematical Olympiad (FIMO) benchmark, while GPT-4 failed to prove any. These results demonstrate the potential of leveraging large-scale synthetic data to enhance theorem-proving capabilities in LLMs. Both the synthetic dataset and the model will be made available to facilitate further research in this promising field. |
|
|
|
## 2. Evaluation Results |
|
|
|
<div align="center"> |
|
|
|
| | miniF2F-test | |
|
|--------|------------------| |
|
| **ReProver** | 26.5% | |
|
| **GPT-f** | 36.6% | |
|
| **Hypertree Proof Search** | 41.0% | |
|
| **DeepSeek-Prover-V1** | 50.0% | |
|
|
|
</div> |
|
|
|
## 3. Model & Dataset Downloads |
|
|
|
We release the DeepSeek-Prover-V1 along with the synthetic dataset to the public. |
|
|
|
<div align="center"> |
|
|
|
| **Model & Dataset** | **Download** | |
|
| :-----------------------------: | :----------------------------------------------------------: | |
|
| DeepSeek-Prover-V1 | [🤗 HuggingFace](https://huggingface.co/deepseek-ai/DeepSeek-Prover-V1) | |
|
| Synthetic Dataset | [🤗 HuggingFace](https://huggingface.co/datasets/deepseek-ai/DeepSeek-Prover-V1) | |
|
|
|
</div> |
|
|
|
## 4. License |
|
This code repository is licensed under the MIT License. The use of DeepSeek-Prover models is subject to the Model License. DeepSeek-Prover supports commercial use. |
|
|
|
See the [LICENSE-CODE](LICENSE-CODE) and [LICENSE-MODEL](LICENSE-MODEL) for more details. |
|
|
|
## 5. Contact |
|
|
|
If you have any questions, please raise an issue or contact us at [service@deepseek.com](mailto:service@deepseek.com). |
|
|