Every token can still look back at individual tokens.
Bolt retains causal softmax over a token-indexed history rather than collapsing the entire past into one recurrent state.
TOKEN × TOKENTOKEN-TO-TOKEN ATTENTION · COMPACT CACHE
Keep token × token attention.
Carry 73% less context memory.
Bolt is a compact variant of causal attention for models that still want every previous token to remain individually addressable. Instead of carrying a conventional full-width K/V pair for every cached token, Bolt stores a narrower learned latent record and a scale value.
The result is a different trade-off:attention-style access to history with a much smaller persistent cache footprint.
[ THE IDEA ]
During autoregressive generation, conventional attention stores keys and values for previous tokens. That cache grows with context. Bolt keeps the same idea of querying individual historical tokens, but makes each stored record substantially smaller.
Bolt retains causal softmax over a token-indexed history rather than collapsing the entire past into one recurrent state.
TOKEN × TOKENAt FP16 with latent width 16 and head width 32, Bolt's compact C + ρ cache uses 73.44% less persistent storage per head/token.
73.44% LESS CACHESaved cache capacity can become room for model weights, a longer prompt, larger batch, more concurrent sessions, or simply a smaller device.
MORE HEADROOMDecode is often memory-bound. A smaller persistent representation can reduce capacity and bandwidth pressure, especially as context grows.
EDGE-ORIENTED[ MEMORY / ATTENTION ]
This comparison is raw persistent-cache payload, not total GPU allocation. Temporary buffers, weights, activations and framework workspaces are separate.
With head dimension 32, two FP16 vectors require 128 bytes per head/token.
A 16-wide FP16 latent vector plus one FP16 scale requires 34 bytes per head/token.
Not by deleting history. By representing each historical token more compactly.
Bolt cache / layer
vs 2.00 MiB K/VBolt cache / layer
vs 32.00 MiB K/VBolt cache / layer
vs 128.00 MiB K/VBolt is not constant-memory attention.Its cache still grows linearly with context because it preserves a token-indexed history. The advantage is a much smaller slope.
[ QUALITY / BEHAVIOR ]
Bolt is aimed at the space between standard attention and recurrent-state models: keep explicit causal attention over individual history positions, but learn a narrower representation for what each position stores.
For training and full-sequence processing, the Bolt equation can be expressed directly through scaled dot-product attention. This preserves Bolt's causal softmax exactly; it is not an approximation of Bolt's own attention equation.
Smaller cache does not automatically guarantee identical language-model quality. Latent width is a learned bottleneck and must be validated on the target model and dataset. Bolt remains aResearchcomponent while larger-scale quality parity is being established.
[ WHY EDGE ]
Phones, laptops, robots and embedded systems have tighter RAM, bandwidth, thermal and power budgets than datacenter accelerators. Bolt's value grows when context memory competes directly with the model itself.
A smaller per-token cache can let the same memory budget hold more history before cache capacity becomes the limiting factor.
MORE CONTEXT / SAME RAMReducing context storage leaves more memory available for weights and runtime buffers, making attention-based SLMs easier to explore on consumer hardware.
MORE ROOM FOR THE MODELAutoregressive decode is frequently memory-bound. Smaller cached records mean less persistent context data to read and maintain.
LESS DATA MOVEMENTLess memory traffic can improve efficiency, but actual energy savings depend on hardware and implementation and should be measured end to end.
MEASURED, NOT ASSUMED[ WHERE BOLT FITS ]
Bolt is most interesting when token-level access matters, but memory is becoming the constraint that decides context length, concurrency or whether the model fits on the device at all.
Keep attention-like access to conversation history while making cache growth easier to accommodate on laptops and mobile-class hardware.
Preserve explicit sequence history for commands, observations or action tokens where edge memory and power budgets are limited.
Use more of the device's memory budget for the model itself instead of spending it on a conventional full-width K/V history.
Explore longer context or higher concurrency with a lower per-token persistent memory cost.
[ RESEARCH STATUS ]
Research status is intentional. Bolt already has a defined compact-attention equation and cache format; the remaining work is to prove the quality/efficiency trade-off across larger models and finalize the best decode implementation.
C + ρ storage gives the 73.44% raw persistent-cache reduction in the validated latent-16/head-32 FP16 configuration.
Full-sequence Bolt can map to SDPA using K=ρC and V=C without changing Bolt's mathematical output definition.
Quality must be tested model by model. The goal is attention-class quality with a smaller context-memory footprint.
Decoder optimization is still being refined, so the public page avoids presenting experimental decode speed as a settled product claim.
Mobile and embedded evaluation should measure actual latency, RAM, bandwidth, thermals and joules per token—not infer them from cache size alone.
Width can trade memory for representational capacity. The right operating point depends on model scale, task and quality target.
[ QUICK START ]
Choose the model width, number of heads and latent width. A smaller latent reduces the persistent cache payload, while the model still attends over individual cached positions.
from mlbricks import Bolt
bolt = Bolt(
d_model=384,
num_heads=6,
latent_dim=32,
position="rope",
)
y = bolt(x)[ BOLT ATTENTION ]
Bolt is for models that still want explicit causal attention but need a more memory-conscious path toward long-context and on-device intelligence.