2.1. The window, block by block#
Which residual sources does each sublayer of the released ARLoop-0.6B actually read? The answer
follows from four configuration values and the order of the bookkeeping in the forward pass. This
page replays that bookkeeping (seminar_lib.schedule, listed in Appendix: the helper module) for every routing
call.
2.1.1. The rule#
Read in the released code (digest §2) [code], with \(S\) the block size in sublayers:
the router of each sublayer reads the list
blocks + [partial]; when the list is longer than the window, it is cut to the embedding plus thesw_blocksmost recent entries;at the start of every effective layer \(\ell > 0\) with \(\ell \equiv 0 \pmod{S/2}\), the partial block is committed as a new block, after the routing of that layer’s attention sublayer and before its update;
a last routing call (the read-out query) produces the state for the final norm and the LM head.
Calls are numbered as in the code: \(s = 2\ell\) for the attention and \(s = 2\ell+1\) for the FFN sublayer of effective layer \(\ell = 0, 1, \dots\); \(z[s]\) is the update produced after call \(s\) (the paper’s \(z_{s+1}\)).
physical_layers=18, loop_count=3, attnres_block_size=18 sublayers, sw_blocks=3
effective layers 54, sublayers 108, routing calls 109
a block every 9 layers, committed at the start of layers [9, 18, 27, 36, 45]
So the window holds the embedding and 3 sources, and a residual block spans 9 layers. Blocks are committed at the start of effective layers 9, 18, 27, 36 and 45: two per loop, except in the first loop, which commits only at layer 9 because layer 0 opens the first block. Each loop still writes two blocks; the sixth block is never committed: it stays the partial block that the read-out reads. [code + num]
2.1.2. Who reads what#
Each column is one routing call, each row one source; the vertical rules separate the three loops. The full list, with what each source sums, is below (expand the output).
2.1.3. Worked example: effective layer 36, the first layer of loop 3#
call 72, layer 36 (attn) reads:
e = h0
b2 = z[18..35]
b3 = z[36..53]
p = z[54..71]
call 73, layer 36 (ffn) reads:
e = h0
b3 = z[36..53]
b4 = z[54..71]
p = z[72]
the partial block read by the attention sublayer holds layers 27–35
Before the attention sublayer of effective layer 36 the partial block holds layers 27–35. The attention router reads \(\{b_0, b_2, b_3, \text{partial}\}\): the embedding and the three most recent sources; \(b_1\) is no longer visible. Then the partial block is committed as \(b_4\), the attention update starts a new partial block, and the FFN router of the same layer reads \(\{b_0, b_3, b_4, z[72]\}\), where \(z[72]\) is the attention update of layer 36. This is the worked example of the digest, reproduced by the replay. [code + num]
2.1.4. The first block contains the embedding (finding F6)#
Eq. (4) of the paper defines \(b_1 = \sum_{j=1}^{S} z_j\). The released code starts the first block from
the embedding (blocks = [h0], partial = h0), so \(b_1 = h_0 + \sum_{j=1}^{S} z_j\) and the embedding
is read through two sources until \(b_1\) leaves the window. [code] The replay says when:
ARLoop-0.6B: h0 is read through two sources at calls 0..54
b1 is last read at call 54, layer 27 (attn)
ARLoop-1.2B: commits at [12, 24, 36, 48, 60]
b1 is last read at call 72, layer 36 (attn)
In ARLoop-0.6B the embedding is read through two sources at calls 0 to 54: through the partial block up to call 18 (the attention sublayer of effective layer 9), then through \(b_1\). The last call that reads \(b_1\) is call 54, the attention sublayer of effective layer 27; from the FFN sublayer of layer 27 on, \(b_1\) is outside the window. In ARLoop-1.2B (block every 12 layers) the same happens at effective layer 36. [num] This agrees with finding F6 of the digest, which records the same from a routing probe of the released model (smoke job 322097).
2.1.5. The first router is inert (finding F8)#
At call 0 the router reads two copies of the same vector (\(b_0 = h_0\) and the partial block \(= h_0\)). Equal sources get equal scores whatever the query, so the softmax weights are \(\tfrac12, \tfrac12\) and the routed state is \(h_0\): the query and the norm weight of call 0 cannot change the output, and they receive no gradient. This does not depend on F6: under eq. (4) call 0 would read the embedding alone, with weight 1 whatever the query.
weights at call 0 for five random (q, g):
[0.5 0.5]
[0.5 0.5]
[0.5 0.5]
[0.5 0.5]
[0.5 0.5]
inert routing parameters (query + norm weight of call 0): 3,072
So 3,072 of the routing parameters (the query and norm weight of call 0) have no effect in the released forward pass [num]. The digest records this as finding F8. The E1 routing probe records the weights of call 0 on the released model (E1: the released checkpoints, re-measured).
2.1.6. The paper’s version, for comparison#
With eq. (4) (first partial block empty, \(b_1 = \sum_{j\le S} z_j\)) the same replay gives identical source sets from call 1 on; only call 0 differs (it reads the embedding alone), and the embedding is then read through a single source everywhere.
same source labels from call 1 on: True
call 0 reads: ['e']
calls reading h0 twice: 0