Menu

Mixture-of-Loops Transformer: Passing KV Memory Between Loops Instead of Residuals
📰

Mixture-of-Loops Transformer: Passing KV Memory Between Loops Instead of Residuals

DEV Community: deeplearning·Prabhakar Chaudhary·10 days ago
#T0DpU4vY
#devtodeeplearning#education#devto#dev#molt
Long article (1076 words) — no AI summary yet.
Reading 0:00
15s threshold

Introduction

Looped transformers get more depth out of a fixed parameter budget by running the same stack of layers several times. The catch is that every extra loop costs compute, and the usual way of connecting loops (passing the residual stream from one loop to the next) forces each token to be processed sequentially through all of them. At decode time that means N loops cost roughly N times as much per token.

The Mixture-of-Loops Transformer (MoLT) , from Huazhong University of Science and Technology, ByteDance Seed and the University of Toronto, asks a narrow question: what should actually be passed between loops? Its answer is keys and values, not the residual stream. This post walks through the mechanism, the reported numbers, and the caveats you should check before getting excited.

The core idea: KV as cross-loop memory

In a standard looped model, loop 2 sees only the final hidden state of loop 1 at each position.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.