paper-with-me

Papers

ANPL: Towards Natural Programming with Interactive Decomposition

2023-05-29 · NeurIPS 2023 11 · Di Huang, Ziyuan Nan, Xing Hu, Pengwei Jin, Shaohui Peng, Yuanbo Wen, Rui Zhang, Zidong Du, Qi Guo, Yewen Pu, Yunji Chen

Though LLMs are capable of generating plausible programs, it's challenging to interact with the LLMs further to revise the program, especially if the user's specific requirements are different from the initial proposal. In this paper, we introduce ANPL, an interactive programming system that ensures users can always refine the generated code towards their specific programmatic intents via structured decompositions. Borrowing the paradigm of sketching from program synthesis, an ANPL program consists of a set of input-outputs that it must satisfy, a `sketch'' -- control/data flow expressed in precise code (e.g. Python), and `holes'' -- sub-modules to be implemented by the LLM specified with natural language. The user revises an ANPL program by either modifying the sketch, changing the language used to describe the holes, or providing additional input-outputs to a particular hole, turning it into a sub-ANPL program that can be solved recursively. This workflow allows the users to offload programming burdens to the LLM as much as possible while retaining the ability to pinpoint and resolve bugs locally, without exposing the rest of the program to the LLM. We deploy ANPL on the Abstraction and Reasoning Corpus (ARC), a set of unique tasks that are challenging for state-of-the-art AI systems, showing it outperforms baseline programming systems that (a) without the ability to decompose tasks interactively and (b) without the guarantee that the modules can be correctly composed together. Additional evaluations on APPS, HumanEval, and real-world programming tasks have validated that the ANPL framework is applicable to multiple programming domains. We release the ANPL solutions to the ARC tasks as a dataset, providing insights into how humans decompose novel tasks programmatically. See our code at https://iprc-dip.github.io/ANPL/.

📄 PDF Abstract BibTeX arXiv:2305.18498

Code (1)

IPRC-DIP/ANPL 공식 구현

Tasks

ARCCode GenerationHumanEvalProgram Synthesis

Similar Papers 제목 키워드 기반

NL2INTERFACE: Interactive Visualization Interface Generation from Natural Language Queries

2022-09-19 · Yiru Chen, Ryan Li, Austin Mac, Tianbao Xie 외

We develop NL2INTERFACE to explore the potential of generating usable interactive multi-visualization interfaces from natural language queries. With NL2INTERFACE, users can directly write natural language queries to auto…

Natural Language Queries

Domain-Specific Fine-Tuning of Large Language Models for Interactive Robot Programming

2023-12-21 · Benjamin Alt, Urs Keßner, Aleksandar Taranovic, Darko Katic 외

Industrial robots are applied in a widening range of industries, but robot programming mostly remains a task limited to programming experts. We propose a natural language-based assistant for programming of advanced, indu…

Industrial Robots

From Keyboard to Chatbot: An AI-powered Integration Platform with Large-Language Models for Teaching Computational Thinking for Young Children

2024-05-01 · Changjae Lee, JinJun Xiong

Teaching programming in early childhood (4-9) to enhance computational thinking has gained popularity in the recent movement of computer science for all. However, current practices ignore some fundamental issues resultin…

Chatbot

Learning a Hierarchical Planner from Humans in Multiple Generations

2023-10-17 · Leonardo Hernandez Cano, Yewen Pu, Robert D. Hawkins, Josh Tenenbaum 외

A typical way in which a machine acquires knowledge from humans is by programming. Compared to learning from demonstrations or experiences, programmatic learning allows the machine to acquire a novel skill as soon as the…

Control4D: Efficient 4D Portrait Editing with Text

2023-05-31 · CVPR 2024 1 · Ruizhi Shao, Jingxiang Sun, Cheng Peng, Zerong Zheng 외

We introduce Control4D, an innovative framework for editing dynamic 4D portraits using text instructions. Our method addresses the prevalent challenges in 4D editing, notably the inefficiencies of existing 4D representat…