← Tue, Nov 10 digest

Amazon saves millions by replacing Sonnet 4.6 with Strands Decider

read article ↗ hn thread ↗

Amazon cut ticket-labeling costs by 98% and saved millions annually by replacing Claude Sonnet 4.6 with Strands Decider, a specialized decision model running on AWS SageMaker.

read it It provides concrete benchmarks, architectural details, and a pragmatic migration pattern for replacing expensive generative LLMs with decision models in classification tasks.

summary

Amazon teams replaced Claude Sonnet 4.6 with Strands Decider, a fine-tuned decision model running on AWS SageMaker, to automate high-volume internal ticket categorization. By constraining the model to output probability scores over 20 categories rather than generating JSON text, they reduced token usage by 70% and latency by 78%. The migration cut per-ticket costs from $0.0222 to $0.0005, saving millions annually without sacrificing accuracy. A safe three-way production switch enabled parallel evaluation before full cutover.

key points

  1. Replacing generative text output with a decision model dropped total token usage by 70% and latency by 78%.
  2. Per-ticket costs dropped from $0.0222 with Sonnet 4.6 to roughly $0.0005 using a fine-tuned decision model on SageMaker ml.g5.xlarge instances.
  3. A three-way AWS AppConfig switch (BEDROCK, DUAL, DECIDER) allowed real-time parallel testing and zero-downtime cutover.

who should read it

Backend engineers and machine learning practitioners optimizing production LLM costs for classification workloads.

discussion positive

consensus

Commenters observe a healthy industry swing away from using expensive frontier generative models for simple classification tasks, returning to specialized smaller models.

pushback

Some question why smaller native models or classical NLP methods like BERT weren't tested or used initially before relying on expensive frontier models.

best comment by armcat ↗

About six years ago we built a ticket classification/routing model and pipeline [1]. The initial version was trained using SVMs, it took a couple of minutes to train, and the ticket classification was just a few milliseconds. It's so fascinating to watch how the field moved over to LLMs, and then back to faster/cheaper classifiers again.

[1] "Linnaeus: A highly reusable and adaptable ML based log classification pipeline", https://arxiv.org/abs/2103.06927

NOTE: the work was actually accepted at the International Conference on Software Engineering (ICSE) in 2021.

It provides historical context on how classification pipelines have evolved from classical ML models to LLMs and back to specialized fast classifiers.

Generated by an LLM from the article and thread. Check the sources before relying on it.