cd /news/large-language-models/dynamic-beads-one-tag-per-token-sets… · home › topics › large-language-models › article
[ARTICLE · art-177981] src=discuss.huggingface.co ↗ pub= topic=large-language-models verified=true sentiment=· neutral

Dynamic Beads: one tag per token sets code length, embedding size and layer depth. 1.4x faster prompt reading on Qwen3.8-27B

Benny Labs Foundation published a design called Dynamic Beads that assigns each token a short tier tag setting its code length, embedding size and layer depth, reporting 1.41x faster prompt reading at 16,384 tokens and 1.47x at 65,536 when the tier depths were applied to an existing open model. The foundation reported that a depth guard raised accuracy on a negation test from 53.7% to 99.9% at 55.8% of the layer work, and that use-placed tiers cost 55.8% of the layer work versus 83.0% for randomly placed beads. In a test that went against the design, a shuffled tag scored 85.3% against 85.7% for the real tag on Qwen3.5-9B, which the foundation said left "frequency should set depth" an open question on mid-size models.

recommendation

Apply a depth guard that raises layer depth for negations, numbers, logical operators and low-confidence tokens before relying on frequency-based tier depths; the guard alone reached 99.9% on the negation test at 55.8% of the layer work.

more in playbook: Inference and self-hosting
read4 min views8 publishedNov 29, 2026

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!

── more in #large-language-models 4 stories · sorted by recency
── more on @benny labs foundation 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/dynamic-beads-one-ta…] indexed:0 read:4min 2026-11-29 · —