arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2308.09890cs.LGcs.AIcs.CLcs.PL
收藏

归纳偏置学习:用大语言模型生成代码模型

Inductive-bias Learning: Generating Code Models with Large Language Model

BrainPad inc.(BrainPad公司)

Toma Tanaka, Naofumi Emoto, Tsukasa Yumibayashi

AI总结:

该研究提出结合上下文学习与代码生成的归纳偏置学习方法,通过输入训练数据让大语言模型生成具备推理结构的代码模型,兼具无显式归纳偏置推理特性与代码的可解释性,准确率可比肩甚至超越现有方法。

摘要:

大语言模型(LLMs)因其名为上下文学习(ICL)的能力受到广泛关注。ICL无需更新LLM的参数,仅需将训练数据输入提示词,就能基于“上下文中的”规则实现高精度推理。尽管ICL仍是一个存在诸多未解问题的发展中领域,但LLM本身作为推理模型,似乎在无需明确指明“归纳偏置”的情况下就能实现推理。另一方面,代码生成也是LLM的一项备受关注的应用,其准确率已大幅提升,甚至非工程师也能通过设计合适的提示词来生成执行所需任务的代码。本文提出了一种名为“归纳偏置学习(Inductive-Bias Learning, IBL)”的新型“学习”方法,该方法结合了ICL与代码生成技术。IBL的思路十分直接:与ICL类似,IBL将训练数据输入提示词,通过“上下文理解”输出具备推理所需结构的代码(我们称之为“代码模型(Code Model)”)。尽管这一方法看似简单,却兼具ICL固有的“无需显式归纳偏置的推理特性”与代码生成的“可读性和可解释性”。令人意外的是,研究发现生成的代码模型能达到与ICL及代表性机器学习模型相当的预测准确率,在部分场景下甚至更优。我们的IBL代码已开源,地址为:https://github.com/fuyu-quant/IBLM

英文摘要:

Large Language Models(LLMs) have been attracting attention due to a ability called in-context learning(ICL). ICL, without updating the parameters of a LLM, it is possible to achieve highly accurate inference based on rules ``in the context'' by merely inputting a training data into the prompt. Although ICL is a developing field with many unanswered questions, LLMs themselves serves as a inference model, seemingly realizing inference without explicitly indicate ``inductive bias''. On the other hand, a code generation is also a highlighted application of LLMs. The accuracy of code generation has dramatically improved, enabling even non-engineers to generate code to perform the desired tasks by crafting appropriate prompts. In this paper, we propose a novel ``learning'' method called an ``Inductive-Bias Learning (IBL)'', which combines the techniques of ICL and code generation. An idea of IBL is straightforward. Like ICL, IBL inputs a training data into the prompt and outputs a code with a necessary structure for inference (we referred to as ``Code Model'') from a ``contextual understanding''. Despite being a seemingly simple approach, IBL encompasses both a ``property of inference without explicit inductive bias'' inherent in ICL and a ``readability and explainability'' of the code generation. Surprisingly, generated Code Models have been found to achieve predictive accuracy comparable to, and in some cases surpassing, ICL and representative machine learning models. Our IBL code is open source: https://github.com/fuyu-quant/IBLM

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

↑