← Latest papers
🤖 machine learning

REFACTOR-VLA: Unsupervised Library Learning of Typed Motor Programs

REFACTOR-VLA is a wake/sleep framework that learns reusable, typed motor programs by clustering action fragments via a behavioral-equivalence kernel and a latent world model, achieving state-of-the-art performance on long-horizon LIBERO tasks through a library-conditioned decoder and a training objective that prioritizes clustering quality over model capacity.

Original authors: Riyaaz Shaik, Chandru Venkataraman

Published 2026-09-02
📖 5 min read🧠 Deep dive

Original authors: Riyaaz Shaik, Chandru Venkataraman

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Robots are getting better at seeing the world and moving through it, but they still struggle with the kind of complex, multi-step jobs that humans handle with ease. When a person makes a sandwich, they do not think about every single muscle twitch required to grab the bread, spread the butter, or slice the tomato. Instead, they rely on a mental library of familiar actions—grasping, spreading, cutting—that they can string together in different orders. Current artificial intelligence models for robots often lack this ability to organize behavior. They tend to generate raw, moment-to-moment commands without grouping them into reusable, well-defined skills. This makes it difficult for them to plan ahead for long tasks or to explain what they have learned. Researchers are now trying to teach machines to build their own internal libraries of skills, allowing them to break down complicated jobs into smaller, manageable pieces that can be reused and combined.

A team of researchers at Apple has developed a new system called REFACTOR-VLA that attempts to solve this problem by teaching a robot to discover its own skills without human labels. The system works in two alternating phases, much like how a human might practice a new movement and then rest to let the brain organize the memory. In the first phase, the robot learns to predict what will happen next if it performs a certain sequence of movements. It builds a mental model of the world, understanding how its actions change the environment. In the second phase, the system looks at the vast amount of movement data it has collected and tries to find patterns. It asks a simple but difficult question: do two different sequences of movements produce the same result? If a robot moves its arm in a circle to pick up a cup, or moves it in a straight line to do the same thing, the system needs to recognize that both paths achieve the same goal.

To answer this, the researchers created a special tool that measures the outcome of actions rather than just their appearance. Instead of looking at the raw video of the robot moving, the system simulates the action in its learned mental model to see where the robot ends up and what reward it gets. If two different movement paths lead to the same final state and the same reward, the system treats them as equivalent. It then groups these similar paths together into a single, reusable skill. Once a group is formed, the system tries to write a simple, structured program that describes the common pattern of that skill. This program is then added to a library. The robot can later use this library to plan new tasks, calling upon these pre-packaged skills instead of calculating every tiny movement from scratch.

The researchers tested this approach on a standard set of robot tasks involving moving objects in a simulated environment. They discovered something surprising about how these systems learn. A common belief in artificial intelligence is that making a model larger and more complex always leads to better performance. However, when the researchers increased the size of their world model from roughly 188 million parameters to 430 million, the system actually performed worse on every single test suite. The larger model failed to organize the skills correctly, suggesting that simply adding more computing power is not the solution.

Instead, the key to success lay in how the model was trained. The researchers found that adding a specific type of learning objective during the initial training phase dramatically improved the results. This objective helped the system distinguish between different tasks more clearly, allowing it to group similar movements together much more effectively. With this change, the system outperformed the strongest existing methods on all four major test suites, improving its average score by a significant margin. The system successfully built a library of three distinct, reusable skills for a specific task, and a robot using this library was able to rewrite every single demonstration it had seen using these new skills.

The study also revealed that the system's ability to find these skills depends heavily on the type of data it analyzes. While the system successfully created a library of language-based instructions, such as "pick up the object and place it in the basket," it failed to find reusable patterns in the raw motor commands themselves. This suggests that the system is better at understanding the high-level goals of a task than the low-level physical details of how to move. The researchers measured the consistency of their results across many different training runs and found that the system reliably discovered similar skill groupings, with a high degree of agreement between different versions of the model.

This work demonstrates that the way a robot learns to organize its experiences is more important than the sheer size of its brain. By focusing on the outcomes of actions and using a structured method to group them, the system can build a library of skills that helps it tackle complex, long-term tasks. The findings challenge the idea that bigger is always better and point toward a future where robots can learn to think in terms of reusable actions, just as humans do. The researchers have made their code and data available, allowing others to verify these results and build upon this new approach to robotic learning.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →