Beyond BotResearch
Research / Model architecture

KALEIDOS.

How much attention does a language model need? KALEIDOS separates information transport across long contexts from the problem of executing a sequence of operations.

Model architecture

Experiment log

What changes with the mechanism?

Reported measurements from controlled experiments, not live inference.

Perplexity (lower is better)

With matched parameters and training tokens, a small number of dense attention layers yields lower perplexity than the RoPE baseline.

RoPE
102.5
Hybrid
88

Track 1 · Long context

Transport is not retrieval.

A causal graph connects each token to fixed offsets in its past. Each offset learns its own directed transport. With fixed offsets, transport costs grow linearly with sequence length and possible information paths can be inspected in advance.

Fixed paths do not reliably find content: at 2,048 tokens the pure sheaf scored 121 perplexity versus roughly 102. One or two central attention layers enable content-based access. At width 1,024 the two-layer hybrid retained its advantage to 32k tokens; training throughput at 16k was 1.77× at comparable memory use.

Track 2 · Gates 0–2b

A cursor for repeated steps.

Across 2,080 algorithmic worlds, RoPE and the hybrid struggled similarly with deep composition. A recurrent core of about 0.7M parameters replaces a single pass with repeated reads: a local encoder binds keys to values, slots hold intermediate results and a differentiable cursor moves left, stays or moves right.

Gate 1: after training at depths 1–3, specialized forward and backward cores solved depths 4, 6 and 8 with eight steps. Disabling cursor movement or cross-attention reduced accuracy to roughly 12%. On frozen GPT-2 features, forward composition transferred, but state tracking at depth two and beyond did not.

Gate 3

Replay verified actions.

Workflow prototypes check proposed actions before execution. Unknown tools, paths outside the workspace and unmet write conditions are blocked. A verified sequence can be replayed without a model call only when the rules and verification verdict agree.