AI

What Is AI?

Not a single machine or invention — a field of computer science for building systems that learn patterns from data and use them to do things that used to require human judgment. Here's the precise version, without the hype or the dismissiveness.

Artificial intelligence is a field of computer science concerned with building systems that perform tasks which, when done by humans, require judgment, perception, or reasoning — and most of what people call "AI" today is one specific branch of that field: systems that learn statistical patterns from data rather than following rules a programmer wrote by hand. The term gets stretched to cover everything from a spam filter to a humanoid robot, which is exactly why it's so widely misunderstood.

Understanding AI matters not because it's exotic, but because it's now infrastructure — embedded in search engines, recommendation feeds, code editors, cameras, cars, and customer service. Misunderstanding it produces two opposite errors: treating it as magic that understands the world the way people do, or dismissing it as "just autocomplete" with no real capability. Neither is accurate. This explainer replaces both errors with a working mental model — one precise enough to reason about what a given AI system can and can't be trusted to do.

What Is Artificial Intelligence, Exactly?

AI sits inside computer science as a field, not a single tool. It's best understood as a discipline plus a family of methods, differing from traditional software in one specific way: traditional software executes rules a human explicitly wrote, while most modern AI learns its own internal rules (parameters) from examples.

The hierarchy: Computer Science → Artificial Intelligence (field: systems that perform tasks requiring judgment/perception/reasoning) → Machine Learning (approach: learning patterns from data instead of hand-coded rules) → Deep Learning (technique: learning via multi-layered neural networks) → Large Language Models (application: deep learning applied to text/token prediction).

Plain-English definition: AI is software that learns to perform tasks — like recognizing images, predicting outcomes, or generating text — by finding patterns in data, rather than by following instructions a person wrote step by step.

More technical definition: AI refers to computational systems that use algorithms — often statistical or neural-network-based — to build internal representations (models) from data, and use those representations to produce outputs (predictions, classifications, or generations) on new inputs, typically without being explicitly programmed for each specific case.

Beginner version: AI is a way of teaching computers to get good at a task by showing them lots of examples, instead of telling them exactly what to do.

What this definition does NOT imply: It does not imply the system understands meaning the way a person does, that it is conscious, that it reasons the way humans reason, or that its outputs are reliably correct. "Learned a pattern that works" and "understood the world" are not the same claim — conflating them is the single most common source of confusion about AI.

AI, Machine Learning, Deep Learning, Generative AI: What's the Difference?

These terms are related but not interchangeable, and using them loosely is where most confusion starts.

TermWhat it actually refers to
AIThe overall field/goal — systems performing tasks requiring judgment
Machine LearningThe dominant method within AI — learning from data
Deep LearningA technique within ML — layered neural networks
Generative AIA capability — producing new content, usually via deep learning
LLMA specific type of model — deep learning applied to text
AutomationExecuting predefined tasks without human intervention; doesn't require AI (a thermostat is automation, not AI)
RoboticsThe physical/mechanical discipline of building machines that act in the world; AI is often the "brain," robotics the "body" — independent of each other

The practical consequence: someone who says "we're using AI" could mean anything from a simple if-then chatbot to a frontier model with billions of parameters. Precision about which layer you're talking about determines whether the rest of the conversation makes sense.

Why Does AI Exist?

AI exists to close the gap between what people need done and what people — or traditional software — can do efficiently. Concretely, AI systems are built to perceive (turn raw pixels, audio, or text into structured information), classify, predict, recognize patterns at scale, reason through multi-step problems, generate new content, recommend, optimize decisions under constraints, hold conversations, and control real-world systems in real time.

Ambition vs. Reality: AI's founding ambition, dating to the 1950s, was general machine intelligence — systems that reason and adapt across any domain the way people do. That goal remains unmet. What's actually been built and deployed at scale is narrow AI: extremely capable at bounded tasks, without general understanding. Almost everything called "AI" in products today is the narrow kind — not the general kind implied by decades of science fiction.

How Does AI Actually Work?

The single conceptual thread running through nearly all modern AI is a transformation: data becomes a representation a model can process, patterns in that representation get learned, the result is a model, new input runs through that model at inference time, and an output — a prediction, classification, or generated result — comes out the other end.

The pipeline: Data / Information → Representation (raw input becomes numbers/vectors a model can process) → Pattern Learning (internal parameters adjust to fit patterns in that data) → Model (the resulting structure that encodes what was learned) → Inference (new input runs through the frozen model) → Output (a prediction, classification, or generated result).

This is a general shape, not a single mechanism. A classical ML model (say, logistic regression for credit scoring) learns a relatively small set of weighted relationships between input features and an outcome. A deep learning image classifier learns layered representations — edges, then shapes, then objects — automatically, without anyone specifying what an "edge" is. A large language model learns statistical relationships between tokens across enormous text corpora, producing a model that predicts plausible next tokens given context. A reinforcement learning system learns by trial and error, adjusting behavior based on reward signals rather than labeled examples.

The building blocks, one level deeper:

  • Dataset: The examples used to train or evaluate the system. Its quality and coverage directly bound what the model can learn.
  • Parameters: The internal numeric values (weights) the model adjusts during training. Modern large models have billions of them — they're what "learning" actually changes.
  • Neural networks: A modeling structure of layered, interconnected nodes whose connection strengths are the parameters — the dominant architecture behind deep learning.
  • Loss function: A formula measuring how wrong the model's current output is; training works to minimize it via optimization (commonly gradient descent).
  • Embeddings: Numeric vectors positioned so similar items (words, images, users) end up close together — how models capture meaning and similarity numerically.
  • Tokens & context: Tokens are the word-piece units language models predict one at a time; context is the span of prior text a model can consider — a real, limited constraint on capability.
  • Evaluation: Testing a trained model against data it wasn't trained on, to estimate how it will actually perform in the real world.

Zoomed out, an AI system is the whole pipeline this powers: data feeds training, training (algorithms plus compute) produces a model, the model is evaluated before it's trusted, inference runs it against new inputs, an application wraps that inference in software people can use, a user interacts with it, and their usage generates feedback and new data that can improve the next version — closing the loop.

Training vs. Inference

This distinction is one of the most practically important — and most commonly confused — ideas in AI.

Training is the expensive, offline, one-time-per-version process of exposing a model to data and adjusting its parameters — it can take weeks and enormous compute, and the model changes. Inference is the cheap-per-call, repeated process of running the already-trained, frozen model on new input — the model's parameters do not change, and it has no persistent memory of your conversation beyond what's included in its input context.

Why this matters practically: when a chatbot seems to "learn" from a conversation, it isn't updating its underlying parameters — it's using the conversation history as additional context for that single inference call. When people expect a model to "remember" something forever after telling it once, they're conflating inference with training. Keeping the two straight prevents a lot of misplaced trust and misplaced blame.

What Can AI Do?

CapabilityExampleLimitation
PerceptionFace unlock, transcriptionFails on unfamiliar conditions, adversarial inputs
PredictionDemand forecastingAccuracy degrades when conditions shift from training data
ClassificationSpam filtering, medical image triageOnly as good as label quality and category coverage
RecommendationStreaming/shopping suggestionsCan create filter bubbles, over-fits to past behavior
GenerationText drafting, image synthesis, codeCan be fluent and wrong at once
ReasoningMath word problems, planningBreaks down on long or novel reasoning chains
OptimizationRoute planning, resource allocationRequires well-specified objectives; garbage-in-garbage-out
ControlAutonomous vehicles, roboticsHigh stakes for failure; sim-to-real gaps

Generative AI and Large Language Models

Generative AI deserves separate treatment because it inverts the default framing most people carry: instead of predicting a label for existing input, it produces new output that didn't exist before. Predictive systems answer "given this input, what category or value does it belong to?" Generative systems answer "given this input, what should come next?" — where "what comes next" can be a word, a pixel region, an audio sample, or a line of code.

Large language models are deep learning models trained on enormous amounts of text to predict the next token given the preceding tokens. That single training objective — next-token prediction — turns out to be powerful enough that, at sufficient scale, models trained this way become capable of translation, summarization, coding, and multi-step reasoning-like behavior, despite never being explicitly trained to do most of those specific tasks.

Conceptually, the model doesn't retrieve a stored sentence. At each step it computes a probability distribution over its entire vocabulary of possible next tokens, given everything so far, and selects one — sometimes the most likely, sometimes sampled with some randomness — then repeats, one token at a time. Outputs feel novel because the specific sequence generated in response to your specific input has, in the vast majority of cases, never occurred verbatim anywhere before — it's a new combination assembled from learned statistical patterns, not a lookup.

Why generated outputs can still be wrong (hallucination): The model is optimized to produce plausible-sounding continuations, not verified-true ones. There's no built-in mechanism guaranteeing the token sequence corresponds to a fact in the world — plausibility and truth are correlated in training data but not identical, so confident, fluent, incorrect statements (hallucination) are a structural possibility, not a rare bug.

A Brief History of AI

  1. Early AI (1950s) — can machines think? Formal logic and search-based problem solving.
  2. Symbolic AI — intelligence encoded as hand-written rules and logical relationships.
  3. Expert Systems (70s–80s) — rule-based systems for narrow domains; hit a ceiling on messy real-world data.
  4. Machine Learning — shift to statistical learning from data, better suited to messy patterns.
  5. Neural Networks — brain-inspired models, limited by compute and data availability at the time.
  6. Deep Learning (2010s) — more layers, data, and compute (GPUs) unlocked major jumps in vision and speech.
  7. Transformers (2017→) — an architecture built for long sequences and context; backbone of modern language models.
  8. Generative AI / Foundation Models (2020s) — very large, broadly-trained, often multimodal general-purpose models.

Each transition happened because the previous approach hit a real ceiling: symbolic AI couldn't scale to ambiguous real-world data; early neural networks were starved of compute and data; deep learning needed an architecture — the transformer — efficient enough to train genuinely large models. The throughline isn't "AI kept getting smarter" in a vague sense — it's specific technical bottlenecks getting solved one at a time.

What AI Cannot Reliably Do

Separate two very different claims: "current AI systems are unreliable at X" (empirical, likely-temporary) versus "AI cannot do X in principle" (stronger, often unproven or actively disputed). The well-documented limitations of current systems:

  • Hallucinations — fluent, confident, factually incorrect statements, because the training objective rewards plausibility, not verified truth.
  • Unreliable outputs under distribution shift — worse performance on inputs meaningfully different from training data.
  • Bias inherited from data — models tend to reproduce or amplify historical or social biases present in training data.
  • Brittleness / adversarial sensitivity — small, sometimes imperceptible input changes can cause large, wrong output changes.
  • Context limitations — a model can only "see" a bounded amount of prior text at once; anything outside that window is effectively invisible to that call.
  • Reasoning failures on long or novel chains — multi-step logical or mathematical reasoning degrades as problems get longer or more unlike training data.
  • Lack of grounded, embodied understanding — models learn statistical relationships between symbols, not the physical referents behind them; genuinely disputed how much this matters for capability.
  • Uncertainty often isn't communicated — many systems output an answer without a calibrated sense of "how confident should you be," shifting interpretive burden onto the user.

None of this means AI is useless — it means its outputs need verification proportional to the stakes of the decision being made.

Benefits, Risks, and Trade-Offs

At the individual level, AI changes how people work (drafting, coding, analysis assistance), learn (personalized tutoring, alongside over-reliance risk), create, and make decisions. At the organizational level it affects productivity, customer service, software development, research, and competitive dynamics. At the societal level it touches labor markets, education, media and misinformation, scientific research, inequality, privacy, security, and governance.

Trade-offWhy the tension exists
Accuracy vs. costHigher-accuracy models are typically larger and more expensive to train and run
Capability vs. reliabilityBroader, more capable models can be harder to fully verify or constrain
Scale vs. efficiencyBigger models perform better on many benchmarks but consume disproportionately more compute/energy
Automation vs. oversightMore autonomous systems cut labor cost but raise the consequence of undetected errors
Personalization vs. privacyBetter recommendations require more behavioral data collection
Openness vs. safetyOpen model weights enable broad research but also broader misuse potential
Speed vs. verificationFaster deployment cycles leave less time to catch failure modes before impact

AI and Human Intelligence

AI is called "intelligence" partly for historical reasons — the field's founders explicitly aimed at replicating human cognitive tasks — and partly because some systems' observable behavior resembles what we associate with intelligent agents: generalizing beyond exact training examples, adapting to novel-seeming inputs, performing tasks that historically required human judgment.

Human intelligence is embodied, grounded in sensorimotor experience and social context, and comes with intentions, goals, and a persistent sense of self across time. Current AI systems have none of that by default — no continuous experience between calls, no goals beyond what a training objective encoded, no grounding in physical reality beyond statistical correlations in training data.

Whether competent task performance implies human-like understanding is genuinely contested in philosophy of mind and AI research, and this piece won't resolve it — treat confident claims on either extreme with some skepticism. What's not in serious scientific dispute: current AI systems are not established to be conscious or sentient.

When Should AI Be Used — and When Shouldn't It?

Use AI when the task involves patterns too complex to hand-code as rules, you have enough representative data, some error rate is tolerable or cheap to catch, the task is repetitive at a scale where full human review isn't feasible, and speed or scale benefits clearly outweigh imperfect output quality.

Be cautious when errors are costly, irreversible, or affect rights, safety, or finances; when training data may not represent the real deployment population; when the task needs up-to-date, verifiable facts and the system has no grounding or retrieval; or when outputs will get little to no human review. Do not rely on AI alone for decisions with significant legal, medical, financial, or safety consequences without human sign-off, where explainability is required and the system can't provide it, or where a deterministic rule solves the problem more cheaply — don't build a model to check if a number is even.

Asking "if not AI, what else?" keeps AI from being treated as a default hammer: conventional rules-based systems suit stable, fully-known, auditable logic; human expertise suits judgment needing accountability or empathy; databases and search suit precise retrieval of known facts; simple interpretable statistics can match a complex model's explanatory power with far more transparency; manual processes win at low volume. Often the actual best answer is a hybrid — AI drafts, flags, or ranks; a human reviews and decides.

The Complete Mental Model

The full loop: Input (the raw question, image, sentence, or signal) → Data / Representation (how input and prior training examples become numbers a model can use) → Model (the learned structure: parameters + architecture) → Training (the offline process that produced the model against a loss function) → Inference (running the frozen model against new input) → Output (a prediction, classification, ranking, or generated artifact) → Evaluation (the ongoing check of output quality against held-out data and real usage) → Human Interaction (the interface and judgment layered around the model's raw output) → Real-World Effects (the downstream individual, organizational, and societal consequences).

In plain English: someone assembles data, uses it to train a model that captures statistical patterns in that data, deploys that frozen model behind an application, and repeatedly runs new inputs through it to get outputs — outputs whose quality is only as good as the data, architecture, and evaluation behind them, and whose real-world value depends on how well human-designed interfaces and oversight handle the gap between "plausible" and "correct." Data quality bounds model quality, model quality bounds output quality, and output quality bounds real-world impact — in both directions, good and bad.

AI is a broad field of computational methods that build systems capable of learning patterns from data and using those patterns to perform tasks that traditionally required human judgment — real but bounded: strong at pattern generalization within the scope of its data, and unreliable, sometimes confidently so, outside that scope.

Explore Related Concepts
Frequently Asked Questions
What is AI in the simplest terms?+

AI is software that learns to perform tasks — like recognizing images, predicting outcomes, or generating text — by finding patterns in data, rather than by following instructions a person wrote step by step.

What is the difference between AI and machine learning?+

AI is the broader field/goal: building systems that perform tasks requiring judgment, perception, or reasoning. Machine learning is the dominant method within AI today: learning statistical patterns from data instead of following hand-coded rules. Every ML system is AI; not all AI is ML.

What is generative AI?+

A capability, usually built on deep learning, that produces new content — text, images, audio, video, or code — rather than just predicting a label for existing input. Large language models are the text-based form, trained to predict the next token given prior context.

Can AI think or understand like a human?+

This is genuinely disputed. Current AI systems are not established to be conscious or sentient, and their competence comes from statistical pattern learning rather than embodied experience. Whether sufficiently broad competent behavior constitutes "real" understanding remains an open question in philosophy of mind and AI research.

What can't AI do reliably?+

Current systems can hallucinate, degrade on inputs unlike their training data, inherit bias from that data, and struggle with long or novel multi-step reasoning. These are documented limitations of current systems, not proof AI can never improve on them.

Part of the What Is? explainer series at The Best Blog Ever.