← All transcripts

Knowing When Not to Use AI: AI Agents vs Rules vs ML Transcript, AI Summary & Key Points

IBM Technology · 14 days ago · Education · 10:35 · EN

📄 Transcript

Searchable transcript of Knowing When Not to Use AI: AI Agents vs Rules vs ML — IBM Technology (10:35). Search for a phrase, then click its timestamp to jump straight to that moment in the video.

Captions sourced from the original video on YouTube, published by IBM Technology. The video, its captions and all related intellectual property remain the property of their respective owners; AINotes claims no ownership. Provided for research, accessibility and search — see the Transcript Notice and Copyright Policy.

00:00 It's incredibly easy to fall into  the trap of using AI for everything. Many teams are starting to integrate AI agents  all across their systems. And why wouldn't they? AI agent systems are undeniably powerful. There's  no doubt about it. But we need to stay strategic about where and whether we want to inject AI  into our systems. AI is not magic and it's not the best solution for everything.

00:24 Just like  any engineering decision, choosing to use AI or not and at what scale involves trade-offs  across accuracy, cost, complexity, and risk. Most problems in software and data systems can  be solved in one of these four ways. Humans for humanity and judgment. Rules or codebased  solution for deterministic logic. machine learning for statistical pattern recognition and generative  AI systems for flexible reasoning and generation.

01:06 These aren't some ladder that you progress through  from human to agents. In fact, they are distinct options each with a very specific role. The goal  is to pick the right system for the right problem. Let's start with humans. I may have a little  bias here, but humans are great at making complex judgments. People can handle ambiguity and  edge cases very well, making complex decisions with incomplete or conflicting information.

01:34 Particularly, they can also apply context, ethics, and accountability in ways that machines  cannot. Humans should drive tasks when there are high stakes decisions, situations  requiring ownership or liability, and cases of significant ambiguity. Some examples  of these are hiring decisions, medical diagnosis, legal interpretation, and large-scale strategy  or financial decisions.

02:01 If something goes wrong, accountability must be with a real person. Now  for the trade-offs. Human judgment is high quality but expensive, slow, and very hard to scale. If  you think about hiring a candidate for a job, you could screen resumes automatically, but  the final decision involves more nuance such as team fit and communication skills, which  are not something you want fully automated.

02:33 On the other hand, you would never rely on humans  to manually review every single transaction on a credit card network. That's millions per second.  So let's look into some of those cases where a code or rules-based deterministic system might be  beneficial. In particular, a traditional software solution is good at executing clear, stable logic  and producing consistent exact outputs at scale.

03:01 Rule-based systems are ideal to use for  tasks when logic is known and explicit. For example, if X do Y. Requirements  are stable and errors are unacceptable. Some examples of these are payment processing,  input validation, data transformations, and most importantly, security and access control. Code  is fast, cheap, reliable, and very interpretable.

03:31 It's generally straightforward to test, debug, and  scale. If I want to process a credit card payment, for example, I want a code system to check if  balance is sufficient and approve or decline. This should be as fast as possible  deterministic and have no room for error. Using AI in this case would introduce unnecessary  risk. Same for validating an email address format.

03:56 You don't need a model. You need a simple rule.  But where fail the rules fail and begin to break down is for cases where conditions are constantly  changing and logic becomes just too complex. Take fraud detection for example. A static  rule like flag any transactions over $1,000 quickly becomes useless against fraudulent  attackers whose behaviors evolve.

04:17 That's where machine learning and statistics come in. Machine  learning excels at learning patterns in structured data and making probabilistic predictions. Machine  learning is ideal to use when patterns exist but aren't very obvious, rules are too complex  to define manually and when you need predictions. Some common areas of use are fraud detection,  customer churn prediction, demand forecasting, and recommendation systems.

04:52 Here's an example  in practice. If I want a system that forecasts product demand, a human might rely on intuition  and bias and a rule or code solutions may be too simplistic to pick up on the nuances of demand  trends. This is where machine learning shines. Able to learn complex trends and patterns in  data, resulting in more accurate predictions and improved model outputs, making it the  ideal system for this particular task.

05:24 Machine learning models scale very well  and are generally predictable. However, they do require more monitoring and ongoing  maintenance as over time there can be model drift and low flexibility outside the initially  defined problem scope. Machine learning models do also have varying degrees of explanability, but  if you needed to write a report on what it thinks the societal causes of these demand trends are,  you're out of luck.

05:47 While the task of analyzing and predicting trends over massive structured data  may not be ideal for your typical LLM, they are good at working with unstructured data and tasks  that involve reasoning, synthesis, and language. Generative AI systems like LLMs and agents  are best to use when inputs are unstructured like text, documents, and other media, tasks  require interpretation or transformation.

06:25 Flexibility matters more than precision and  some amount of error is tolerated. Some common examples are retrieval, augmented generation  for question answering over document sets, large document summarization, code generation, and  multi-step workflows with agents. Take a customer support system for example. Instead of hard-coded  responses to user questions, an AI agent can understand intent, pull relevant knowledge,  and generate a unique and helpful reply.

07:01 Trying to do so with rules alone would be nearly  impossible. Generative AI systems are incredibly flexible and time to success is very fast with  LLMs being such good generalists at tasks. However, the tradeoff is non-determinism  in answers leads to difficulty in testing, correctness not being guaranteed across runs, and  they tend to be significantly more costly at scale than these other tech solutions.

07:28 That is really  the key to knowing whether or not to build agents and LLMs for your tasks. How much non-determinism  and uncertainty are you willing to tolerate? For example, if I want an AI agent  to analyze my spending for the year, I can't just feed in thousands of transactions and  expect it to create a non-h hallucinated answer or even just get the calculations correct.

07:54 Instead, I might want a calculator tool that uses code and math for determinism and traditional  machine learning to identify trends over time. And of course, I might want an LLM to still  generate a nice, clean natural language report at the end. Well, these hybrid systems tend to be  the most successful using all of these types of solutions in conjunction properly balancing the  correct tool for the task.

08:26 When someone says to make everything agents, this is not literal.  All of the best agents and modern solutions use some combination of all of these types of  systems. It's important to identify and think out where each of these are most appropriate to  apply. Here's an actionable heruristic. Use humans when you need judgment, accountability,  and ethics or have high-risk workflows.

09:03 Use rules or traditional code when you need  clearly defined logic as if, if X happens, do Y. And that logic won't change  often. Use traditional machine learning when you want to find patterns and  predictions in past data. Use generative AI when you need to interpret, generate, or reason  over complex inputs. And flexibility matters more than precision.

09:34 In general, what's most important  is matching the technology to your use case. and choosing the right kind of intelligence for  your tasks. Most failures to get to production aren't going to come from bad models, but rather  from choosing the wrong system in the first place. The future of technology isn't about replacing  humans or putting AI everywhere.

09:54 Great systems are built by making disciplined choices about how  decisions get made across humans, rules, models, and machines. The most successful AI systems  likely won't be the ones using the most AI. It will be the ones who consistently choose  the right kind of intelligence for the problem. Because the most important AI skill  is knowing when not to use it.

💡 Answer

Use AI agents only when flexible reasoning over complex or unstructured inputs is needed and some uncertainty is acceptable; use humans, rules, or machine learning when they better fit the task.

🧠 AI Summary

AI should be selected strategically rather than used everywhere. Humans are best for high-stakes judgment, accountability, ethics, and ambiguity; rules and traditional code are best for stable, deterministic logic; machine learning is best for pattern recognition and predictions in structured data; and generative AI is best for interpreting, generating, or reasoning over unstructured inputs when flexibility matters more than precision. Hybrid systems that combine these approaches are often most effective, and the key AI skill is knowing when not to use it.

🔑 Key Points

  • Humans are best for high-stakes decisions, accountability, ethics, ambiguity, and incomplete or conflicting information.
  • Rules and traditional code are best for clear, stable logic requiring fast, cheap, reliable, deterministic, and interpretable outputs.
  • Machine learning is best for finding patterns and making predictions in structured data when rules are too complex or simplistic.
  • Generative AI is best for unstructured data, interpretation, synthesis, language, and flexible reasoning when some error is tolerated.
  • Generative AI is non-deterministic, difficult to test consistently, and significantly more costly at scale than rules or traditional machine learning.
  • Hybrid systems combine code, machine learning, and generative AI so each component handles the task it is best suited for.
  • The right technology should be chosen based on the use case rather than on a goal of using as much AI as possible.

✅ Actionable items

  • Use humans for judgment, accountability, ethics, high-risk workflows, and significant ambiguity.
  • Use rules or traditional code when logic can be expressed as stable conditions such as 'if X happens, do Y.'
  • Use traditional machine learning to identify patterns and make predictions from past structured data.
  • Use generative AI to interpret, generate, or reason over complex inputs when flexibility matters more than precision.
  • For spending analysis, use a code-based calculator for transaction calculations, machine learning to identify trends, and an LLM to generate the final natural-language report.
  • Evaluate the amount of non-determinism and uncertainty a task can tolerate before choosing an LLM or agent.

🧭 Frameworks

Technology-selection heuristic08:52
  1. Use humans when judgment, accountability, ethics, or high-risk workflow handling is required.
  2. Use rules or traditional code for clearly defined logic that does not change often.
  3. Use traditional machine learning for patterns and predictions in past data.
  4. Use generative AI for interpretation, generation, or reasoning over complex inputs when flexibility matters more than precision.

🧰 Tools & AI usage

  • calculator tool — Use code and math to calculate spending totals deterministically.08:00

AI is used for

  • Customer support — Use an AI agent to understand intent, retrieve relevant knowledge, and generate a unique response.06:48
  • Natural-language reporting — Use an LLM to generate a clean report after calculations and trend identification are handled by other systems.08:11
  • Document question answering — Use retrieval-augmented generation to answer questions over document sets.06:35
  • Document summarization — Summarize large documents.06:41
  • Code generation — Generate code from complex inputs or requirements.06:41

📊 Numbers mentioned

Costs

  • Generative AI systems tend to be significantly more costly at scale than rules-based and traditional machine learning solutions.

⚖️ Advantages, risks & lessons

Advantages

  • Human judgment handles ambiguity, context, ethics, and accountability.
  • Rules-based systems are fast, cheap, reliable, interpretable, and straightforward to test, debug, and scale.
  • Machine learning scales well and can learn complex patterns in structured data.
  • Generative AI provides flexibility and fast time to success for reasoning, synthesis, and language tasks.
  • Hybrid systems balance deterministic calculations, statistical prediction, and natural-language generation.

Risks

  • Using AI where deterministic rules are sufficient introduces unnecessary risk.
  • Human judgment is expensive, slow, and difficult to scale.
  • Machine learning requires monitoring and maintenance because of model drift.
  • Machine learning has limited flexibility outside its initially defined problem scope and varying explainability.
  • Generative AI produces non-deterministic answers, is difficult to test, does not guarantee correctness across runs, and can hallucinate or calculate incorrectly.

Lessons

  • AI is not magic and is not the best solution for every problem.
  • Choosing a system involves trade-offs across accuracy, cost, complexity, and risk.
  • Humans, rules, machine learning, and generative AI are distinct options rather than stages on a progression toward agents.
  • The correct system should be matched to the problem instead of applying agents everywhere.
  • Knowing when not to use AI is an important AI skill.

💬 Quotes

The most important AI skill is knowing when not to use it.