Skip to content

Blog

Amazon replaced Claude Sonnet 4.6 in ticket classification and cut costs by 98%

9 min read

Cover image made from the Claude Sonnet 4.6 and Strands Decider E4B logos (Amazon, Anthropic, Strands Agents)
Cover image made from the Claude Sonnet 4.6 and Strands Decider E4B logos (Amazon, Anthropic, Strands Agents)

On November 9 (US time), two Amazon engineers published a post on the blog of Strands Agents, AWS's open-source agent project. They wrote that they had removed Claude Sonnet 4.6, which labeled tickets in an internal ticket system used by both Amazon and AWS teams, and replaced it with the decision model Strands Decider E4B. Costs fell by 98%, and they said the change saves millions of dollars in token costs a year.

The post reached the front page of Hacker News on November 10, with 220 points and 72 comments. There are many cases of a small model replacing a large one, but this time the tickets are classified by a model that cannot write text at all.

The job was to pick one of 20 labels

Work from all over the company comes into this ticket system as tickets, from customer escalations and capacity increase requests to automated alarms and security review findings. Sonnet 4.6's job was to give each incoming ticket one of 20 predefined types. Each ticket was sent with a long system prompt, and Sonnet 4.6 weighed the label list and returned its answer as JSON.

The two engineers wrote that Sonnet 4.6 was a reasonable balance between intelligence and cost, and that it did the job well for a model that had been out for nine months. But this is one of the largest internal ticket systems in the world, so the number of calls was enormous.

Decision models don't write text

A decision model takes a state, a question and a set of options, assigns a probability to each option, and returns them with a confidence score. Because the part that generates text has been removed, the answer always comes from the given options. In ticket classification, the ticket is the state and the label list is the set of options.

Strands Decider is an open-source decision model that AWS released on October 1. The first version, 2B, took Qwen3.5–2B, removed the part that generates text, and added a small head that scores the options. The announcement says models like this have been getting attention since TypeSafe AI released Jev. In September, in “An AI model that doesn't talk: Jev launches”, I covered this same approach, where the model returns a value instead of a sentence.

On October 15, four more versions based on Google's Gemma 4 were added: E2B, E4B, 12B and 26B-A4B. The Amazon team started with 2B, tested on their own tickets, confirmed that E4B was clearly better, and moved to it. They then tuned the confidence threshold for applying a label, and said E4B outperformed the Sonnet 4.6 setup in production on a held-out set of tickets.

Results of the four Gemma 4 models of Strands Decider on the 231 questions of JevBench v1, with the best value in each row highlighted in yellow (Strands Agents)
Results of the four Gemma 4 models of Strands Decider on the 231 questions of JevBench v1, with the best value in each row highlighted in yellow (Strands Agents)

The cost is about 1/44

Here are the numbers measured on the same tickets. Per call, Sonnet 4.6 took 4,215ms on average and Strands Decider E4B took 897ms. Tokens per ticket fell 70%, from 6,724 to 2,010. Output tokens went from 170 to 1. That is because the model returns only the chosen option instead of a JSON answer.

The input got smaller too. Strands Decider can read 4,096 tokens at a time, and the label descriptions used in production were longer than that on their own. So the team rewrote each of the 20 labels as a one- or two-sentence criterion, added a none-of-the-above option, and passed these in as the options. The ticket content was the same as what Sonnet 4.6 received. Only long tickets were trimmed to fit, starting with the oldest comments.

Time, tokens and cost for the two models on the same tickets, with the better value in each row highlighted in yellow (Strands Agents)
Time, tokens and cost for the two models on the same tickets, with the better value in each row highlighted in yellow (Strands Agents)

Costs were calculated at public list prices in us-east-1. Sonnet 4.6 costs $3 per million input tokens and $15 per million output tokens, which came to $0.0222 per ticket. Strands Decider E4B runs on a SageMaker ml.g5.xlarge instance at $1.408 an hour. Each request takes about 640ms, so one instance handles about 5,600 requests an hour.

With the instances fully used, 1 million tickets would cost $250, but the team said that leaving headroom for sudden spikes in requests brings the actual cost to about $500. Compared with about $22,200 for Sonnet 4.6, that is about 44 times cheaper. This calculation leaves out Lambda costs, and Lambda's run time per ticket also got shorter.

Average Lambda execution time on the day Sonnet 4.6 was switched off, down 74% from 3,312ms to 748ms (Strands Agents)
Average Lambda execution time on the day Sonnet 4.6 was switched off, down 74% from 3,312ms to 748ms (Strands Agents)

The graph from the day Sonnet 4.6 was switched off shows average Lambda execution time dropping 74%, from 3,312ms to 748ms. When a ticket comes in, an SQS queue triggers Lambda, and Lambda calls Strands Decider on a SageMaker endpoint. The engineers said that apart from the ticket API, everything is a standard AWS service, so other companies can build the same setup.

They ran both side by side instead of switching at once

The most useful part of the post is not the model but how they made the switch. Each time the labeling Lambda processed a message, it read one of three settings from AWS AppConfig.

  1. BEDROCK: Only Sonnet 4.6 applies labels, and Strands Decider is not called.
  2. DUAL: Both models are called at the same time. The ticket gets Sonnet 4.6's answer, and Strands Decider's answer is kept only for comparison.
  3. DECIDER: Only Strands Decider applies labels, and Bedrock is not called.

The two engineers wrote that running both models on real traffic and going through each ticket where their answers differed taught them more than any offline evaluation. They also named this switch as the part others can copy, whatever model they use. If something went wrong, a single setting could switch them back to Sonnet 4.6 within 45 seconds.

For an FDE who brings AI into client workflows, this sequence is also realistic. First, you launch quickly with a large model to get the work running. Then you validate a small model against the real requests that build up. Then you hand the work over while you can still roll back at any time.

Changing only the JSON key order shifted the answers

They also described one problem they did not expect. Sending the same content with only the JSON keys in a different order moved the probability for each option by as much as 0.19. They now sort the keys in every request before sending it. The lesson is that when you put a decision model behind an API and compare experiment results, you first need to fix the input order.

One GPU is enough to run it

Strands Decider's code, adapters and decision heads are released under Apache 2.0, along with a list of the training data. For the Gemma 4 models, you get only the adapters and decision heads, and you download the underlying Gemma 4 weights separately.

The Amazon team ran E4B on an ml.g5.xlarge with a single 24GB NVIDIA A10G, and the model used about 19GiB. Keeping one instance running for a full month costs about $1,014. The first 2B model answered in a median of about 115ms on an RTX 3090, and in about 153ms on small tasks on an M3 MacBook. It is small enough to try out on a personal PC.

They did not publish accuracy numbers

There are shortcomings too. The post only says that E4B did as well as Sonnet 4.6 and outperformed it on held-out tickets. It does not give the accuracy as a percentage or say how many tickets were tested. The savings of millions of dollars also can't be checked independently, because the ticket volume isn't disclosed. One Hacker News commenter calculated that at about $21,700 saved per million tickets, saving $2 million would require handling more than 92 million tickets a year.

It is also worth noting that the comparison was against Sonnet 4.6, a nine-month-old model. They did not compare it with newer models. The two engineers were also clear about the conditions under which this approach worked: the task was choosing one item from a fixed list, the volume was high, and response speed mattered. They said a decision model would be hard to use as a replacement if each label needs a written explanation, if the label list changes every week, or if the needed information can't fit within a few thousand tokens.

Many said it had come full circle back to classifiers

On Hacker News, a developer who built a ticket classifier with an SVM six years ago wrote that the move from classifiers to LLMs and back to fast, cheap classifiers is interesting. Another comment took the other side: in the past, most classification projects stalled at the training data and problem definition stage, but now you can run the work on an LLM first and move to a small model once it has been proven.

This case is closer to the second view. I think running the work on a large model first, then handing it to a small decision model once it settles into a fixed set of choices, could become the basic sequence for running agents. At that point, what you need is probably not a smarter model but a switch that lets you run both models side by side.

https://strandsagents.com/blog/amazon-saves-millions-replacing-sonnet-with-strands-decider/