TensorX
返回文献探索

Paper · arXiv 2305.08677

Natural Language Decomposition and Interpretation of Complex Utterances

Harsh Jhamtani, Hao Fang, Patrick Xia, Eran Levy, Jacob Andreas, Ben Van Durme

2 upvotesMay 15, 2023arXiv 预印本
AI 摘要

An approach using hierarchical natural language decomposition and a pre-trained language model allows a language-to-code model to handle complex utterances with minimal training data, outperforming standard few-shot prompting.

language-to-code modelhierarchical natural language decompositionpre-trained language modelNL-to-program benchmarkDecomposition of Complex Utterancesfew-shot prompting

Abstract

Natural language interfaces often require supervised data to translate user requests into programs, database queries, or other structured intent representations. During data collection, it can be difficult to anticipate and formalize the full range of user needs -- for example, in a system designed to handle simple requests (like find my meetings tomorrow or move my meeting with my manager to noon), users may also express more elaborate requests (like swap all my calls on Monday and Tuesday). We introduce an approach for equipping a simple language-to-code model to handle complex utterances via a process of hierarchical natural language decomposition. Our approach uses a pre-trained language model to decompose a complex utterance into a sequence of smaller natural language steps, then interprets each step using the language-to-code model. To test our approach, we collect and release DeCU -- a new NL-to-program benchmark to evaluate Decomposition of Complex Utterances. Experiments show that the proposed approach enables the interpretation of complex utterances with almost no complex training data, while outperforming standard few-shot prompting approaches.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号