Friday, July 17, 2026

Utilizing Classical ML to Empower AI Brokers

Share


I’m doing lately at work, I really feel like they’re generally shocked after I say “constructing CatBoost classifiers” or “becoming isolation forests”. However that is actually what I spend an excellent chunk of my time doing. My firm’s product is a complicated agentic AI platform, however I don’t do a lot immediate engineering in my everyday. 

In case you had requested me a 12 months or two in the past, I might have been severely involved about the way forward for classical ML work within the machine studying discipline, 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 an excellent job or not. Nonetheless, it seems that agentic AI needs classical ML much more than we probably 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 laptop language. The LLM also interprets tool outputs and chooses which instruments to name at acceptable moments.
  • This allows far more performance than an LLM by itself, as a result of as I’ve talked about right here many instances, 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 expect colloquially of LLM chatbots doing. ChatGPT, Gemini, and Claude do this type of factor, chaining collectively the LLM interface with issues like information retrieval, internet search, arithmetic calculators, and many others.

As you may see, a key side of the entire agentic AI ecosystem is tooling — your agent must have entry to instruments so as to successfully full duties exterior of the core LLM features. 

These instruments can take all types of forms- quite a lot of them at the moment within the enterprise setting are information retrieval and organizing instruments, graph databases, RAG data bases, question building and validation, and so forth.

Why Classical ML

Nonetheless, I wish to remind you that classical ML fashions can be actually beneficial instruments in your agent. Take it a step additional than simply calling rudimentary tooling, and provides your AI agent fashions to make use of! For instance, contemplate an agent designed for actual property evaluation. If you wish to discover out the suitable market worth for a property, give your agent the handle. It might probably use one API retrieval instrument to retrieve particulars concerning the property, then cross these formatted particulars to a regression mannequin that generates a worth estimate.

In fact, you can theoretically ask the LLM to only estimate the values itself. Nonetheless, that is questionable and even dangerous for quite a lot of causes.

  • Accuracy: An LLM is especially dangerous for any job the place you should calculate a significant quantity — it’s guessing, not making an empirical proof based mostly calculation. A effectively educated classical ML mannequin goes to be vastly extra correct and reliable.
  • Interpretability: You have got minimal interpretability and explainability from the LLM guessing. We all know that LLMs are usually a black field, and this severely restricts your capacity to evaluate the trail that it took to get to the estimate you obtained. With a classical ML mannequin you may establish the selections made to get to your inference, and validate these in opposition to your material experience.
  • Price: Working an LLM will get costly very quick (see my articles from the final a number of months about token prices). When you have quite a lot of circumstances to run on, the token costs will turn into significant shortly. 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 improve — we’re seeing that throughout the tech trade already.
  • Precision: You don’t management the coaching or tuning of the LLM (except you’re effective tuning a basis mannequin). You would possibly belief the generic LLM to do the job, however you’re taking a giant danger, and as talked about above, validating the work is exceedingly tough. On the opposite aspect, effective tuning a basis mannequin might be efficient, however it requires far more information and extra specialised ability 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 may 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, establishing a classical mannequin does require totally different expertise than simply setting an LLM on a job. You must perceive your information effectively, be ready to finish characteristic engineering with material experience, and you should have ample compute and information to coach the mannequin. When you have no labeled information, you’ll be restricted to unsupervised studying or maybe bootstrapping your individual labels. Fortuitously, there’s a wealth of content material on the market about the way to construct these fashions, in addition to the way to consider them rigorously and monitor after deployment.

Hooking up your mannequin to your agent

You is likely to be satisfied to present this a attempt, however earlier than you begin, there are a couple of architectural selections to contemplate as effectively. How will your mannequin and your agent work together?

Direct Calls

Maybe the quickest option to get working is simply by letting the agent have the mannequin as a instrument to name immediately. That is the type of my actual property analysis instrument instance: the agent can hit a model for just in time inference based on a prompt. To set this up, your AI agent have to be outfitted 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 goal and capabilities, however should you’re already constructing agentic AI this can be a acquainted job.

On the output, your mannequin response must be structured in such a manner 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 one of the best use of it. For my fashions, I usually 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 tip person.

Database Entry

An alternative choice is to make the mannequin not a direct instrument of the agent, however a supplier of context information. You possibly can pre-calculate the inferences by working 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.

When you have a finite set of circumstances that you can probably want the inference accomplished for, this generally is a good answer. For instance, when you have 500 people in your database, and your agent is supposed to retrieve monetary well being details about them, you can use a credit score scoring mannequin and pre-calculate their creditworthiness for the agent to retrieve at runtime together with every other information it collects. Relying in your mannequin infrastructure, this may increasingly scale back latency and repetition, by successfully caching outcomes.

This strategy creates totally different necessities for the decision and retrieval than direct instrument calling. In case you’re pre-calculating the inferences and simply making these accessible to your agent through 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 acceptable. You would possibly have already got the infrastructure for telling the agent what the database comprises in your immediate engineering, in case your agent is asking to the database for different data, so reusing that may prevent from duplicating efforts. If not, your agent might have particular instruments that it may well use to overview 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 selection, 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 leading edge capabilities throughout many alternative industries for over a decade earlier than LLMs got here on the scene, giving folks insights into information that they may not have in any other case achieved. This energy shouldn’t be discarded, however as an alternative might be mixed with the capacities of LLMs. We are able to make the most of the LLM’s strengths, changing human language into laptop 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 will not be acceptable.

The barrier to entry is the ability set of making prime quality classical ML fashions, which is sadly not as glamorous as a few of the AI-related work lately. It’s definitely worth the effort, although, due to the benefits: accuracy, precision, interpretability, value, and management. I like to recommend that practitioners brush up on their expertise 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 Introduction – xgboost 3.3.0 documentation
This document gives a basic walkthrough of the xgboost package for Python. The Python package is consisted of 3…xgboost.readthedocs.io

Python-package Introduction – LightGBM 4.6.0.99 documentation
This document gives a basic walk-through of LightGBM Python-package. List of other helpful links The preferred way to…lightgbm.readthedocs.io

Tutorials |
CatBoost is well covered with educational materials for both novice and advanced machine learners and data scientists…catboost.ai

Getting Started
Scikit-learn is an open source machine learning library that supports supervised and unsupervised learning. It also…scikit-learn.org

Learn Intermediate Machine Learning Tutorials
Handle missing values, non-numeric values, data leakage, and more.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/



Source link

Read more

Read More