Home / Companies / Baseten / Blog / Post Details
Content Deep Dive

Introducing RadixMLP: Intra-batch deduplication for causal transformers

Blog post from Baseten

Post Details
Company
Date Published
Author
Michael Feil
Word Count
1,863
Company Posts That Month
10
Language
English
Hacker News Points
-
Post removed?
No
Summary

RadixMLP is a technique developed to enhance the efficiency of batch inference workloads for causal transformer models by eliminating redundant computations for sequences sharing common prefixes. It leverages the position-wise nature of MLPs, LayerNorms, linear projections, and embeddings, dynamically mapping batches to a prefix trie to gather shared segments into a compressed form for computation, thus reducing redundant processing. In practice, RadixMLP has demonstrated significant speed improvements, achieving 1.44–1.59x speedups in realistic reranking workloads and up to 5x on synthetic benchmarks with longer shared prefixes, and it is integrated into platforms like Baseten Embeddings Inference. By maintaining a stateless design that operates entirely within a single forward pass, RadixMLP provides cache-like benefits without the overheads of persistent state management, making it suitable for scenarios with high prefix redundancy. Its compatibility with training and open-source release under the MIT License further enhances its accessibility and applicability for optimizing model performance in various inference tasks.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Vector Search 9 2,212 422 133 +33%
Reinforcement learning 1 122 54 33 -15%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.