"There is no ghost in the machine. There is only linear algebra, wearing a very convincing costume."
Every time a product manager calls an AI system "smart" in a standup, somewhere an ML engineer flinches. Not because the word is entirely false, but because the actual mechanism is both less mystical and more interesting than "smart" implies. There's no brain running in a data center. There's no understanding in any sense you'd apply to a person. What's actually running is a massive volume of arithmetic, structured well enough that the output resembles cognition. Consider this the Anatomy of AI, opened up for inspection — vectors, pipelines, and the current controversies, no hand-waving included.
Artificial Intelligence is, formally, the field concerned with building systems that execute tasks normally requiring human cognition — pattern recognition, language generation, prediction, decision-making under incomplete information. Nearly everything shipped today under the "AI" label falls inside a narrower subfield called machine learning (ML), and inside that, a still-narrower one: deep learning.
The hierarchy, quickly:
The term "Artificial Intelligence" was coined in 1956 at the Dartmouth Summer Research Project, proposed by John McCarthy, Marvin Minsky, Nathaniel Rochester, and Claude Shannon. Their original proposal claimed "every aspect of learning... can in principle be so precisely described that a machine can be made to simulate it," and budgeted two months to solve it. Seventy years and counting.
Key milestones:
The takeaway for engineers: progress didn't come from a conceptual breakthrough about cognition. It came from a better architecture (the transformer), more training data, and orders of magnitude more compute — three unglamorous variables that simply compounded.
Neural networks borrow their naming convention from biological neurons, but the analogy is superficial. A biological neuron is a self-repairing, chemically complex cell embedded in a living system. An artificial "neuron" is a single scalar — the result of a weighted sum passed through an activation function. Calling it a "brain" is roughly equivalent to calling for loops "decision-making." Useful shorthand for onboarding, technically inaccurate.

Each artificial neuron performs one operation: n inputs in, one output. The math:
z = (w1*x1 + w2*x2 + ... + wn*xn) + b
a = activation(z)
x1...xn — inputs: pixel values, token embeddings, any numeric feature vectorw1...wn — weights: learned coefficients determining input importanceb — bias: a learned offsetactivation() — a non-linear function applied to zRemove the non-linearity and any number of stacked layers collapses, algebraically, into a single linear transformation — no better than a one-layer model regardless of depth. Standard activation functions in production systems:
f(z) = max(0, z) — cheap to compute, avoids vanishing gradients, default for most hidden layers.f(z) = 1 / (1 + e^-z) — bounds output to (0, 1), used where probability-like output is needed."Forward propagation" is pushing an input tensor through the network layer by layer until an output tensor emerges. For a single dense layer, in matrix notation:
Z = W·X + B
A = activation(Z)
W is the weight matrix for that layer, X the input vector, B the bias vector. This is why AI workloads are, fundamentally, linear algebra at industrial scale — a single inference call to a large language model triggers trillions of matrix multiplications, which is precisely why GPUs and TPUs exist instead of relying on general-purpose CPUs for this workload.
Training is the iterative process of updating every weight and bias to minimize prediction error. The loop:
Loss computation — comparing predicted output against ground truth via a loss function, commonly cross-entropy loss for classification tasks:
L = -Σ y_true * log(y_predicted)
∂L/∂w.w_new = w_old - learning_rate * (∂L/∂w)
Run this loop over billions of training examples across millions of iterations, and the network converges on a weight configuration that produces useful output. Nobody hand-tunes any individual weight — it's discovered through optimization, not engineered directly. This is exactly why these models are described as black boxes: there's no single weight you can point to and say "this is the Paris-is-the-capital-of-France weight." The representation is distributed statistically across billions of parameters.
A moderately complex Artificial Neural Network (ANN) decomposes into roughly six functional stages:
Caveat for anyone benchmarking this against real architectures: production LLMs like Claude or GPT don't stop at six layers — they stack dozens to hundreds of transformer blocks, each with multiple internal sub-layers (multi-head attention, layer normalization, feed-forward networks). The six-stage breakdown above is a conceptual model, not a literal layer count you'd find in a config file.
This is where the "brain" framing collapses entirely for anyone who's actually inspected model internals. AI doesn't "think" — it converts every input into vectors (fixed-length arrays of floats) and operates on them geometrically.
The textbook demonstration: in a properly trained embedding space, the vector operation
vector("king") - vector("man") + vector("woman") ≈ vector("queen")
approximately holds. That's literal vector arithmetic, not metaphor, and it happens to align with human semantic intuition. "Thinking," at the implementation level, is a trajectory through this space, with the final token or output read off wherever that trajectory lands.
Early LLMs generated a response in one forward pass — glorified autocomplete. Modern "reasoning" models improve output quality with Chain-of-Thought (CoT) prompting, formalized in Wei et al.'s 2022 Google paper. The core finding: models produce measurably better answers when forced to emit intermediate reasoning tokens instead of jumping straight to a final answer.
That's evolved into more structured techniques:
Worth stating plainly for anyone building on top of these systems: this is not reasoning in the cognitive sense. It's a learned statistical correlation — emitting reasoning-shaped tokens increases the probability of subsequent correct tokens, because reasoning-like sequences correlated with correct answers in the training corpus. The model isn't verifying its own logic the way a person would; it's exploiting a distributional pattern that happens to resemble verification.
An LLM's parametric knowledge freezes at training completion — the knowledge cutoff. Query it about anything past that point and it either flags uncertainty or, worse, hallucinates — generates a fluent, confident, factually wrong answer. RAG addresses this directly, introduced in Lewis et al.'s 2020 paper at Facebook AI Research, "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks."
The architecture: decouple knowledge storage from the model's weights by attaching an external, queryable retrieval system at inference time.

A production RAG stack typically runs:
text-embedding-3, Voyage embeddings, etc.), producing a dense vector, typically 384–3,072 dimensions.cosine_similarity(A, B) = (A · B) / (||A|| * ||B||)
"Using the following context, answer the question: [chunks] [query]".A vector database exists to solve one problem efficiently: Approximate Nearest Neighbor (ANN) search in high-dimensional space at scale. Standard relational databases index for exact-match or range queries and perform poorly on "find the k most similar vectors" workloads. Vector databases typically implement HNSW (Hierarchical Navigable Small World) graph indexes, trading marginal recall for major throughput gains.
Production vector database options: Pinecone, Weaviate, Milvus, Qdrant, Chroma, and vector-native extensions on existing systems, such as pgvector for PostgreSQL.
Advantages:
Limitations:
Typical deployments: documentation-grounded customer support bots, legal and medical research assistants, enterprise document Q&A systems, and coding assistants retrieving relevant code snippets from a large repository before generating a response.
There's no standardized IQ test for software, so the field relies on benchmarks — curated evaluation sets targeting specific capabilities:
A relevant caveat for anyone citing benchmark scores in production decisions: data contamination — benchmark questions leaking into training corpora — is a documented, ongoing issue, inflating reported scores without corresponding real-world capability gains. This is driving the field toward held-out, continuously refreshed, or dynamically generated evaluation sets, an arms race between evaluators trying to measure genuine capability and models that are, deliberately or incidentally, very good at memorizing the answer key.

Modern image generation (Midjourney, DALL·E, Stable Diffusion, Imagen) runs on diffusion models. Pipeline:
Training runs this process in reverse: the model is shown millions of real images with synthetic noise added at controlled intensities and trained to predict and remove that noise. At sufficient scale, the network internalizes the statistical structure of "plausible image" and applies that learned prior to pure random noise, conditioned entirely on the text prompt.
Video generation (Sora, Veo, Runway) extends the diffusion approach across an added temporal dimension. Pipeline:
The compute cost gap between video and image generation is straightforward: a still image is one correlated tensor; a five-second, 24fps clip is 120 mutually-constrained frames requiring temporal consistency — an exponential increase in optimization complexity relative to a single image.
When an AI system "searches the internet," it isn't crawling the web itself in real time. The pipeline:
This is RAG applied to an open, web-scale corpus instead of a curated one — which is why the RAG section earlier in this piece wasn't tangential; it's the same architecture running against a different retrieval target.
Code-generation models use the same transformer architecture as general-purpose LLMs, trained on a corpus heavily weighted toward source repositories, technical documentation, and — critically — signal correlating code with outcomes (compilation success, test pass rate). A modern coding agent's execution loop:
A minimal illustration of next-token prediction applied to source code:
# The model isn't reasoning about mathematical induction as a formal concept.
# It has seen this exact pattern millions of times in training data
# and learned the statistical shape of a correct implementation.
def factorial(n):
if n <= 1:
return 1
return n * factorial(n - 1)
The model isn't evaluating recursion conceptually. It has encountered this function shape thousands of times during training and learned, statistically, the most probable next token given everything preceding it — and that mechanism, at sufficient parameter and data scale, produces functionally correct code.
This section shifts from architecture to business model, and it's the part every paying user should actually understand. LLM training requires an enormous data volume — books, web text, code repositories, and, increasingly, conversational data generated by users interacting with the models themselves.
That creates a real tension for paying subscribers. Multiple independent reports document a policy change Anthropic implemented around late September 2025: conversations from Free, Pro, and Max subscribers became training-eligible by default, requiring users to manually opt out via privacy settings if they want exclusion. Training-eligible data retention extends to five years, up from a prior 30-day deletion window. Business, Enterprise, and API accounts remain contractually excluded from training use. Consumer-tier users must locate and disable the "Help improve Claude" toggle to opt out.
The structural irony: a paid subscription typically implies you're the customer, not the product. Under this policy, unless a paying consumer explicitly opts out, their usage data becomes training input for the next model release — meaning the same user is simultaneously the customer and an unpaid data contributor. This is disclosed in the terms of service, and disclosure is not the same as informed understanding at the point of signup. For anyone who wants a definitive answer about their own account, the practical step is: check your Privacy Settings directly, since defaults and policies have changed before and can change again.
This isn't specific to one vendor — it reflects an industry-wide dependency. Models require continuous, high-quality conversational data to keep improving, and real user interactions carry signal that scraped web corpora don't, precisely because they represent authentic, task-relevant human-model exchanges. The actionable takeaway isn't outrage; it's checking the setting.
On March 31, 2026, between approximately 00:21 and 03:29 UTC, Anthropic accidentally exposed the full internal source code of Claude Code, its terminal-based agentic coding tool, on the public internet. Root cause and timeline:
@anthropic-ai/claude-code npm package shipped with a 59.8 MB source map file accidentally included in the public package, missing from .npmignore.Contents of the leak:
Strategic implications: competing teams building AI coding agents (Cursor, GitHub Copilot, Windsurf, OpenAI's Codex, among others) gained a detailed, real-world reference implementation of a production-grade agentic harness, previously only inferable from external behavior. Multiple industry analyses concluded this reinforces an existing argument in the field: the harness layer wrapping a model is not a durable competitive moat, since it's reverse-engineerable once exposed. Differentiation increasingly has to come from underlying model capability rather than orchestration tooling.
Concurrent, unrelated incident: during the same window, a separate supply-chain attack compromised the axios npm package, publishing malicious versions containing a Remote Access Trojan (RAT). Anyone running npm install or updating Claude Code during the specific 00:21–03:29 UTC window was advised to audit lockfiles for the compromised versions and treat affected machines as potentially compromised. This was coincidental timing with a genuinely independent incident, not caused by the Claude Code leak, but it substantially complicated incident response during the initial hours.
Anthropic subsequently pursued DMCA takedowns against repositories hosting the leaked source and shifted its recommended installation path to a standalone native installer, reducing dependency on the npm chain responsible for the exposure. Claude Code remains closed-source, proprietary software; the leak didn't alter its licensing or distribution model — it simply meant that, for a few hours, the full implementation was publicly readable.
Strip away the branding, the anthropomorphic language, and the increasingly cinematic marketing videos, and what remains is this: matrices multiplying matrices, gradients updating weights, vectors clustering by semantic proximity, and large pipelines of retrieval, denoising, and prediction, engineered with genuine rigor. None of this requires assuming machine consciousness to be useful, and none of it requires dismissing its usefulness to stay precise about the mechanics — or about who actually benefits from your data in the process.
The Anatomy of AI was never a brain. It was always vectors and math, engineered at scale.