Skip to content

mercicle/evogpt-f

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EvoGPT-f: An Evolutionary GPT Framework for Benchmarking Formal Math Languages

Formal mathematics is the discipline of translating mathematics into a programming language in which any statement can be unequivocally checked by a computer. Mathematicians and computer scientists have spent decades of painstaking formalization efforts developing languages such as Coq, HOL, and Lean. Machine learning research has converged on these formal math corpora and given rise to an assortment of methodologies to aid in interactive and automated theorem proving. However, these papers have primarily focused on one method, for one proof task, in one language. This paper introduces EvoGPT-f: a novel evolutionary framework for the first systematic quantitative analysis of the differential machine learnability of five formal math corpora (Lean 3, Lean 4, Coq, HOL 4, HOL Light) using four tokenization methods (character, word-level, Byte Pair Encoding and StarCoder tokenizer). This paper does not put to rest the question of the "best" or "easiest" language to learn. Rather, this framework and preliminary findings begin to illuminate the differential machine learnability of these languages, offering a foundation to forge more systematic quantitative and qualitative comparative research across communities.

Read the full paper on arXiv
arXiv

Repo Structure

├── README.md
├── setup.py
├── step0_ingest_formal_corpuses.py
├── step1_tokenize_formal_corpuses.py
├── step2_evo_gpt_train_driver.py
├── step3_evo_gpt_train_results_transfer.py
├── step4_evo_gpt_viz_results.py
├── step5_evo_gpt_inference_eval_driver.py
├── step6_evo_gpt_app.py
├── db_mgmt.sql
├── local_helpers
│   ├── analysis_helpers.py
│   ├── data_eng_helpers.py
│   ├── evogpt_helpers.py
│   ├── generate_function.py
│   ├── model.py
│   ├── postgres_helpers.py
│   └── train_function.py
├── bpe_grid_search
│   ├── step1_create_driver_table.py
│   ├── step2_bpe_grid_search_driver.py
│   └── step3_viz_results_bpe_grid_search.py
├── checkpoints
├── formal_math_corpus_prep
├── in_data
├── paper_figures
├── saved_logs
├── saved_tokenizers
├── training_data
└── transfer_data

Setup

python3 -m venv venv_evogptf
source venv_evogptf/bin/activate
pip install -r requirements.txt

About

EvoGPT-f is an Evolutionary GPT Framework for Benchmarking Formal Math Languages.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors