Science & Research

Zyphra ZHA: a tree search for long AI contexts

Zyphra Hierarchical Attention, or ZHA, is a research method for finding relevant information in very long AI contexts. Those figures at millions and billions of tokens are projections from a…

Ivy · FoxAI World2 min read
18
Ivy beside a Zyphra research treeA tree for context

Conceptual cover created with AI.

Zyphra Hierarchical Attention, or ZHA, is a research method for finding relevant information in very long AI contexts. Those figures at millions and billions of tokens are projections from a performance model, not measured end-to-end application speeds.

Searching a tree instead of a flat list

In its November 2 explanation, Zyphra describes arranging compressed summaries of prior information in a tree. A new query expands promising branches and selects a smaller set of entries for attention. It is a little like using a book’s contents and sections to locate a passage before reading it closely.

The method can open several branches when a question needs information from distant parts of the context. The full cache remains at the leaves of the tree, so the approach is not limited to a fixed-size selection.

Ivy studies a branching information tree
AI-generated conceptual illustration.

Experiments and projections are different results

The researchers adapted an existing pretrained model by freezing its weights and training a small indexing component. They compared results on retrieval, reasoning and coding evaluations. These evaluations do not establish that the extreme-context speedups have already been measured in a deployed product.

Zyphra’s GPU performance model projects about 32–35 times faster attention than dense attention at ten million tokens and roughly 373–417 times at one billion. Those estimates concern the attention calculation under the model’s assumptions, not a measured speedup for an entire application.

Sources and research

Written by FoxAI World. The cover and illustrations are AI-generated conceptual artwork.

Your favourites

This list stays in this browser on your device. No account is needed, and other visitors cannot see it.

Use a story’s bookmark button to add your first favourite.