top of page

Deciding when to use narrow AI-based or heuristic-driven solutions for a problem

First note: The following article is intended to audience who's trying to decide whether a problem should be solved using Artificial Intelligence methods or not. It can be for industrial purposes such as deciding where to allocate resources on (AI pipeline or not), or academic purposes, such as deciding whether a project's problem is suitable to be addressed using AI. If you enjoy exploring AI across various settings, and wants to experiment using AI or non-AI-based solutions to tackle different problems, then you can consider this article as simply sharing my experiences, which can hopefully help you in anyway possible in your journey learning AI.

Second note: I use the term 'Artificial Intelligence' as an euphemism to refer to kinds of solutions which I consider fundamentally different to heuristics-based or analytical solutions. Although the correct term should be narrow-AI based solution. Here is a table to illustrate the differences:


AI-based solution (also called narrow AI):

  • Usually probabilistic in nature

  • Usually poor explainability or interpretability

  • Examples involve deep neural networks, reinforcement learning


Heuristics-based solution (also referred as analytical:

  • Usually deterministic in nature

  • Usually good explainability and interpretability

  • Examples include linear regression, tree-search algorithms

Anyway, on the question of whether AI should be used to tackle certain problem. I come across this question quiet often with my colleagues, which is why I'll share in this following notebook my own thoughts and opinions on this matter, which is derived from my own adventure in studying AI algorithms and models✌️.


I'm already fully convinced that Artificial Intelligence (AI) will be a core protagonist of the Fourth Industrial Revolution (see a brief discussion in my website). This has attracted a lot of enthusiasts across the world (like me) to learn the algorithms and models proposed in the quest to achieve AI. However, not all the models or algorithms as of 2022[^1] are close in achieving Artificial General Intelligence (AGI), and they are mostly specialized into solving a task in a simplified setting tackling a problem reminiscence of a human faculty (although it's true that as the years go by, assumptions and restrictions are being lifted off, and the models, algorithms and data are being tweaked or enhanced so that they can work for more generalized tasks).

Anyway, the point is that there is yet an algorithm or model that can work for every known problem in math, and I want to share with you some of the tips I've learned when deciding what kind of problem should be solved using AI and which should follow a non-AI paradigm, that is, be solved using an analytical solution.

Briefly:

  • An AI solution is preferred to problems which are hard to be distilled mathematically

    • Although the pursuit of AI is to solve any problem (i.e. domain generalization), a simple heuristic can sometimes be more time and memory efficient than an AI solution.

    • The more you understand the problem, the less likely it's to be solved using an AI algorithm.

    • Example: The Tower of Hanoi puzzle is a problem that can be solved using a reinforcement learning agent, but it's better solved through a recursive algorithm.


  • An AI solution is preferred when the variables involved in the problem (input features predicting an output) don't follow a monotonic relationship and/or can't be linearised

    • An AI solution is preferred for a task when a model has to capture the non-linear, non-monotonic relationship between input features and output.

    • Models where there exists a linear or monotonic relationship between input features and output usually focus on their parameters' interpretability and explainability, while those that don't have such linear relationships care more about the accuracy of the models' predictions and optimal performance in a task.

    • Input features that usually bear no relationship with the output usually correspond to unstructured data, while those which do display some sort of monotonic relationship are carefully-processed data, which may have research backing then up.

    • Example: The task of cat image recognition based on input features consisting of pixels is better solved using an AI algorithm like deep learning. The task of coronary artery disease (CAD) detection based on known physiological features like age, gender or cholesterol levels are better solved using logistic regression.



  • A symbiosis rather than zero-sum choice

    • A purely AI solution may optimally solve a task and can generalize to different environments, but it may be time-consuming. A pure non-AI, heuristic solution may require too much understanding of a problem beforehand and can't be generalized. A mix of both strategies, such as what AlphaGo does by mixing reinforcement learning paradigm of environment interaction based on a tree-search heuristic can be better at solving a task. Albeit the creativity that is required to extrapolate the advantages of both the AI and non-AI paradigm may also be challenging.


  • NP problems, Artificial General Intelligence and quantum computing

    • It seems as though heuristics are preferred for polynomially-solvable problems since they aren't as cumbersome and time-consuming as AI-based solutions. What about NP problems?

    • Will the above recommendations still be useful once we achieve Artificial General Intelligence?

    • NP problems have the quality of being non-polynomial due to the fundamental, discrete, binary nature of computation. If quantum computing, which proposes that a state can be evaluated to different values at the same time, can simplify NP problems to P, then will all problems be solved through a simple, AI-General heuristic?


[^1]: I have to add "2022" because the pace in which AI algorithms and models are developing is exponentially fast (see The Singularity is Near, by Ray Kurzweil) to the point that by next year, or next 5 years, we just might witness an "Universal Algorithm" which allows a model to solve any kind of task and the whole argument of when to use AI to solve a problem is pointless.


For a thorough distillation of the above points with codes and examples, please visit my Github repository page @ https://github.com/awxlong/notes-re/tree/main/narrow-ai-vs-heuristic

1 view0 comments

Recent Posts

See All

Undergraduate Math

Study notes (in progress) covering a wide range of topics covering the math for an undergraduate student.

Comments


bottom of page