HKU Team's PhysicalRSI System Modifies Code to Boost Robot Task Success
The University of Hong Kong team led by Professor Luo Ping demonstrated PhysicalRSI, a system that autonomously analyzes failures and modifies robot skill code. In RoboDojo-Sim simulations, this approach raised task success rates from 27.5% to 60% for folding clothes, outperforming the GPT-6 Astra reference agent.
Article text · Machine translation
What to do if robots cannot learn to fold clothes? Traditional methods are to re-collect data, adjust action policies, or continue training the model. However, the research team of Professor Luo Ping from the University of Hong Kong and co-founder of SuperDimension Dynamics tried to let the AI analyze the reasons for failure itself, modify the robot's execution program, and then verify the effects through a new round of experiments.
In an experiment of PhysicalRSI, the robot initially could not even successfully fold the first sleeve. After the system analyzed the execution recordings and motion trajectories, it found that the original program made overly fixed assumptions about the robotic arm's position and motion path. Clothes are soft, and after each grasp and fold, the position and shape of the fabric may change; withdrawing the robotic arm according to a fixed path might instead interfere with subsequent operations.
Thus, the system modified the control logic: the robot recorded the actual joint positions passed by the robotic arm when putting down the clothes, and after releasing the fabric, it withdrew in the reverse direction along the path just traveled. Subsequently, the system explored strategies such as wrist alignment, grasp target selection, and fabric tracking. After five rounds of iteration, the success rate of the folding clothes task increased from 27.5% to 60%.
More importantly, effective modifications can be retained after independent verification, becoming the basis for subsequent tasks and the next round of improvements. In Luo Ping's view, the robot's self-improvement cannot only stop at repeated trial and error and practicing a certain action more proficiently; it should also inherit past experiences and utilize these experiences to make the next improvement more efficient.
This is exactly the direction that PhysicalRSI (Physical Recursive Self-Improvement) attempts to explore. The team chose to start from the robot's execution system Harness, improving task performance by modifying skill code, accumulating experience, and adjusting exploration strategies while keeping the underlying model parameters unchanged. In the RoboDojo-Sim benchmark, PhysicalRSI's task success rate reached 31.38%, a relative increase of nearly 40% compared to the 22.48% of the GPT-6 Astra reference Agent scheme.
However, how far is the improvement in success rate from true recursive self-improvement? If a robot still needs to find a solution from scratch when facing an unfamiliar task, what is the difference between it and traditional automated program search? If modifying code fails to solve the problem for a long time, when should it switch to model training? Around these questions, Luo Ping discussed the technical choices of PhysicalRSI and the challenges faced in letting robots continuously accumulate capabilities during an interview with InfoQ.
1
What exactly is the code that the robot modifies itself?
Software Agents have already begun trying to modify their own code, tool calling processes, and execution strategies: discovering errors through testing, generating patches, and then verifying whether the modifications are effective. But when similar mechanisms enter robot systems, the problem becomes more complex. A single failure could stem from visual perception, motion trajectories, object contact states, or actuator control; the system must combine real execution evidence to judge where modifications are needed.
Luo Ping believes that the current bottlenecks in embodied intelligence capabilities do not always come from the foundation models themselves. “The most advanced foundation models already possess the capabilities of spatial perception, task understanding, and action planning. However, without a sufficiently good Harness, these capabilities may not necessarily be unleashed.”
Harness can be understood as a set of execution systems built around the foundation model, responsible for organizing task planning, skill calling, tool combination, motion control, and execution feedback. The ability of a foundation model to understand tasks and generate plans does not mean that a robot can stably convert these capabilities into real actions. What PhysicalRSI hopes to improve is precisely this layer of system between the model and actual task execution.
Figure caption: PhysicalRSI 1.0 Native System 1–System 2 Co-evolution
From the architecture diagram released by the project, PhysicalRSI divides high-level planning and low-level execution into two mutually cooperating parts: System 2 relies on multimodal foundation models to understand tasks and organize planning, while System 1 completes specific operations through skill programs, motion models, and tools. The Harness improvements explored by PhysicalRSI involve how these capabilities are organized, called, and updated, allowing problems discovered during the execution process to be fed back into subsequent program modifications.
Luo Ping introduced that, within pre-defined interfaces, AI can analyze the causes of failure based on execution recordings and motion trajectories, modify skill code or control parameters, recombine existing tools, and adjust the next round of exploration based on experimental results. The team also designed skill contracts, research records, and version inheritance mechanisms, allowing verified modifications to be retained and become the starting point for subsequent tasks. In this way, the experience accumulated by the robot after each failure has a chance to continue to play a role, rather than returning to the initial program version.
But “modifying code themselves” does not mean that robots can arbitrarily rewrite rules. Humans still need to specify task interfaces, sensor and action permissions, safety boundaries, experimental budgets, and verification protocols. Which modifications can enter the actual execution environment must also comply with established limits. Luo Ping particularly emphasized that the system can autonomously find solutions, but it cannot unilaterally loosen the criteria for judging success.
From executing tasks, recording failures, and modifying skill programs, to independent verification and inheriting modifications, this process has already formed a basic closed loop. But it still has similarities with automated program searching: the robot can modify its own code, but can it truly be proven that it is becoming increasingly proficient at improving itself?
2
Success rate increased by nearly 40%, did the robot really learn to self-evolve?
The performance of PhysicalRSI on RoboDojo-Sim provided a preliminary validation for the technical route explored by the team. In the tests published in October 2026, its average task score reached 36.27, and the task success rate was 8.90 percentage points higher than the GPT-6 Astra reference Agent scheme, and it even topped relevant rankings in the early stages of release.
But Luo Ping believes that these achievements can only answer whether the robot can better complete tasks, and are not yet sufficient to prove that it has truly mastered recursive self-improvement capabilities. He further broke down the question into three levels: whether the system can complete the task, whether it can improve performance through self-improvement, and whether these improvements can be inherited and migrated to new tasks.
“Self-improvement is verified by the feedback of the environment, while recursion is verified by the acceleration of adapting to new environments.” Luo Ping summarized the judgment criteria for RSI in this way. The success rate of folding clothes increased from 27.5% to 60%, indicating that the execution performance of the task improved; however, to truly test recursion, one must also see whether, after the system accumulates ten or 20 experiences, it can faster locate the cause of failure, propose better modifications, and reduce invalid attempts when facing unfamiliar problems.
This is also where PhysicalRSI attempts to distinguish itself from traditional program search: it hopes to inherit not just new skills, but also methods for analyzing failures, selecting experiments, and improving skills. If effective modification can only improve the current task, then this mechanism is still closer to continuous program optimization; only when past improvements begin to affect the efficiency of future improvements does recursion truly become a research question that can be tested.
To test whether the system truly became better at improving itself, the team also included the “improver” itself as an experimental object. Luo Ping introduced that, under the same resource budget, they compared an improver using a fixed research strategy with an improver capable of inheriting historical experience and adjusting its own research strategy. In previously unseen tasks, the latter was able to propose higher-quality candidate modification plans as iterations progressed. Additionally, the team set up other control experiments, including schemes such as random search, fixed search strategies, and Agents that do not retain historical memory, to examine how much benefit search strategies, historical memory, and skill inheritance could each bring under the same underlying model, task distribution, and resource budget.
According to Luo Ping's introduction, these experiments provide preliminary evidence for Recursive Self-Harness promoting system adaptation and generalization capabilities. Compared to simply improving the success rate of a specific task, whether the improver can continuously improve the efficiency of the next search and modification as experience accumulates is closer to the core issue of RSI.
For robots capable of adjusting programs through repeated trials, another important issue is how to avoid it over-optimizing for the Benchmark. Luo Ping believes that evaluation must strictly isolate training and testing tasks, allowing the robot to perform limited exploration in unfamiliar environments, but it cannot prematurely utilize the test set to find the optimal strategy. At the same time, it is also necessary to add cross-task family tests to reduce the inflated scores brought by programs written specifically for a single question. This is also the reason why the team is exploring larger-scale, more complex embodied intelligence evaluation protocols.
Can skills accumulated in the past help the robot solve different types of tasks? Luo Ping mentioned a migration the team recently attempted: using skill modules accumulated in RoboDojo for dynamic operation tasks such as catching a ball.
Unlike relatively static operations such as grasping and placing, catching a ball requires judging where a moving object will arrive next and adjusting actions in a timely manner. After supplementing and adjusting the object trajectory prediction capability, the team attempted to apply some existing skills to this new task. Luo Ping believes that these types of experiments provide preliminary signals for skill reuse across tasks, but further systematic testing is still needed to prove stable migration across environments and across robot bodies.
3
There is also a ceiling to modifying code: when must a robot retrain its model?
Letting a robot modify its own code sounds like a shortcut to continuously improving capabilities. But if a robot lacks the degrees of freedom, actuator precision, or sensory information necessary to complete an action, Harness cannot create these physical conditions out of thin air, no matter how much it modifies the code. Luo Ping also pointed out that if the hardware and control interfaces are flexible enough, some operations that underlying models cannot currently complete directly may still be achieved through replanning, feedback control, and skill combinations.
The team conducted bottleneck attribution experiments for this: first fixing the base model and fully exploring different Harness strategies, then introducing additional perception information, control interfaces, or model training, to compare which type of change could break through the limitations. Luo Ping said that both types of situations exist; and on benchmarks with more complete designs like RoboDojo, “the bottleneck of various methods is mainly model capability.”
Since Harness cannot solve all problems, how should the robot judge when it should stop modifying the program and switch to training the model?
The principle provided by Luo Ping is: if the problem can be solved by adjusting perception, planning, control parameters, or tool combinations, prioritize Harness modifications that are lower in cost and can be rolled back; if the system repeatedly reaches the correct operational state but consistently fails to stably complete a specific local action, targeted model training should be considered. Studies such as AdaRSI are also exploring the combination of these two types of update methods.
In Luo Ping's view, a true self-evolving system will still need to learn how to decide how to allocate its own improvement resources in the future. He calls it a “meta-decision problem with resource constraints”: the system must not only decide how to complete the current task but also decide where the next round of improvement budget should be invested.
For example, when an operation repeatedly fails, continuing to modify the control program might only require limited computation and testing costs, but if the underlying model truly lacks a certain action capability, investing more in search may not necessarily be effective. Conversely, re-collecting data and training the model might solve the immediate action problem, but it requires larger resource investment and may also affect skills already learned in the past.
Therefore, the value of an improvement plan cannot be judged solely by the current success rate; it also needs to comprehensively consider computation costs, the number of trial-and-error attempts, the stability of existing skills, and whether this improvement can help the system solve subsequent problems more efficiently. Luo Ping believes that one of the long-term research spaces for PhysicalRSI is to establish a mechanism capable of unifying the management of these different improvement methods.
As robots continuously modify programs and accumulate skills, they will also encounter a problem very familiar to software engineers: as code and functions accumulate more and more, will the system become increasingly complex, or even destroy past mastered capabilities because of a single local optimization?
Luo Ping believes that this requires managing skill evolution through software engineering methods. Every time a skill is added or modified, it should be checked for compatibility with existing skills, not only verifying the benefits on new tasks but also running regression tests on old tasks that might be affected. The system also needs to retain execution logs, historical versions, and rollback mechanisms to avoid a single erroneous modification affecting the entire skill library.
And as the number of skills increases, simply saving each successful modification is not enough. The team hopes the system can further merge skills with similar functions, abstract the commonalities within them, and eliminate parts that are already redundant or provide insufficient benefits. True self-improvement must both allow capabilities to grow continuously and also control the complexity brought about by this.
4
If you learn ten things today, will learning the eleventh thing tomorrow be easier?
Compared to software Agents, trial and error in the real physical world usually incurs higher costs. A program error can be retested, but a single failed grasp by a real robot might require restoring the scene, repositioning objects, and consuming equipment, manual labor, and experimental time. If every new skill requires re-collecting data, training models, and repeated debugging, the development costs will continuously accumulate.
Luo Ping hopes PhysicalRSI can change the current situation where robots need to incur large amounts of training and trial-and-error costs every time they learn a new skill. By inheriting validated skills and historical experience, robots can first try to combine and modify existing capabilities before deciding whether to invest new training resources.
Luo Ping stated that the team has already observed a certain cost advantage. In the next step, they also hope to further reduce expensive physical interactions and manual intervention by combining simulation pre-screening, limited real-world trial and error, and automated verification. However, the team has not yet released a complete comparison of unit skill learning costs; the actual savings in computation, experimentation, and manual input still require subsequent verification.
“Our goal is very clear, which is to let the cost of robots mastering new skills gradually decrease as experience and skills accumulate.”
Research progress also needs to be distinguished: PhysicalRSI's currently more definite verification results are concentrated in the simulation environment, where the team has already verified the basic closed loop of failure analysis, policy modification, independent evaluation, and skill inheritance, and is currently advancing real robot experiments. Whether real robots can continuously complete autonomous modification, verification, and skill inheritance under these constraints will become an important test in the next stage.
For the next step, Luo Ping believes the most important thing is not simply refreshing the success rate of a certain Benchmark, but combining cross-task skill accumulation with the evolution of the improver itself for verification. He emphasized Benchmark and Environment Scaling: continuously expanding the evaluation scale and environment diversity to provide robots with continuous tasks that have similar underlying capabilities but different goals, objects, scenes, and operating conditions.
In this conception, the robot first executes, fails, analyzes, and revises skills in the first batch of tasks, leaving behind verified experience; subsequently, it enters the previously unseen second and third batches of tasks. Researchers, in addition to recording the completion rate of new tasks, also need to observe whether failure diagnosis becomes faster, whether candidate modifications become more effective, whether ineffective trials decrease, and whether skills can be continuously reused.
This is different from repeatedly debugging on a single task until the success rate is high. Even if a task reaches 90%, it does not necessarily mean the system possesses transferable learning capabilities; if entering a new task still requires starting from scratch, past improvements will find it difficult to produce a cumulative effect.
What Luo Ping truly hopes to verify is another possibility: if a robot learns ten things today, will it really be easier to learn the eleventh thing tomorrow?
This article is from WeChat Official Account“InfoQ”(ID:infoqchina), Author: Dongmei, Editor: Cai Fangfang, published with authorization from 36Kr.