Language atlas
A candidate attention mask from byte-transfer commutators
This experiment asks which pairs of empirical byte-transfer operators nearly commute. The reported English run uses an enwik8 prefix, depth-two contexts and a normalized matrix commutator. At threshold 0.15, 60.8% of the listed byte-type pairs qualify. Applied by lookup to a sample sequence, the rule flags 75.8% of position pairs in the reported mask table.
The analysis script selects the first 512 eligible bytes and counts thresholded entries. It does not time or train a masked transformer. A zero commutator establishes an equality between two transfer products. A small commutator does not prove that removing an attention edge preserves its output, loss or information. The mask is a candidate for a controlled ablation.
Reported sensitivity to the commutator threshold
| Threshold ϵ | Byte-type pairs below threshold | Position pairs flagged |
|---|---|---|
| C < 0.10 | 24.8% | 25.4% |
| C < 0.15 | 60.8% | 75.8% |
| C < 0.20 | 93.5% | 92.7% |
Examples of pair scores
| Byte a | Byte b | C[a, b] | Classes |
|---|---|---|---|
< |
> |
0.42 | markup, markup |
< |
/ |
0.38 | markup, markup |
< |
a |
0.31 | markup, lowercase |
> |
\n |
0.29 | markup, whitespace |
& |
; |
0.27 | markup, markup |
Reported scores by character class
| Class pair | Mean C | Fraction < 0.10 | Count |
|---|---|---|---|
| (digit, digit) | 0.008 | 100% | 45 |
| (lowercase, lowercase) | 0.031 | 94% | 325 |
| (lowercase, digit) | 0.042 | 89% | 260 |
| (digit, space) | 0.051 | 82% | 10 |
| (lowercase, space) | 0.068 | 71% | 26 |
Cite this page
Richard Hoekstra. A candidate attention mask from byte-transfer commutators. https://richardhoekstra.nl/atlas/yang-baxter.html