Manuscript Offprint

arXiv:2610.35686

FISRF: Flexible Instructional Scaffolding Reflection Framework for Robotics Task Planning with Large Language Model

Qingmiao Liang, Jiatao Zhang, Runxin Zou, Yufan Song, Wei Song, Yuhua Zheng

QingMiao Liang 1†^{1\dagger}, Jiatao Zhang 2†^{2\dagger}, Runxin Zou 2^{2}, Yufan Song 2^{2}, Wei Song 1,2∗^{1,2*}, YuHua Zheng 1∗^{1*}

Abstract—Large Language Models (LLMs) are widely adopted for reflective error correction in task planning; however, existing approaches primarily rely on autonomous exploration, rendering them prone to accumulating erroneous experiences during early interactions with new environments. To address this limitation, we propose the Flexible Instructional Scaffolding Reflection Framework (FISRF), an agent-mentor architecture that estimates the robot's Zone of Proximal Development (ZPD) in task planning and adaptively selects reflection strategies and mentor guidance, thereby facilitating the accumulation of effective error-correction experience. Experiments in ALFWorld and on real-world robotic platforms demonstrate that FISRF reduces the average number of error-correction rounds by 37% and redundant reasoning by 25.1%, while improving the overall task success rate by 8%. Project webpage: https://fisrfplanning.github.io/

I. INTRODUCTION

Recent advances in robot task planning increasingly leverage large language models (LLMs) to generate coherent multi-step plans [1], [2]. Despite strong performance on complex tasks, LLM-based planners remain susceptible to hallucinations and logical inconsistencies [3]. To alleviate these limitations, reflection . RETROFORMER [4] and Reflexion [5] extend the ReAct [6] framework by incorporating reflective feedback through textual gradients. Another research line [7], [8], [9] integrates tree-search strategies with reflection loops to support more deliberate exploration. More recent systems, such as Expel [10] and AutoManual [11], construct environment-specific rule libraries that enable structured retrospective error analysis. Furthermore, FCRF [12] and Thinkless [13] quantify task complexity to adaptively adjust reflection intensity (see Figure 1), thereby transforming reflection from a fixed procedure into a flexible mechanism.

Most existing reflection methods rely on robots operating autonomously under predefined reflection procedures, enabling effective experience accumulation in familiar or structured tasks. However, when robots enter new environments, they often lack effective experience to handle unfamiliar problems and may be unable to correct seemingly simple errors. These early-stage errors can accumulate, leading to numerous ineffective attempts and resulting in reduced efficiency and degraded performance. (Figure 1) We therefore ask: How can robots rapidly accumulate effective experience

Figure

Fig. 1. Compared with existing approaches, FISRF adaptively determines whether to solicit mentor guidance and selects appropriate reflection strategies according to the difficulty of correction and the magnitude of improvement, in each trial, thereby effectively preserving and leveraging valuable experience for subsequent correction.

in new environments while maintaining a certain degree of autonomy?

To address these limitations, we build on the theory of Instructional Scaffolding from educational psychology [14]. This theory suggests that a learner's problem-solving ability improves most effectively when guidance is provided within their Zone of Proximal Development (ZPD)—the gap between what can be accomplished independently and what can be achieved with appropriate guidance. When persistent obstacles arise during independent exploration, targeted instruction that addresses core difficulties facilitates knowledge internalization and transfer, enabling more robust mastery of complex skills.

This raises a key challenge: the lack of a quantitative and operational formulation of the robot's Zone of Proximal Development in task planning. Addressing this problem requires formalizing and automating the dynamic guidance mechanisms traditionally provided by human teachers. Specifically, the robot's task performance must be quantitatively and adaptively modeled to establish a capability baseline and delineate its developmental boundaries. Based on this baseline, appropriate guidance strategies should be automatically generated. Moreover, the framework must progressively withdraw external support and consolidate assisted experience into autonomous, generalizable competence, thereby forming a closed loop from guided learning to independent execution.

Motivated by the aforementioned challenge, we propose the Flexible Scaffolding Reflection Framework (FISRF), an online approach that provides adaptive guidance to large language models based on task performance. FISRF is

1^{1}Hangzhou Institute for Advanced Study, University of Chinese Academy of Sciences, Hangzhou, China

2^{2}Zhejiang University, Hangzhou, China

*Corresponding authors' emails: weisong-rob@zju.edu.cn and zhengyuhua@ucas.ac.cn.

†^{\dagger} Contribute equally to this work.

grounded in instructional scaffolding theory and adopts an agent–mentor architecture. The Agent module consists of three components: 1) an Actor LLM that generates action sequences; 2) an Evaluator LLM that determines ZPD entry by dynamically modeling two ZPD factors: difficulty of correction (DC) and magnitude of improvement (MI); and 3) Self-Reflection LLMs that perform experience summarization and lesson extraction. The Mentor module is implemented as a retrieval-augmented generation (RAG) component with a structured knowledge base. It retrieves task-relevant context and generates state-conditioned guidance grounded in the agent's reflective feedback. After task execution, the agent evaluates its performance to determine ZPD entry. If the condition is satisfied, it requests mentor guidance and integrates the retrieved guidance with self-reflection for subsequent planning, thereby reducing redundant trials and enabling efficient, adaptive experience accumulation.

To assess the effectiveness of the proposed framework, we conduct experiments on the ALFWorld [15] household planning benchmark. The tasks in the dataset are systematically organized into six categories based on their operational characteristics. Empirical results indicate that our approach attains superior performance across all task types. In summary, our contributions are fourfold:

  1. We propose FISRF, an adaptive agent–mentor reflection framework that balances autonomous exploration and external guidance.

  2. We operationalize the ZPD for robotic task planning using difficulty of correction and magnitude of improvement, enabling dynamic selection of reflection strategies.

  3. We validate FISRF in ALFWorld and real-world robotic tasks, demonstrating improved task success, correction efficiency, and reflection flexibility.

References (21)