FlashTrie Accelerates GPU-Based Constrained Beam Search for Retrieval.

Dakshitha Anandakumar, Anurag Mukkara, Wenxiang Hu, Jiusheng Chen, M Akash Kumar, Ting Ye, Qiang Lou, Jian Jiao· July 14, 2026 View original

Summary

FlashTrie is a GPU-accelerated system that optimizes constrained beam search for generative retrieval, crucial for applications like sponsored search. It uses an integer-aware succinct trie layout and a cooperative CUDA kernel to achieve up to 24x speedup over CPU baselines, enabling larger beam sizes and delivering significant revenue lift in online experiments.

Researchers have introduced FlashTrie, a GPU-accelerated system designed to significantly speed up constrained beam search in generative retrieval applications. This is particularly vital for scenarios like sponsored search, where generated document identifiers must precisely match a predefined library. Traditional CPU-based implementations of trie-constrained beam search face bottlenecks due to limited parallelism as beam width increases. FlashTrie overcomes this by employing an integer-aware succinct trie layout that compresses memory footprint, keeping the entire index in GPU high-bandwidth memory. It also features a cooperative CUDA kernel that handles beam expansion, validation, and pruning entirely on-device, eliminating per-step host orchestration. By replacing irregular CPU-style lookups with GPU-aware parallel primitives, FlashTrie improves warp utilization and reduces divergence. These innovations result in a dramatic reduction in decoding latency—under 3 ms for 800M keywords with beam widths up to 1000—and a 24x speedup over optimized CPU baselines. This enables up to 5x larger beam sizes in latency-critical applications, leading to a statistically significant +0.71% revenue lift in a large-scale online A/B experiment on a commercial search engine.

Why it matters

Engineering and product teams can leverage FlashTrie to dramatically improve the performance and scalability of generative retrieval systems, leading to faster search results, higher relevance, and increased revenue in applications like e-commerce and advertising.

How to implement this in your domain

  1. 1Evaluate existing generative retrieval systems for performance bottlenecks in constrained decoding.
  2. 2Investigate the FlashTrie architecture and its GPU-optimized components for potential integration.
  3. 3Develop or adapt existing trie structures to the integer-aware succinct layout for GPU memory efficiency.
  4. 4Implement or integrate the cooperative CUDA kernel for on-device beam expansion, validation, and pruning.
  5. 5Conduct A/B testing in production environments to measure the impact on latency, throughput, and business metrics like revenue lift.

Who benefits

E-commerceAdvertisingSearch EnginesInformation RetrievalCloud Computing

Key takeaways

  • FlashTrie is a GPU-accelerated system for constrained beam search in generative retrieval.
  • It achieves up to 24x speedup over CPU baselines by optimizing trie layout and CUDA kernels.
  • The system enables significantly larger beam sizes for latency-critical applications.
  • It delivered a +0.71% revenue lift in a large-scale commercial search engine.

Original post by Dakshitha Anandakumar, Anurag Mukkara, Wenxiang Hu, Jiusheng Chen, M Akash Kumar, Ting Ye, Qiang Lou, Jian Jiao

"arXiv:2607.10044v1 Announce Type: new Abstract: Constrained decoding is essential in generative retrieval, where document identifiers generated directly from a query must exactly match a predefined library of valid IDs. At scale, decoding is often constrained using a trie with be…"

View on X

Originally posted by Dakshitha Anandakumar, Anurag Mukkara, Wenxiang Hu, Jiusheng Chen, M Akash Kumar, Ting Ye, Qiang Lou, Jian Jiao on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses