Hacker News new | past | comments | ask | show | jobs | submit

Amazon saves millions by replacing Sonnet 4.6 with Strands Decider

https://strandsagents.com/blog/amazon-saves-millions-replacing-sonnet-with-strands-decider/
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.

loading story #50437054
Yeah, its pretty wild! I think one of the benefits, but also potential risks, with LLMs, is you can just point them at anything without a lot of expertise.

Building an SVM isn't a tricky job, but you probably need a data scientist involved, and to think carefully about a labeled dataset.

I think we're seeing the modelling equivalent of something like electron apps. Where they waste a tonne of resources, but make an easier developement experience.

Will be interesting to see how much or little this changes with LLM costs.

loading story #50437814
loading story #50437589
loading story #50437489
loading story #50440480
loading story #50438886
loading story #50437927
loading story #50439427
loading story #50437187
loading story #50440145
loading story #50440187
loading story #50437348
loading story #50437160
loading story #50437723
loading story #50438538
loading story #50438681
This is just the AI grift and uneducated hypebros. There is zero reason to use an LLM as a classifier. But AIbros with zero technical knowledge will push for it anyways even if it is 1000x slower and 1000x more expensive to run.
loading story #50436989
loading story #50437444
loading story #50437197
loading story #50437255
loading story #50437764
loading story #50441986
loading story #50441981
At ~$21,700 saved per million tickets, saving millions annually would suggest at least 92 million tickets a year to reach $2 million saved. Is that about right?

I initially thought of tickets as just customer support, or internal JIRAs, but the article mentions alarms, security findings, and capacity increase requests, so that makes the scale feel more plausible. Still surprising so many tickets go through the system.

loading story #50440820
loading story #50438960
loading story #50437982
yes, there's a ticket for EVERYTHING. people have tickets cut in their names even decades after they've left
loading story #50437285
loading story #50437826
loading story #50440274
loading story #50437216
loading story #50438786
Well if they use VPN point to point connections managed by AWS they'll get an email per week until they die for each VPN instance from AWS that they need to put in trash so I understand them.
It's baffling to me that a company like Amazon would choose to use a LLM for a task as simple as ticket classification. Don't they have thousands of engineers and petabytes of data? They even have their Mechanical Turk program if they want a cheap labelling workforce.
loading story #50441212
loading story #50440756
loading story #50440733
This article is so confusing. For example, they say they tried the Strands Decider model and dismissed it for Gemma, then they continue to call the model they used Strands Decider? Did I miss something?
loading story #50438228
loading story #50440543
loading story #50437630
loading story #50438892
Ok, but why did they chose Sonnet in the first place? Couldn't they have chosen Haiku or GPT Luna or maybe even some small cheap Chinese model?
loading story #50440631
loading story #50440242
loading story #50437421
loading story #50437746
loading story #50437519
Classifying into one of 20 groups? Did anyone try scikit learn?
loading story #50438862
loading story #50437239
Matches what I see in my own setup. Most agent calls don't need the frontier model, they need something fast that decides what happens next. Deepseek very underrated here as well. Then again, with the subscriptions the tokens still are pretty cheap so subagent delegation and improvements dont matter. Yet.
So why did they not even try Haiku 5.5?

Why would Amazon go to another company to let them provide an adjusted decider model?

Amazon already has all these tickets labeld, they could just have build it themselves?

loading story #50438286
loading story #50437944
I'm not very up to date on the Ai lingo, but is a Strands Decoder just a decision tree in the same vein as Jev ?
loading story #50439182
You can do this even more efficiently with the rust crate bonsai. You will have more control and you can create sceneries of logic. You can use incredibly cheap models this way and get way better results.

I built a real time character story. In which players interact and integrate fictional characters. There is no delay in response and the characters are all in character. Oh and it’s all voice.

It’s shocking how effective this is.

loading story #50437328
loading story #50438227
loading story #50437113
They keep referring to the solution as an agent, but it's actually just a single call to a model.
What I don't understand is why are they not offering the decision model via Bedrock yet. Sagemaker / Lambda are quite expensive if you're not using the model continuously.
People use machine learning models before and after LLM is invented.
> JSON key order changed the answer. Sending the same content with keys in a different order moved the output probabilities by up to 0.19

Isn't it detrimental?

loading story #50441743
No mention of quality, or at least I didn't see it. What seem to matter nowadays are speed and cost.
loading story #50439031
50x cheaper, damn. I recall Chinese LLMs being similarly cheaper (and quite suitable for such simple tasks).

I think a decision model is superior here based on the task, and of course they weren't out yet when they started, but I'm wondering if they wouldn't have similar results (on price, probably not on speed) if they went with DeepSeek or something?

I don't mean send the data to china obviously — there must be an American provider that offers it?

Anyway it's moot in this case (decision model is a better fit) but it just makes me wonder who else is overpaying by 2 orders of magnitude.

loading story #50438188
This pattern is playing out a lot. Running LLM inference at scale on apps typically lacks ROI. But I increasingly see folks use LLMs to help improve classical techniques.

So there’s some LLM use to develop a new version of algo, but maybe 2% of what would have been used by putting LLMs in the path of every API call. That generally does have ROI.

Putting LLMs in the loop each time is generally a dumb move, unless you’re an AI bro trying to get everyone to use LLMs for all the things.

Are developments like that priced in Anthropic IPO?
yah i mean older models dosent mean they are worthless i still use cluade opus 4.6 for day to day task
Slop article. First paragraph is 100% AI! Fucking lazy ass slop drivel.
why didn't they use Jev or Luna decision model? Seems odd that they used Sonnet and Strands instead of trying out of the box solutions
loading story #50440676
loading story #50438427
It's funny how AI sometimes feels like it went full circle:

— "Let's build efficient classifiers"

— "Forget about the silly classifiers, LET'S BUILD A MACHINE GOD"

— "Ah, that machine god is often too expensive and underwhelming. Let's build efficient classifiers"

loading story #50437095
loading story #50437523
loading story #50438614
> One thing that surprised us was that JSON key order changed the answer. Sending the same content with keys in a different order moved the output probabilities by up to 0.19.

That's like... really basic LLM knowledge? Like how e.g. this article measures how often answers change based on order https://zachlandes.com/trolley-problem/#appendix-a:~:text=Ch...

Or is this the Claudish "One thing that suprised us" that just means "and here's another thing"?

loading story #50438249
Wait, are you telling me that if you replace an oversized and outdated model, with a small one that fits the use case and reduce your input by 70%, you end up saving money?!??
loading story #50440039
Meanwhile they could have just switched to Haiku 5.5 to get same savings. No need for complex orchestration involving GPU instances and would have just been a one line change in the code.
loading story #50440662
Amazon saves millions by asking their pencil manufacture to make them 1mm shorter. At that scale anything adds up to millions.
Yea right... Paying market price of 3 usd per mil tokens on sonnet 4.6...
Sounds like a bunch of `if` statements with extra steps. Maybe throw an RNG decider too.
ooh, this is gonna hurt later:

"except that on long tickets Strands Decider drops the oldest comments to fit."

ooh, this'll hurt later:

"except that on long tickets Strands Decider drops the oldest comments to fit."

counting the miliseconds until the insurance industry picks this up
Nice marketing to sell their decision model.
loading story #50438404
If you use the right tool for the job at hand, you save money.

Of course you can try to dig a hole with a hammer instead of a shovel...

If their model costs 98% less than Sonnet, and Amazon is saving “millions” then these folks are raking in 2% of millions. Congrats I guess?
loading story #50437045
{"deleted":true,"id":50436991,"parent":50436768,"time":1794294145,"type":"comment"}
2% of millions ... so far. Take in to account growth potential.
loading story #50436850
loading story #50441677
loading story #50441293
{"dead":true,"deleted":true,"id":50437409,"parent":50436640,"time":1794297900,"type":"comment"}
Founder of Seldon AI (www.seldon-ai.com) here. We are working on dev tools to help developers with this kind of refactoring and continual production work.

Basically there is a whole host of tarpit usage of LLMs in application backends today. This is simply another case of LLMs enabling people to build what they cannot productionize or maintain.

Today developers without any AI/ML skillset can prototype a fancy new feature with LLMs, what used to require collecting and curating data to train a pipeline of ML models then serving them in production.

The problem comes when it's time to take the new feature into production. That $20 cost with prototype/beta workload is now $30k per month in LLM costs, and those hallucinations that never happened on their 200 test samples is happening 600 times per day.

They are then stuck, because they lack the knowledge and budget to build and run the production ML pipeline properly, the infra stack necessary to handle production workload. Management also doesn't understand why they have to invest in rebuilding something that "seems to work" with "outdated methods".

These system one or decision models are a step up from LLMs when it comes to this usage. Problem is that they are still difficult to work with (limited in expression power) for many application logic. Despite the initial popularity, I hear about a lot of frictions refactoring LLM based backend with them, and multiple cases of production rollbacks to LLMs already.

I think system one models is a sensible paradigm, and we are on the precipice of something great, but there is a lot more work needed above the model layer to make this work.

@dang why can't I down vote this?

Asking for a friend.

No, serious question; there are no downvote controls on this "advertisement", what gives?

loading story #50439162
why didn't they upgrade to further sonnet versions?
loading story #50437077
How about at least reading a couple of paragraphs from the post this thread is about before commenting? :)
As a customer I don’t care what model they are using. Amazon is one of the worst e-commerce platforms (at least here in Germany) - damaged boxes, damaged items, items taking forever to ship, having to deal with rude delivery people just to name a few.

This is perfect example of how to not approach solving business problems. What do they actually need? Listening to customers.

What are they doing? Outsourcing delivery to third parties, lowering quality controls, creating worst working conditions, filling the platform with sponsored listings and ads, allowing any sort of cheap Chinese garbage with fake 5 stars on the platform, making the UI worse and worse everyday, and the list goes on and on…

loading story #50438097