AWS: Combining Knowledge Distillation with Medusa Brings a 1.1-Billion-Parameter Model Close to 70-Billion-Parameter Quality, Accelerating Inference by 10 to 20 Times
The AWS and Booking.com teams have integrated knowledge distillation (compressing model scale) with Medusa parallel decoding (reducing sequential generation steps) into a unified training pipeline. This enables the 1.1-billion-parameter TinyLlama to approach the quality of the 70-billion-parameter Llama-3.1 across three travel product features while achieving 10 to 20 times faster inference.
Large language models face a core contradiction in travel platforms: larger models yield more accurate answers, but inference latency and costs also rise. Booking.com's AI trip planning assistant must extract user preferences from dialogue in under one second; smart filters need to convert natural-language searches into structured filtering conditions in real time; and accommodation description generation must control costs across millions of listings. These scenarios' demands on latency and cost make deploying 70-billion-parameter-level models directly unfeasible.
In a technical blog post published in October 2026, Daniel Zagyva, Senior Machine Learning Engineer at Amazon Web Services (AWS), and Laurens van der Maas, Senior Applied Scientist at AWS, demonstrated how to integrate two orthogonally optimized techniques into a single pipeline. The first is knowledge distillation: using a large 'teacher' model to generate predictions on labeled and unlabeled domain data, then training a small 'student' model on these predictions, allowing the student to inherit the teacher's knowledge with significantly reduced parameters. The second is Medusa: attaching multiple prediction heads to a base model, where each head predicts a subsequent token in parallel, transforming sequential token-by-token decoding into multi-token parallel decoding, thereby leveraging GPU parallel computing capabilities to reduce inference steps.
These two techniques operate on different dimensions. Knowledge distillation reduces the computational cost per token (because the model is smaller), while Medusa reduces the number of sequential steps required to generate a text segment (because multiple tokens can be predicted simultaneously). Their acceleration effects are multiplicative rather than substitutive: the distilled model itself is already about 6 times faster, and adding Medusa heads on top provides an additional 2 to 3.6 times speedup, resulting in a combined 10 to 20 times acceleration.