736 points · by aloukissas · 2w ago · 262 comments
[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.
An issue in industry was that companies would not allow training on their data across customers. Understandably so, as SVM dimensions are readily interpretable given some thought. General purpose datasets were ill-suited too depending on the task.
So you'd start from scratch every time, annotate features like crazy, and often didn't have enough training data overall.
LLMs "solved" that by just ignoring the previous rules and training on everything, which lets the necessary world knowledge seep back in.
I'm sure we'll see many combinations of LLMs and regular machine intelligence in the near future.
If you want to make a ticket classification model, you don't need to train across many customers doing ticket classification, who might not want you to train on their data and whose data is impossible to obtain unless you already are a large company. Instead, you can train on a completely different task which forces the model to learn the syntactic and semantic structure of the English language — say predicting missing words in Wikipedia articles, which you can't do successfully without a good understanding of English — and then fine-tune that model on your specific task with much less data.
Because the initial task is so general, you can have one company do the expensive pretraining, share the base model, and then have everybody else just do the finetuning on their (small) proprietary dataset.
LLMs and models like Jev go one step further, letting you use them as classifiers with no training at all, with nothing but rules in the prompt. And with a few tricks, you can indeed use them to get pretty high-quality labels, which you can then distill into a fine-tuning dataset for a much smaller model.
> say predicting missing words in Wikipedia articles, which you can't do successfully without a good understanding of English
This is word2vec model, one of - predict a word from context. The other one is to predict surrounding words (context) from a word. It did a good job when I used it, words' classes were impeccable for most practical purposes.Word2vec is a two layer perceptron.
I feel like people in the field forgot everything.
True, but could be taken the wrong way. LLMs were also not able to train on that private customer data. They trained on so much general public data that they became capable enough to operate generally even on private data they had not been trained on.
That was the big breakthrough. I know that’s what you were trying to say, but on sites like this there are a lot of people who will see a comment like that and assume that LLMs like Sonnet were fed all of the private customer data that was withheld from training other models.
Twice, I’ve asked it about a niche almost undocumented hardware register and it told me about fields that aren’t published anywhere…
Your first response is probably that the LLM inferred from public header files or sample code — except this is a really niche thing, there is only one reference implementation published by the manufacturer, only one specification document, and neither ever mentioned these undocumented fields… And if I ask it about the source, it will claim it was an error and these things don’t exist…
A natural assumption would be that it was hallucinated — but sure doesn’t seem like it.
[1] I went down the rabbit hole of using sequence kernels quite a bit back then, see https://arxiv.org/abs/1910.13800, but the timing was terrible. RNNs and variants like LSTMs were beginning to become popular, and everyone (including me) switched.
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.
So between llm and pseudo experts, at this stage, I prefer to go with a LLM.
Well not anymore... You can just get AI to build it.
Just like, LLMs can build web back ends, but I'd want a security professional to give it some kind of thumbs up. Especially if a lot of money rides on it.
Your model only took minutes to train if you don't count the data collection and labelling work
Saying that the field got reduced to only LLMs is like saying that the field of combustion engines got reduced to cars. The trucks, combine harvesters and peaker plants are still here, they're just in the background, invisible to people who are not part of the industry.
Banks still use random forests and SVMs, medicine and image processing still use CNNs (and people who take photos with their phone don't even realize how much image processing is being done), TTS, ASR and predictive typing models are in wide use, and there's probably still plenty of BERT in spam classification and such.
Yeah, exactly. Your phone just...does stuff. Bar/QR code scanning is probably using a CNN to minimize resource utilization.
LLMs are like an ice breaker to talk about AI and all the ways it has existed for decades, and what AI really refers to.
In software engineering, we learned a long time ago that giant monoliths are not the answer. You want smaller, but specialized units that work together. They perform better at their specific task, are more maintainable, you can just upgrade one part of the system without having to impact the others, ....
I don't know where the focus on building a single model that can do everything comes from.
That depends on the question. If the question is "How do I utilize 10,000 software engineers?" then yes, a monolith is not the answer. However, this isn't a problem most companies face. Starting out with microservices is rarely a good idea either as you'll have a hard time getting the boundaries right.
LLMs are the powerful general-purpose CPU of the ML world. Using an LLM as a classifier is woefully inefficient compared to using a dedicated classifier. On the other hand, that LLM exists right now and you can hook it up in ten seconds. You could ask: why use an LLM when a dedicated classifier would be so much more efficient? You could also ask: why build a dedicated classifier when a sufficiently capable LLM is available off the shelf? Neither one is the right answer every time.
So if that’s a part of the future, what’s the purpose of spending billions of dollars on large AI models? Is this just a continuation of the story that there is no moat? For the big model makers?
Why do you need a master of everything? when you can just use a much smaller specialist AI model.
If you want a model that can do X but don't care about Y And Z, intuition says you only have to train the model on data relating to X. However, early LLM research showed that doing this results in a far less X-capable model than one trained on data for Y and Z as well.
Does it? All of the latest frontier models that have made technical details publicly available are using MoE; smaller specialized units that work together.
I would assume a smaller model trained specifically to produce code based on natural language input would perform at least just as well, which would already be better given the smaller size / probably lower training resource requirements. This is of course, as already said, an assumption. But generalizing typically comes at a cost, there is no reason why this wouldn't apply to LLMs, it even applies to humans.
"AGI"
When I asked why we don't build some NLP tagging which would be cheaper and run in a fraction of time, the lead told me, "What if we need to use more unstructured data? GPT can handle that without any extra work."
The team has yet to make any other changes to the pipeline, but in the two-ish years since then, they've spent a ton of money and wasted countless hours on delayed processing because of it. Some day, maybe, they'll learn that traditional ML techniques are superior in virtually every way to just throwing data at an LLM to see what sticks.
Does that include collecting, curating and preparing the training dataset? Because that's kinda the hard part I find.
With the LLM you don't even need a data scientist to train the model, you just need someone who can connect to APIs. And the LLM is fine with adding and removing categories. No retraining.
It makes the initial faces incredibly fast. Then it is slow and expensive to run, so once the system settles, it becomes the target for model optimization, e.g, a dedicated, or semi-dedicated model.
You empathize the set up cost but ignore that the model is in the magnitude of a million x in size and compute cost of a classifier model. That's like comparing a CPU with an IC
That is the reason.
Once you then have a system that is used enough, it starts making sense to look to replace that with a leaner classifier, but LLMs have a place in vast number of places where we'd previously never use a classifier because it was too much effort.
Absolutely! But that doesn't rule out that there are AIbros that will tell you to use an LLM, even if the task could be done with a static analyzer with a few rules. Use an LLM because it's AI!
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.
So, a lot of tickets generated would simply just be data reports with some info dumped in the ticket description, designed to be auto-closed but possibly useful later as an easily-accessible timestamped reference to some data.
Lots of other auto-generated tickets were "probably not an issue but it should pass over the eyes of someone knowledgable about this server/network" tickets. Like Windows Event Log error roundups, CPU usage spikes, or specific triggers that were set up in the aftermath of some catastrophe to help preemptively avoid a repeat incident.
Anyway, tickets are a great "first line of filtration" where you can take a massive ingest of all different kinds of data (hardware metrics, system logs, network activity), apply meaningful human context ("This pattern could be a sign of xyz"), and store it in a unified database. With that use case, it's easy to imagine a company with millions of customers and millions of servers producing millions of tickets.
Anything else, that needs a human to interpret or take action on, yes, ticket systems get extremely wide usage.
We also had tickets that would trigger scripts upon generation, e.g. an auto-generated "low disk space" ticket would then trigger a basic "disk cleanup" script, and close itself if enough space was freed to clear the threshold. Yes, it's comical that the ticket would do that—but hell, it worked great. It ran agnostically across thousands of differently-configured machines. And whether or not it was a human who clicked the "disk cleanup" button shouldn't determine the usefulness of having that event logged in the ticket database.
Point is, the whole system was a veritable Swiss Army knife that didn't necessarily have to equate a "ticket" (database entry) to "requires human intervention", provided there was a good human system in place to leverage the tool in a way that was productive for them.
Also ticketing systems in my (very) limited experience tend to be bloated pieces of software, so that adds a fun dimension to it.
But the human team is what understands the big-picture context and the way it changes over time, so it makes sense for them to manage the triggers for the "this may be important" tickets—for them to then ingest and discern whether it's important. Ultimately, ticketing software is just a tool designed to distribute context-stamped information to humans who then discern what to do with it.
So I think just like all other productivity software, it's only as good as the human system in place that drives its usage. That explains the bloat as well—it's not its own system, it's a big old suite of tools that are each available to be implemented into a human system if desired, or ignored if not.
I checked just for fun and there are actually a LOT LOT more than 92M tickets in the past year.
but i have 3 different support organizations, all of which are external. no ticket == no accountability, and that matters if and when things get ugly, like lawsuit territory level ugly
I'd rather have tickets for everything and full transparency except for confidential info.
heck, there's even a ticket if the office toilet is clogged
If you dont fully pay attention to their theories about what they think is the reason for the suspicious stain on the ground in the parking lot, the queue is going to get flooded. If your Boss belongs to that club oh man god say the division.
“submit a ticket!”
People that don't like issue trackers are people that like spending hours a week manually maintaining spreadsheets, keynotes, or kanban to do the same.
People that don’t see the difference are substituting JIRA and confluence in for spreadsheets and keynotes.
Recently people started equating all cognitive abilities to an LLM. Every foundational work that happened in ML and data science prior to LLm, are largely forgotten in the flood of LLM hype.
A lot of usecases would be far better off using some NLP or decision systems, or rule engines rather than paying for Opus. Big companies blindly use expensive frontier moels as a blanket solution irrespective of usecase fit, because they are chasing the goal of being an "AI-powered" company. LLM killed all othe simpler, specific solutions.
For exmaple, SVMs are exactly neural nets in representation. Transformers are Kernel Machines in esssence - take your sequence of tokens across n dimentions, and thats your higher level space where you can make decisions on the output. Gradient boosting/decision trees are your backpropagation and RL, except on a latent space rather than direct data output.
And you don't really need to use all the old techniques anymore given the local inference that exists. For example,
https://ai.google.dev/gemma/docs/functiongemma
https://blog.google/innovation-and-ai/technology/developers-...
Both of those run quite fast on CPU, and can be used as a replacement for a lot of traditional techniques. For example, set up a system where user query first gets compared against instruction documents using embeddings, pick the best matching document, feed that instruction + user query into function gemma, which then generates a sequence of tool calls with the right inputs. Then finetune the instructions and/or function gemma for your use case.
The case of companies using Opus tokens for all things is a classic case of having enough profit to not have to worry about hyper optimization.
Yes, LLM is a toolbox that pulls out the required tool for your work. But it got you addicted to use the tool box instead of tools. Tools are free to use. But the tool box hijacked them and charges you for not having select and use the specific tool.
That may be optional if you need to switch between multiple tools to do a work. But cases like ticket classification requires a specific tool. Paying the toolbox in this case is just a matter of inefficiency, not hyper optimization.
Right after this you should directly start with recording the result the LLM produces for your flow and also record some kind of feedback/assesment based on user behavior or user feedback. Which then in turn you then could use to feed/optimize the more traditional and less costly solutions.
I've trained a lot of NLI models, which do similar things to decision models. A 1B parameter encoder is about the same capability as a 2B LLM, but if you have multiple tags to check, it's not as efficient because you can't cache the bidirectional attention. On the other hand, they do seem to do a bit better on calibration.
I keep a leaderboard here: https://huggingface.co/spaces/dleemiller/open-nli-leaderboar...
I have started working on models that can both do a classification without explanation, but enable a "think" mode that briefly explains its decision. So if you want to keep track of failures and figure out why the model doesn't like them, then you have a direction to try fixing it.
I'd like to try wrapping this in some kind of GEPA-like process to automate tuning based on your labeled examples using the supervision of a larger reflection model.
https://strandsagents.com/blog/introducing-strands-decider/
They lopped the head off an existing Qwen or Gemma model and used its torso with their new head.
Strands Decider is a decision model. maybe similar to Jev, that while based on an LLM is not one - it has a different "head" since it's not build to generate. The original prototype was based on (a modified) Qwen 3.5 2B, and the production version is based on Gemma 4 since that proved to be more accurate.
IMO the real news here is the big picture, not the details. Here's a high volume real world use case where a large expensive LLM (Claude Sonnet 4.6) has been replaced by a tiny 2B bespoke decision model.
Amazon is such a huge company that I'd guess they have internal business flow automation opportunities matching those of many other companies, so it's interesting to see this come out of AWS. Just as AWS itself was created by Amazon releasing something they has originally built for themselves, I wonder if we'll see more of these optimized real-world AI solutions coming out of Amazon/AWS/Strands?
I tried this with an AI subtitle translator thing I built for myself. Mid-tier models were considerably cheaper but "reasonably good" doesn't cut it in translations, the output language was too janky or used the wrong words. I had to bump it to Sol level (at the time) to get "good / very good" output, which was enough for something I intended to use once.
If you think the former is a likely hypothesis, then why did you even click on TFA?
After that, I'm guessing it was just fairly low priority to update a working system. Amazon's net income last quarter was >$20B. Saving millions is huge on the scale of one or two engineers spending a week tackling it, but it's too small for the organization to make it a big initiative. By the time engineers decided to update it, decision models like Jev were popular and are naturally a better fit for the task than an LLM.
1. Some auto-generated ticket (e.g. a trigger from unusual hardware activity or a log entry) resembles a previous ticket that had meaningful action on it, addressed and solved by a specific team. That ticket could spend a week getting ignored or punted around when the right team can solve it in 5 minutes. ML could detect the similarity and reclassify it by that metric. 2. Human-submitted tickets are annoyingly fallible. For example, an "I can't log into my account" ticket could be auto-classified as "account recovery". Or maybe, e.g. the ticket system attaches a recent activity log from that IP address to be cross-checked by ML, which finds 5xx errors and reclassifies it for the technical team.
These are generic examples, but you can use your imagination and see how a company as huge as Amazon could benefit from this. I think it's for the purpose of minimizing the number of tickets that need to be manually reclassified because the wrong info was given to the wrong person.
It’s not that baffling Amazon has something like 70k+ engineers worldwide. Never worked there myself but in large orgs things sometimes get lost in the shuffle.
I don’t think timelines were shared but this reads like a pretty good case of building an MVP and then lowering the cost once it’s proven. One of the whole value props for LLMs from a ML perspective is being able to get something out the door a lot quicker than you would otherwise.
whenever i submit a ticket (need hardware, problem with software, access, etc etc) I'm supposed to know what business unit im submitting to. There are 63 last time I checked. Some go to global IT. some go to local IT. some go to to procurement, etc etc. There's no resources on how to select the right one
I just guess and there is a dedicated person on every team who reassigns tickets to the right business unit.
nightmare.
an llm that parses my request and auto-populates in the back end would be cracker jack
Do we have to point out why outsourcing a task that uses client data as input (the ticket) would be a bad idea?
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?
The blog post was focused on the switch to a decider model, not the initial architecture.
I think I'd be foolish to 'why didn't they just?', on the basis of <blank> because no mention was made in the post.
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.
Wait, their solution here is not an "agent" at all? It's literally output length of "1", unless I'm missing something? (It's not clear what they are replacing is an agent either, it looks like a reasoning model with no tools that outputs JSON.)
Isn't it detrimental?
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.
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.
the bubble is bubbling
— "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"
Now you can iterate on your 20 ticket categories in days against real workloads and not commit to training an efficient model until you've proven the prototype in production.
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"?
Here's an interesting reference on this that gives a bit more background information:
-- 8< --
Because LLMs (and many other ML systems) are chaotic, it is possible to manipulate them into doing something unexpected through a small, apparently innocuous change to their input. These changes can be illegible to human observers, which makes them harder to detect and prevent.
For example, flipping a single pixel in an image can make computer vision systems misclassify images. You can replace words with synonyms to make LLMs give the wrong answer, or introduce misspellings or homoglyphs. You can provide strings that are tokenized differently, causing the LLM to do something malicious. You can publish poisoned web pages and wait for an LLM maker to use them for training. Or sneak invisible Unicode characters into open-source repositories or social media profiles.
-- >8 --
Source: https://aphyr.com/posts/412-the-future-of-everything-is-lies...
A modern model like Haiku 5.5 is still going to be overkill for many of these decision model use cases, and is probably at least 10x the number of parameters (Haiku 20-50B ??? vs Strand Decsions 2B Gemma 4).
Of course you can try to dig a hole with a hammer instead of a shovel...
I guess some parts of amazon still can move fast.
I know some people take the existential risk of AI seriously, but Sonnet 4.6 is not going to kill millions of people, right?
"except that on long tickets Strands Decider drops the oldest comments to fit."
"except that on long tickets Strands Decider drops the oldest comments to fit."
News at 11.
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.
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…
I lived in Luxembourg for 4 years, which you have to order through amazon.de and is fulfilled by amazon.de, and I've never had any of the issues you describe. And that's with an average of 120 orders per year.
Use some logic before attacking: Luxembourg is only the size of Saarland (German state). Fewer orders and fewer deliveries naturally mean fewer problems.
How about you read before attacking? I said it's pooled with all german orders.