arXiv:2611.00297cs.ROOct 2026

Manuscript Offprint

arXiv:2611.00297

Teach, Abstract, Apply: A Framework for Dialogue-Driven Task Learning with Collaborative Robots

Chalamalasetti Kranti, Sherzod Hakimov, David Schlangen

ABSTRACT

Collaborative robots (cobots) are designed to be safer and more interactive than traditional industrial robots, share the same workspace as humans, and assist them in a range of shop-floor tasks such as palletization, joint assembly, and part inspection. Many of these tasks involve repetitive workflows that may evolve with changes in production environments and task specifications. These requirements motivate the need for intuitive interfaces that allow workers to modify workflows on the shop floor and generalise these routines for future use. This work introduces the Teach-Abstract-Apply (TAA) framework, which enables human operators to (a) teach new workflows to cobots in natural language, (b) abstract the taught workflows into skills for later use, and (c) apply these skills in different settings. As a case study, we apply the TAA framework to a collaborative structure-building task and evaluate it with both open-weight (Qwen3-Coder) and closed (GPT5.2-Codex) models in self-play and cross-model configurations. Our results show that skill abstraction improves task success rates and reduces interaction cost. Beyond automated evaluation, a preliminary human-in-the-loop study suggests that the pipeline also works with human instructions.

Keywords: collaborative dialogue systems, human-robot interaction, natural language dialogue, skill learning, skill reuse, program synthesis

1 INTRODUCTION

Industry 4.0 (Rüßmann et al., 2015; Xu et al., 2018) suggests a transformation from conventional automation to the use of smart machines and smart factories in manufacturing. Its vision includes collaborative robots (cobots) assisting human coworkers (Colgate et al., 1996) on factory floors to enhance productivity, flexibility and efficiency. Unlike traditional industrial robots, these cobots are designed with enhanced safety mechanisms (Wannasuphoprasit et al., 1997; Akella et al., 1999) and simplified programming requirements (Stopp et al., 2001; Estable et al., 2002) that enable them to work alongside human coworkers in the same workspace and reduce the need for expert robot programmers in operating them. However, real-world human-robot interaction is still far from achieving such seamless collaboration (Rodríguez-Guerra et al., 2021; Segura et al., 2025). Various research approaches (Andersen et al., 2016; Rosen et al., 2020;

Schoen et al., 2022; White and Mutlu, 2024) have therefore focused on lowering the barriers to using cobot interfaces. With many industrial robots deployed on assembly floors, it is important to enable effective collaboration (Aaltonen and Salmi, 2019; Sullivan et al., 2024) between humans and robots.

Recently, human-robot collaboration workflows have been improved by advancements in large language models (LLMs) (Zhang et al., 2023; Kim et al., 2024), with a focus on immediate, specific actions for “here and now” scenarios (Driess et al., 2023). These workflows usually operate by taking commands from users (Ichter et al., 2022), with the backend LLM analysing and reasoning about them (Liang et al., 2023), preparing a step-by-step plan (Huang et al., 2022; Wang et al., 2024) that considers the current environment, and generating a program (Singh et al., 2023) to perform the task. However, these methods focus primarily on executing the current task rather than retaining and reusing these behaviors, which is the core intent of teaching custom behaviors to the robot. Furthermore, in industrial environments, it is useful to teach a task as well as to capture the behavior so it can be re-deployed in new settings with minimal user intervention (Bauer et al., 2016; Villani et al., 2018; Robots, 2024; Sullivan et al., 2024). Without a mechanism to generalize and reuse learned behaviors, robots must be re-taught or re-programmed each time the environment changes, limiting scalability.

Teaching is often iterative, involving back-and-forth clarifications (Padmakumar et al., 2022) and corrections that lead to incremental refinement (Chiyah-Garcia et al., 2024). Prior work on conversational programming (Désilets, 2001; Rahit et al., 2019) addresses parts of this process by enabling programs to be iteratively specified and refined through dialogue (Cypher and Halbert, 1993). Building on this, we propose the “TAA: Teach, Abstract, Apply” framework that enables workers to talk to a robot in natural language (Lauria et al., 2002; Gorostiza and Salichs, 2011), iteratively refine the workflow (Thomason et al., 2019), and thereby teach new behaviors through a multi-turn dialogue (Ge et al., 2024). As the name suggests, the TAA framework consists of three stages: Teach, Abstract, and Apply. Teach refers to the process of a worker engaging in a multi-turn interaction with the robot, with the robot extracting relevant information from the interaction. Abstract refers to the process of capturing and generalising the extracted information into a behavior that can be applied across different environments. Apply refers to the process of applying these learned behaviors in different settings with minimal user intervention.

We test the TAA framework in a controlled setting through a collaborative structure-building task (see Figure 1) inspired by real-world industrial assembly scenarios, in which a worker converses with the robot to build a structure in a grid-based environment. These structures are composed of components such as washers, nuts, screws, and bridges. During the Teach step, the worker communicates the structure to be built in natural language in a step-by-step fashion, and the robot semantically translates these instructions into executable code. The outcome of the Teach step is an interaction trace consisting of a set of instruction-action pairs, which are then used by the Abstract step to capture and generalise the code into a persistent function that can be adapted to different environments. The Apply step focuses on evaluating how well the robot can reuse these persistent functions in different settings without requiring the worker to teach it again from scratch. To isolate the effectiveness of this framework, the task is evaluated in a controlled environment without a physical robot. An instruction-tuned Code LLM generates executable code snippets for robot manipulation, which are executed in a virtual simulator, thereby for now avoiding the perception and control issues of a real robot.

With this controlled task setting, we investigate the following research questions: (R1) Can LLM-based interpretation together with a dialogue management framework realise acquisition of executable behaviours through multi-turn natural-language dialogue? (R2) Can LLM-based interpretation be used to abstract from the concrete teaching situation a function that generalises to new spatial contexts and reused

Frontiers

Figure 1. Overview of the Teach and Abstract steps represented through the structure building task in a simulated environment. Teach: the worker uses natural-language to teach the Cobot an assembly arrangement; Abstract: successful interaction traces are abstracted into a reusable skill.

① Teach: Situated Conversation

Figure

② Abstract: Interaction Abstraction

Figure

without re-specification? (R3) Can learned behaviors improve task success and reduce interaction cost compared to teaching from scratch? Our contributions are threefold: (1) we present TAA, a dialogue-based framework for teaching new behaviors grounded in executable programs; (2) we introduce a behavior abstraction mechanism that generalises demonstrated behaviors into reusable functions; and (3) we provide a comprehensive evaluation, including reconstruction, reuse, and repeat experiments, along with a pilot human study, demonstrating that learned behaviors enable persistent reuse, reduce interaction cost, and improve task performance compared to context-only conversational programming.

References (83)