I’m doing today at work, I really feel like they’re typically stunned after I say “constructing CatBoost classifiers” or “becoming isolation forests”. However that is in actual fact what I spend chunk of my time doing. My firm’s product is a classy agentic AI platform, however I don’t do a lot immediate engineering in my everyday.
For those who had requested me a 12 months or two in the past, I might have been critically involved about the way forward for classical ML work within the machine studying area, as a result of we have been getting so deep in a paradigm of utilizing LLMs to deal with issues, whether or not they did job or not. Nevertheless, it seems that agentic AI wants classical ML rather more than we most likely thought.
For a fast recap in case readers are unfamiliar:
- An AI Agent means combining LLMs and different software program tooling collectively to create workflows with minimal or no human intervention, orchestrating any variety of fashions or instruments.
- The LLM is often the interface between human customers and all the opposite software program instruments, together with duties like translating human prompts to pc language. The LLM additionally interprets instrument outputs and chooses which instruments to name at applicable moments.
- This allows rather more performance than an LLM by itself, as a result of as I’ve talked about right here many occasions, an LLM is only a token producing mannequin, predicting the following phrase or phrase in a passage based mostly on its context.
- Other than autonomous brokers, combining an LLM interface with different instruments is required to do an enormous variety of the issues we predict colloquially of LLM chatbots doing. ChatGPT, Gemini, and Claude do this sort of factor, chaining collectively the LLM interface with issues like information retrieval, net search, arithmetic calculators, and many others.
As you possibly can see, a key side of the entire agentic AI ecosystem is tooling — your agent must have entry to instruments with the intention to successfully full duties outdoors of the core LLM features.
These instruments can take all types of forms- quite a lot of them right now within the enterprise setting are information retrieval and organizing instruments, graph databases, RAG information bases, question development and validation, and so forth.
Why Classical ML
Nevertheless, I wish to remind you that classical ML fashions can be actually useful instruments on your agent. Take it a step additional than simply calling rudimentary tooling, and provides your AI agent fashions to make use of! For instance, think about an agent designed for actual property evaluation. If you wish to discover out the suitable market value for a property, give your agent the handle. It will possibly use one API retrieval instrument to retrieve particulars in regards to the property, then go these formatted particulars to a regression mannequin that generates a value estimate.
In fact, you may theoretically ask the LLM to only estimate the values itself. Nevertheless, that is questionable and even dangerous for numerous causes.
- Accuracy: An LLM is especially unhealthy for any activity the place it’s essential to calculate a significant quantity — it’s guessing, not making an empirical proof based mostly calculation. A effectively skilled classical ML mannequin goes to be vastly extra correct and reliable.
- Interpretability: You may have minimal interpretability and explainability from the LLM guessing. We all know that LLMs are usually a black field, and this severely restricts your capability to evaluate the trail that it took to get to the estimate you acquired. With a classical ML mannequin you possibly can determine the choices made to get to your inference, and validate these in opposition to your subject material experience.
- Price: Working an LLM will get costly very quick (see my articles from the final a number of months about token prices). If in case you have quite a lot of circumstances to run on, the token costs will develop into significant rapidly. Working a classifier or a regression mannequin is extremely light-weight and low-cost, even at excessive volumes. Moreover, in an LLM you don’t management the price of every name, and token utilization and spend can enhance — we’re seeing that throughout the tech trade already.
- Precision: You don’t management the coaching or tuning of the LLM (until you’re advantageous tuning a basis mannequin). You would possibly belief the generic LLM to do the job, however you’re taking an enormous danger, and as talked about above, validating the work is exceedingly troublesome. On the opposite aspect, advantageous tuning a basis mannequin might be efficient, however it requires rather more information and extra specialised talent than simply coaching a regression or a classifier, whereas nonetheless leaving you with interpretability issues.
- Management of your information: Your information could also be leaving your managed setting and being accessed by a 3rd get together LLM mannequin supplier, which might create danger.
- Management of infrastructure: With an LLM, you don’t have any authority over infrastructure administration, so third get together downtime creates danger to your small business.
In fact, setting up a classical mannequin does require totally different abilities than simply setting an LLM on a activity. It’s essential perceive your information effectively, be ready to finish function engineering with subject material experience, and it’s essential to have adequate compute and information to coach the mannequin. If in case you have no labeled information, you’ll be restricted to unsupervised studying or maybe bootstrapping your personal labels. Fortuitously, there’s a wealth of content material on the market about learn how to construct these fashions, in addition to learn how to consider them rigorously and monitor after deployment.
Hooking up your mannequin to your agent
You may be satisfied to offer this a attempt, however earlier than you begin, there are just a few architectural selections to think about as effectively. How will your mannequin and your agent work together?
Direct Calls
Maybe the quickest option to get operating is simply by letting the agent have the mannequin as a instrument to name straight. That is the type of my actual property analysis instrument instance: the agent can hit a mannequin for simply in time inference based mostly on a immediate. To set this up, your AI agent should be geared up to format its requests to the classical mannequin accurately. Your agent should perceive what this mannequin is for, when to name it and when to make use of one thing else. This implies clearly documenting the mannequin’s objective and capabilities, however should you’re already constructing agentic AI it is a acquainted activity.
On the output, your mannequin response must be structured in such a means that the AI agent can course of it successfully. Merely returning a numeric outcome could not do the job, as a result of the agent will want contextual data to interpret it and make the most effective use of it. For my fashions, I typically use f-strings to assemble textual content descriptions as a part of the inference, indicating, for instance, what an important options from the mannequin have been, what the chance of the result’s, and so forth. Simply returning a chance limits the flexibility of your agent to interpret the output and produce a useful response for the top consumer.
Database Entry
Another choice is to make the mannequin not a direct instrument of the agent, however a supplier of context information. You may pre-calculate the inferences by operating your classical ML mannequin as a scheduled job, and retailer these inferences in no matter information storage answer your agent has entry to. As a substitute of the agent making an preliminary inference name on to a mannequin API, it’s writing a question and passing it to your database.
If in case you have a finite set of circumstances that you may doubtlessly want the inference accomplished for, this could be a good answer. For instance, when you’ve got 500 people in your database, and your agent is supposed to retrieve monetary well being details about them, you may use a credit score scoring mannequin and pre-calculate their creditworthiness for the agent to retrieve at runtime together with some other information it collects. Relying in your mannequin infrastructure, this will cut back latency and repetition, by successfully caching outcomes.
This strategy creates totally different necessities for the decision and retrieval than direct instrument calling. For those who’re pre-calculating the inferences and simply making these accessible to your agent by way of database, your agent might want to know that these outcomes exist. If it’s unaware of the desk or the content material being accessible, it received’t use them when applicable. You would possibly have already got the infrastructure for telling the agent what the database incorporates in your immediate engineering, in case your agent is looking to the database for different data, so reusing that may prevent from duplicating efforts. If not, your agent may have particular instruments that it could use to evaluate the database metadata.
On the outcomes format aspect, necessities are much like the direct instrument entry case. Having a textual content based mostly description of the outcomes is an effective alternative, as a result of the agent wants to have the ability to interpret what it retrieves, whatever the supply.
Conclusion
Classical ML fashions have been the innovative capabilities throughout many alternative industries for over a decade earlier than LLMs got here on the scene, giving individuals insights into information that they might not have in any other case achieved. This energy shouldn’t be discarded, however as an alternative will be mixed with the capacities of LLMs. We are able to make the most of the LLM’s strengths, changing human language into pc language, stringing collectively totally different instrument calls, and retrieving outcomes from these instruments, and nonetheless use classical fashions inside this framework to do the work for which an LLM just isn’t applicable.
The barrier to entry is the talent set of making prime quality classical ML fashions, which is sadly not as glamorous as a few of the AI-related work today. It’s well worth the effort, although, due to the benefits: accuracy, precision, interpretability, value, and management. I like to recommend that practitioners brush up on their abilities with instruments like XGBoost, LightGBM, and scikit-learn, to see these outcomes for yourselves.
Learn extra of my work at www.stephaniekirmer.com.
Additional Studying
https://arxiv.org/pdf/2602.14295
https://github.com/Tejas-TA/predikit
https://arxiv.org/pdf/2506.20430
Python Package deal Introduction – xgboost 3.3.0 documentation
This doc provides a fundamental walkthrough of the xgboost bundle for Python. The Python bundle is consisted of three…xgboost.readthedocs.io
Python-package Introduction – LightGBM 4.6.0.99 documentation
This doc provides a fundamental walk-through of LightGBM Python-package. Listing of different useful hyperlinks The popular option to…lightgbm.readthedocs.io
Tutorials |
CatBoost is effectively lined with academic supplies for each novice and superior machine learners and information scientists…catboost.ai
Getting Began
Scikit-learn is an open supply machine studying library that helps supervised and unsupervised studying. It additionally…scikit-learn.org
Study Intermediate Machine Studying Tutorials
Deal with lacking values, non-numeric values, information leakage, and extra.www.kaggle.com
towardsdatascience.com/tool-calling-explained-how-ai-agents-decide-what-to-do-next/
towardsdatascience.com/ai-agents-explained-what-is-a-react-loop-and-how-does-it-work/















