Code-generating large language models translate natural language into code. However, only a small portion of the infinite space of naturalistic utterances is effective at guiding code generation. For non-expert end-user programmers, learning this is the challenge of abstraction matching. We examine this challenge in the specific context of data analysis in spreadsheets, in a system that maps the users natural language query to Python code using the Codex generator, executes the code, and shows the result. We propose grounded abstraction matching, which bridges the abstraction gap by translating the code back into a systematic and predictable naturalistic utterance. In a between-subjects, think-aloud study (n=24), we compare grounded abstraction matching to an ungrounded alternative based on previously established query framing principles. We find that the grounded approach improves end-users' understanding of the scope and capabilities of the code-generating model, and the kind of language needed to use it effectively.


翻译:代码生成大型语言模型将自然语言转化为代码。然而,在无限的自然语言表达空间中,仅有少量表述能够有效引导代码生成。对于非专业最终用户程序员而言,学习这一能力正是抽象匹配(abstraction matching)的挑战所在。我们在电子表格数据分析的具体场景中,通过一个利用Codex生成器将用户自然语言查询映射为Python代码并执行展示结果的系统,对这一挑战进行了研究。我们提出了一种基于实例的抽象匹配方法(grounded abstraction matching),通过将代码反向翻译为系统化且可预测的自然语言表述,从而弥合抽象鸿沟。在一项受试者间有声思维研究(n=24)中,我们将基于实例的抽象匹配与基于先前查询框架原则的非实例化(ungrounded)方法进行了比较。研究发现,基于实例的方法能提升最终用户对代码生成模型适用范围与能力的理解水平,并帮助他们掌握有效使用该模型所需的语言表达方式。

0
下载
关闭预览

相关内容

【实用书】文本分析:非结构信息分析,259页pdf
专知会员服务
103+阅读 · 2022年7月5日
【COMPTEXT2022教程】跨语言监督文本分类,41页ppt
专知会员服务
18+阅读 · 2022年6月14日
专知会员服务
22+阅读 · 2021年10月8日
【干货书】实体搜索,Entity-Oriented Search,358页pdf
专知会员服务
36+阅读 · 2021年4月9日
ACL 2022 | 自描述网络的小样本命名实体识别
PaperWeekly
0+阅读 · 2022年8月13日
代码注释的艺术,优秀代码真的不需要注释吗?
阿里技术
0+阅读 · 2022年6月14日
现代编程语言需要泛型
InfoQ
0+阅读 · 2022年6月5日
赛尔原创 | ACL 2019 检索增强的对抗式回复生成
哈工大SCIR
12+阅读 · 2019年7月4日
综述:Image Caption 任务之语句多样性
PaperWeekly
22+阅读 · 2018年11月30日
NLP通用模型诞生?一个模型搞定十大自然语言常见任务
人工智能头条
10+阅读 · 2018年6月29日
国家自然科学基金
5+阅读 · 2015年12月31日
国家自然科学基金
4+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2013年12月31日
国家自然科学基金
0+阅读 · 2012年12月31日
国家自然科学基金
3+阅读 · 2012年12月31日
国家自然科学基金
0+阅读 · 2012年12月31日
国家自然科学基金
0+阅读 · 2011年12月31日
国家自然科学基金
0+阅读 · 2010年12月31日
国家自然科学基金
0+阅读 · 2009年12月31日
国家自然科学基金
0+阅读 · 2009年12月31日
Arxiv
1+阅读 · 2023年5月31日
Arxiv
176+阅读 · 2023年4月20日
A Survey of Large Language Models
Arxiv
501+阅读 · 2023年3月31日
Arxiv
83+阅读 · 2023年3月26日
VIP会员
最新内容
《无人地面战车(UGV)的崛起》报告
专知会员服务
5+阅读 · 7月16日
美陆军任务式指挥人工智能解决方案
专知会员服务
7+阅读 · 7月16日
相关资讯
ACL 2022 | 自描述网络的小样本命名实体识别
PaperWeekly
0+阅读 · 2022年8月13日
代码注释的艺术,优秀代码真的不需要注释吗?
阿里技术
0+阅读 · 2022年6月14日
现代编程语言需要泛型
InfoQ
0+阅读 · 2022年6月5日
赛尔原创 | ACL 2019 检索增强的对抗式回复生成
哈工大SCIR
12+阅读 · 2019年7月4日
综述:Image Caption 任务之语句多样性
PaperWeekly
22+阅读 · 2018年11月30日
NLP通用模型诞生?一个模型搞定十大自然语言常见任务
人工智能头条
10+阅读 · 2018年6月29日
相关基金
国家自然科学基金
5+阅读 · 2015年12月31日
国家自然科学基金
4+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2013年12月31日
国家自然科学基金
0+阅读 · 2012年12月31日
国家自然科学基金
3+阅读 · 2012年12月31日
国家自然科学基金
0+阅读 · 2012年12月31日
国家自然科学基金
0+阅读 · 2011年12月31日
国家自然科学基金
0+阅读 · 2010年12月31日
国家自然科学基金
0+阅读 · 2009年12月31日
国家自然科学基金
0+阅读 · 2009年12月31日
Top
微信扫码咨询专知VIP会员