Artificial Intelligence

Artificial intelligence is the broad goal of getting a computer to solve problems that normally require intelligence, and machine learning is the specific, now-dominant approach to that goal: instead of a programmer hand-writing every rule, as the software-engineering topic described, a system learns its own rules directly from data. Search is the oldest classical-AI technique and a direct reuse of the algorithms topic's graph traversal: solving a puzzle or playing a game means navigating a huge space of possible next moves, exactly the same explore-and-backtrack idea behind a maze solver, just applied to a vastly larger and more abstract graph of possible game states instead of a physical grid. Reasoning is the other classical approach, applying explicit logical rules to known facts to derive new conclusions, directly extending the formal logic the discrete-mathematics and theory-of-computation topics already covered — if the rules and facts are complete enough, a reasoning system can prove new facts with certainty, but writing enough rules to cover a messy, real-world problem turns out to be extraordinarily hard, which is the exact gap machine learning was built to fill. Learning from data flips the entire approach: rather than hand-coding rules, a model is shown many examples and automatically adjusts its own internal parameters until it fits the patterns in that data, trading the certainty of hand-written logic for the ability to handle problems too complex or too fuzzy for anyone to write explicit rules for. Optimization is the mathematics-for-computing topic's calculus put directly to work: training a model means defining an error measurement and then using the derivative, exactly as the previous topic described, to repeatedly nudge the model's parameters a small step in whatever direction reduces that error, over and over, until the error stops shrinking. A neural network is the structure most modern machine learning trains this way: layers of simple units connected by weighted connections, where computing a prediction is literally the matrix multiplication the previous topic worked through by hand, chained across layers with a small nonlinear adjustment at each one — which is exactly why the GPU hardware the concurrency topic introduced, built from thousands of simple cores doing the same multiply-and-add on different data, fits training a neural network almost perfectly. None of search, reasoning, optimization, or neural networks replaced the others entirely; modern systems often combine them, and the next topic, computer graphics and vision, is one of the clearest places all of this comes together, training exactly this kind of network to recognize patterns in images instead of in rows of data.

A problem needs to be solved automatically
navigate options, apply rules, or learn a pattern from examples
Search
explore a huge space of possible moves, like a maze solver scaled up
Reasoning
apply explicit logical rules to known facts
Learning from data
fit parameters to examples instead of hand-coding rules
Optimization trains the model
the derivative nudges parameters downhill, repeatedly
A neural network: matrix multiplications, trained this way
the structure most modern machine learning actually uses
A Neural Network Is Layers of Matrix Multiply Input, through hidden layers, to an output — the same operation each time Input layer Hidden layer Output every connection is a weight, so each layer's output is literally the matrix-times-vector operation from mathematics for computing
Search Space vs. the Training Loop Two very different ways to reach an answer Search: explore the options same tree shape as a maze solver Training: repeat and improve 1. predict with current weights 2. measure the error 3. take the derivative 4. adjust weights downhill repeat thousands or millions of times search explores a space of discrete choices to find one good answer training nudges continuous numbers, gradually, toward a better model different shaped problems, same underlying instinct: improve, then check again

Take artificial intelligence further

Ask the copilot about this term, or have our engineers assess it against your process.