Cocobo: Exploring Large Language Models as the Engine for End-User Robot Programming

Yate Ge,Yi Dai,Run Shan,Kechun Li,Yuanda Hu,Xiaohua Sun
2024-07-30
Abstract:End-user development allows everyday users to tailor service robots or applications to their needs. One user-friendly approach is natural language programming. However, it encounters challenges such as an expansive user expression space and limited support for debugging and editing, which restrict its application in end-user programming. The emergence of large language models (LLMs) offers promising avenues for the translation and interpretation between human language instructions and the code executed by robots, but their application in end-user programming systems requires further study. We introduce Cocobo, a natural language programming system with interactive diagrams powered by LLMs. Cocobo employs LLMs to understand users' authoring intentions, generate and explain robot programs, and facilitate the conversion between executable code and flowchart representations. Our user study shows that Cocobo has a low learning curve, enabling even users with zero coding experience to customize robot programs successfully.
Human-Computer Interaction,Artificial Intelligence
What problem does this paper attempt to address?
### Problems Addressed by the Paper The paper aims to address the challenges faced by non-expert users when customizing service robot programs. Specifically, the paper focuses on the following issues: 1. **Limitations of Natural Language Programming**: Although natural language programming (NLP) allows non-expert users to write programs using everyday language, this approach faces challenges such as a broad expression space and limited support for debugging and editing, which restrict its effectiveness in practical applications. 2. **Application Potential of Large Language Models**: Despite the excellent performance of large language models (LLMs) in code generation and task adaptation, their application in end-user programming systems requires further research. An important research direction is how to effectively use LLMs to translate and interpret human language instructions and convert them into executable robot code. 3. **Reducing the Learning Curve**: Designing a user-friendly interface that enables users with no programming experience to successfully customize robot programs is a key issue. ### Proposed Solutions in the Paper To address the above challenges, the paper introduces the Cocobo system, a natural language programming system based on large language models with interactive chart features. The main features of Cocobo include: - **Understanding User Intent**: Cocobo uses LLMs to understand the user's intent, generating and interpreting robot programs. - **Conversion Between Code and Flowcharts**: Cocobo can convert executable code into flowchart representations and vice versa, helping users better understand and modify programs. - **Multi-turn Dialogue Interaction**: Users can interact with the system through multi-turn dialogues to gradually refine and modify programs. - **MagicDebug Feature**: Cocobo provides a MagicDebug feature that allows users to debug and directly modify specific nodes through text dialogue. ### Experimental Validation To evaluate the effectiveness and user experience of Cocobo, the research team conducted user experiments. The experimental results show that Cocobo has a low learning curve, and even users with no programming experience can successfully customize robot programs. However, some issues were also identified during the experiments, such as unstable LLM outputs and long response times, which need further optimization in future work. ### Conclusion Cocobo demonstrates the potential of combining AI with end-user development (EUD) to help everyday users easily customize smart devices and services. However, further research and improvements are needed in areas such as scalability, performance optimization, and support for users with different programming skill levels when dealing with more complex IoT and network services.