Build efficient agents with knowledge distillation on Amazon SageMaker AI
AWS•How-to••by Giuseppe Zappia, Ankita Agarwal, Amin Dashti and Michael Oguike•AWS Artificial Intelligence Blog
Agentic assistants built on frontier models run a multi-step tool loop, and paying frontier prices on every step is hard to sustain at production scale. This post shows how to use sequence-level knowledge distillation (SeqKD) to transfer a frontier teacher’s agentic behavior into a small, lower-cost student on Amazon SageMaker AI.
A step-by-step pipeline distills a frontier teacher's shopping-agent trajectories into a 4B Qwen3.5 student via SeqKD, filtered by a task scorer, trained serverlessly on SageMaker AI and served as a LoRA adapter.
Who it is for
Teams running multi-step agents on a frontier model who want lower per-task cost by moving to a small hosted model.
Key points
Only trajectories that solve the ShoppingBench task are kept (rejection sampling); the post reports the 4B student at 0.541 average ASR versus 0.511 for the sampled teacher on the held-out split.
Keeping the teacher's reasoning with tool calls adds about 13 points ASR versus tool calls alone (0.415 without reasoning).
IFEval drops about 6 to 8 points, which the post calls the expected cost of specialization.
The post gives no per-task cost or latency figures; it says the reader must measure on their own workload.
AI:AWS's Innovation Center describes a model customization approach: start from business goals, try simpler methods like prompting and RAG first, then move to fine-tuning, distillation or deeper training.
AI:Exowatt fine-tunes small Qwen3 models on SageMaker AI serverless customization for edge alarm triage and cloud energy-market analysis, reporting higher macro-F1 than frontier models at lower cost.
AI:EXL built an AI document processing pipeline on AWS that extracts, summarizes and answers questions about medical records, using a fine-tuned insurance LLM on SageMaker AI and Bedrock models.