← Latest papers
🤖 machine learning

Runtime-Incremental Transformer for Reinforcement-Learning-Based Adaptive Control

This paper introduces a runtime-incremental transformer mechanism that dynamically grows and prunes attention heads during reinforcement learning based on context representational capacity and head redundancy, thereby eliminating catastrophic failures in long-horizon adaptive control of robotic manipulators with non-observable friction memory and removing the need for costly offline hyperparameter tuning.

Original authors: Giansalvo Cirrincione, Adriano Fagiolini

Published 2026-09-15
📖 4 min read☕ Coffee break read

Original authors: Giansalvo Cirrincione, Adriano Fagiolini

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 that move with precision, such as the arms used in factories to assemble cars or handle delicate materials, rely on complex mathematics to know how much force to apply. For decades, engineers have used a method called computed-torque control, which calculates the exact push or pull needed to move a joint to a desired spot. This works well when the robot's movement is predictable, but real-world machines face a hidden problem: friction. While some friction is simple and constant, other types, like the sticky-slip behavior known as Stribeck friction, depend on a hidden internal state that changes over time. Because a robot's sensors cannot see this hidden state directly, the system loses its ability to predict its own future behavior based solely on its current position. To solve this, researchers have turned to artificial intelligence, specifically a type of learning called reinforcement learning, where a computer program learns by trial and error. However, these programs often use a specific architectural feature called an attention mechanism, which acts like a spotlight, allowing the AI to focus on different parts of its recent history. The number of these spotlights, or "heads," is usually fixed before training begins, chosen through a long and expensive search process. If the chosen number is too small, the robot fails to learn; if it is too large, the system becomes inefficient.

The researchers behind this study set out to fix this rigidity by creating a system that can change its own mind while it is learning. They developed a new controller that does not decide on the number of attention heads beforehand. Instead, it watches its own performance during the training process and adds new heads when it feels overwhelmed by the complexity of the task, or removes them when it realizes some are doing nothing. This happens in real-time, without stopping the learning process. The system uses two simple signals to make these decisions. First, it measures how much new information is coming in from the robot's history; if the information is too complex for the current number of heads to handle, the system grows a new one. Second, it checks how much each head is contributing to the final decision; if a head is barely doing any work, the system quietly removes it. Crucially, the researchers designed the system so that adding or removing a head does not cause a sudden jump or error in the robot's behavior. When a new head is added, it starts with zero influence, ensuring the robot's movement remains smooth. When a head is removed, the change is so small that it does not disrupt the learning.

The team tested this approach on a simulated two-jointed robotic arm facing different levels of friction memory, ranging from short-term to long-term delays. In previous experiments using fixed numbers of heads, the system failed completely in the most difficult, long-memory scenarios, often causing the robot to lose control or ignore the weight it was carrying. With the new runtime-adjustable system, the robot succeeded in every single test, even in the difficult cases where the old method failed. The researchers found that the system did not discover a specific "natural" number of heads intrinsic to the task; instead, it saturated the maximum head-count cap in every run of the main campaign, and the prune trigger never fired to remove unused heads. Interestingly, the benefit did not come from the final size of the system, but from the way it grew. The gradual process of adding heads acted like a training curriculum, helping the robot learn step-by-step rather than being thrown into a complex task all at once. This suggests that the ability to adapt the architecture during learning is more important than having a massive, pre-built structure. The result is a more robust and efficient way to teach robots how to handle the messy, unpredictable friction of the real world, removing the need for costly trial-and-error searches to find the right settings before the robot ever moves.

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 →