논문 해설
Interactive Program Induction with Language Model Priors
언어 모델 사전 지식을 활용한 대화형 프로그램 유도
- 연구 문제 입출력 예시만으로는 서로 다른 프로그램이 모두 일관되어 대상 프로그램을 고르기 어렵습니다.
- 연구 방법 언어 모델을 프로그램 사전분포와 중요도 샘플링 제안분포로 쓰고, 기대 정보 이득이 큰 입력을 골라 오라클에 질의합니다.
- 주요 결과 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 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.
원문 · CC 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 accuracy pooled over models and temperatures.
원문 · CC 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 (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.
원문 · CC 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쌍, 다섯 시드의 평균과 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 seeds. Avg I/O is the average number of input–output examples observed, including the seed invocations, out of a budget of30.
원문 · CC 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.
원문 · CC 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
- 제공 범위
- 논문 정보, 해설, 허용된 원문 그림
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}
}