Exea LabsBlog
日本語Japanese version

Day 4 ·

Two parts from Qwen3.5 make the hybrid better. They are now the default.

Gated attention and QK-norm help the hybrid more than any change since the convolution-heavy start.

Date
2026-11-13
Read
8 min read
Topics
Public, Architecture, Speed
By
The Exea team
1.511

bits per byte, ExeaLM hybrid with gated attention and QK-norm at 13M, mean of 2 seeds (Qwen3.5-style 1.521, Llama 1.551)

1.509

bits per byte at equal training time, 600 s, 1 seed (gated Llama 1.515, Qwen3.5-style 1.542)

0.026

bits per byte the two parts gain in the full 18M model with both memory skills (1.393 against 1.419, 1 seed)

Every comparison on this blog so far has been against a same-size . Yesterday's post named a stronger baseline as the next step: Qwen3.5, the strongest small open design that mixes recurrent layers with attention. We built a Qwen3.5-style model at our small size. Then we tried each of its parts inside ExeaLM's .

Two of the parts helped. With them the hybrid leads the Qwen3.5-style model at equal steps on both seeds, and at equal training time on the one seed we ran. They are now the default.

01Three parts of Qwen3.5

Qwen3.5 is built from two kinds of sequence layers: three linear-attention layers for every attention layer, a layout it inherits from Qwen3-Next (an overview). We took three parts from it:

  • (Yang, Kautz and Hatamizadeh, 2024), the linear-attention layer. It keeps a memory of fixed size. At each token it overwrites what it stored for the current key and lets older memory fade. Its cost grows linearly with length.
  • (Qiu et al., 2025, from the Qwen team). Each output channel of an attention layer is multiplied by a gate between 0 and 1, computed from the layer's input. A head can turn its output down when it has nothing to add.
  • : each head's queries and keys are normalised before they are compared, so attention scores cannot grow without bound.

Gated DeltaNet is in exealm/model/delta.py, in plain PyTorch, with a test that checks it against the token-by-token recurrence. The gate and QK-norm are two options of the attention layer (attn_gate and qk_norm).

The Qwen3.5-style baseline is a Llama with Gated DeltaNet at layers 0, 1, 2 and 4, and gated attention with QK-norm at layers 3 and 5. That is the small Qwen3.5 models' pattern, three DeltaNet layers before each attention layer, cut to six layers. Everything else matches our other baselines: width, depth, vocabulary, MLPs and training. A figure in the repository draws all three models block by block.

012345LAYERattentionattentionattentionattentionattentionattentionLLAMAGated DeltaNetGated DeltaNetGated DeltaNetgated + QK-normGated DeltaNetgated + QK-normQWEN3.5-STYLEgated + QK-normgated + QK-normgated + QK-normgated + QK-normEXEALM (NEW DEFAULT)INSIDE GATED ATTENTIONlayer inputattentionq and k normalisedgate0 to 1×output
The three 13M models, layer 0 at the bottom. Grey outlines are plain attention, orange outlines are gated attention with QK-norm, hatched plates are Gated DeltaNet and plates with dots are TONN layers. Right: inside one gated attention layer. The attention output is multiplied, channel by channel, by a gate computed from the layer's input. The queries and keys are normalised before they are compared.

Setup. 13M parameters: width 256, six layers, the 32k vocabulary. 3,000 steps of 32 sequences of 512 tokens (49M tokens), learning rate 2e-3, on the Mac Studio's GPU. The hybrid is the default 2:1 layout, with layers at 0 and 3 and attention in the other four, without memory circuits. Every model is scored in on held-out English, Japanese Wikipedia, Japanese web text and code. The tables give the mean of the four.

02At equal steps, the gate and QK-norm help both models

ModelParametersSeed 0Seed 1
Llama13.1M1.5431.560
Llama + gate + QK-norm13.5M1.525
Qwen3.5-style13.5M1.5201.521
ExeaLM hybrid13.1M1.536
ExeaLM hybrid + gate + QK-norm13.4M1.5111.512
ExeaLM hybrid + gate + QK-norm + Gated DeltaNet at layers 1 and 413.4M1.512
  • The Qwen3.5-style model beats Llama by 0.023 on seed 0 and by 0.039 on seed 1. It is the stronger baseline.
  • Gated attention and QK-norm improve the hybrid by 0.025 (1.536 to 1.511, seed 0). That is the largest gain from a single change since the convolution-heavy start.
  • With them the hybrid leads the Qwen3.5-style model by 0.009 on both seeds. Its lead is largest on code (1.708 against 1.728 on seed 0).
  • The two parts help Llama as well, by 0.019 on seed 0. They are not specific to the hybrid. Against the gated Llama the hybrid leads by 0.014.
1.5101.5201.5301.5401.5501.5601.570← betterbits per byte, lower is betterLlama1.551Llama + gate + QK-norm1.525Qwen3.5-style1.521ExeaLM hybrid1.536ExeaLM hybrid + gate + QK-norm1.511 + Gated DeltaNet1.512
seed 0seed 1mean of the seeds run
Mean bits per byte at 13M on held-out English, Japanese and code, lower is better. Each dot is one training run, filled for seed 0 and hollow for seed 1. The vertical mark is the mean of the seeds run. Switch between equal steps and equal training time, or pick one kind of text, above the chart. ExeaLM's rows are orange, and the bold row is the new default. At equal steps the gated hybrid leads every baseline on both seeds. At equal time it leads the gated Llama by 0.006.

03At equal training time the lead shrinks to 0.006

gives each model the same training time: 600 seconds on the Mac Studio, one model at a time with nothing else on the GPU, seed 0. Each takes as many steps as it can, with its learning-rate schedule stretched to fit.

ModelSteps in 600 sEnglishJapanese wikiJapanese webCodeMean
Llama3,020 (655 s)1.4601.5351.4141.7611.542
Llama + gate + QK-norm3,2331.4291.5071.3921.7321.515
Qwen3.5-style2,592 (684 s)1.4621.5331.4151.7581.542
ExeaLM hybrid + gate + QK-norm3,0701.4321.5031.3921.7091.509
  • The gated hybrid leads the gated Llama by 0.006 and Llama by 0.033. Most of the lead is code (0.023 against the gated Llama). On English the gated Llama is ahead by 0.003.
  • The Qwen3.5-style model falls to Llama's level. It managed 2,592 steps against Llama's 3,020, because its Gated DeltaNet runs in plain PyTorch on the Mac. On an NVIDIA GPU, the fused kernels of flash-linear-attention would change this (#31). This row says more about our hardware than about Qwen3.5's design.
  • The step counts come from timing the first 50 steps. Two runs overshot the budget (655 s and 684 s), which favours them.

04DeltaNet layers and the circuit search add nothing on top

We tried two more things on top of the gated hybrid, on seed 0.

Gated DeltaNet layers at 1 and 4, in place of two attention layers, scored 1.512 against 1.511 without them. At this size they add nothing. On the Mac they are also slower. A gated delta-rule memory may still earn a place as one of TONN's circuit types, where the search decides where it goes (#30).

TONN's , which swaps circuits every 250 steps during the first half of training, scored 1.5107 against 1.5110 at equal steps. It swapped one circuit, an attention circuit for a state-space one in layer 3. At equal time it ran 2,286 steps against 3,070 and scored 1.552, partly from the search's own cost. On language alone, a good starting mix leaves the search little to do. The earlier 13M sweep found the same: about 0.001 from the search on top of the convolution-heavy start.

05In the full model, the gate helps language and keeps both skills

The 18M model from yesterday's post is the hybrid at width 320, with a retrieval circuit and a board circuit in each TONN layer. It trains for 24,000 steps on text, Wikipedia, and batches. We trained it again with the gate and QK-norm, seed 0.

Bits per byte, then the two skills: relay with the board shared and cut, lookup with the library attached and removed.

ModelEnglishJapanese wikiJapanese webCodeMeanRelayLookup
ExeaLM (18.08M)1.3201.4221.3221.6121.419100.0% / 0.9%94.0% / 1.5%
ExeaLM + gate + QK-norm (18.49M)1.3031.3991.3021.5661.393100.0% / 1.4%93.1% / 1.5%
Llama, same batches, no gate (17.83M)1.3391.4441.3361.6411.440
  • The gain is 0.026, the same as at 13M without memory circuits. Code gains the most (0.046).
  • The gain shrinks with training, from 0.099 at step 3,000 to 0.026 at step 24,000. Part of the gate's help is faster early learning.
  • Both skills hold: the relay at 100% and lookup at 93.1%, against 94.0% without the gate.
  • The lead over Llama grows from 0.021 to 0.047. That Llama has no gate. At 13M the same parts gave Llama 0.019, so most of the wider lead is probably the parts themselves. We have not run a gated Llama on these batches.
  • With the circuit search on for the first half of the run, the same model scored 1.431, 0.012 worse. The search gave layer 0 four more board circuits and took them from language. On the training mix, switching off a memory circuit breaks the relay and lookup batches, so the search ranks memory circuits far above language ones.
ExeaLM + gate + QK-normExeaLMExeaLM + circuit search
0.00+0.05+0.10+0.15+0.20+0.25+0.30+0.353,0006,00012,00018,00024,000better than Llama ↑+0.047+0.021+0.009gain from the gate
training step
How far each ExeaLM run is ahead of the Llama trained on the same batches, over the 24,000 steps, seed 0. Above zero, ExeaLM is better. The shaded band between the two orange lines is what the gate and QK-norm add: 0.099 bits per byte at step 3,000, 0.026 at the end. The grey dotted line is the run with the circuit search. This Llama has no gate. Pick a kind of text above the chart.

The two full runs shared the GPU with other runs, so their times are not comparable.

06The default is now gated

Since commit d34fb9d, the 100m and small presets turn on attn_gate and qk_norm.

  • The 0.1B model grows from 101.1M to 104.8M with the planned vocabulary (about 90.6M to 94.3M with the 32k tokenizer). The gate is one extra projection of width by width in each of the nine attention layers.
  • The Llama baseline stays plain. llama_baseline(cfg) turns both parts off unless a run asks for them. Every script that builds a Llama from a preset goes through it.
  • Configs saved before the options existed load as they were trained, without the gate. The checkpoints on Hugging Face still load. A fine-tune started from one keeps its setting. Tests cover all three.

07What this does not show

  • Most rows are one seed. The gated hybrid and the Qwen3.5-style model have two at equal steps. The equal-time comparison and the full model have one.
  • 13M parameters and 49M tokens. Qwen3.5's parts were designed for much larger models trained much longer. Their effect at 0.1B on 100B tokens is untested.
  • The Qwen3.5-style model is our six-layer reconstruction, not Qwen3.5. Its DeltaNet layers had no fast kernel, which matters at equal time.
  • The gated ExeaLM is now 4.5% larger than a plain Llama of the same shape at 0.1B (104.8M against 100.2M). A gated Llama (106.0M) is the fair baseline from here on.
  • Only held-out bits per byte, no benchmark tasks.

08Next

  • A gated Llama on the full model's batches, two seeds. It is the comparison missing from the 18M table.
  • Gated DeltaNet as a TONN circuit type (#30) and its fast kernels on NVIDIA (#31). Both are open for contributors.
  • A GPU. We no longer have the Mac Studio. Every checkpoint and result file from it is on Hugging Face.
09

Who did the work

Avneh Bhatia@AvnehSBhatia
Asked for a benchmark against Qwen3.5 and for the parts of it that work in ExeaLM. Ran every run in this post on the Mac Studio: the Qwen3.5-style baseline, the gated variants of both models, the equal-compute check and the full 18M model with the gate.
10

Sources