Amazon saves millions by replacing Sonnet 4.6 with Strands Decider strandsagents...
HN Best 200 @best
Amazon saves millions by replacing Sonnet 4.6 with Strands Decider strandsagents.com · 155 points · 46 comments · HN thread
TL;DR An AWS blog post describes how Amazon engineers replaced Claude Sonnet 4.6 for labeling internal tickets (20 categories) with Strands Decider, a small decision model that returns probabilities over a fixed set of options instead of generating text. The authors report about 98% lower cost per ticket (roughly $0.0222 down to about $0.0005) with comparable accuracy, and say it saves millions of dollars a year. The post also presents the rollout method: a three-way AppConfig switch that ran both models side by side.
- Ticket labeling moved from Sonnet 4.6 (about 6,724 tokens per ticket, JSON output) to Strands Decider E4B, which outputs a single choice plus confidence with about 2,010 tokens per ticket.
- Average call time fell from 4,215 ms to 897 ms, and average Lambda duration dropped 74% on the day Sonnet was turned off.
- Cost estimate: about $22,200 per million tickets for Sonnet versus about $500 per million for Decider on an ml.g5.xlarge SageMaker endpoint at list prices.
- A three-way switch (BEDROCK, DUAL, DECIDER) in AWS AppConfig let the team run both models on live traffic and judge disagreements; rollback took a 45-second config change.
- The team found that JSON key order changed output probabilities by up to 0.19, so every request now uses sorted keys.
- The authors say the approach only fits closed-choice tasks with high volume and a catalog that doesn't change often, and that the 4,096-token window forced rewriting labels as short criteria.
Discussion The thread mostly treats the post as a reminder that classical or small models often beat LLMs for classification, with many commenters recalling older SVM and ML pipelines. A recurring side debate is whether this is useful engineering or a promotional case study for AWS's open-source Strands tooling, and several readers question the savings math and the scale implied by 'millions'. The tone is skeptical but curious rather than hostile, with some joking about how many tickets Amazon generates.
- LLMs are overused for classification; smaller specialized models make more sense (many): Many commenters argue that using an LLM in the hot path of a simple classification task is wasteful, and that SVMs, BERT or similar models do the job faster and cheaper. Several cite their own past systems built this way.
- LLMs are useful for quickly prototyping classifiers without domain data (some): Some respond that LLMs let non-specialists start classifying immediately and change categories without retraining, with optimization to a smaller model coming later. They see the LLM as a bootstrap step.
- Post reads as an AWS advertisement (some): Several commenters note the savings are a case study for AWS's open-source Strands project and question the claimed 'millions' and the 2% of savings implied for the tooling vendor. Others point out that Strands Decider is a model, not an agent SDK, to clarify confusion.
- Cheap prototypes often become costly production tarpits (a few): A founder of a dev-tools company argues that LLM prototypes that look cheap become expensive and unreliable at production volume, and that decision models are promising but hard to work with for complex logic.
- Question why they chose Sonnet and not a cheaper or newer model (a few): Some ask why Sonnet 4.6 was used at all, and one commenter guesses that missing batch API support for newer Anthropic models on Bedrock was the reason they stayed on it.
Links from the comments