purewhite42 commited on
Commit
90324eb
·
verified ·
1 Parent(s): c498946

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +69 -0
README.md ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ base_model:
6
+ - BAAI/bge-m3
7
+ pipeline_tag: sentence-similarity
8
+ library_name: transformers
9
+ tags:
10
+ - lean4
11
+ - dependency-retrieval
12
+ - formal-mathematics
13
+ ---
14
+
15
+ <div align="center">
16
+ <h1 style="font-size: 1.5em;">[ICLR'25 Spotlight] Rethinking and Improving Autoformalization: Towards a Faithful Metric and a Dependency Retrieval-based Approach</h1>
17
+ <div style="display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;">
18
+ <a href="https://choosealicense.com/licenses/apache-2.0/"><img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" alt="License: Apache 2.0"></a>
19
+ <a href="https://github.com/leanprover-community/mathlib4"><img src="https://img.shields.io/badge/Lean-4-orange" alt="Lean 4"></a>
20
+ <a href="https://github.com/Purewhite2019/rethinking_autoformalization"><img src="https://img.shields.io/badge/GitHub-%23121011.svg?logo=github&logoColor=white" alt="GitHub"></a>
21
+ </div>
22
+ <h2>Qi Liu, Xinhao Zheng, Xudong Lu, Qinxiang Cao, Junchi Yan* (* indicates Correspondence author)</h2>
23
+ <h2>Sch. of Computer Science & Sch. of Artificial Intelligence, Shanghai Jiao Tong University</h2>
24
+ </div>
25
+
26
+ Please refer to the [📺GitHub repo](https://github.com/Purewhite2019/rethinking_autoformalization) and
27
+ [📃Paper](https://openreview.net/pdf?id=hUb2At2DsQ) for more details.
28
+
29
+
30
+ ## 📈 Performance
31
+ | **Bench**     | **Fmt** | **Method** | **Recall@5** | **Precision@5** |
32
+ |---------------|---------|------------|--------------|-----------------|
33
+ | **ProofNet** | F    | BM25       | 0.16%        | 0.11%           |
34
+ |               | F    | DR         | 35.52%       | 22.89%          |
35
+ |               | F+IF  | BM25       | 0.00%        | 0.00%           |
36
+ |               | F+IF  | DR         | 32.47%       | 20.32%          |
37
+ |   **Con-NF**  | F    | BM25       | 4.41%        | 2.37%           |
38
+ |               | F    | DR         | 24.32%       | 14.05%          |
39
+ |               | F+IF  | BM25       | 9.86%        | 6.95%           |
40
+ |               | F+IF  | DR         | 27.91%       | 17.57%          |
41
+
42
+ ## ⚙️ Usage
43
+ - [🤗`purewhite42/bm25_f`](https://huggingface.co/purewhite42/bm25_f): BM25 dependency retriever whose inputs are formatted using only formal declarations, based on [Rank-BM25](https://github.com/dorianbrown/rank_bm25)
44
+ - [🤗`purewhite42/bm25_f_if`](https://huggingface.co/purewhite42/bm25_f_if): BM25 dependency retriever whose inputs are formatted using both formal declarations and informal descriptions, based on [Rank-BM25](https://github.com/dorianbrown/rank_bm25)
45
+ ```shell
46
+ python -m retriever.retrieve_bm25 \
47
+ --model_path /path/to/the/model \
48
+ --save_path /path/to/output/results \
49
+ --eval_set ... # {proofnet, connf}
50
+ ```
51
+ ## 📚 Citation
52
+ If you find our work useful in your research, please cite
53
+ ```bibtex
54
+ @inproceedings{
55
+ liu2025rethinking,
56
+ title={Rethinking and improving autoformalization: towards a faithful metric and a Dependency Retrieval-based approach},
57
+ author={Qi Liu and Xinhao Zheng and Xudong Lu and Qinxiang Cao and Junchi Yan},
58
+ booktitle={The Thirteenth International Conference on Learning Representations},
59
+ year={2025},
60
+ url={https://openreview.net/forum?id=hUb2At2DsQ}
61
+ }
62
+ ```
63
+
64
+ # License
65
+ This project is released under the Apache 2.0 license. Please see the [LICENSE](https://github.com/Purewhite2019/rethinking_autoformalization/blob/main/LICENSE) file for more information.
66
+
67
+ # Contact
68
+ Feel free to discuss the paper/data/code with us through issues/emails!
69
+ - Qi Liu: [email protected]