Hi all. I love AI, and I keep asking one question: why does a language model spend the same work on the word “the” as on a rare technical term?
Today every token gets the same size of ID, the same size of embedding, and a trip through every layer. We wrote up a design that changes that, called Dynamic Beads. I am sharing the ideas and what we measured, including one test that went against us, to get honest feedback.
Full write-up: Dynamic Beads: One Tag per Token Sets Code Length, Embedding Size and Layer Depth | Benny Labs Foundation We call a token a “bead”. The vocabulary is split into tiers, and each tier is named by how many bits its codes use. Common beads sit in short-code tiers. Rare beads sit in long-code tiers. Each bead’s code is a short tag that names its tier, plus a payload.
The model reads the tier from the tag. That one read sets:
Frequency is a bad guide for some words. “Not” is very common and very important. So a depth guard raises the depth for negations, numbers, logical operators and pronouns, and for any spot where the model’s confidence is low.
Usage is counted. A bead that gets used more is promoted to a shorter tier, and the least-used bead there is relegated. A newcomer has to beat it by a set margin for a set time, so beads do not bounce back and forth. Each tier updates at its own pace. Every change ships as one validated version bundle, and each request runs under one bundle from start to finish.
One range of codes is reserved per user. If you type the same long phrase every day, it becomes one personal bead that takes one input position. It is only used after a test shows the model treats the single bead like the full phrase. The shared model weights stay unchanged for everyone.
| Test | Result |
|---|---|
| Depth guard on a negation test | 53.7% right without the guard, 99.9% with it, at 55.8% of the layer work |
| Tiers placed by use, against beads placed at random | 55.8% of the layer work, against 83.0% |
| Code length in a toy language of 128 beads | 4.66 bits per bead, against 7.00 fixed (4.52 is the best possible) |
| The margin rule for moving tiers | Tier moves over 12 periods fell from 186 to 12 |
| Client and server dictionaries, one message lost | 899 messages decoded right and 0 wrong with check values |
| Tier depths put onto SmolLM2-135M | Read 1.31 times as fast at 50.5% of the layer work, 100% on the negation test |
We then put the tier depths onto an existing open model, with a short tune-up.
| Test | Result |
|---|---|
| Reading a long prompt | 1.41 times as fast at 16,384 tokens, 1.47 times at 65,536 |
| Same next token as the original model | 93.5% of the time, at 63.9% of the prompt’s layer work |
| Hidden needles found, and negation questions | 18 of 18, and 60 of 60 |
| GSM8K | 95.0%, against 93.9% for the original |
| Code length on 729,930 held-out tokens | 12.1 bits per token, against 18 fixed (33% shorter) |
| Narrower embeddings for rare tokens | 73.2% of the input embedding table removed, KL 0.009 at full depth before any training |
I want to be upfront about this one. On Qwen3.5-9B, a shuffled tag scored the same as the real tag (85.3% against 85.7%), and random depths that kept the guard scored about the same too. In that test the depth guard did the real work, and the tier depths added nothing we could measure beyond it. So the guard is well supported, and “frequency should set depth” is still an open question on mid-size models. The models also stayed weak at adding numbers taken from a long document.
Shorter codes alone do not make a model faster. The speed comes from fewer layers per bead, and the tests above cover reading the prompt, not writing the answer.
Variable-length codes, early exit, adaptive embedding sizes and answer caches all exist. The part we think is new is tying them to one tag on the token itself, and letting tokens move between tiers while the model is in use.
Hard pushback is welcome. Thanks!