AI Signal 100
Shopify compresses LLM system prompts into learned gist tokens reducing latency and GPU use
Shopify’s gisting technique replaces long LLM prompts with learned gist tokens to cut inference cost and latency without retraining the model.
Engineers running high-volume LLM inference can reduce GPU allocation and latency by compressing prompts into learned tokens instead of summarising them. The technique is additive to existing optimisations such as prefix caching.
Written by elseif from the cluster below · every claim links back to a sourceThe three things worth knowing
Gisting compresses a 6000-token prompt into 1500 gist tokens without degrading prediction quality.
Median time-to-first-token drops from 438 ms to 354 ms and end-to-end latency from 6.8 s to 4.2 s.
Throughput rises from 20.2 to 23.4 queries per second, allowing fewer GPUs to serve the same load.
THE CLUSTER
↗