liveBook · Manning

Narrow ai

As explained in Generative AI in Action

Traditional AI is the class of artificial-intelligence systems primarily characterized here as making predictions from input data rather than generating novel content.

Narrow AI, also called traditional AI, extracts insights from data and makes predictions or classifications within a predefined domain. Its behavior follows coded rules, constraints, trained conditions, and expected outcomes, making results relatively deterministic and predictable. section 1.6

A typical narrow-AI implementation follows a structured data-science workflow:

  • Collect and prepare data. section 1.6
  • Analyze the data and engineer relevant features. section 1.6
  • Train the model and validate its predictions. section 1.6
  • Operate within the conditions and potential outcomes represented during training. section 1.6

Narrow AI is effective inside its prescribed lane but does not adapt reliably to situations outside its programmed knowledge. Unlike generative AI, it predicts or classifies existing possibilities rather than creating new content or flexibly interpreting an unfamiliar request. section 1.10 section 1.6

Pre-scripted customer service chatbot

A customer-service chatbot can automate responses by selecting from predefined scripts. It can be highly effective for recognized requests, but it cannot understand an unprogrammed question or generate a general step-by-step solution to a new problem. section 1.6 section 1.3.5

Table 1.4 How generative AI differs from traditional AI
Area
Difference
Creation versus prediction
Traditional AI focuses on prediction or classification tasks, identifying what something is or forecasting what will happen next based on existing data. Generative AI creates new content and outputs that did not exist in the original data.
Hosting and inference
Relative to generative AI, traditional AI models are less complex and require fewer computing resources, allowing them to run on various hardware, from small edge devices to large cloud clusters and everything in between. This flexibility cloud-to-edge is a huge advantage for enterprises.
Generative models are large and complex; for the most part, they are available only on large cloud compute nodes via an API, which has other advantages, such as the knowledge of the world encoded in these foundational models being available to everyone. However, there are other constraints that one needs to consider.
Note: There is a growing set of smaller open-source models that can be run on-premises, but today, they are still more experimental and nascent. Many claim to be AI Quality (AIQ), similar to OpenAI’s models. Given the broad spectrum that generative AI covers, there is a new emerging set of benchmarks, such as Stanford’s Holistic Evaluation of Language Model (HELM), and Hugging Face recently published an Open LLM Leaderboard. We will cover these in depth later in the book when talking about evaluations and benchmarks.
Training method
Generative models require a different method of training (self-supervision and multitask learning), which is longer and much more expensive because of the massive scale of data, model sizes, and computing resources required. The costs and complexity of managing this are enormous, and we will touch on them later in the chapter.
Training dataset
Generative AI models are typically trained on large datasets of existing content, while traditional AI models are typically trained on smaller datasets of labeled data. For example, a generative AI model for image generation might be trained on a dataset of millions of images. In contrast, a discriminative AI model for image classification might be trained on a few thousand labeled image datasets.
Model complexity
Generative AI models are often more complex than other types because they need to learn the patterns and relationships in the data to generate new content similar to the existing content.
Adaptation approach
Traditional AI has no adaptive techniques other than labeling more data and going through a full ML loop of training, deploying, and evaluating. Generative AI, in contrast, has vast world knowledge. Sometimes, one needs to tailor it to specific needs and tasks or distill internal private and proprietary knowledge; this is done via adaptation. Various techniques can be used depending on what is needed.

Compare narrow AI and generative AI across prediction versus creation, model complexity, and hosting requirements. section 1.6

How Generative AI in Action covers it

How deep it goes
Explains the data-science workflow and behavioral boundaries but stops short of mathematical derivation or model internals.
Examples
Uses a scripted customer-service chatbot and a simple algebra problem to show bounded behavior versus generative reasoning.
What you can do after
Evaluate whether a task fits bounded prediction and classification or requires generative flexibility beyond programmed conditions.
How it connects
Connects narrow AI with traditional AI, classical data science, generative AI, prediction, classification, and chatbots.

Also explained in

Compare how 2 books explain narrow ai →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Generative AI in Action. The section links point to the parts of the book it draws on.