🤗 Upvotes: 51 | cs.LG, cs.CL Authors: Lianghui Zhu, Shijie Wang, Xinggang Wang, Jinze Bai, Bo Wang, Xiang Bai Title: Mixture-of-Loops Transformer Arxiv: http://arxiv.org/abs/2611.34923v1 Abstract: Looped Transformers boost expressivity by reusing shared layers across loops, yet at the cost of efficiency. Pushing their expressivity-efficiency frontier requires rethinking the core mechanism connecting adjacent loops: What should be passed as a Transformer loops? We introduce Mixture-of-Loops Transformer (MoLT), whose Mixture-of-Loops Attention (MoLA) uses keys and values (KV) as memory for selective reuse across depths and loops. Under loop residual, MoLT-R retains the residual stream and reads local KV across loops for expressivity. Under loop KV, MoLT-KV instead restarts from embeddings and reads current-loop local KV with preceding-loop memory KV at earlier positions for efficiency. MoLT-KV eliminates same-position cross-loop dependence and, paired with loop forcing for parallel training, unlocks single-traversal Mixture-of-Loops (MoL) decoding beyond the training loop horizon. To balance efficiency and quality, we introduce U-shaped MoLT (U-MoLT), which separates memory construction from prediction readout and skips unused decoder traversals without changing predictions. In 400B-token pretraining, U-MoLT outperforms OLMo3 across 700M/1.5B dense and 3B MoE models, achieving 1.7x validation cross-entropy (CE) token efficiency at 700M while improving 3B MoE 10-domain perplexity by 0.75 and 10-task accuracy by 2.1 percentage points. In 100B-token continued pretraining of Qwen3.5-0.8B-Base, our U-MoLT adaptation lowers CE on all 11 domains over the matched baseline with 1.4x mean token efficiency. At inference, U-MoLT with MoL-Hybrid-2 matches non-looped OLMo3 latency at 996.6 vs. 1,000.6 ms on S-size (~113M) models. Code is available at https://github.com/hustvl/MoLT
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Evan: Welcome to Daily Paper Cast. Ashley: Today's paper is from the Hugging Face daily paper list of November 26, 2026, and it has received 51 upvotes. Evan: The title of the paper is 'Mixture-of-Loops Transformer'. Ashley: The first two authors are Lianghui Zhu and Shijie Wang, with Xinggang Wang as the corresponding author from Huazhong University of Science & Technology. Evan: Great, let's dive into the introduction. This paper addresses the fundamental tradeoff in model architecture design, which balances expressivity and efficiency.
Ashley: Exactly. Recent advances in this field have focused on techniques like sparser computation, linear attention, and richer cross-layer connectivity, which aim to enhance this balance. Evan: The authors highlight the rise of looped Transformers as notable architecture designs that have seen remarkable success. Ashley: They reuse parameters across repeated loops to boost expressivity, though this does come at the cost of efficiency. Evan: So, what core mechanism do they propose to connect these adjacent loops?
Ashley: Instead of relying solely on a residual stream, which passes each loop’s output into the next loop, the authors suggest passing computed keys and values (KV) as memory for selective reuse across depths and loops. Evan: This leads us to the main proposal of the paper—the Mixture-of-Loops Transformer, or MoLT, and its Mixture-of-Loops Attention, or MoLA. Ashley: Correct. MoLA lets each layer jointly attend to KV from different depths and loops. Under loop residual, MoLT-R maintains the residual stream and reads local KV across loops for expressivity.
MoLA directly reads current-loop and preceding-loop local KV at the same token position. Evan: And for efficiency, they propose the MoLT-KV that initiates from embeddings, reading current-loop local KV and preceding-loop memory KV at earlier positions. This eliminates same-position cross-loop dependence, correct? Ashley: Correct. MoLT-KV enables single-traversal Mixture-of-Loops decoding beyond the training loop horizon. Additionally, they introduce U-shaped MoLT or U-MoLT, which separates memory construction from prediction readout and skips unused decoder traversals without changing predictions.
Evan: That’s interesting. And during their extensive pretraining experiments, MoLT variants showed remarkable improvements, right? Ashley: Indeed. During 400 billion-token pretraining, U-MoLT outperforms OLMo3 across various models, enhancing validation cross-entropy token efficiency by up to 1.7 times at the 700 million parameter scale. It also showed impressive improvements in perplexity and task accuracy at the 3 billion parameter scale. Evan: So, beyond pretraining, they also validate cross-architecture continued pretraining on Qwen3.5-0.8B-Base, right?
Ashley: Their U-MoLT adaptation improves cross-entropy across all 11 domains over the matched baseline with 1.4 times mean token efficiency. During inference, U-MoLT combined with MoL-Hybrid-2 matches non-looped OLMo3’s latency, proving its practical advantage. Evan: This new approach of leveraging KV as memory for selective reuse across loops definitely bridges the expressivity-efficiency gap in looped Transformers.
Ashley: The authors’ contributions are extensive and pave the way for future advancements in looped model architectures. Their method not only enhances expressivity through reused computation but also brings high computational efficiency to the table. Evan: And with MoLA in place, MoLT variants set a new standard for model quality and inference efficiency in looped Transformers. Ashley: Indeed. And this wraps up the introduction section of the paper. Evan: Now that we’ve covered the introduction, let’s dive deeper into the methodology proposed in this paper.
Ashley: Sure, Evan. The core methodology revolves around the feedback interface and attention computation in the Mixture-of-Loops Transformer, or MoLT. Let's break it down step by step. Evan: That sounds great. So, how do they define the feedback interfaces? Ashley: The feedback interfaces are foundational to what a loop retains and how the subsequent loop receives it. They categorize these into loop residual and loop KV forms. Each loop initializes a residual stream, applies several MoLA and feed-forward blocks, and produces an output for prediction and subsequent feedback.
Evan: Interesting. How does the loop residual function? Ashley: Loop residual passes the final state of the loop into the next loop, essentially carrying its computation forward. MoLT-R follows this residual path while retaining local KV for intermediate representations. The sequence KV sources include current-layer inputs at token positions, and depth KV sources consist of current-loop local KV and preceding-loop local KV. Evan: And how is this different from the loop KV form?
Ashley: Loop KV allows each loop to restart afresh from embeddings. MoLT-KV uses memory KV projected from preceding normalized loop outputs and current-loop local KV, excluding same-position cross-loop dependence. This separation ensures that each loop reads its own embeddings and memory KV from earlier positions without being influenced by the preceding-loop output at the same position. Evan: Got it. And what role does the Mixture-of-Loops Attention or MoLA play here? Ashley: MoLA is the mechanism that enables layers to jointly attend to sequence and depth KV sources.
Under loop residual, it combines current-loop sequence KV and depth KV, while under loop KV, it separates same-token depth attention from cross-loop contextual feedback. Evan: Can you elaborate more on sequence and depth KV sources? Ashley: Sure. Sequence KV sources provide context along token positions. Under loop residual, these are projected from current-layer inputs. Depth KV sources make intermediate representations at the current token directly readable. MoLA projects queries from the current layer’s input and reads KV pairs from sequence and depth sources jointly.
This is crucial for ensuring attention distribution at each step. Evan: And how does this change with U-shaped MoLT, or U-MoLT? Ashley: U-MoLT separates the loop KV encoder from the cross-only decoder. The encoder constructs feedback memory across loops, while the decoder reads the encoder output for predictions. This separation allows the decoder to skip intermediate loops and focus solely on prediction, enhancing both efficiency and quality. Evan: The decoder doesn’t depend on earlier positions, right?
Ashley: Exactly. During inference, U-MoLT skips unused decoder traversals at intermediate loops and non-final prompt positions. This makes intermediate-loop decoder traversals unnecessary without altering the prediction. Evan: That’s quite efficient! So how are they training these models? Ashley: They use loop-forcing training, which supervises next-token prediction at successive loops. This approach trains the cross-token feedback recurrence in parallel across token positions. Loop forcing allows the feedback model to process in parallel rather than sequentially, reducing training time significantly.
Evan: So, to summarize, loop forcing and multi-loop objectives are key to training these models efficiently? Ashley: Yes. Loop forcing trains each loop in parallel, and the multi-loop objective combines per-loop cross-entropy losses with normalized weights, ensuring alignment across loops and efficient training. Each supervised loop evaluates predictions and refines earlier computations through feedback sources. Evan: And what about the Mixture-of-Loops decoding schedules they propose?
Ashley: They introduce fixed-loop decoding, MoL decoding, and MoL-Hybrid decoding. Fixed-loop decoding runs all chosen loops sequentially, retaining their prefix sequence KV caches. MoL decoding jointly reads completed prefix memory KV and current-loop local KV, skipping preceding loops each time a new token is processed. MoL-Hybrid combines parallel fixed-loop prefill with MoL decoding, enabling prompt parallelism and reduced decoding cost. Evan: This seems to make the model more robust and faster, especially during long prompts.
Ashley: MoL-Hybrid-2 particularly achieves prompt processing efficiency near that of single-loop decoding models like OLMo3 while maintaining quality. All MoLT variants offer substantial latency reductions over fixed-loop models. Evan: Let’s talk about the evaluation metrics they used. What benchmarks do they use to measure the quality of these models? Ashley: For language modeling, they report cross-entropy and perplexity across numerous domains like C4, WikiText-103, Books, Common Crawl, and Reddit.
Downstream accuracy is evaluated on benchmarks such as PIQA, HellaSwag, WinoGrande, OpenBookQA, BoolQ, SciQ, ARC-E and ARC-C, COPA, and MMLU. Evan: And in their results, U-MoLT consistently outperforms the baseline models, right? Ashley: Correct. U-MoLT shows improvements in both validation perplexity and downstream accuracy across all evaluated scales and contexts. Relative to OLMo3, U-MoLT achieves better token efficiency, perplexity reduction, and task accuracy, demonstrating the effectiveness of their approach.
Evan: That’s impressive. These methods definitely push the boundaries of current Transformer architectures. Ashley: Agreed. And that's the end of the Method section of the paper. Evan: Alright, now that we've detailed the methodology, let’s move on to the experiments and results presented in this paper. Ashley: Certainly, Evan. The authors conducted extensive experiments to evaluate the performance of their proposed MoLT variants against baseline models. They primarily focus on the scaling experiments and inference efficiency benchmarks.
Evan: What kind of models were used in these scaling experiments? Ashley: The experiments covered 700 million and 1.5 billion dense models as well as 3 billion mixture-of-experts models with 660 million active parameters. They trained these models on 400 billion tokens to measure the quality and efficiency improvements of U-MoLT against the baseline, OLMo3. Evan: And what metrics did they use to assess the performance? Ashley: For quality, they evaluated downstream accuracy across ten tasks, including benchmarks like PIQA, HellaSwag, and BoolQ.
They also measured validation perplexity across ten different text domains, such as C4, WikiText-103, and Reddit. Evan: Which metrics were used for efficiency evaluation? Ashley: Efficiency was assessed through latency measurements during inference. They compared the total time taken for tasks like token prefill and single-token decoding steps on models of size 113 million. Evan: So, how did U-MoLT perform in these experiments? Ashley: U-MoLT consistently outperformed OLMo3 across all scales.
For the 700 million dense model, U-MoLT increased mean downstream accuracy by 2.5 percentage points and reduced mean validation perplexity by 0.78 across the ten domains. Evan: That’s significant. And how did it perform at the 1.5 billion and 3 billion scales? Ashley: At the 1.5 billion scale, U-MoLT raised the mean downstream accuracy by 1.4 percentage points and again reduced the mean validation perplexity.
For the 3 billion mixture-of-experts model, U-MoLT improved mean accuracy by 2.1 percentage points and lowered perplexity by 0.75 across the domains. Evan: These improvements are indeed impressive. And what about the inference efficiency results? Ashley: Inference efficiency was one of the standout aspects. MoL-Hybrid-2, which combines parallel fixed-loop prefill with Mixture-of-Loops decoding, reduced total latency by up to 50% compared to fixed 2-loop decoding.
Specifically, for 113 million models, U-MoLT with MoL-Hybrid-2 achieved latency times of 996.6 milliseconds compared to 1000.6 milliseconds for OLMo3. Evan: That’s quite a reduction. Did they also validate the approach on an existing pretrained model? Ashley: Yes, they adapted U-MoLT to a pre-existing model called Qwen3.5-0.8B-Base and continued pretraining on 100 billion tokens.
The U-MoLT adaptation improved cross-entropy loss on all eleven validation domains over the matched baseline, achieving up to 1.4 times token efficiency. Evan: Can you elaborate on the specific domains where U-MoLT showed improvement? Ashley: Sure. Across domains like C4, Books, WikiText-103, and Common Crawl, the adaptation led to reductions in cross-entropy loss. For example, on the WikiText-103 domain, U-MoLT reached a cross-entropy loss of 2.417 compared to 2.491 for the baseline.
Evan: And what was the overall token efficiency improvement during continued pretraining? Ashley: On average, U-MoLT achieved a 1.7 times token efficiency, meaning it required 41.8% fewer tokens to match the final cross-entropy loss of the baseline model. Evan: It's clear that U-MoLT really pushes the boundaries of efficiency without compromising on quality. Ashley: The authors' experiments underscore the practical advantages of their approach, demonstrating both its scalability and robustness across different model sizes and tasks.
Evan: This must set a new standard for efficiency in looped Transformers. Ashley: Indeed. And the thorough experimentation validates the strength of their methodology, showing that expressivity can be efficiently scaled in looped model architectures. Evan: That wraps up the experiment section of the paper. Evan: Alright, Ashley, let’s explore the related work discussed in this paper. How do the authors situate their contributions within the existing literature? Ashley: Sure, Evan. The paper provides a comprehensive overview of looped Transformers and attention mechanisms across different depths.
The authors start by revisiting foundational works such as Universal Transformers and ALBERT, which pioneered sharing weights across depth. Evan: Right, these early models focused on reusing parameters to improve efficiency without sacrificing expressivity. Ashley: Exactly. Recent efforts have scaled looped language models across both dense and mixture-of-experts (MoE) architectures, exploring adaptive token routing, elastic compute budgets, and stabilizing deep unrolls.
Evan: How do these approaches primarily carry computation across loops? Ashley: Most rely on the residual state to carry computation forward. For instance, methods like Transformer-XL began by caching earlier hidden states across segments, while Staircase Attention and Feedback Transformer exposed higher-level representations from earlier chunks as memory for subsequent tokens. Evan: So, MoLT’s approach diverges by using keys and values as memory for selective reuse, right?
Ashley: Correct. Unlike traditional methods that solely depend on residual streams, MoLT’s novel use of KV as memory for selective reuse marks its distinction. This enables loop variants like MoLT-R under loop residual and MoLT-KV under loop KV, which offer different advantages in efficient computation and expressivity. Evan: Interesting. How about leveraging attention across different depths? Can you talk more about that? Ashley: Certainly. Beyond standard residual connections, models have explored depth aggregation techniques.
For example, DenseFormer aggregates earlier layer outputs with static weights, while Mixture-of-Depths Attention or MoDA, and Attention Residuals utilize input-dependent weights. Evan: How does MoDA relate to MoLA introduced in this paper? Ashley: MoDA jointly reads sequence KV and depth KV within a single pass. MoLA builds on this concept by unifying cross-loop KV reuse and same-token depth attention within one attention distribution. This cross-loop reuse allows MoLT-R and MoLT-KV to enhance expressivity and efficiency respectively.
Evan: Got it. How does prefix feedback come into play with these attention models? Ashley: Prefix feedback concerns caching earlier hidden states across segments. In transformer models, Layer-Condensed KV Cache (LCKV) shares top-layer KV across condensed layers under a strict-prefix mask. MoLT, by introducing loop KV, promotes parallel iterative refinement via loop forcing, aligning cross-loop representations for recursive reuse beyond the training loop horizon.
Evan: And how does MoLT handle efficient looped decoding? Ashley: MoLT’s approach reduces the computational overhead that traditional models like LoopFold or Parallel Loop Transformer face, which involve overlapping multiple loops per token or executing them sequentially. MoLT-KV and U-MoLT remove same-position cross-loop dependencies and enable single-traversal Mixture-of-Loops decoding, thus preserving prediction quality with reduced latency through embedding restart and strict-prefix memory KV.
Evan: This sounds like a significant step forward. How do these innovations correlate with separating memory construction and prediction readout? Ashley: YOCO and Universal YOCO illustrate this separation effectively. They use encoder-sourced KV to manage memory construction separately from prediction readout. U-MoLT adopts this principle by splitting loop KV memory construction in the encoder from the causal cross-only decoder, optimizing both stages independently. Evan: And what’s the impact of this architecture when compared to related methods?
Ashley: U-MoLT avoids multi-loop decoding by achieving single-traversal decoding with one encoder-decode pass per generated token. This positions U-MoLT as highly efficient compared to other architectures that must traverse multiple loops at each token generation step. Evan: That makes U-MoLT quite versatile across different model scales. Ashley: Indeed. As summarized in the paper, MoLT encompasses various approaches to looped Transformers, ranging from residual state and KV reuse to more sophisticated encoder-decoder splits which facilitate balanced efficiency and high model quality.
Evan: This extensive comparison certainly provides a solid grounding for understanding MoLT’s contributions. Ashley: It’s clear that their innovations build upon and extend existing work in looped Transformers and attention mechanisms, positioning them as a significant advancement in the field. Evan: And that’s a wrap on the Related Work section of the paper. Evan: Alright, Ashley. Let's summarize the key contributions and takeaways from this paper. Ashley: Sure, Evan. The Mixture-of-Loops Transformer, or MoLT, is a significant step forward in balancing expressivity and efficiency in looped Transformers.
By using keys and values (KV) as memory for selective reuse across depths and loops, the authors address the expressivity-efficiency bottleneck in a novel way. Evan: Right. With MoLA, MoLT passes computed KV as memory, enhancing the inter-loop communication. This mechanism includes different variants like MoLT-R under loop residual and MoLT-KV under loop KV, each bringing distinct advantages in expressivity and efficiency. Ashley: Indeed. MoLT-R retains the residual stream and reads local KV across loops, maximizing expressivity.
Conversely, MoLT-KV uses memory KV from preceding normalized loop outputs and current-loop local KV, eliminating same-position cross-loop dependency and enabling efficient single-traversal decoding. Evan: And U-MoLT goes a step further by separating memory construction from prediction readout, leveraging a loop KV encoder and cross-only decoder. This separation enhances both efficiency and quality and removes the need for intermediate loop traversal during inference. Ashley: Additionally, their loop-forcing training method allows parallel processing at successive loops, significantly reducing training time while maintaining quality.
Furthermore, the Mixture-of-Loops decoding schedules, especially MoL-Hybrid-2, achieve remarkable latency reductions. Evan: Their extensive experiments validate the practical impact of MoLT variants, proving improvements in cross-entropy, perplexity, token efficiency, and downstream accuracy. They’ve set a new benchmark in looped Transformer performance. Ashley: And with that, we conclude today’s episode of Daily Paper Cast. Thank you all for tuning in. Evan: We hope you found this discussion insightful.
Be sure to join us for future episodes where we continue to dive into groundbreaking research in AI, NLP, and related fields. Ashley: You can find the full paper and more details on the Hugging Face website. Stay curious and keep exploring! Evan: Until next time, take care!