Amazon saves millions by replacing Sonnet 4.6 with Strands Decider strandsagents...
HN Best 30 @best30
Amazon saves millions by replacing Sonnet 4.6 with Strands Decider strandsagents.com · 314 points · 109 comments · HN thread
TL;DR Amazon engineers working on an internal ticketing system replaced Claude Sonnet 4.6 with Strands Decider, a small fine-tuned decision model (Gemma E4B base) that outputs a probability per label instead of generating text. The post reports 70% fewer tokens, 78% lower average call time, and about 98% lower per-ticket cost, which it says will save millions of dollars a year. The article is published by AWS on its own Strands blog, so it doubles as a product showcase.
- Sonnet 4.6 labeled tickets into 20 categories with a long system prompt, generating JSON for every ticket.
- The replacement, Strands Decider E4B, returns a probability per option plus a confidence score rather than generating text, and was run on SageMaker ml.g5.xlarge instances.
- Measured per ticket: Sonnet used 6,724 tokens and 4,215 ms on average; Strands Decider used 2,010 tokens and 897 ms.
- Estimated cost is about $22,200 per million tickets for Sonnet versus about $500 for Strands Decider, based on list prices and instance headroom.
- A three-way AppConfig switch (BEDROCK, DUAL, DECIDER) let the team run both models on live traffic and roll back in about 45 seconds.
- The team found that JSON key order changed output probabilities by up to 0.19, so they now sort keys before sending requests.
Discussion The thread mixes skepticism about the article's framing with a longer debate about when classical classifiers beat LLMs. Many commenters argue that LLMs are a convenient first step for labeling and that cheap specialized models are the right end state, while others say LLMs are simply easier for non-experts. A substantial group notes the post reads like an AWS advertisement, and several question why the team did not compare alternatives like Haiku or other small models. The mood is mixed: amused and a bit cynical, with some genuine interest in the technical details.
- LLMs are fine for prototyping, but use cheap specialized models in production (many): Commenters argue that LLMs let teams build a classifier in minutes and generate labels, but once the system stabilizes, distilling into a small model is the sensible move. Several cite this as the real lesson of the post.
- Using an LLM as a classifier at inference time is wasteful (some): Some argue that classic methods like SVMs or BERT classifiers do the job in milliseconds with far less cost, and that putting an LLM in every call is a bad habit driven by hype.
- Post is essentially an AWS advertisement (many): Several readers point out that Strands is an AWS product and the post is a case study for it. They are skeptical of the savings framing and the claim of millions saved, noting the scale is not given.
- Why not try Haiku or a cheaper model instead (some): Commenters ask why the team did not simply switch to a smaller hosted model, which would have been a one-line change. Replies suggest Sonnet was chosen when smaller options were weaker, and the decision model did not exist yet.
- Non-LLM ML is still widely used behind the scenes (a few): Some point out that banks, medicine, speech recognition and spam filtering still rely on classical ML, so LLMs have not replaced the field, and consumers just do not see it.
- Sorting JSON keys changing answers is a known LLM issue (a few): A few commenters say order sensitivity in LLMs is basic knowledge and not a surprising finding, while others ask whether it makes LLMs unreliable.
Links from the comments
- Earlier Strands blog post introducing the Decider model, which explains its architecture (Qwen or Gemma torso with a new head).
- Linnaeus paper on an SVM-based log and ticket classification pipeline, cited as an earlier example of classical classifiers.
- Post measuring how often LLM answers change when option order changes, cited as prior evidence of order sensitivity.
#LLMCost #DecisionModels #AWS #TextClassification #AIInfrastructure