# Zyphra describes top-p tree routing for query retrieval

> Original title: During generation, each query starts at the top of the tree and recursively follows promising branches to the original keys.

- Source: Zyphra
- Published: 2026-11-02T22:04:53.000Z
- Bad Influence: https://badinfluence.news/items/qhsb9ua0zzrzdexxxalyovyum
- Original: https://x.com/ZyphraAI/status/2117377431065727233

## Summary

Zyphra says each query starts at the top of the tree and recursively follows promising branches down to the original keys during generation. It adds that top-p routing adapts to query complexity, exploring few branches for precise lookups and more for complex queries, whereas top-K routing must discard evidence as context grows.

## Post

During generation, each query starts at the top of the tree and recursively follows promising branches to the original keys.

While top-K routing must discard evidence as context grows, top-p adapts: precise lookups explore few branches, but complex queries can explore more.

[Video](https://badinfluence.news/api/img-proxy?u=https%3A%2F%2Fpbs.twimg.com%2Famplify_video_thumb%2F2117373382790692864%2Fimg%2FZ2JK7frjxyyHd-Q_.jpg&mode=thumb&exp=1793923200&sig=6b8a435071ea7fdd)
