# Interactive Program Induction with Language Model Priors

言語モデルの事前知識を活用した対話型プログラム誘導

Robin Shing Moon Chan, Ryan Cotterell · arXiv · 2026年11月13日

- **課題** 入出力の例だけでは、互いに異なるプログラムがすべて整合するため、対象のプログラムを選ぶことが困難です。
- **手法** 言語モデルをプログラムの事前分布と重要度サンプリングの提案分布として用い、期待情報利得が大きい入力を選んでオラクルに問い合わせます。
- **結果** CodeARCでは、LM単独エージェントより精度を最大22%ポイント高め、観測する例を最大10.5個減らしました。

## プログラム誘導のあいまいさ

入出力の例を数個使ってプログラムを復元しようとすると、有限の例は、異なる出力を返す無限に多くのプログラムと整合します。この論文は、このあいまいさをベイズの観点から扱います。事前分布p0のもとで観測を加えることで、事後質量を対象プログラムに集中させることが目標です。対話型の設定では、学習器が情報量の大きい入力を選び、その出力をオラクルに尋ねます。

## 期待情報利得による問い合わせの選択

アルゴリズムは評価集合S上で、各ラウンドにおいて期待情報利得が最大となる入力x(t)を選びます。期待情報利得は、問い合わせ後の同値類分布のエントロピー減少量の期待値として定義されます。オラクルの答えと整合しないプログラムは重みが0になり、すべてのクラスの事後質量が1/2以下になるまで繰り返します。このとき同値類とは、S上で出力が同じプログラムの集合です。

![Table 6: Query selection strategies of Alg. 1 and the CodeARC agent with 1 seed invocation on the full anonymized CodeARC split. Prior majority returns a progr…](https://refivu.com/papers/92ea057b-2bf7-43ba-8d48-9e24e96e388c/figures/figure-2eafa2d12c13ebb7f18513adf0cc32fa.png?thumb=512)

**Table 6** : Query selection strategies of Alg. 1 and the CodeARC agent with 1 seed invocation on the full anonymized CodeARC split. Prior majority returns a program from the majority class of the initial particles without calling the oracle. Entries are means over 5 independent seeds (3 for prior majority) with 95% confidence intervals over seeds. Avg I/O is the average number of input–output examples observed, including the seed invocation, out of a budget of 30. Avg γt is the information the selected query is guaranteed to yield, averaged over all queries of the strategy.

[出典](https://arxiv.org/abs/2611.18485v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Robin Shing Moon Chan, Ryan Cotterell · Interactive Program Induction with Language Model Priors · 論文の図を引用 · 元のPDFの21ページ目から図の部分を抽出しています。

## 言語モデルを事前分布と提案分布として使う

言語モデルは、プログラムの事前分布p0と、重要度サンプリングの提案分布qtとして同時に用いられます。入出力の例を含むプロンプトに条件付けられた言語モデルが実装候補をサンプリングし、各候補に重要度の重みを与えます。論文では、重みを計算する際、推論過程とサンプリング温度を除いた近似を用いると述べられています。

![Figure 5: Accuracy of our algorithm against the sampling temperature for each proposal prompt, with 1 seed invocation on 100 problems. Prompts are ordered by a…](https://refivu.com/papers/92ea057b-2bf7-43ba-8d48-9e24e96e388c/figures/figure-f657575943e56bc46f2f03d1b544c0c6.png?thumb=512)

**Figure 5** : Accuracy of our algorithm against the sampling temperature for each proposal prompt, with 1 seed invocation on 100 problems. Prompts are ordered by accuracy pooled over models and temperatures.

[出典](https://arxiv.org/abs/2611.18485v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Robin Shing Moon Chan, Ryan Cotterell · Interactive Program Induction with Language Model Priors · 論文の図を引用 · 元のPDFの23ページ目から図の部分を抽出しています。

## 問い合わせ数とPAC保証

すべての応答が少なくともγビットを与えるなら、貪欲アルゴリズムの期待問い合わせ数は、事前クラスのエントロピーをγで割った値以下に抑えられます。対象プログラムごとの上界は、1/γとlog(1/2p0 質量)に比例する式で与えられます。同値関係を入力分布µのもとでの誤差で近似すると、PAC誤差の上界も同時に得られます。この結果は、事後分布が正確であるという仮定のもとで成り立ちます。

![Figure 1: (a) Cumulative accuracy (top) and fraction of runs terminated (bottom) by round, for Alg. 1 under four query selection strategies, the CodeARC agent…](https://refivu.com/papers/92ea057b-2bf7-43ba-8d48-9e24e96e388c/figures/figure-4a4204d8d52eab7cb5e132db3ba0c13d.png?thumb=512)

**Figure 1** : (a) Cumulative accuracy (top) and fraction of runs terminated (bottom) by round, for Alg. 1 under four query selection strategies, the CodeARC agent (LM only), and the per-instance bound of Thm. 3.2 aggregated over the EIG runs. The termination panels use the runs whose initial particles contain the target’s class. A run is terminated once it reaches the total query budget. (b) The information the selected query is guaranteed to yield, γt, by round, averaged over the runs still querying and pooled across models. A dashed line marks the last round with at least 200 runs of that strategy still querying, which is where the strategy has typically terminated. 95% CIs over five seeds.

[出典](https://arxiv.org/abs/2611.18485v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Robin Shing Moon Chan, Ryan Cotterell · Interactive Program Induction with Language Model Priors · 論文の図を引用 · 元のPDFの9ページ目から図の部分を抽出しています。

## CodeARCでの比較

CodeARCの全分割でAlg. 1をLM単独エージェントと比較しました。シード呼び出しが1個と10個の条件、問い合わせ予算30組、5つのシードの平均と95%信頼区間で測定しました。その結果、複数のモデルで精度が高まり、観測した例の数が減りました。著者らは、事前分布の較正が合っておらず、多数クラスが対象クラスである頻度が低いことが精度を制限していると見ています。

![Table 1: Results across models and methods on the full anonymized CodeARC split. Entries are means over 5 independent seeds with 95% confidence intervals over…](https://refivu.com/papers/92ea057b-2bf7-43ba-8d48-9e24e96e388c/figures/figure-fb3b7be36989e009d80734f6046531e8.png?thumb=512)

**Table 1** : Results across models and methods on the full anonymized CodeARC split. Entries are means over 5 independent seeds with 95% confidence intervals over seeds. Avg I/O is the average number of input–output examples observed, including the seed invocations, out of a budget of30.

[出典](https://arxiv.org/abs/2611.18485v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Robin Shing Moon Chan, Ryan Cotterell · Interactive Program Induction with Language Model Priors · 論文の図を引用 · 元のPDFの8ページ目から図の部分を抽出しています。

## 事前分布の較正と評価集合のサイズ

評価集合のサイズNを2から256まで変えたところ、Nが小さいと同値類が粗くなり、オラクルが拒否するプログラムが出ることがありました。Nが大きくなると、対象クラスに収束する実行は減りますが、収束したときの精度は高くなりました。また、すべてのモデルで、多数クラスが対象クラスである頻度が事前質量を下回っており、事前分布が初期段階で誤った確信を持ちます。

![Figure 3: Calibration of the prior major- ity class, with ECE in the legend. 95% CIs over five seeds](https://refivu.com/papers/92ea057b-2bf7-43ba-8d48-9e24e96e388c/figures/figure-1afc00dd9f2da21c4317ca7a64996d89.png?thumb=512)

**Figure 3** : Calibration of the prior major- ity class, with ECE in the legend. 95% CIs over five seeds.

[出典](https://arxiv.org/abs/2611.18485v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Robin Shing Moon Chan, Ryan Cotterell · Interactive Program Induction with Language Model Priors · 論文の図を引用 · 元のPDFの10ページ目から図の部分を抽出しています。

## 論文情報

- **著者**: Robin Shing Moon Chan, Ryan Cotterell
- **学会・ジャーナル**: arXiv · プレプリント
- **公開日**: 2026年11月13日
- **登録日**: 2026年11月16日
- **更新日**: 2026年11月13日
- **バージョン**: v1
- **arXiv**: 2611.18485
- **カテゴリ**: cs.CL · cs.AI · cs.LG
- **ライセンス**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **掲載内容**: 論文情報・解説・論文の図

[元論文 ↗](https://arxiv.org/abs/2611.18485v1) · [PDF ↗](https://arxiv.org/pdf/2611.18485v1)

この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。

## アブストラクト

Program induction refers to the process in which a learner aims to recover a program from a few given input-output examples. This paradigm broadens programming access by letting users demonstrate the rule-based behavior they want to apply to unseen data, instead of having to implement it themselves. However, recovering a program from finite input-output examples is fundamentally ambiguous, as a finite set of input-output examples is theoretically consistent with infinitely many programs whose output diverges on unseen inputs. We view this problem from a Bayesian perspective, where, given a prior $p^0$ over programs, identifying the target program means concentrating posterior probability mass on it by observing additional input-output examples. In the interactive program induction setting, the learner chooses maximally informative inputs and queries an oracle, such as the user, for their outputs. We derive a greedy query-selection algorithm and show that it terminates after $\\mathcal{O}(\\frac{1}γ\\log 1/p^0(f^\\star))$ informative oracle queries, and returns the target program $f^\\star$ up to approximate equivalence when no other class outweighs it under the prior. The algorithm uses a language model as the prior under a PAC-style relaxation of program equivalence, where the query-selection objective is estimated using importance sampling. On the CodeARC benchmark, the algorithm improves accuracy over the LM only agent by up to 22 percentage points while observing up to 10.5 fewer input-output examples.

## この論文を引用

Robin Shing Moon Chan, Ryan Cotterell (2026). Interactive Program Induction with Language Model Priors. arXiv:2611.18485v1. https://arxiv.org/abs/2611.18485v1

**BibTeX**

```
@misc{chan2026interactive,
  title = {{Interactive Program Induction with Language Model Priors}},
  author = {Robin Shing Moon Chan and Ryan Cotterell},
  year = {2026},
  eprint = {2611.18485},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.18485v1}
}
```

## この論文の用語

- [accuracy](https://refivu.com/ja/terms/1995c0cd6282-accuracy)
- [ECE](https://refivu.com/ja/terms/ac26c4c348fc-ece)
- [importance sampling](https://refivu.com/ja/terms/f730041e2218-importance-sampling)
- [Shannon Entropy](https://refivu.com/ja/terms/4c6ac050d224-shannon-entropy)
- [Bayesian experimental design](https://refivu.com/ja/terms/51c62f7c1bdf-bayesian-experimental-design)
- [expected information gain](https://refivu.com/ja/terms/160e025e7c33-expected-information-gain)
- [language model](https://refivu.com/ja/terms/ebf13a974a16-language-model)
- [pushforward](https://refivu.com/ja/terms/c971312f5ba7-pushforward)

## ほかの論文解説

- [MamaReason: Unfinished Reasoning and Answer Recovery in Clinical Language Models](https://refivu.com/ja/papers/cab37a8e-06cc-43ac-8da0-131aec33afef-mamareason-unfinished-reasoning-and-answer-recovery-in.md)
- [Deep Latents, Long Memory: Latent persistence explains temporal correlations in transformer activations](https://refivu.com/ja/papers/5b45d505-1be9-40ee-b321-dfd4bbaf951d-deep-latents-long-memory-latent-persistence-explains.md)
- [JFinBench: A Continuously Refreshable Japanese Financial Benchmark from the Latest Certification Exams](https://refivu.com/ja/papers/507f003d-f0bb-48de-a7b8-b4a9727995ee-jfinbench-a-continuously-refreshable-japanese-financial.md)
- [PerfArena: Ranking LLMs by Code Performance](https://refivu.com/ja/papers/c040cebb-8cde-4fb3-b12d-79a3fe746bfa-perfarena-ranking-llms-by-code-performance.md)
- [Fuse-All MoE Inference Kernel with Load Balancing on TPUs](https://refivu.com/ja/papers/9cb74dcd-e120-4e43-b2b0-37dad7ccf356-fuse-all-moe-inference-kernel-with-load-balancing.md)
- [LECAT: Measuring LLM Category Learning from Pretraining Data](https://refivu.com/ja/papers/a9acf13c-34dc-44f5-b84d-62a081413434-lecat-measuring-llm-category-learning-from-pretraining-data.md)
- [Do Verifier Judgments Survive Abstraction? Measuring Verification Transport for LLM Agent Evaluation](https://refivu.com/ja/papers/14bd2e4c-85ea-4184-a7c7-04ab89b28c5b-do-verifier-judgments-survive-abstraction-measuring.md)
- [Bregman geometry in regular exponential families: dual representations and relative smoothness](https://refivu.com/ja/papers/5e6a626e-e508-4fd8-80fa-b09e4ba2171a-bregman-geometry-in-regular-exponential-families-dual.md)
- [Probabilities of Causation in Nondeterministic Causal Models](https://refivu.com/ja/papers/4a41c475-9406-46f0-81a1-d08a8eb59ede-probabilities-of-causation-in-nondeterministic-causal-models.md)
- [WebArena-Pro: A Heterogeneous, Multimodal, Reproducible Benchmark for Web Agents](https://refivu.com/ja/papers/7c529569-3456-4395-849d-e3cbd0a217d1-webarena-pro-a-heterogeneous-multimodal-reproducible.md)
- [Training-point consistency of kernel ridge regression with varying correlation scales](https://refivu.com/ja/papers/cf42114d-78fb-47c0-aadb-1b56a39f01ce-training-point-consistency-of-kernel-ridge-regression-with.md)
- [Analyzing Learning-Dynamics Across Loss and Prediction Choices for Diffusion Models](https://refivu.com/ja/papers/07daf9aa-4622-41cc-99a4-baf6a53d8084-analyzing-learning-dynamics-across-loss-and-prediction.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/92ea057b-2bf7-43ba-8d48-9e24e96e388c-interactive-program-induction-with-language-model-priors)
