← Latest papers
🤖 machine learning

TSN-Affinity: Similarity-Driven Parameter Reuse for Continual Offline Reinforcement Learning

This paper proposes TSN-Affinity, a novel continual offline reinforcement learning method that leverages TinySubNetworks and a Decision Transformer to enable task-specific parameterization and similarity-driven knowledge sharing, offering a memory-efficient alternative to replay-based strategies that effectively mitigates catastrophic forgetting across discrete and continuous control tasks.

Original authors: Dominik Żurek, Kamil Faber, Marcin Pietron, Paweł Gajewski, Roberto Corizzo

Published 2026-04-29
📖 5 min read🧠 Deep dive

Original authors: Dominik Żurek, Kamil Faber, Marcin Pietron, Paweł Gajewski, Roberto Corizzo

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

Imagine you are trying to teach a robot to play video games and move a robotic arm. The catch? You can't let the robot practice in the real world because it's too expensive or dangerous. Instead, you have to teach it using a library of old video recordings (datasets) of humans doing these tasks.

Now, imagine you have to teach this robot a new game every week. The big problem in "Continual Offline Reinforcement Learning" (CORL) is forgetting. If you teach the robot to play Breakout, it might get so good at that that it forgets how to play Pong. If you try to teach it Pong without deleting the old data, the robot gets confused and messes up both games.

This paper introduces a new method called TSN-Affinity to solve this problem. Here is how it works, using simple analogies:

1. The Old Way: The "One Big Brain" Problem

Most previous methods tried to teach the robot using one giant, shared brain. To prevent forgetting, they would save little snippets of old videos (replay) and mix them with new ones.

  • The Flaw: It's like trying to learn French while speaking English, then learning Spanish while speaking both. Eventually, the languages get mixed up, or you need a massive library of old tapes to keep everything straight, which takes up too much space.

2. The New Way: TSN-Affinity (The "Modular Toolbox")

The authors propose a smarter approach using TinySubNetworks. Imagine the robot's brain isn't one giant lump, but a toolbox with many small, specialized drawers.

  • Specialized Drawers (Subnetworks): When the robot learns a new task (like Breakout), it doesn't rewrite its whole brain. Instead, it opens a specific, tiny drawer and fills it with the exact tools needed for that game. Once that drawer is closed, it stays exactly as it is. If you learn a new game later, you open a different drawer. This means the robot never forgets the old games because the old tools are locked away and untouched.

3. The Secret Sauce: "Affinity Routing" (The Smart Librarian)

If every new task got its own brand-new drawer, the toolbox would get huge and messy. The paper's innovation is a Smart Librarian (called the Routing Mechanism) that decides which drawer to use.

Before the robot starts learning a new task, the Librarian asks: "Does this new task look like any of the old tasks we already have tools for?"

The Librarian checks two things:

  1. Action Affinity (The Moves): "Do the moves required for this new game look like the moves we already know?" (e.g., If the new game requires jumping, and we already have a "Jumping" drawer, maybe we can use that).
  2. Latent Affinity (The Feel): "Does the new task 'feel' similar to the old ones inside the robot's mind?" (e.g., Do the patterns of the game look similar, even if the graphics are different?)

The Decision:

  • If they are similar: The Librarian says, "Great! Let's reuse the existing drawer." The robot uses the old tools (which are frozen and safe) and just adds a few new, tiny tools on top. This saves space and improves performance.
  • If they are different: The Librarian says, "No, this is too different." It opens a brand-new, empty drawer for the new task.

4. The Results: Video Games vs. Robot Arms

The authors tested this on two very different challenges:

  • The Video Games (Atari): These are fast, pixel-based games with simple buttons (discrete actions).

    • Result: The method was a huge success. The "Specialized Drawers" approach completely stopped the robot from forgetting old games. The "Smart Librarian" helped the robot perform even better by reusing the right tools, often matching the performance of a robot trained on just one game at a time.
  • The Robot Arm (Panda): This involves moving a physical arm in a 3D space with smooth, continuous movements (like picking up a cup).

    • Result: This was much harder. The "Smart Librarian" had a harder time deciding which tools to reuse because the movements were so complex and varied. While the method still worked better than the old "One Big Brain" methods, it showed that reusing tools in complex physical tasks is tricky. The robot had to balance keeping old skills safe while learning new, difficult physical movements.

Summary

TSN-Affinity is like giving a student a set of separate, labeled notebooks instead of one giant textbook.

  • When they learn a new subject, they open a fresh notebook.
  • If the new subject is similar to an old one, they check if they can use the old notes as a base (reusing them) rather than starting from scratch.
  • This ensures they never forget what they learned in the past, and they don't get confused by mixing up different subjects.

The paper proves that for learning from old data without messing up the past, having a system that knows when to reuse old knowledge and when to start fresh is much better than just trying to memorize everything in one big pile.

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 →