Improving Autoformalization Using Direct Dependency Retrieval

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Wang, Shaoqi, Yu, Lu, Lou, Siwei, Yan, Feng, Yang, Chunjie, Cui, Qing, Zhou, Jun
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866912799276400640
author Wang, Shaoqi
Yu, Lu
Lou, Siwei
Yan, Feng
Yang, Chunjie
Cui, Qing
Zhou, Jun
author_facet Wang, Shaoqi
Yu, Lu
Lou, Siwei
Yan, Feng
Yang, Chunjie
Cui, Qing
Zhou, Jun
contents The convergence of deep learning and formal mathematics has spurred research in formal verification. Statement autoformalization, a crucial first step in this process, aims to translate informal descriptions into machine-verifiable representations but remains a significant challenge. The core difficulty lies in the fact that existing methods often suffer from a lack of contextual awareness, leading to hallucination of formal definitions and theorems. Furthermore, current retrieval-augmented approaches exhibit poor precision and recall for formal library dependency retrieval, and lack the scalability to effectively leverage ever-growing public datasets. To bridge this gap, we propose a novel retrieval-augmented framework based on DDR (\textit{Direct Dependency Retrieval}) for statement autoformalization. Our DDR method directly generates candidate library dependencies from natural language mathematical descriptions and subsequently verifies their existence within the formal library via an efficient suffix array check. Leveraging this efficient search mechanism, we constructed a dependency retrieval dataset of over 500,000 samples and fine-tuned a high-precision DDR model. Experimental results demonstrate that our DDR model significantly outperforms SOTA methods in both retrieval precision and recall. Consequently, an autoformalizer equipped with DDR shows consistent performance advantages in both single-attempt accuracy and multi-attempt stability compared to models using traditional selection-based RAG methods.
format Preprint
id arxiv_https___arxiv_org_abs_2511_11990
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Improving Autoformalization Using Direct Dependency Retrieval
Wang, Shaoqi
Yu, Lu
Lou, Siwei
Yan, Feng
Yang, Chunjie
Cui, Qing
Zhou, Jun
Artificial Intelligence
The convergence of deep learning and formal mathematics has spurred research in formal verification. Statement autoformalization, a crucial first step in this process, aims to translate informal descriptions into machine-verifiable representations but remains a significant challenge. The core difficulty lies in the fact that existing methods often suffer from a lack of contextual awareness, leading to hallucination of formal definitions and theorems. Furthermore, current retrieval-augmented approaches exhibit poor precision and recall for formal library dependency retrieval, and lack the scalability to effectively leverage ever-growing public datasets. To bridge this gap, we propose a novel retrieval-augmented framework based on DDR (\textit{Direct Dependency Retrieval}) for statement autoformalization. Our DDR method directly generates candidate library dependencies from natural language mathematical descriptions and subsequently verifies their existence within the formal library via an efficient suffix array check. Leveraging this efficient search mechanism, we constructed a dependency retrieval dataset of over 500,000 samples and fine-tuned a high-precision DDR model. Experimental results demonstrate that our DDR model significantly outperforms SOTA methods in both retrieval precision and recall. Consequently, an autoformalizer equipped with DDR shows consistent performance advantages in both single-attempt accuracy and multi-attempt stability compared to models using traditional selection-based RAG methods.
title Improving Autoformalization Using Direct Dependency Retrieval
topic Artificial Intelligence
url https://arxiv.org/abs/2511.11990