Papers
Topics
Authors
Recent
Search
2000 character limit reached

AutoOverlap in Lean 4 Autoformalization

Updated 8 July 2026
  • AutoOverlap is defined as the fraction of SFT prompts overlapping with GRPO prompts, serving as a tunable hyperparameter in Lean 4 autoformalization.
  • Experiments show that zero overlap (α=0) consistently leads to higher compilation and semantic accuracies compared to full overlap (α=1) at no extra compute cost.
  • The study recommends using dual-metric evaluation (compile and semantic pass@k) to reveal performance gaps and robustly assess autoformalization quality.

AutoOverlap, as introduced in the context of Lean 4 autoformalization, is the data-overlap fraction between the prompt set used in supervised fine-tuning (SFT) and the prompt set used in Group Relative Policy Optimization (GRPO). In "SFT-GRPO Data Overlap as a Post-Training Hyperparameter for Autoformalization" (Su et al., 15 Apr 2026), it is treated as an explicit post-training hyperparameter for Qwen3-8B with “thinking” disabled, under a controlled ablation in which six training conditions differ solely in training recipe. The central empirical result is that keeping SFT and GRPO data disjoint consistently outperforms full overlap at zero additional compute cost, and that lower overlap is monotonically associated with higher compilation and semantic accuracy on Gaokao-Formal and PutnamBench (Su et al., 15 Apr 2026).

1. Definition and formalization

Let SsftS_{\rm sft} denote the set of prompts used in the SFT stage, and SrlS_{\rm rl} the set of prompts used in the GRPO stage. AutoOverlap, denoted by the data-overlap fraction α\alpha, is defined as

α=SsftSrlSrl[0,1].\alpha = \frac{|S_{\rm sft} \cap S_{\rm rl}|}{|S_{\rm rl}|} \in [0,1].

Equivalently, if Srl=Nl|S_{\rm rl}| = N_l and Noverlap=SsftSrlN_{\rm overlap} = |S_{\rm sft} \cap S_{\rm rl}|, then

α=NoverlapNl.\alpha = \frac{N_{\rm overlap}}{N_l}.

The study examines three discrete values of α\alpha: 0%0\% (α=0)(\alpha=0), SrlS_{\rm rl}0 SrlS_{\rm rl}1, and SrlS_{\rm rl}2 SrlS_{\rm rl}3 (Su et al., 15 Apr 2026).

Under this formalization, AutoOverlap is not a property of model architecture or optimizer choice. It is a property of set-membership between post-training stages. This framing makes overlap a controllable experimental variable rather than an incidental feature of dataset construction. The paper identifies this as, to its knowledge, the first controlled investigation of SFT-GRPO data overlap as a post-training hyperparameter (Su et al., 15 Apr 2026).

2. Controlled training conditions

All runs use the same base model, identical SFT and GRPO hyperparameters, and identical total data volumes. The six conditions are constructed so that overlap is the only manipulated variable in the mixed SFT+GRPO settings. For each desired SrlS_{\rm rl}4, the GRPO prompt set is cross-deduplicated against the SFT corpus so that exactly SrlS_{\rm rl}5 of its prompts appear in SrlS_{\rm rl}6 (Su et al., 15 Apr 2026).

Condition Training recipe
Base model No post-training
SFT-only 20 000 SrlS_{\rm rl}7 pairs
GRPO-only GRPO on 16 000 prompts
SFT + GRPO-0% SFT checkpoint, then GRPO on 16 000 non-overlapping prompts
SFT + GRPO-30% SrlS_{\rm rl}8 prompts from SFT pool and 11 200 fresh ones
SFT + GRPO-100% GRPO prompts fully drawn from the SFT pool

This design isolates a specific question: whether GRPO contributes additional value when it is applied to prompts already seen during SFT. The reported behavior indicates that the answer depends strongly on SrlS_{\rm rl}9. When overlap is complete, the GRPO stage becomes effectively redundant relative to SFT; when overlap is zero, GRPO provides the largest gains (Su et al., 15 Apr 2026).

3. Evaluation protocol and metrics

Evaluation is conducted on Gaokao-Formal, comprising 495 problems, and PutnamBench, comprising 672 problems. For each benchmark problem, the system generates α\alpha0 rollouts and measures two complementary pass@k metrics (Su et al., 15 Apr 2026).

Compile pass@k, denoted α\alpha1, is the fraction of problems for which at least one of α\alpha2 rollouts typechecks under Mathlib v4.27.0. Semantic pass@k, denoted α\alpha3, is the fraction for which at least one rollout both compiles and receives a judge score α\alpha4. For a dataset α\alpha5 of size α\alpha6, with α\alpha7 per α\alpha8,

α\alpha9

and

α=SsftSrlSrl[0,1].\alpha = \frac{|S_{\rm sft} \cap S_{\rm rl}|}{|S_{\rm rl}|} \in [0,1].0

The compile–semantic gap is defined at α=SsftSrlSrl[0,1].\alpha = \frac{|S_{\rm sft} \cap S_{\rm rl}|}{|S_{\rm rl}|} \in [0,1].1 by

α=SsftSrlSrl[0,1].\alpha = \frac{|S_{\rm sft} \cap S_{\rm rl}|}{|S_{\rm rl}|} \in [0,1].2

The semantic judge is a frozen LLM, Gemini Flash 3, that returns a continuous score α=SsftSrlSrl[0,1].\alpha = \frac{|S_{\rm sft} \cap S_{\rm rl}|}{|S_{\rm rl}|} \in [0,1].3 for each compilable output α=SsftSrlSrl[0,1].\alpha = \frac{|S_{\rm sft} \cap S_{\rm rl}|}{|S_{\rm rl}|} \in [0,1].4 relative to ground truth α=SsftSrlSrl[0,1].\alpha = \frac{|S_{\rm sft} \cap S_{\rm rl}|}{|S_{\rm rl}|} \in [0,1].5. Non-compiling outputs receive α=SsftSrlSrl[0,1].\alpha = \frac{|S_{\rm sft} \cap S_{\rm rl}|}{|S_{\rm rl}|} \in [0,1].6 (Su et al., 15 Apr 2026).

The metric construction is consequential. It distinguishes syntactic validity from semantic correctness, making it possible to detect models that typecheck frequently but solve the wrong formalization problem.

4. Quantitative findings

At pass@1, the best mixed setting is always the non-overlapping one. Across both benchmarks, performance degrades monotonically as overlap α=SsftSrlSrl[0,1].\alpha = \frac{|S_{\rm sft} \cap S_{\rm rl}|}{|S_{\rm rl}|} \in [0,1].7 increases: α=SsftSrlSrl[0,1].\alpha = \frac{|S_{\rm sft} \cap S_{\rm rl}|}{|S_{\rm rl}|} \in [0,1].8 gives the highest α=SsftSrlSrl[0,1].\alpha = \frac{|S_{\rm sft} \cap S_{\rm rl}|}{|S_{\rm rl}|} \in [0,1].9 and Srl=Nl|S_{\rm rl}| = N_l0, Srl=Nl|S_{\rm rl}| = N_l1 is slightly lower, and Srl=Nl|S_{\rm rl}| = N_l2 collapses back to SFT-only levels (Su et al., 15 Apr 2026).

Condition Gaokao-Formal Srl=Nl|S_{\rm rl}| = N_l3 PutnamBench Srl=Nl|S_{\rm rl}| = N_l4
Base 19.9 / 10.2 11.3 / 3.3
SFT 61.8 / 41.0 28.5 / 14.3
GRPO-only 50.9 / 28.1 36.1 / 11.9
SFT+GRPO-0% 77.6 / 51.4 47.9 / 23.6
SFT+GRPO-30% 76.4 / 48.6 46.4 / 22.9
SFT+GRPO-100% 62.9 / 40.6 29.1 / 14.7

On Gaokao-Formal, SFT+GRPO-0% reaches Srl=Nl|S_{\rm rl}| = N_l5 and Srl=Nl|S_{\rm rl}| = N_l6, yielding a semantic gain over SFT of Srl=Nl|S_{\rm rl}| = N_l7 percentage points. SFT+GRPO-30% is slightly worse at Srl=Nl|S_{\rm rl}| = N_l8 and Srl=Nl|S_{\rm rl}| = N_l9. SFT+GRPO-100% reaches Noverlap=SsftSrlN_{\rm overlap} = |S_{\rm sft} \cap S_{\rm rl}|0 and Noverlap=SsftSrlN_{\rm overlap} = |S_{\rm sft} \cap S_{\rm rl}|1, with both metrics essentially flat versus SFT (Su et al., 15 Apr 2026).

On PutnamBench, SFT+GRPO-0% reaches Noverlap=SsftSrlN_{\rm overlap} = |S_{\rm sft} \cap S_{\rm rl}|2 and Noverlap=SsftSrlN_{\rm overlap} = |S_{\rm sft} \cap S_{\rm rl}|3, a semantic gain of Noverlap=SsftSrlN_{\rm overlap} = |S_{\rm sft} \cap S_{\rm rl}|4 percentage points over SFT. SFT+GRPO-30% reaches Noverlap=SsftSrlN_{\rm overlap} = |S_{\rm sft} \cap S_{\rm rl}|5 and Noverlap=SsftSrlN_{\rm overlap} = |S_{\rm sft} \cap S_{\rm rl}|6. SFT+GRPO-100% reaches Noverlap=SsftSrlN_{\rm overlap} = |S_{\rm sft} \cap S_{\rm rl}|7 and Noverlap=SsftSrlN_{\rm overlap} = |S_{\rm sft} \cap S_{\rm rl}|8, again near SFT-only behavior (Su et al., 15 Apr 2026).

The paper’s practical interpretation is direct: non-overlapping GRPO data is essential for RL to provide fresh learning signals, whereas full overlap renders the GRPO stage effectively redundant (Su et al., 15 Apr 2026).

5. Compile–semantic gap and benchmark interpretation

A central contribution of the AutoOverlap study is methodological rather than purely comparative. Dual-metric evaluation reveals compile–semantic gaps exceeding 30 percentage points for the highest compiling models, and this disparity is invisible under compile-only benchmarking (Su et al., 15 Apr 2026).

The reported Noverlap=SsftSrlN_{\rm overlap} = |S_{\rm sft} \cap S_{\rm rl}|9 values at pass@1 already show substantial divergence within the six-condition ablation. On Gaokao-Formal, the gap rises from α=NoverlapNl.\alpha = \frac{N_{\rm overlap}}{N_l}.0 percentage points for the base model to α=NoverlapNl.\alpha = \frac{N_{\rm overlap}}{N_l}.1 for SFT, α=NoverlapNl.\alpha = \frac{N_{\rm overlap}}{N_l}.2 for GRPO-only, α=NoverlapNl.\alpha = \frac{N_{\rm overlap}}{N_l}.3 for SFT+GRPO-0%, α=NoverlapNl.\alpha = \frac{N_{\rm overlap}}{N_l}.4 for SFT+GRPO-30%, and α=NoverlapNl.\alpha = \frac{N_{\rm overlap}}{N_l}.5 for SFT+GRPO-100%. On PutnamBench, the corresponding values are α=NoverlapNl.\alpha = \frac{N_{\rm overlap}}{N_l}.6, α=NoverlapNl.\alpha = \frac{N_{\rm overlap}}{N_l}.7, α=NoverlapNl.\alpha = \frac{N_{\rm overlap}}{N_l}.8, α=NoverlapNl.\alpha = \frac{N_{\rm overlap}}{N_l}.9, α\alpha0, and α\alpha1 percentage points (Su et al., 15 Apr 2026).

The same issue appears in external comparisons. For the highest-compiling external baselines, exemplified by Kimina-7B with α\alpha2, the compile–semantic gap exceeds 35 percentage points (Su et al., 15 Apr 2026). Models with the highest α\alpha3 often have the largest α\alpha4, meaning that many outputs are syntactically valid but semantically incorrect.

This result constrains how autoformalization progress should be interpreted. Compile-only metrics can overestimate end-to-end formalization quality because they collapse type correctness and proof-content correctness into a single observable. The paper therefore recommends dual-metric evaluation as standard practice (Su et al., 15 Apr 2026).

6. Practical implications and scope of the term

The immediate recommendation is to treat the SFT↔GRPO overlap α\alpha5 as a tunable hyperparameter and, whenever corpus volume permits, to allocate disjoint data pools α\alpha6 in order to maximize both compilation success and semantic fidelity (Su et al., 15 Apr 2026). Because the experiments hold total data volume and post-training hyperparameters fixed, the reported gains occur at zero extra compute cost. In this setting, changing only set overlap is sufficient to alter whether GRPO contributes meaningful additional learning.

A plausible implication is that AutoOverlap functions as a control knob for the novelty of the reinforcement-learning stage relative to the supervised stage. That implication is consistent with the paper’s conclusion that lower overlap provides fresh learning signals, whereas full overlap causes both compile and semantic accuracy to flatline relative to SFT (Su et al., 15 Apr 2026).

The label “AutoOverlap” is not unique to this autoformalization setting. In unrelated work, "AutoOverlap: Enabling Fine-Grained Overlap of Computation and Communication with Chunk-Based Scheduling" denotes a compiler and runtime for intra-kernel overlap on multi-GPU workloads (Qiang et al., 28 Jan 2026). In 3D LiDAR localization, an overlap-based observation model has also been described under the AutoOverlap label in technical summaries (Chen et al., 2021). The term therefore has field-specific meanings. Within Lean 4 autoformalization and SFT→GRPO post-training, however, AutoOverlap specifically denotes the overlap fraction α\alpha7 between the SFT and GRPO prompt sets (Su et al., 15 Apr 2026).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to AutoOverlap.