Search topics and sections

Artificial intelligence (AI) is the science and engineering of making machines that do tasks people link with intelligence, such as learning, reasoning, solving problems, seeing, and using language.[1][2] AI is a branch of computer science, and it draws on mathematics, psychology, neuroscience, linguistics, philosophy, and economics.[3]

The main approach today is machine learning, especially deep learning. In machine learning, a program learns patterns from data instead of following rules written by hand.[4][5]

AI already runs search engines, speech recognition, medical tools, robotaxis, and chatbots.[2][6] No current system matches the full flexibility of human thinking, but some match human experts at specific tasks.[2]

What counts as intelligence

Psychologists describe intelligence as a mix of many abilities, not one trait. AI research has focused mainly on five of them: learning, reasoning, problem solving, perception, and using language.[2]

Four ways to define AI

The textbook Artificial Intelligence: A Modern Approach, by Stuart Russell and Peter Norvig, sorts definitions of AI along two lines. One line asks whether a definition is about thinking or about acting. The other asks whether success is measured against humans or against an ideal standard of correct behavior, called rationality.[7][3]

Measured against humans Measured against an ideal (rationality)
Thinking Thinking humanly: model how people think (cognitive modeling) Thinking rationally: follow the "laws of thought" (logic)
Acting Acting humanly: behave like a person (the Turing test) Acting rationally: build a rational agent

Russell and Norvig themselves favor acting rationally. In their view, AI builds agents that act according to ideal standards of rationality.[7]

The Turing test

In 1950, Alan Turing proposed replacing the question "Can a machine think?" with a test of behavior.[7] In the Turing test, a judge sends typed questions to a hidden human and a hidden machine. If the judge does no better than chance at telling which is which, the machine passes.[7]

John McCarthy called this a one-sided test. A machine that passes should count as intelligent, but a machine could be intelligent without knowing enough about people to imitate one.[1]

Agents

An intelligent agent takes in percepts (what it senses of its environment at each moment) and produces actions based on them.[7] Its actions change the environment, and a performance measure scores the resulting sequence of states.[7] A thermostat, a chess program, and a self-driving car can all be described this way.

Agent and environment loopperceptsactionsAgentagentfunctionEnvironmentsequence of statesperformancemeasure
An intelligent agent gets percepts from its environment and acts on it through its agent function. A performance measure scores the sequence of states the environment passes through.

Narrow and general AI

A system built for one task, such as playing chess or picking out a person in photos, is called artificial narrow intelligence, or weak AI.[8] Artificial general intelligence (AGI) would perform on par with a human, and artificial superintelligence would exceed humans.[8]

No current system matches full human flexibility across wide domains or in tasks that need a lot of everyday knowledge.[2] A related but looser term, general-purpose AI, means AI that can perform a wide variety of tasks.[9]

Two broad approaches

AI has two long-running traditions. Symbolic AI stores knowledge as strings of symbols and processes them with rules. The connectionist approach stores what it learns as connection strengths inside a neural network.[10]

Most modern systems follow the second tradition.[4]

Symbolic AI

Symbolic AI treats thinking like a program working on symbols.[10] An early example is the Logic Theorist by Allen Newell and Herbert Simon, which proved basic theorems of logic.[7]

Many problems can be framed as search: trying steps until one reaches the goal. The 1955 proposal that launched the field noted that trying all possible answers in order works but is inefficient.[11] Much of classical AI therefore studies search algorithms and heuristics, which are rules of thumb that cut down the options to check.[3]

Expert systems were the main commercial use of symbolic AI. Each has a knowledge base of facts, usually written as if-then rules gathered from human experts, and an inference engine that applies the rules to reach an answer.[12] The first, later called Dendral, was built in 1965 at Stanford by Edward Feigenbaum and Joshua Lederberg to analyze chemical compounds.[12]

Machine learning

Machine learning trains a piece of software, called a model, to make predictions or generate content from data.[5] Instead of being given rules, the model adjusts itself until its outputs fit the examples. Google's machine learning course groups such systems into four kinds.[5]

Kind What it learns from Example task
Supervised learning Examples paired with correct answers Labeling emails as spam or not spam
Unsupervised learning Data with no answers given Sorting similar items into groups (clustering)
Reinforcement learning Rewards or penalties for actions in an environment Learning a strategy, called a policy, that earns the most reward
Generative AI Patterns in data, used to make new but similar data Writing text, making images, summarizing articles

Deep learning is a part of machine learning that uses neural networks with many layers.[4][8] These networks are loosely inspired by the brain.[4]

Artificial intelligence, machine learning, and deep learningArtificialintelligencerules, logic, searchMachine learninglearns from dataDeep learningmany-layerneural networks
Deep learning is a subset of machine learning, and machine learning is a subset of artificial intelligence. Artificial intelligence also covers methods built on rules, logic, and search.

How neural networks learn

Artificial neurons

A neural network is built from simple units, the analogs of neurons, joined by weighted connections.[10] Each unit adds up its inputs, each multiplied by the weight of its connection, and passes the sum through an activation function.[10][13]

y=f(∑i=1nwixi+b)y = f\left(\sum_{i=1}^{n} w_i x_i + b\right)
  • x1,…,xnx_1, \dots, x_n are the unit's inputs.
  • wiw_i is the weight on input ii. A positive weight boosts the unit and a negative weight inhibits it.[10]
  • bb is the bias, a built-in value that shifts the point at which the unit switches on.[13]
  • ff is the activation function, such as a hard threshold, sigmoid, tanh, or ReLU.[10][13]
  • yy is the unit's output, which feeds the next layer.

Frank Rosenblatt's 1958 perceptron was a network of this kind with a single layer that learned to sort inputs into two categories.[14]

Layers and depth

Units are arranged in layers. An input layer holds the raw data, hidden layers transform it, and an output layer gives the prediction.[13] Networks with many layers are called deep, and their depth lets them learn features in stages, from simple to complex.[4]

An artificial neuron and a layered neural network One artificial neuron x₁ x₂ x₃ w₁ w₂ w₃ Σ b (bias) f (activation) y y = f(w₁x₁ + w₂x₂ + w₃x₃ + b) A layered network more hidden layers = deeper network input layer hidden layers output layer data flows forward
Left: one artificial neuron multiplies inputs x1,x2,x3x_1, x_2, x_3 by weights w1,w2,w3w_1, w_2, w_3, adds a bias bb, and passes the sum through an activation function to give y=f(w1x1+w2x2+w3x3+b)y = f(w_1x_1 + w_2x_2 + w_3x_3 + b). Right: a layered network in which every node connects to every node in the next layer, and data flows from the input layer through two hidden layers to the output layer.

Training with gradient descent

Training searches for weights that make the network's outputs match the desired outputs. The weights start as small random values.[10][15] A loss function measures how far the outputs are from the targets, and gradient descent lowers it by repeating these steps:[15]

  1. Compute the loss with the current weights and bias.
  2. Find the direction in which to change each weight to reduce the loss.
  3. Move each weight a small amount in that direction.
  4. Repeat until more steps no longer lower the loss much. This state is called convergence.

Each step updates a weight like this:

w←w−η ∂L∂ww \leftarrow w - \eta \, \frac{\partial L}{\partial w}
  • LL is the loss.
  • ∂L/∂w\partial L / \partial w is the gradient, the slope of the loss with respect to the weight ww.
  • η\eta is the learning rate, a small positive number that sets the step size. For example, a gradient of 2.5 and a learning rate of 0.01 change the weight by 0.025.[16]

Backpropagation is the most common training algorithm for neural networks. It makes gradient descent practical for networks with many layers.[17]

Gradient descent on a loss curveLoss LWeight wSlope ∂L/∂wStep size set bylearning rate ηMinimum loss
In gradient descent the weight ww moves downhill on the loss curve LL. Each step is the slope ∂L/∂w\partial L/\partial w times the learning rate η\eta, so steps get shorter as the curve flattens toward the minimum.

Generalization and limits

The goal is not to memorize the training examples but to generalize: to give good answers for inputs the network never saw.[10] Training often takes hundreds of thousands of rounds of weight changes. Chips built for parallel math, called graphics processing units (GPUs), have made this heavy work faster.[10]

People and many animals can learn from a single example, such as a child who sees one new kind of vehicle and knows its name from then on. Standard training methods such as backpropagation are far from explaining this "one shot" learning.[10]

Language models and generative AI

Transformers

In 2017, a team of researchers introduced the Transformer, a network design based only on attention.[18] It dropped two older techniques: recurrence, which reads text one step at a time, and convolutions, which scan the input with small sliding filters.[18] The result was easier to run in parallel and took much less time to train.[18]

The key part is self-attention. For each token (a word or piece of a word), self-attention asks how much each other token in the input affects how that token should be read.[19] In the sentence "The animal didn't cross the street because it was too tired," self-attention finds that "animal" matters more than "street" to the word "it".[19]

Self-attention for the word "it" The animal didn't cross the street because it was too tired which earlier noun does it refer to? thicker line = more attention
Self-attention for the word "it" in the sentence "The animal didn't cross the street because it was too tired". The thickest, darkest line runs to "animal" and a thinner one to "street", so the model links "it" mainly to "animal".

Large language models

A large language model (LLM) is trained on a huge amount of text. In essence it is an autocomplete: it predicts the text that comes next, one token at a time.[19] Large Transformers have hundreds of billions or even trillions of parameters, the adjustable weights of the network.[19]

The first phase of training is usually unsupervised. The model learns by predicting tokens hidden from it in the training text.[19] Models are often trained further with supervised or reinforcement learning for specific tasks.[5]

ChatGPT, released by OpenAI on 30 November 2022, was fine-tuned (given extra training for a narrower task) from a GPT-3.5 model. It was trained with reinforcement learning from human feedback, using conversations and ratings from human trainers.[20]

Next-token prediction by a language modelThe cat sat on thelanguage modelpossible next tokensmatfloorsofaroofillustrative probabilitiesappend and repeat
A language model takes a prompt, gives a probability to each possible next token, and picks one, here "mat". The chosen token is added to the prompt and the process repeats, so text is produced one token at a time.

Known problems

  • LLMs hallucinate, meaning their outputs often contain mistakes.[19] ChatGPT's makers noted at launch that it "sometimes writes plausible-sounding but incorrect or nonsensical answers."[20]
  • They use large amounts of computing power and electricity.[19]
  • Like other machine learning models, they can show bias.[19]
  • They still struggle with complex reasoning and planning tasks, even when correct solutions provably exist.[6]

Main areas of research

The field splits into areas that match the abilities AI tries to reproduce.[3] AI research covers, among others:

For uses in specific industries, see applications of artificial intelligence.

History

AI has gone through cycles of high hopes, disappointment, and funding cuts. The full story is in history of artificial intelligence.

Timeline of artificial intelligence, 1950 to 20251950197520002025Turing proposes his testPerceptron unveiledPerceptrons bookLighthill reportDeep Blue beatsKasparovAlexNet wins ImageNetChatGPTNobel prizes for AI work; EU AI Act in forceDartmouth workshopFirst AI winterExpert systems boomSecond AI winterAlphaGo beats Lee SedolTransformerAlphaFold2
Timeline of selected events in artificial intelligence from 1950 to 2025, drawn to an even scale of years. The first AI winter (1974 to 1980) and the second AI winter (1987 to 1993) are shaded blue, and the expert systems boom between them is shaded ochre.

Founding (1950s)

Turing's 1950 paper Computing Machinery and Intelligence laid out the question and called for building machines to answer it.[7] On 31 August 1955, John McCarthy, Marvin Minsky, Nathaniel Rochester, and Claude Shannon proposed a two-month, ten-person "study of artificial intelligence" at Dartmouth College for the summer of 1956.[11]

The proposal rested on the conjecture that "every aspect of learning or any other feature of intelligence can in principle be so precisely described that a machine can be made to simulate it."[11] The Dartmouth workshop of 1956 is generally taken as the official start of the field. Newell and Simon presented the Logic Theorist there.[7]

In July 1958, the US Office of Naval Research unveiled the perceptron, built by Frank Rosenblatt at the Cornell Aeronautical Laboratory. It was an early neural network that learned from examples.[14]

Setbacks and the first AI winter (1966 to 1980)

Early progress fell short of early promises. A 1966 advisory report found no useful machine translation of general scientific text, and US government funding for machine translation projects was cancelled.[21] In 1969, Minsky and Seymour Papert published Perceptrons, which proved limits of simple neural networks, and funding for neural network research soon dwindled to almost nothing.[21][14]

In 1973, the Lighthill report for the UK Science Research Council formed the basis for the British government's decision to end support for AI research in all but two universities.[21] US defense funding for AI research also fell around this time.[21] A drop in funding and interest like this is called an AI winter, and the first is often dated 1974 to 1980.[22]

Accounts differ on how deep this winter was. AI researcher Nils Nilsson, in his history of the field, calls roughly 1975 to 1985 the "boomtimes" for AI, because promising applications kept overall funding up.[21]

Expert systems and the second winter (1980 to 1993)

In the early 1980s, expert systems began to make money. The first successful commercial one, R1, helped Digital Equipment Corporation configure computer orders, and by 1986 it was saving the company an estimated 40 million dollars a year.[21] The AI industry grew from a few million dollars in 1980 to billions of dollars in 1988.[21]

AI researchers themselves introduced the term "AI winter" at a 1984 panel, near the peak of this boom, to warn against hype.[21]

The market for specialized AI hardware collapsed in 1987. Expert systems also proved too costly to maintain, because they were hard to update, could not learn, and were brittle with unusual inputs.[22] A second AI winter is often dated 1987 to 1993.[22]

Machine learning and landmark wins (1990s to 2010s)

  • 1997: IBM's Deep Blue beat world chess champion Garry Kasparov 3.5 to 2.5 in a six-game match. It was the first computer to defeat a reigning world champion in a match under standard tournament time controls.[23]
  • 2012: A deep convolutional neural network from Geoffrey Hinton's group, later known as AlexNet, won the ImageNet challenge.[4] The correct label was missing from its five top guesses on 15.3% of test images, compared with 26.2% for the second-best entry.[24] It was trained on 1.2 million labeled images using two GPUs over five to six days.[24]
  • 2016: DeepMind's AlphaGo beat Lee Sedol at the board game Go 4 to 1 in Seoul.[25][26] Lee held the rank of 9-dan, the highest professional rank, and had won 18 world titles.[25]
  • 2019: Yoshua Bengio, Geoffrey Hinton, and Yann LeCun received the 2018 Turing Award for breakthroughs that made deep neural networks a critical part of computing.[4]

Generative AI (2017 onward)

  • 2017: The Transformer design was published.[18]
  • 2020: Demis Hassabis and John Jumper presented AlphaFold2, which predicts the 3D structure of proteins.[27] It has been used to predict the structure of virtually all 200 million proteins that researchers have identified.[27]
  • 2022: ChatGPT was released to the public.[20]
  • 2024: John Hopfield and Geoffrey Hinton won the Nobel Prize in Physics "for foundational discoveries and inventions that enable machine learning with artificial neural networks."[28] Hassabis and Jumper shared the Nobel Prize in Chemistry with David Baker, with their half awarded "for protein structure prediction."[27]

AI today

The Stanford AI Index tracks the field each year. Its 2025 report found:[6]

  • 78% of organizations reported using AI in 2024, up from 55% the year before.
  • US private AI investment reached 109.1 billion dollars in 2024. Generative AI drew 33.9 billion dollars of private investment worldwide.
  • Nearly 90% of notable AI models in 2024 came from industry, up from 60% in 2023.
  • Training compute for notable models doubles every five months.
  • The cost of running a system at the level of GPT-3.5 fell more than 280-fold between November 2022 and October 2024.
  • Open-weight models, whose trained weights are published for anyone to download, narrowed their gap with closed models from 8% to 1.7% on some benchmarks in one year.
  • The US Food and Drug Administration approved 223 AI-enabled medical devices in 2023, up from six in 2015.
  • Waymo provides over 150,000 driverless rides each week.

For the business side of the field, see artificial intelligence industry.

Formal definitions

Definitions of AI range from research slogans to precise math to legal text.

Research definitions

McCarthy defined AI as "the science and engineering of making intelligent machines, especially intelligent computer programs."[1] He described intelligence as "the computational part of the ability to achieve goals."[1]

The rational agent in math

Russell describes an ideal, perfectly rational agent as the agent function that gets the highest expected score:[7]

fopt=arg⁡max⁡f V(f,E,U)f_{\text{opt}} = \arg\max_{f} \, V(f, \mathbf{E}, U)
  • ff is an agent function, a mapping from percept histories to actions.
  • E\mathbf{E} is the class of environments the agent may face.
  • UU is the performance measure, which scores sequences of environment states.
  • V(f,E,U)V(f, \mathbf{E}, U) is the expected score of agent ff across those environments.

Such perfect agents usually cannot be built, because finding the best action takes too long. Russell instead proposes bounded optimality: the best program that can run on a given machine with its limits on time and memory.[7]

Governments need definitions they can write into law. In 2023, the OECD updated its definition, which is part of the OECD AI Principles:[29]

An AI system is a machine-based system that, for explicit or implicit objectives, infers, from the input it receives, how to generate outputs such as predictions, content, recommendations, or decisions that can influence physical or virtual environments.

Risks and safety

The International AI Safety Report, published in January 2025, was written by 96 AI experts and chaired by Yoshua Bengio.[9] It sorts risks from general-purpose AI into three groups: malicious use, malfunctions, and systemic risks.[9] Some risks in each group have already happened, and others might happen in the next few years.[9]

  • Reliability: systems can give false answers, for example in medical or legal advice, and users often do not know the limits of the product.[9]
  • Bias: systems can amplify social and political biases about race, gender, culture, age, disability, and other traits. This is known as algorithmic bias.[9]
  • Loss of control: hypothetical future cases in which AI systems operate outside anyone's control. Experts broadly agree that current systems lack the abilities to pose this risk.[9]

On 30 May 2023, the Center for AI Safety released a one-sentence statement signed by hundreds of executives and academics.[30] It reads: "Mitigating the risk of extinction from AI should be a global priority alongside other societal-scale risks such as pandemics and nuclear war."[31] Signers included Hinton, Bengio, and the chief executives of Google DeepMind, OpenAI, and Anthropic.[31][30]

Experts do not agree on this. According to the International AI Safety Report, views on the likelihood of loss of control in the next several years vary greatly: some experts consider it implausible, some consider it likely, and some see it as a modest-likelihood risk that deserves attention because it could be so severe.[9]

The related fields of AI safety, AI alignment, and the ethics of AI study how to make AI systems reliable, fair, and aligned with human goals. See also existential risk from artificial intelligence.

Regulation

The European Union's AI Act entered into force on 1 August 2024.[32] It sorts AI systems into four levels of risk, with stricter rules at higher levels.[32]

Risk level Rule Examples
Unacceptable Prohibited Social scoring, harmful manipulation
High Strict duties before sale, such as risk checks, quality data, logging, and human oversight CV-sorting software for hiring, exam scoring, credit scoring
Limited (transparency) People must be told they are dealing with AI, and some AI content must be labeled Chatbots, deep fakes
Minimal or none No new rules Spam filters, AI in video games

The bans on most prohibited practices took effect in February 2025, and the rules for general-purpose AI models in August 2025. Most other rules apply from 2 August 2026, and some high-risk rules apply from December 2027 or August 2028.[32]

EU AI Act risk pyramidUnacceptable riskbannedHigh riskstrict dutiesLimited risktransparencyMinimal or no riskno new rules
The EU AI Act puts AI systems into four risk tiers. Banned uses sit at the narrow top, and the wide base of minimal-risk systems gets no new rules.

Other governments are also acting. In 2024, US federal agencies introduced 59 AI-related regulations, more than double the number in 2023, and mentions of AI in laws rose 21.3% across 75 countries.[6] See international AI governance and national AI strategies.

Philosophical questions

Whether machines can truly think or understand is still debated in the philosophy of AI. Turing argued that behavior is the fair test.[7]

In 1980, the philosopher John Searle published the Chinese room argument against this view.[33] He imagined himself following a rule book to answer Chinese questions without understanding any Chinese. He concluded that running a program can make a computer seem to understand language but cannot produce real understanding.[33]

Searle aimed the argument at what he called strong AI: the view that a suitably programmed computer really understands and has a mind. He did not target weak AI, the modest claim that computers are useful for simulating minds.[33] These philosophical meanings of strong and weak AI differ from the narrow and general AI described above.

The argument has drawn many replies. One is the claim that the whole system, not the person in the room, might understand.[33]

References

  1. What is AI? / Basic Questions, John McCarthy, Stanford University, 2007.
  2. Artificial intelligence (AI), Encyclopaedia Britannica.
  3. Full Table of Contents for AI: A Modern Approach, Stuart Russell and Peter Norvig, University of California, Berkeley, 2020.
  4. Fathers of the Deep Learning Revolution Receive ACM A.M. Turing Award, Association for Computing Machinery, 2019.
  5. What is Machine Learning?, Google for Developers.
  6. The 2025 AI Index Report, Stanford Institute for Human-Centered AI, 2025.
  7. Artificial Intelligence, Stanford Encyclopedia of Philosophy, 2018.
  8. AI vs. Machine Learning vs. Deep Learning vs. Neural Networks, IBM.
  9. International AI Safety Report 2025, International AI Safety Report, 2025.
  10. Connectionism, Stanford Encyclopedia of Philosophy.
  11. A Proposal for the Dartmouth Summer Research Project on Artificial Intelligence, J. McCarthy, M. L. Minsky, N. Rochester, C. E. Shannon, 1955.
  12. Expert system, Encyclopaedia Britannica.
  13. What Is a Neural Network?, IBM.
  14. Professor's perceptron paved the way for AI, 60 years too soon, Cornell Chronicle, 2019.
  15. Linear regression: Gradient descent, Google for Developers.
  16. Linear regression: Hyperparameters, Google for Developers.
  17. Neural Networks: Training using backpropagation, Google for Developers.
  18. Attention Is All You Need, Vaswani et al., arXiv, 2017.
  19. LLMs: What's a large language model?, Google for Developers.
  20. Introducing ChatGPT, OpenAI, 2022.
  21. What Should We Learn from Past AI Forecasts?, Coefficient Giving (formerly Open Philanthropy), 2016.
  22. History of AI Winters, Actuaries Institute, 2018.
  23. Deep Blue, IBM.
  24. ImageNet Classification with Deep Convolutional Neural Networks, Krizhevsky, Sutskever and Hinton, NeurIPS, 2012.
  25. What we learned in Seoul with AlphaGo, Google, 2016.
  26. AlphaGo seals 4-1 victory over Go grandmaster Lee Sedol, The Guardian, 2016.
  27. Press release: The Nobel Prize in Chemistry 2024, The Royal Swedish Academy of Sciences, 2024.
  28. Press release: The Nobel Prize in Physics 2024, The Royal Swedish Academy of Sciences, 2024.
  29. OECD AI Principles overview, OECD, 2024.
  30. Risk of extinction by AI should be global priority, say experts, The Guardian, 2023.
  31. Statement on AI Risk, Center for AI Safety, 2023.
  32. AI Act, European Commission.
  33. The Chinese Room Argument, Stanford Encyclopedia of Philosophy.

Figure