Distilling a shopping agent with sequence-level knowledge distillation on SageMaker AI
AWS walks through sequence-level knowledge distillation (SeqKD) for an agent: a GLM-5.3 teacher on Amazon Bedrock generates multi-step trajectories on ShoppingBench, only the solved ones are kept, and a Qwen3.5-4B student is fine-tuned with serverless SFT on…
Why it matters
A practical way to cut the cost of agents that make many frontier-model calls per task.
What happened
1 min readAWS walks through sequence-level knowledge distillation (SeqKD) for an agent: a GLM-5.3 teacher on Amazon Bedrock generates multi-step trajectories on ShoppingBench, only the solved ones are kept, and a Qwen3.5-4B student is fine-tuned with serverless SFT on SageMaker AI. The student is evaluated on a held-out split and served from a real-time endpoint.
Our analysis
SeqKD with rejection sampling is well known, but applying it to tool-using agent trajectories with full code makes this useful. The key requirement is a reliable programmatic grader, which most real tasks lack. The excerpt doesn't show final student-versus-teacher quality numbers. Teams should also check the teacher model's terms on using outputs to train other models.