# AuXSpec: Learning to Autoformalize Program Specifications via Executable Postconditions

AuXSpec：実行可能な事後条件を用いたプログラム仕様の自動形式化の学習

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 などを強化学習します。報酬は、形式、コンパイル、テスト実行、テストとの整合性、非自明性、全体品質の6段階の 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)

この解説は、Refivuの韓国語解説を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}
}
```

## この論文の用語

- [On-Policy Distillation](https://refivu.com/ja/terms/ca2935e881b4-on-policy-distillation)
- [expert iteration](https://refivu.com/ja/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/ja/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/ja/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/ja/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/ja/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/ja/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/ja/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/ja/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/ja/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/ja/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/ja/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/ja/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/ja/papers/446bd5a6-f3e2-48d7-9f9e-39a03dc1fa47-severe-but-harmless-stress-testing-shift-severity-for.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/d6ae6e57-c73c-4909-b2a8-0a7a84033d1f-auxspec-learning-to-autoformalize-program-specifications-via)
