HN
Today

Amazon saves millions by replacing Sonnet 4.6 with Strands Decider

Amazon saved millions by swapping Claude Sonnet 4.6 for their own Strands Decider to classify internal tickets. This move slashed costs by 98% while maintaining performance, highlighting the effectiveness of specialized decision models over general-purpose LLMs for specific tasks. Hacker News appreciates the practical cost-saving measures and the ongoing debate about the appropriate application of large AI models.

113
Score
27
Comments
#1
Highest Rank
10h
on Front Page
First Seen
Nov 10, 6:00 AM
Last Seen
Nov 10, 3:00 PM
Rank Over Time
1111112323

The Lowdown

Amazon's vast internal ticketing system, handling everything from customer escalations to automated alarms, relied on Claude Sonnet 4.6 for efficient labeling. While Sonnet offered a reasonable balance of intelligence and cost, its enormous scale of usage led to significant token expenses. Two Amazon engineers successfully swapped this out for Strands Decider, a specialized decision model, achieving dramatic cost reductions.

  • The task involved classifying diverse tickets into one of 20 categories, a perfect fit for a decision model which outputs probabilities for a fixed set of options.
  • They deployed Strands Decider (specifically the E4B Gemma 4 build) on AWS SageMaker instances, integrating it with standard AWS services like SQS and Lambda.
  • A crucial step was a three-way BEDROCK/DUAL/DECIDER switch, allowing them to run both Sonnet and Strands Decider in parallel on live traffic, comparing results before fully migrating.
  • Strands Decider drastically reduced average call time by 78% (from 4,215ms to 897ms) and total tokens per ticket by 70% (from 6,724 to 2,010), mainly due to a shorter prompt and single output.
  • The cost savings were immense: Sonnet cost approximately $0.0222 per ticket, while Strands Decider cost about $0.0005 per ticket, a 98% reduction that translates to millions of dollars annually.
  • Key takeaways include the suitability of decision models for closed-choice, high-volume classification, and the invaluable insight gained from A/B testing with real traffic via a robust switch.

This case study powerfully demonstrates that for specific, high-volume classification tasks, purpose-built and optimized decision models can drastically outperform and be far more cost-effective than general-purpose LLMs, signaling a crucial evolution in deploying AI solutions in production.

The Gossip

The Classifier Comeback: Full Circle AI

Many commenters observe a cyclical trend in AI development: from building efficient classifiers, through the hype of 'machine gods' (LLMs) that do everything, and now back to realizing the value of efficient, specialized classifiers. The discussion often highlights how LLMs facilitate rapid prototyping for non-ML experts but become prohibitively expensive and prone to issues (like hallucinations) in production, necessitating a return to more traditional or optimized ML pipelines. Some argue that LLMs initially solved the data-gathering/training hurdles that older models faced.

Million-Dollar Mysteries: Scale and Savings

Users expressed initial surprise and curiosity regarding the sheer scale of Amazon's internal ticketing system required to achieve 'millions' in annual savings from a 98% cost reduction per ticket. While some initially thought of only customer support tickets, the article's broader definition (including alarms, security findings, and capacity requests) made the immense volume—potentially upwards of 92 million tickets per year to save $2 million—feel more plausible, underscoring Amazon's colossal operational footprint.

LLMs: Prototype Powerhouses or Production Pitfalls?

A significant debate emerged around *why* LLMs were initially used for a simple classification task when simpler, cheaper methods are available. Commenters posited that LLMs lower the barrier to entry, enabling developers without deep ML expertise to quickly prototype solutions. However, this convenience often leads to expensive, inefficient, and less reliable production systems. The consensus leans towards LLMs being excellent for initial exploration and proof-of-concept, especially in data-scarce scenarios, but specialized models are crucial for scaled, cost-effective production.

Product Placement or Practical Proof?

Some commenters noted that while the article details a genuine internal Amazon optimization, it also serves as a compelling case study and advertisement for Strands Decider, an open-source model developed by AWS. This observation led to discussions on whether the narrative was purely objective or subtly promoting an AWS product, highlighting the dual nature of such internal success stories when shared publicly by the originating company.