acceptodds
Published as a conference paper at NeurIPS 2026

Comparing Transformers and Hybrid Models at the Token Level

Yanhong Li, Will Merrill

Abstract

Hybrid language models that mix attention and recurrent layers have shown promise: theoretically, recurrent layers ameliorate the limitations of pure transformers on state tracking, and empirically, hybrids can outperform pure transformers in loss and downstream evaluations waleffe2024empirical,merrill2026olmohybrid. Yet it remains unclear which data or capabilities drive these gains, and to what degree they reflect the theoretical advantages motivating hybrid models. We address this by analyzing the benefits of hybrid models at the token level—which kinds of tokens are better predicted by hybrids than by pure transformers—using the open weights from Olmo 3 olmo2025olmo3 and Olmo Hybrid merrill2026olmohybrid. Hybrids predict tokens better across the board, but we show these gains localize to open-class content words rather than closed-class function words. Across natural language and code, the loss gap shrinks on closing brackets (but not opening brackets), consistent with the hypothesis that attention, not hybrid layers, is largely responsible for processing hierarchical structure. The hybrid advantage also vanishes on repeated -grams. Overall, while attention suffices for tokens involving copying and purely syntactic information, hybrids show an advantage on more semantically conditioned predictions, likely because these are aided by a strong representation of the discourse state. We conclude with discussion and proof-of-concept experiments showing how these findings could refine design principles and pretraining evaluations for hybrid architectures.

Keywords:
Atlanta

Reviews

Among:
Shape:
123456this paper, Bottom 17%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.00 over 3 reviews, above 17% of the others.
Reviewer_67bZOpenReview ↗
Rating
4
Clarity
4
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper presents a granular, token-level comparative analysis between pure Transformer models and Hybrid language models (which combine attention with recurrent sequence layers). While prior empirical work has demonstrated that hybrid architectures can outperform transformers on aggregate loss and downstream benchmarks, this work aims to identify the specific contexts and token categories that drive these performance gains, and to verify whether they align with theoretical expressivity advantages. To investigate this, the authors evaluate two closely matched 7B-scale models—Olmo 3 7B (Transformer) and Olmo Hybrid 7B (Hybrid)—across a diverse evaluation suite spanning natural language prose, code, and markup language. By computing the paired negative log-likelihood (NLL) gap at each token position, the authors uncover three main empirical regularities:

  • Semantic Content vs. Syntactic Function: The hybrid model's advantage is broad but concentrates heavily on open-class content words (e.g., nouns, verbs) rather than closed-class function words or highly constrained structural markers.

  • Structural Asymmetry: Across both text and structured code domains, opening brackets/tags systematically favor the hybrid model, whereas the advantage significantly shrinks on closing brackets/tags. This aligns with the notion that attention handles structural closure well, while recurrence aids in initiating state updates.

  • Vanishing Copying Advantage: The hybrid advantage rapidly decays to zero on repeated nn-grams as the length nn increases, confirming that attention is fully sufficient for prefix-copying mechanisms.

The authors interpret these findings through a linguistic lens of dynamic semantics, framing the hybrid model's strengths around tracking and querying an evolving latent "discourse state." Finally, the paper demonstrates a practical application of these insights: by filtering validation loss to isolate hybrid-favored, non-copying tokens, they create a significantly higher-signal, low-cost pretraining evaluation metric that can effectively surface architectural differences in small-scale (1B-parameter) development runs.

Strengths and weaknesses

Strengths

  • Granular & Theory-Backed: Instead of just looking at high-level benchmark scores, this paper digs all the way down to token-level analysis. Even better, it connects these real-world findings back to formal expressivity theory (like TC0TC^0 vs. NC1NC^1 complexity), giving the hybrid model's wins a solid theoretical backing.

  • Super Clean Experimental Setup: The authors did a great job controlling variables by comparing two tightly matched models—Olmo 3 7B and Olmo Hybrid 7B. They share the same tokenizer, data mix, and training recipe, which isolates the architecture as the only real variable. Plus, controlling for token frequency and repetition in their regressions keeps the conclusions rock-solid.

  • Great Mix of Data & Controlled Probes: The study doesn't just rely on massive real-world datasets (prose, code, markup); it also uses custom synthetic probes for pronoun memory and entity tracking. Testing across both natural and controlled setups beautifully proves the "state tracking vs. copy-pasting" division of labor between the architectures.

  • Highly Practical Takeaway: The proposed "filtered loss" metric (like Top-100 No-Copy) successfully amplifies architectural differences in tiny 1B models. This gives researchers a virtually free, high-signal diagnostic tool for architecture search, which is incredibly useful for real-world model design.

Weaknesses

  • Reliance on Noisy Proxies: As the authors admit, things like POS tags and brackets are just noisy stand-ins for what the model is actually doing. For example, a noun might require deep context tracking in one sentence but just be a simple nearby copy in another, making it hard for regressions to cleanly separate the two behaviors.

  • No Direct Probing of "Discourse State": While the paper leans heavily on linguistics to argue that hybrids are better at tracking an evolving "discourse state," this claim is mostly high-level theory. The authors don't actually peek under the hood (like using activation patching or linear probes) to prove the model is explicitly mapping out these entity relationships.

Questions
  1. Open Up the Hybrid "Black Box"
  • Question: How do different layers within the Olmo Hybrid 7B architecture contribute to these token-level patterns? Is the tracking of opening brackets concentrated in the recurrent layers, or is it a joint effort across both layer types?

  • Action: You don't need to retrain. Try a low-cost, inference-only exploration—like looking at attention maps around brackets or checking performance when freezing specific recurrent layers. Even a brief layer-level analysis would make your architectural insights much more actionable.

  1. Verify the "Discourse State"
  • Question: You argue that hybrids win on content words because they track a dynamic "discourse state." Do you have direct evidence that this state is explicitly encoded, rather than just a surface-level statistical correlation?

  • Action: Train a simple, frozen-weight linear probe on the model's representations during synthetic entity-tracking tasks. Showing that the hybrid's recurrent states maintain higher classification accuracy for "tracked entities" would turn a great linguistic theory into a proven mechanistic fact.

Limitations

Here are constructive suggestions for improvement:

  • Hardware and Efficiency Trade-offs: The paper demonstrates that the hybrid model outperforms the pure Transformer on specific token types, but it fails to discuss the hardware implications. Recurrent layers often suffer from sequential training bottlenecks or specialized kernel dependencies (e.g., custom hardware layouts for Mamba/Linear RNNs). The authors should explicitly address whether the token-level performance gains justify the engineering overhead and hardware-specific compilation trade-offs.

  • The 1B to 7B Scale Gap: The authors use a 7B scale for analysis but propose a validation metric tested at the 1B scale. They should include a brief caveating discussion on whether token-level dynamics scale predictably, or if certain structural advantages (like opening/closing brackets) only emerge or shrink at specific parameter thresholds.

  • Safety and Alignment Implications: If hybrid models track a "discourse state" differently than Transformers, this could change how they propagate biases, maintain toxic contexts, or respond to jailbreaks over long conversations. The authors should touch upon whether this architectural difference has potential safety or alignment implications.

Recommendation: Add a dedicated "Architectural & Scaling Trade-offs" subsection in the Limitations to address hardware efficiency and cross-scale generalizability.

Paper formatting concerns

none

Reviewer_rtKAOpenReview ↗
Rating
4
Clarity
4
Confidence
3
Originality
2
Quality
3
Significance
2
Read review
Summary

This paper asks: which specific next-token predictions account for the average loss gap between transformer and hybrid language models? The authors compare Olmo 3 7B (a pure transformer) and Olmo Hybrid 7B (interleaved attention and recurrent layers from the same training recipe) using a paired token-level evaluation framework. For each position in the evaluation corpus, both models are scored on the same prefix at the same checkpoint, and the paired NLL gap is computed.

Three complementary analyses are used: (1) tag-stratified summaries that report the conditional mean gap within POS and domain-specific token families; (2) a regression model that controls for token frequency, difficulty, copy features, and subword position to isolate architecture-driven effects; and (3) controlled synthetic probes (pronoun memory, entity tracking, structural closure) that vary antecedent distance under matched surface conditions.

The consistent finding is that the hybrid advantage concentrates on semantically-conditioned predictions: open-class content words, identifiers, referential choices, and shrinks or reverses on predictions recoverable from the visible prefix (repeated n-grams, structural closers). The authors interpret this through a discourse-state lens: hybrid layers support ordered state update and state-conditioned readout, while attention supports visible-prefix retrieval. A practical application is proposed: filtered next-token losses restricted to hybrid-favored, non-copy positions separate architectures ~2× more clearly than aggregate loss during 1B pretraining runs.

Strengths and weaknesses

Strenghts

The paper's central contribution is a clean, principled methodology for decomposing aggregate LM loss into architecturally interpretable components. The paired evaluation design (same model family, same checkpoint, same prefix) is well-chosen: by holding training conditions constant, the NLL gap signal reflects the architectural difference. The regression framework is a genuine methodological contribution: it allows the authors to simultaneously control for token frequency, difficulty (ℓ̃_i), subword-in-word position, and multiple copy indicators, isolating the architecture-specific component of each token tag's gap.

The paper's empirical findings are robust in several important respects. The opening-vs-closing bracket asymmetry holds consistently across all seven domains. The n-gram repetition finding (hybrid advantage that shrinks monotonically and approaches zero as n grows) is exactly what expressivity theory predicts. And the three synthetic probes converge on the same semantic/syntactic split: pronoun memory and entity tracking favor the hybrid, while structural closure favors the transformer. This multi-method convergence is the strongest aspect of the paper.

The filtered-loss diagnostic (§6) is practically useful and novel. The observation that aggregate loss conflates several distinct computational regimes, causing architectures to cluster, while their filter separates them by roughly twice as much, is a genuinely actionable result for practitioners running architecture sweeps. Adding negligible cost (the filter uses the same per-token NLL already computed for standard validation), this is a contribution the community can adopt immediately.

Weaknesses

There are also notable weaknesses. The most significant is that the entire empirical analysis rests on a single model pair. Olmo 3 and Olmo Hybrid are carefully matched, but it is impossible to rule out that e.g., idiosyncratic training details contribute to the observed gaps. The paper does not replicate its core findings on any other hybrid family, or even a different-scale Olmo pair.

Similarly, there is no direct comparison of a transformer with a pure RNN-based model (except for the investigations in §6) which would strengthen the results and make the interpretation more straightforward, instead of comparing essentially "transformer" to "transformer + RNN".

The discourse-state framing in §5 is compelling but partially speculative.

The regression model's goodness-of-fit is never reported: values for Equation 1 are absent, making it difficult to assess how much of the variance in Δ the model actually explains and therefore how much weight to place on the adjusted effects in Figure 2's right panels.

Similarly, on Fig 3: uncertainties on the fit are missing. Are the slopes compatible with 0, if not, by how much? On Fig 4, uncertainties on delta missing. Is the gap significant for all domains?

Overall

The paper makes a genuine methodological and empirical contribution: the paired token-level evaluation framework, regression control design, and filtered-loss diagnostic are all novel and practically useful. However, there are methodological concerns (misssing uncertainties in several places, limited generalizability with just two models) and the significance is limited with respect to the expectations on a long paper (it would make a nice short findings paper, though).

Questions
  1. Generalizability beyond Olmo. All empirical results rest on one model pair. Do the three core findings, (i) content > function word gap, (ii) opening > closing bracket asymmetry, and (iii) n-gram vanishing, hold for at least one other hybrid architecture family or scale (e.g., a Mamba-based hybrid)? Even a brief replication on one additional pair would substantially increase confidence in the generality of the framework. Alternatively or in addition, direct comparison transformer to pure RNN-based would be useful.

  2. Regression fit, uncertainties. Equation 1 is central to the adjusted effects in Figure 2 (right panels), yet R² or other goodness-of-fit statistics are not reported. What fraction of the variance in Δ is explained by the regression model? If R² is low (say, below 0.1), the regression-adjusted effects may not be reliably separable from noise, and some of the fine-grained comparisons in the right panels of Figure 2 would need to be interpreted more cautiously. Please report R² (or an equivalent) for both the coarse-tag and aggregate word-class models; if low, discuss what this implies for the reliability of the adjusted effects. Similarly, what are the uncertainties on Fig 3 (fit parameters) and 4 (delta)?

  3. Filtered metrics at larger scale. The filtered-loss diagnostic is demonstrated on 1B-parameter development runs (Figure 8). Is there evidence that the filtering remains informative at 7B scale? Specifically, would the Olmo 3 and Olmo Hybrid 7B models themselves separate more clearly?

  4. Below-chance transformer performance in entity tracking. Figure 5(c) shows the transformer dipping below chance on the entity-tracking margin at intermediate distances. This is a striking finding, the model appears to be actively misled, not just failing. Is this below-chance behavior robust to probe design choices (e.g., distractor selection, number of fillers, passage length)? Could it reflect the transformer learning a surface heuristic (e.g., "answer is the last mentioned entity") that happens to be systematically wrong at intermediate distances? Clarifying this would sharpen the entity-tracking result considerably; if the below-chance behavior is robust and not a probe artifact, I would find this an interesting finding in the paper.

  5. Missing related work. Why are Induction heads https://arxiv.org/abs/2209.11895, “repeat after me” https://arxiv.org/abs/2402.0103 or Retrievit studies in-context retrieval in Transformers, SSMs, and hybrids, including n-gram retrieval https://arxiv.org/abs/2603.02874 not mentioned as related work?

Limitations

There are no limitations mentioned in the main paper.

The main limitation is that the results are only derived from one model paper and not generalized to other transformer/hybrid architectures or pure RNN-based models, or to models of different size.

Paper formatting concerns

No major issues.

Minor comments

9 the open weight models Olmo 3

85 and after 126: two times equation (1)

88 under standard fixed- (or better: under standard assumptions of fixed depth and log precision)

215: DRT acronym used but not defined

274: GDN acronym used but not defined; also no reference for gated delta networks

300 and a hybrid model

Final justification

Thank you for the thorough and responsive rebuttal. The new experiments address my main concerns directly.

  • Generalizability (my primary concern): The replication on the NVIDIA GPT3 / Mamba-2 8B family is exactly what was needed. Seeing all three core findings (content > function, opening > closing, n-gram contraction) reproduce on an independent provider with a different recurrent mechanism substantially raises my confidence in the framework's generality. The added pure-Mamba-2 comparison and your caveats (non-monotone three-model ordering, SSM ≠ RNN) are appreciated.
  • Uncertainties / regression fit: Reporting R² (≈0.002), the clustered CIs for the content/function contrasts, and per-domain CIs for the bracket asymmetry resolves my rigor concern. I agree R² is very low; reframing the adjusted quantities as conditional mean contrasts, not an exhaustive account of token-level loss, is the right characterization, and the effects remain distinguishable from zero. Retracting the vocabulary-diversity claim (Fig 3) given p = .06 / .27 is the correct call.
  • 7B filtered evals: The 2.04× separation at the final 7B checkpoint, holding across all 30 step-matched checkpoints, confirms the diagnostic is not a 1B-scale artifact.
  • Entity tracking: I appreciate the honest audit; replacing the "misled" interpretation with the format/position-sensitivity finding is appropriate.
  • Related work and minor fixes: Adding Induction Heads / Repeat After Me / RetriVit and the definitional corrections covers the remainder.

Please ensure the second-family replication, the R² and CIs, the 7B filtered results, the two retractions, and a main-text limitations section all make it into the revision. Conditional on these, I am raising my overall score from 3 to 4.

Reviewer_gmLbOpenReview ↗
Rating
4
Clarity
4
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

The paper analyzes why hybrid language models that combine attention and recurrent layers outperform pure Transformers. Rather than comparing only aggregate validation loss, the authors compute paired token-level loss gaps between a matched Transformer model, Olmo 3 7B, and a hybrid model, Olmo Hybrid 7B, on the same prefixes and target tokens. They then stratify these gaps by token categories across prose, code, and markup.

The main finding is that hybrid gains are not uniform across tokens. The hybrid model shows larger advantages on open-class content words, identifiers, strings, comments, text nodes, and attribute values, which the authors interpret as predictions requiring an evolving discourse, program, or document state. In contrast, the hybrid advantage is smaller or disappears on repeated n-grams and structural closure tokens such as closing brackets or tags, where attention-based retrieval from the visible prefix is sufficient. Controlled probes on pronoun memory, entity tracking, and structural closure further support this interpretation. The paper also proposes filtered validation losses as a diagnostic tool for architecture evaluation, separating state-conditioned prediction from copying-heavy regimes.

Strengths and weaknesses

Strengths

  1. Fine-grained and well-motivated token-level analysis. The paper moves beyond aggregate validation loss and downstream benchmarks by decomposing the hybrid-vs-Transformer gap at the level of individual token predictions. This is a useful and informative perspective because aggregate loss mixes many different prediction regimes, such as copying, syntax, formatting, and semantic/state-conditioned prediction.
  2. Useful diagnostic implication for architecture evaluation. The filtered-loss diagnostic is a promising practical contribution. It suggests that architecture differences can be made more visible by separately evaluating state-conditioned and retrieval-heavy token families, rather than relying only on aggregate validation loss.

Weaknesses

  1. Limited architectural scope. The main comparison is based on one matched model pair, Olmo 3 7B and Olmo Hybrid 7B. This is clean, but it limits the generality of the conclusions. It remains unclear whether the same token-level patterns hold for other hybrid architectures, recurrent mixers, layer placements, model scales, or training recipes.
  2. The practical use of the filtered-loss diagnostic is not fully demonstrated. The filtered-loss analysis is promising, but the paper does not yet show how it should be used in actual architecture search or model selection. In particular, optimizing for state-conditioned/no-copy token families alone might risk degrading copy or structural-closure behavior unless the diagnostic is used as part of a multi-objective evaluation profile.
Questions
  1. How robust are the token-level findings across other hybrid architectures or model families? The current matched Olmo comparison is clean, but it would be useful to know whether the same content-vs-copy and opening-vs-closing patterns hold for other recurrent mixers or hybrid layer placements. Even a smaller-scale additional comparison could substantially strengthen the generality of the paper.
  2. The filtered-loss diagnostic is promising. Could the authors clarify how they envision it being used in architecture search? For instance, would optimizing for the TOP-10 no-copy loss risk degrading copy/closure behavior, and should architecture selection use a multi-objective profile over state-conditioned and retrieval-heavy token families?
Limitations

The main remaining limitation is that the empirical conclusions are drawn primarily from one matched Transformer/hybrid model pair, so the extent to which the observed token-level patterns generalize to other hybrid architectures, scales, or training recipes remains unclear.

Paper formatting concerns

No

Comments on the paper

1 comment
Meta-review

This paper presents an analysis of models mixing recurrent and attention layers to pure attention models with the main findings being that gains from hybrid models are not uniform across tokens.

Reviewers praise the fine-grained token-level analysis which is well motivated as well as the clean experimental comparison of two members within the same model family. The reviewers also appreciate the use of natural and controlled datasets and probes.

However, all reviewers had concerns about the reliability of basing conclusions on a single comparison between two models which leaves open the question whether conclusions are robust. Another common question was why the filtered-loss diagnostic was only performed on the 1B model size and not the larger size as well to confirm findings.

In the subsequent discussion period, the authors provided additional experiments using a second model family which resolved the issue around conclusions being drawn from a single set of models. The authors also adjusted their claims based on reviewer feedback and confirmed the 1B results to 7B settings. I therefore recommend acceptance of this paper.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.