arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.14825cs.LG
收藏

程序化表示学习与语言模型

Programmatic Representation Learning with Language Models

Kempner Institute at Harvard University(哈佛大学凯普纳研究所);Stanford University(斯坦福大学)

Gabriel Poesia, Georgia Gabriela Sampaio

AI总结:

本文提出LeaPR模型,利用大型语言模型合成代码特征并堆叠决策树,通过改编FunSearch和ID3变体算法,实现无需神经网络的高质量可解释预测器。

摘要:

监督机器学习的经典模型,如决策树,是高效且可解释的预测器,但其质量高度依赖于输入特征的特定选择。尽管神经网络可以直接从原始数据(例如图像或文本)中学习有用的表示,但这以牺牲可解释性为代价,并且需要专门的硬件来高效运行它们。在本文中,我们探索了一个假设类,称为学习程序化表示(LeaPR)模型,该模型堆叠了表示为代码的任意特征(从数据点到标量的函数)和决策树预测器。我们使用大型语言模型(LLMs)来合成特征函数,这些模型在广泛的领域拥有丰富的先验知识,并且具有使用现有领域特定库编写代码的卓越能力。我们提出了两种从监督数据中学习LeaPR模型的算法。首先,我们设计了一个FunSearch的改编版,用于学习特征而不是直接生成预测器。然后,我们开发了经典的ID3决策树学习算法的一个新变体,其中在分裂叶节点时按需生成新特征。在从国际象棋位置评估到图像和文本分类的实验中,我们的方法学习了高质量、无神经网络的预测器,通常与神经网络竞争。我们的工作提出了一种灵活的范式,用于端到端学习可解释的表示,其中特征和预测可以轻松地检查和理解。

英文摘要:

Classical models for supervised machine learning, such as decision trees, are efficient and interpretable predictors, but their quality is highly dependent on the particular choice of input features. Although neural networks can learn useful representations directly from raw data (e.g., images or text), this comes at the expense of interpretability and the need for specialized hardware to run them efficiently. In this paper, we explore a hypothesis class we call Learned Programmatic Representations (LeaPR) models, which stack arbitrary features represented as code (functions from data points to scalars) and decision tree predictors. We synthesize feature functions using Large Language Models (LLMs), which have rich prior knowledge in a wide range of domains and a remarkable ability to write code using existing domain-specific libraries. We propose two algorithms to learn LeaPR models from supervised data. First, we design an adaptation of FunSearch to learn features rather than directly generate predictors. Then, we develop a novel variant of the classical ID3 algorithm for decision tree learning, where new features are generated on demand when splitting leaf nodes. In experiments from chess position evaluation to image and text classification, our methods learn high-quality, neural network-free predictors often competitive with neural networks. Our work suggests a flexible paradigm for learning interpretable representations end-to-end where features and predictions can be readily inspected and understood.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑