Zyphra uses tree search to reduce the keys AI models read in long contexts

Executive Briefing
“Zyphra has introduced a sparse attention method that uses tree search to choose which parts...”
Key Takeaways
- 1.Zyphra calls the new method Zyphra Hierarchical Attention, or ZHA. It retains the full key-value cache while a search tree determines which keys each query reads.
- 2.ZHA groups adjacent keys and creates a summary key for each group. For a query, it scores upper-level nodes and expands only selected branches until it reaches the original keys.
- 3.In the reported Qwen3.6-35B-A3B conversion, the base model stayed frozen and ZHA added 81,920 trainable parameters. The Qwen and Nemotron training runs used 3.98 billion tokens at a 32K context length.
- 4.In Zyphra’s self-reported results, the deep-tree variant scored 63.4% on LongBench v2 versus 58.0% with dense attention, while reading about 1.1% of keys in that test.
- 5.The projected 1.93-to-2.28-fold gain over dense attention at 256K context comes from a performance model, not a runtime measurement. Zyphra has not released optimized kernels for the method.
Zyphra has introduced a sparse attention method that uses tree search to choose which parts of a context a model reads, rather than scanning every stored key. Its reported tests show promise for long contexts, but the speed gains remain estimates rather than measurements from optimized kernels.
How the tree selects keys
Zyphra calls the new method Zyphra Hierarchical Attention, or ZHA. It retains the full key-value cache while a search tree determines which keys each query reads.
ZHA groups adjacent keys and creates a summary key for each group. For a query, it scores upper-level nodes and expands only selected branches until it reaches the original keys.
In the reported Qwen3.6-35B-A3B conversion, the base model stayed frozen and ZHA added 81,920 trainable parameters. The Qwen and Nemotron training runs used 3.98 billion tokens at a 32K context length.
In Zyphra’s self-reported results, the deep-tree variant scored 63.4% on LongBench v2 versus 58.0% with dense attention, while reading about 1.1% of keys in that test.
The projected 1.93-to-2.28-fold gain over dense attention at 256K context comes from a performance model, not a runtime measurement. Zyphra has not released optimized kernels for the method.
Potential benefit and its conditions
If branch selection remains inexpensive in a real implementation, avoiding a score for every key could make long-context processing more efficient. The approach does not remove the cost of storing the full key-value cache.
The LongBench v2 result shows that reading fewer keys need not lower the score on a particular test. It does not establish that the same degree of selectivity will preserve quality across models and tasks.
What still needs testing
The real latency improvement with optimized kernels remains unknown. The stated speed gains are projections.
Performance across other architectures needs further testing. In the results cited by the article, the deep-tree variant on Nemotron-3.5-Lightning-30B-A3B scored 25.3 points below dense attention on RULER-13.







