← Latest papers
💻 computer science

SamatNext v0.2-B: An Exploratory Study of RMS-Normalized Hybrid Decoders for Curriculum Retention in Small Code Models

This technical report introduces SamatNext v0.2-B, a 356M-parameter hybrid decoder that significantly improves curriculum retention in small code models compared to standard Transformers by alternating Differential-Attention and DeltaNet-inspired layers, though it does not fully solve long-horizon catastrophic forgetting.

Original authors: Samat Zharassov

Published 2026-06-23
📖 4 min read☕ Coffee break read

Original authors: Samat Zharassov

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 teaching a robot to write computer code. You want it to learn in steps: first, the basic rules of grammar (syntax); second, how to understand instructions (semantics); and finally, how to solve complex, specialized puzzles.

The problem with standard robots (AI models) is that they suffer from "Catastrophic Forgetting." It's like a student who studies for a final exam so hard that they completely forget how to tie their shoes or add two numbers. As soon as they learn the new, hard stuff, the old stuff gets wiped from their brain.

This paper introduces a new robot named SamatNext v0.2-B and asks: Can we build a robot that learns new things without deleting the old things?

The Two Robots in the Race

The author compared two robots, both with the exact same "brain size" (356 million parameters):

  1. The Standard Robot (Transformer): This is the usual AI design. It's powerful but tends to overwrite its old memories when learning new tasks.
  2. The Hybrid Robot (SamatNext): This is the experimental design. Its brain is a mix of two different types of thinking layers:
    • The "Attention" Layer: Like a spotlight that looks at all the words in a sentence to understand context.
    • The "State" Layer: Like a notepad that keeps a running tally of information as it reads, rather than re-reading everything from the start.

The author mixed these two types of layers together, alternating them like a sandwich (Attention, State, Attention, State), and added a special "calibration" knob to keep the signals balanced.

The Test: A Staged Curriculum

The robots were trained in a specific order:

  • Stage 1 & 2: Learning basic Python syntax (the grammar).
  • Stage 3: Learning to follow instructions and understand meaning.
  • Stage 5: Learning specialized, hard coding tasks.

After finishing Stage 5, the author tested them on the old stuff (Stage 3 and Stage 2) to see what they remembered.

The Results: A Tale of Two Memories

The Standard Robot:

  • New Stuff: It struggled to learn the final hard tasks (only 49% success). When the author tried to "rescue" it by changing the learning speed, it finally learned the new stuff (97% success) but completely forgot the middle stage. It retained only 6% of its ability to understand instructions.
  • Old Stuff: It forgot almost everything it learned before the final stage.

The Hybrid Robot (SamatNext):

  • New Stuff: It mastered the final hard tasks perfectly (100% success).
  • Old Stuff: It didn't forget! It kept 98.8% of its ability to understand instructions from the middle stage.

The Catch (The "Syntax" Problem):
While the Hybrid robot was amazing at remembering instructions, it still struggled a bit with the very earliest, basic grammar rules (Stage 2). It improved from 0% (Standard robot) to 12%, but it wasn't perfect. This suggests that while the new design helps with recent memories, it doesn't fully solve the problem of remembering ancient memories over a very long time.

The Big Takeaway

Think of the Standard robot as a sponge that absorbs new water but squeezes out the old water to make room. The Hybrid robot is like a sponge with a special internal structure that lets it hold onto the old water while soaking up the new.

What the paper claims:

  • This specific hybrid design (mixing attention and state layers) creates a better balance between learning new things and remembering old things.
  • It is not a magic bullet that solves all memory problems (it still struggles with very old syntax).
  • It is not a finished product ready for the real world; it is an "exploratory study" to see if this specific brain architecture works better than the standard one in a controlled lab setting.

The author is essentially saying: "We tried a new brain design. It worked much better than the old design at keeping intermediate memories while learning new tasks, but it still has some holes when it comes to remembering the very first lessons. We are sharing our code so others can verify this."

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 →