The efficient frontier of LLM inference baseten.co · 8 points · 0 comments · HN ...
HN Best 200 @best
The efficient frontier of LLM inference baseten.co · 8 points · 0 comments · HN thread
TL;DR Baseten's blog post explains the 'efficient frontier' idea from economics as applied to LLM inference. It separates techniques that trade one metric against another (such as latency versus throughput) from techniques that push the whole frontier outward, creating more efficiency to allocate.
- Inference tradeoffs are mostly latency versus throughput, which sets cost, but can also be quality versus throughput (quantization, distillation, pruning) or intelligence versus speed (reasoning level).
- Batch size is the simplest lever: small batches give good per-user latency but high cost per token; larger batches improve throughput and lower cost.
- Tensor parallelism favors latency, while wide expert parallelism and attention data parallelism favor throughput.
- Quantization (including MXFP4 and NVFP4) pushes the frontier out, often with little quality loss, though the quality-efficiency tradeoff is jagged.
- Speculative decoding has shifted from a latency-throughput tradeoff to a source of real efficiency gains, especially for code generation. P/D disaggregation lets prefill and decode workers be tuned separately.
- The author argues that the frontier is jagged, so configurations must be found empirically through sweeps, and that gains from hardware and software compound.
Discussion The story has 8 points and no comments yet, so there is no discussion to summarize.
#LLMInference #Quantization #Batching #Parallelism #SpeculativeDecoding #Baseten