paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Synthesizing DSLs for Few-Shot Learning

面向小样本学习的 DSL 合成
OOPSLA 9(OOPSLA2)2025匹配度 3/10 · 论文研究符号域中 DSL 合成与可判定性,属于程序合成与自动机理论,与用户关注的 LLM/Agent 静态分析、浮点程序分析或贝叶斯程序分析没有直接交叉。其小样本学习设定偏符号推理,也未涉及 LLM/Agent 作为工具或工业落地。引用 1 inbox
Paul Krogmeier, P. Madhusudan
crossref: 2026-09-10

AI 速览

一句话:研究符号域中小样本学习的 DSL 合成问题,证明其可判定性并给出正则树表征。

本文研究符号域中面向小样本学习的领域特定语言(DSL)合成问题。给定一个基语言以及若干小样本学习实例,每个实例划分为训练与测试样本,目标是合成该基语言上的一个文法,使得能解决训练样本的小表达式也能解决对应的测试样本。作者将表达式大小与文法分析树深度对应,并限制语义可在固定结构上由树自动机求值,证明了该问题对此类语言可判定,且解文法构成正则树集。论文还讨论了两种变体:DSL 只需能表达输入学习问题的解,以及 DSL 用宏文法定义,并分别给出可判定性结果。评估以理论证明为主,摘要未报告实现或实验。

问题
给定基语言与小样本学习实例(含训练/测试划分),如何合成一个文法或 DSL,保证在训练样本上成立的小表达式也能正确解决对应测试样本。
方法
将表达式大小对应到分析树深度,并利用树自动机刻画固定结构上的语义,从而把 DSL 合成问题转化为正则树集上的可判定性问题;同时分析宏文法等变体。
评估
通过可判定性证明与正则树集表征进行理论评估;摘要未提及原型实现或实验评估。
原文摘要(Abstract)

We study the problem of synthesizing domain-specific languages (DSLs) for few-shot learning in symbolic domains. Given a base language and instances of few-shot learning problems, where each instance is split into training and testing samples, the DSL synthesis problem asks for a grammar over the base language that guarantees that small expressions solving training samples also solve corresponding testing samples. We prove that the problem is decidable for a class of languages whose semantics over fixed structures can be evaluated by tree automata and when expression size corresponds to parse tree depth in the grammar, and, furthermore, the grammars solving the problem correspond to a regular set of trees. We also prove decidability results for variants of the problem where DSLs are only required to express solutions for input learning problems and where DSLs are defined using macro grammars.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot2961,
  title = {Synthesizing DSLs for Few-Shot Learning},
  author = {Paul Krogmeier and P. Madhusudan},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {9},
  number = {OOPSLA2},
  year = {2025},
  doi = {10.1145/3763073}
}