# AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions

AuXSpec: 실행 가능한 사후조건으로 프로그램 명세를 autoformalize하는 학습

Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai 외 1명 · arXiv · 2026년 11월 16일

- **연구 문제** Lean 명세 작성은 느리고 전문성이 필요해 형식 검증 확장의 병목이 됩니다.
- **연구 방법** 선언적 postcondition과 실행 가능한 postcondition을 짝지어 테스트 케이스를 직접 실행하고, 이를 보상으로 강화학습합니다.
- **주요 결과** AUXSPEC-27B-RL은 AUXSPEC-Test에서 SpecGen pass@4를 14.3%에서 84.3%로 높였고, Verina에서 SpecGen pass@1 91.9%를 기록했습니다.

## 명세 생성의 병목과 검증 피드백 문제

Lean에서 형식 명세를 쓰는 일은 느리고 전문성이 많이 필요하여, 형식적으로 올바른 코드를 확장하는 데 큰 병목이 됩니다. 자연어 문제로부터 명세를 자동 형식화하는 접근은 유망하지만, 생성된 명세가 의도한 동작을 담았는지 확인할 확장 가능한 피드백이 필요합니다. 기존 방법은 명시적 증명이나 별도로 구현한 코드와 대응 증명에 의존해 비용이 큽니다. 저자들은 이 피드백을 싸게 얻는 방법을 찾는 것을 문제로 설정합니다.

## 선언적 postcondition과 실행 가능한 짝

AUXSPEC은 각 문제마다 선언적 postcondition과 Lean에서 직접 평가되는 실행 가능한 postcondition을 함께 둡니다. 실행 가능한 쪽은 decidable 인스턴스가 있으면 type class resolution으로 얻고, 없으면 별도로 정의한 뒤 두 postcondition이 유효 입력에서 같다는 동등성 정리를 증명합니다. 이렇게 하면 테스트 케이스를 개별 증명 없이 Lean에서 실행하여 보상으로 쓸 수 있습니다. 합성 파이프라인은 문제별 계획 뒤 명세, 실행 가능한 postcondition, 구현을 단계별로 생성하고 검증하며 실패하면 수정합니다.

![Figure 7: Use of the decidable form in SpecGen samples, with counts out of 1,200 above the bars (left), and compile rates of the decidable form against other f…](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-122c4769801aff6bf4676426acce35b3.png?thumb=512)

**Figure 7** . Use of the decidable form in SpecGen samples, with counts out of 1,200 above the bars (left), and compile rates of the decidable form against other forms (right).

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 30쪽에서 그림 영역을 추출했습니다.

![Figure 12: Data synthesis pipeline for AUXSPECon a running example. Stages (1) to (3) synthesize the postcondition, the executable postcondition, and the imple…](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-8f2909c5c89cff7de4edcf731abab843.png?thumb=512)

**Figure 12** . Data synthesis pipeline for AUXSPECon a running example. Stages (1) to (3) synthesize the postcondition, the executable postcondition, and the implementation under separate plans, and stage (4) assembles the components with the theorem statements.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 36쪽에서 그림 영역을 추출했습니다.

![Figure 17: (a) Executable postconditions that pass all checks at the first attempt, by route. (b) Reasons that the decidable form does not apply](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-08227d84b8854fb5c7552b16d45dc916.png?thumb=512)

**Figure 17** . (a) Executable postconditions that pass all checks at the first attempt, by route. (b) Reasons that the decidable form does not apply.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 42쪽에서 그림 영역을 추출했습니다.

![Figure 19: Cumulative acceptance rate of each component over repair rounds on the 3,037 synthesized problems. The implementation depends most on repair, with 6…](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-49af68a525d5561489ea318dc633bab0.png?thumb=512)

**Figure 19** . Cumulative acceptance rate of each component over repair rounds on the 3,037 synthesized problems. The implementation depends most on repair, with 64.3% accepted at the first attempt.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 44쪽에서 그림 영역을 추출했습니다.

![Table 37: Postcondition equivalence proofs by form of the executable postcondition, where the decidable form has proof length 0 and the separate definitions a…](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-13630a252235bbd5f80e8876a10d2484.png?thumb=512)

**Table 37** . Postcondition equivalence proofs by form of the executable postcondition, where the decidable form has proof length 0 and the separate definitions a median of 112 lines. Proof length was measured as the number of lines added to the problem file, and the last column indicates the number of proofs in which the validity hypothesis is used.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 49쪽에서 그림 영역을 추출했습니다.

## SFT와 강화학습 보상 설계

expert iteration으로 SFT 데이터를 19.5K 샘플까지 늘린 뒤, Qwen3.8-27B 등을 강화학습합니다. 보상은 형식, 컴파일, 테스트 실행, 테스트 정렬, 비항진성, 전체 품질의 여섯 단계 progressive reward로 주어지며, 실패한 단계의 값을 보상으로 주고 모든 단계를 통과하면 1을 줍니다. 비항진성 값은 0.1, 테스트 실행 실패는 0.2로 둡니다. 알고리즘은 DAPO를 확장하여 배치 표준편차로 advantage를 정규화하고, 실패 rollout을 다시 쓰는 self-repair 과제를 함께 학습합니다.

![Table 2: Input and output of each task. Broken is the rejected output that a repair task revises, and Diagnostics are the compiler errors and failed test cases…](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-89d1e040d96163b4b05586efd3015c28.png?thumb=512)

**Table 2** . Input and output of each task. Broken is the rejected output that a repair task revises, and Diagnostics are the compiler errors and failed test cases of that output. Test layers check the output (Table 7 in Appendix A.2).

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

![Table 3: Number of problems and samples for each source. Problems are those used for SFT or RL, and SFT, RL and AUXSPEC-Test share no problem. Difficulty follo…](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-1db8a018c3b7b7f4a3ee3d008f69942d.png?thumb=512)

**Table 3** . Number of problems and samples for each source. Problems are those used for SFT or RL, and SFT, RL and AUXSPEC-Test share no problem. Difficulty follows the labels of each source, and an LLM judge assigns the 1,484 problems without a label, including all Aizu problems (Appendix C). RL tasks are pairs of a problem and a task.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

![Table 7: Test layers with the component under test and the error detected](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-a6df46c7ce3ce2dfb929955cc525e28d.png?thumb=512)

**Table 7** . Test layers with the component under test and the error detected.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 18쪽에서 그림 영역을 추출했습니다.

![Table 8: Supervised fine-tuning settings](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-c070d47cb45a04102d264596db182b8b.png?thumb=512)

**Table 8** . Supervised fine-tuning settings.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 18쪽에서 그림 영역을 추출했습니다.

![Table 9: Reinforcement learning settings](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-724165ce3070264f5496a13c5cc2402c.png?thumb=512)

**Table 9** . Reinforcement learning settings.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 18쪽에서 그림 영역을 추출했습니다.

![Table 13: Rounds of expert iteration. A chain is 1 refinement run on 1 problem and task](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-6926c0cfa602d3bdc7a3dbb544189306.png?thumb=512)

**Table 13** . Rounds of expert iteration. A chain is 1 refinement run on 1 problem and task.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 20쪽에서 그림 영역을 추출했습니다.

![Table 18: Generation groups with nonzero reward variance under the progressive reward and under a binary reward that requires all stages, scored on the rollout…](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-02a9ec38c5237112ca2988894a0ea969.png?thumb=512)

**Table 18** . Generation groups with nonzero reward variance under the progressive reward and under a binary reward that requires all stages, scored on the rollouts of the whole run of each model. A binary reward has zero variance in every group without a passing rollout.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 24쪽에서 그림 영역을 추출했습니다.

![Table 19: Reward and fraction of rollouts (%) for each outcome of the progressive reward in SpecGen (left) and CodeGen (right), each with the repair task, over…](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-26cd8ec33adb49df256a59ace1144e2d.png?thumb=512)

**Table 19** . Reward and fraction of rollouts (%) for each outcome of the progressive reward in SpecGen (left) and CodeGen (right), each with the repair task, over the whole run of each model. 1Only in the repair tasks, which otherwise share the outcomes and values, with the reward of a repair rollout scaled down from 1 in the first round to 0.8 in the last.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 25쪽에서 그림 영역을 추출했습니다.

![Table 21: Partial progress during RL. The advantage of partial progress turns negative from the listed fraction, which refers to full-score rollouts in a whole…](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-4236c86e324f1955376553825c2492fc.png?thumb=512)

**Table 21** . Partial progress during RL. The advantage of partial progress turns negative from the listed fraction, which refers to full-score rollouts in a whole group of 16, replayed on the 27B rollouts. The effect of slow implementations comes from the 27B run, with fractions over 20-step windows of CodeGen rollouts. A repair round from an enumerative specification succeeds when the repaired output is a declarative specification that passes all stages, counted over all repair rounds started from enumerative specifications (336 for the 27B model and 480 for the 9B model).

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 26쪽에서 그림 영역을 추출했습니다.

![Figure 4: Advantage of stages in the 27B run, SpecGen in the top row (a1 to c1) and CodeGen in the bottom row (a2 to c2). (a) Mean advantage against the number…](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-de82e478764026cb010b96baa14710ba.png?thumb=512)

**Figure 4** . Advantage of stages in the 27B run, SpecGen in the top row (a1 to c1) and CodeGen in the bottom row (a2 to c2). (a) Mean advantage against the number of passing rollouts in a group of 16, replayed on the same rollouts with the value of one stage changed. (b) Groups by the number of passing rollouts in each period of training. (c) Advantage of each stage per period under the final values, with boxes at the 25th and 75th percentiles, whiskers at the 10th and 90th percentiles and diamonds at the mean.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 27쪽에서 그림 영역을 추출했습니다.

![Figure 11: Training rollouts by reward outcome for AUXSPEC-9B-RL and the 3 variants, one row per run, on SpecGen (left) and CodeGen (right), from the first fai…](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-05f7176bf61c466d3b7413614c8015f0.png?thumb=512)

**Figure 11** . Training rollouts by reward outcome for AUXSPEC-9B-RL and the 3 variants, one row per run, on SpecGen (left) and CodeGen (right), from the first failed stage to passing all stages, with a 5-step moving average, up to step 150. The variant without self-repair draws more training prompts per step than the other runs, and Table 26 compares the runs after approximately the same number of training prompts.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 34쪽에서 그림 영역을 추출했습니다.

## AUXSPEC-Test와 Verina 결과

AUXSPEC-Test에서 AUXSPEC-27B-RL은 SpecGen pass@4를 기반 모델의 14.3%에서 84.3%로 높였습니다. 9B 모델은 0.7%에서 82.7%로 올랐습니다. 범위 밖 벤치마크 Verina에서는 27B 모델이 SpecGen pass@1 91.9%를 기록하여 비교한 베이스라인을 앞섰습니다. 이 결과는 원래 프롬프트와 Verina의 기준 평가 조건에서 얻은 값이며, 테스트 케이스를 프롬프트에 포함하면 수치가 달라집니다.

![Table 4: Main results on AUXSPEC-Test.Boldindicates the best result for each metric and underline the second best. Green numbers in parentheses show the gain i…](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-5a7bc91aaa86efab2c352ff928c50aa1.png?thumb=512)

**Table 4** . Main results on AUXSPEC-Test.Boldindicates the best result for each metric and underline the second best. Green numbers in parentheses show the gain in points over the backbone of the same size.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

![Table 5: Out-of-domain evaluation on Verina without and with test cases in the prompt. The setting without test cases follows the default of Verina. Bold, unde…](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-14c4f3a3a5ee35133f6c4e89cd8987ef.png?thumb=512)

**Table 5** . Out-of-domain evaluation on Verina without and with test cases in the prompt. The setting without test cases follows the default of Verina. Bold, underlines and green numbers as in Table 4. † indicates results reported in the original paper (Ye et al., 2026b) and scored by the same Verina evaluator, which are available only without test cases in the prompt. VeriSpecGen-4B and VeriSpecGen-30B-A3B are the SFT No-Test models of VeriSpecGen fine-tuned from Qwen3-4B-Instruct-2507 and Qwen3-Coder-30B-A3B, respectively. Italic values are pass@10 in place of pass@4 and are not underlined.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

![Figure 5: SpecGen pass@kon AUXSPEC-Test of AUXSPEC-27B-SFT and AUXSPEC-27B-RL](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-e34c7835b63af1ecd5a681b24486474e.png?thumb=512)

**Figure 5** . SpecGen pass@kon AUXSPEC-Test of AUXSPEC-27B-SFT and AUXSPEC-27B-RL.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 28쪽에서 그림 영역을 추출했습니다.

![Table 22: SpecGen problems of AUXSPEC-Test solved within 256 samples by AUXSPEC-27B-SFT and AUXSPEC-27B-RL](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-af4fd43e22ce9601a733b223de2ce336.png?thumb=512)

**Table 22** . SpecGen problems of AUXSPEC-Test solved within 256 samples by AUXSPEC-27B-SFT and AUXSPEC-27B-RL.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 28쪽에서 그림 영역을 추출했습니다.

## 검증 범위와 남은 오류

동등성 정리가 증명되어도 두 postcondition이 같은 오해를 담을 수 있습니다. 전문가 검토는 AUXSPEC-Test 300개 가운데 9개의 그런 명세 오류를 찾았습니다. 한편 SpecGen 승인 출력을 전문가가 검토한 결과, 발견된 오류는 모두 유효 입력 조건인 validity predicate에서 나왔습니다. 생성된 구현에 대한 정확성 증명은 요구하지 않았으며, 이 연구의 승인 기준은 테스트 케이스와 판정기에 의존합니다.

![Table 29: Verdicts of the judges on components that compile and pass the test layers of the component. A problem counts as rejected when at least 1 verdict on…](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-16ba14d7528611e461133a6c65a5cdac.png?thumb=512)

**Table 29** . Verdicts of the judges on components that compile and pass the test layers of the component. A problem counts as rejected when at least 1 verdict on the problem is a rejection.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 42쪽에서 그림 영역을 추출했습니다.

![Table 39: Statement errors found by proof attempts, where the postcondition accounts for 19 of 31 problems and the precondition for 3. A problem was counted un…](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-a8aa16735b52498ea669bf8ee5db7fc3.png?thumb=512)

**Table 39** . Statement errors found by proof attempts, where the postcondition accounts for 19 of 31 problems and the precondition for 3. A problem was counted under each component that was changed by the repair, and one problem was counted twice.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 51쪽에서 그림 영역을 추출했습니다.

![Table 40: Postcondition equivalence theorems of accepted SpecGen outputs on AUXSPEC-Test, one output per model and problem. The 2 RL models are a census. For t…](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-cfa2238cf55adde45da9e1e20116dbb2.png?thumb=512)

**Table 40** . Postcondition equivalence theorems of accepted SpecGen outputs on AUXSPEC-Test, one output per model and problem. The 2 RL models are a census. For the other models, 40 outputs left open by the fixed tactics go to the proving loop, and the estimated mismatch applies the counterexample rate among them to all open outputs.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 52쪽에서 그림 영역을 추출했습니다.

![Table 42: Errors confirmed by human review and, for 1 problem, by the correctness proof, where 20 of 23 component errors are in the postcondition or the implem…](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-d10b91d1af9b62fd4cf0982cd08d23f3.png?thumb=512)

**Table 42** . Errors confirmed by human review and, for 1 problem, by the correctness proof, where 20 of 23 component errors are in the postcondition or the implementation and none is in the executable postcondition. Each percentage is taken over the problems of the row, and a problem with errors in 2 components is counted once among the problems with errors.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 53쪽에서 그림 영역을 추출했습니다.

![Table 43: Specification errors in the test split by detection, where review and proving overlap on 3 of 14 problems. Review only means the postcondition equiva…](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-3f0d20dc4576439ea4cc5ee994245c1b.png?thumb=512)

**Table 43** . Specification errors in the test split by detection, where review and proving overlap on 3 of 14 problems. Review only means the postcondition equivalence theorem had been proved against the wrong statement, and proof attempt only means the review missed the error.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 53쪽에서 그림 영역을 추출했습니다.

![Table 44: Expert review of automatically accepted SpecGen outputs of the reported RL checkpoints](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f/figures/figure-ccfc7c98ec3dff911da3e35ebc8c980b.png?thumb=512)

**Table 44** . Expert review of automatically accepted SpecGen outputs of the reported RL checkpoints.

[원문](https://arxiv.org/abs/2611.21421v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng · AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions · 원문 그림 인용 · 원본 PDF 54쪽에서 그림 영역을 추출했습니다.

## 논문 정보

- **저자**: Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 16일
- **등록일**: 2026년 11월 18일
- **수정일**: 2026년 11월 16일
- **버전**: v1
- **arXiv**: 2611.21421
- **분류**: cs.SE · cs.CL
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.21421v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.21421v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Formal specifications define intended program behavior and underpin verification, but writing them in theorem provers such as Lean is slow and expertise-intensive, making specification a major bottleneck to scaling formally correct code. Autoformalization from natural-language problems is promising, yet training specification models requires scalable feedback on whether generated specifications capture intended behavior. Prior approaches obtain this feedback through explicit proofs or separately implemented code with formal correspondence proofs, both expensive. We introduce AuXSpec, a Lean framework that pairs declarative postconditions with executable counterparts, obtained through type class resolution when possible and otherwise defined separately with an equivalence proof. Test cases can then evaluate declarative specifications by execution, letting us use agreement as a reinforcement-learning reward. Using AuXSpec, we synthesize 3,037 LeetCode problems and expand training to 19.5K samples through expert iteration on Codeforces. Experiments show that training Qwen3.5-9B and Qwen3.8-27B with the execution-based reward improves SpecGen pass@4 on AuXSpec-Test 0.7% $\\to$ 82.7% and 14.3% $\\to$ 84.3%, and the 27B model outperforms all frontier models. On the out-of-domain Verina benchmark with its original prompts, both models improve 7.0% $\\to$ 90.5% and 21.9% $\\to$ 90.5% and surpass VeriSpecGen-30B-A3B, the prior state of the art among open-source specification models, on pass@1 (theirs 47.6% vs. ours 73.7% and 84.5%) and pass@4 (theirs 63.9% at pass@10 vs. ours 90.5%). We release the weights of the trained 9B and 27B models and the 3,037 problems with test cases, including the 300-problem AuXSpec-Test benchmark with expert review and correctness proofs for future evaluation. Models and data: https://huggingface.co/collections/eth-algopt/auxspec. Website: https://auxspec.org

## 원문 인용

Haocheng Wang, Weixuan Yuan, Florian Hübler, Yinya Huang, Zhijiang Guo, Sorrachai Yingchareonthawornchai, Rasmus Kyng (2026). AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions. arXiv:2611.21421v1. https://arxiv.org/abs/2611.21421v1

**BibTeX**

```
@misc{wang2026auxspec,
  title = {{AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions}},
  author = {Haocheng Wang and Weixuan Yuan and Florian Hübler and Yinya Huang and Zhijiang Guo and Sorrachai Yingchareonthawornchai and Rasmus Kyng},
  year = {2026},
  eprint = {2611.21421},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.21421v1}
}
```

## 이 논문의 용어

- [Qwen3.8-27B](https://refivu.com/terms/4cabdbb54f57-qwen3-8-27b)
- [On-policy distillation](https://refivu.com/terms/ca2935e881b4-on-policy-distillation)
- [DAPO](https://refivu.com/terms/6cc83c921e38-dapo)
- [expert iteration](https://refivu.com/terms/a264757a33d4-expert-iteration)

## 다른 논문 해설

- [Train After You Measure: a Pre-Registered Learning Curve for Fine-Tuning Typed Decision Models on One User's Labels](https://refivu.com/papers/507ccf1d-2820-4094-a1d3-aa86efdbe0f9-train-after-you-measure-a-pre-registered-learning.md)
- [Embedding Cosine Measures Text Length Before It Measures Homogenization](https://refivu.com/papers/f5a62c1c-ca4f-4b4f-a5bb-ac167935507f-embedding-cosine-measures-text-length-before-it-measures.md)
- [Centered Ablation: Why Last-Layer Directional Ablation Under-Fires or Collapses, and a Closed-Form Fix](https://refivu.com/papers/e522068b-b9e0-411d-8146-73a3b153eaba-centered-ablation-why-last-layer-directional-ablation-under.md)
- [MathaMAGICal: Validating Trajectory Data Attribution During Capability Acquisition](https://refivu.com/papers/252d859f-2169-4bfd-a6f9-a0e232f2c999-mathamagical-validating-trajectory-data-attribution-during.md)
- [Delayed Effects of Temporary Weight Decay in Muon Pretraining](https://refivu.com/papers/c8f38eb0-af09-4136-b73f-cd4f12a55a5f-delayed-effects-of-temporary-weight-decay-in-muon.md)
- [CoReMem: Cost-Internalizing Memory for Successive Coding Tasks with Prospective Valuation](https://refivu.com/papers/e104c90e-8d89-4dc7-99ab-fd5ebe5db15e-coremem-cost-internalizing-memory-for-successive-coding.md)
- [Variationally correct physics-informed operator learning for nonlinear partial differential equations](https://refivu.com/papers/cf8b9cd8-5f0b-470f-b5a1-a84a0d686de9-variationally-correct-physics-informed-operator-learning-for.md)
- [Representational Change Under Self-Consuming Training: A Sparse Autoencoder Analysis](https://refivu.com/papers/fd9aa9a7-6b2c-40a8-a1bc-d78fec01bb09-representational-change-under-self-consuming-training-a.md)
- [Syllable- and Word-Level Evaluation of Tibetan OCR](https://refivu.com/papers/970137ad-b559-4e84-ab19-3c9fc9e6d2ac-syllable-and-word-level-evaluation-of-tibetan-ocr.md)
- [MegNIST, A Benchmark for Non-Invasive Inner Speech Decoding](https://refivu.com/papers/22ae1019-60f8-4bd2-9bbf-392feb7ad037-megnist-a-benchmark-for-non-invasive-inner-speech.md)
- [Benchmarking Large Language Models for Linguistic Annotation](https://refivu.com/papers/31699f2b-c12b-41fb-89a9-0fd2b94ea922-benchmarking-large-language-models-for-linguistic-annotation.md)
- [Severe but Harmless: Stress-Testing Shift Severity for Frozen Time-Series Forecasters](https://refivu.com/papers/446bd5a6-f3e2-48d7-9f9e-39a03dc1fa47-severe-but-harmless-stress-testing-shift-severity-for.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f-auxspec-learning-to-autoformalize-program-specifications-via)
