基础知识指南

Generative AI: What It Is, How It Works and Where It Falls Short

Generative AI is the branch of artificial intelligence that creates new content, such as text, images, audio, video or code, by learning the statistical patterns of huge collections of examples and then producing fresh outputs that fit those patterns.

听听这个指南AI叙述 · ~9 min

在本页10 分钟阅读
  1. 概述
  2. 主要要点
  3. 深入探讨
  4. Trace how a language model writes one sentence
  5. 现实世界的实施
  6. The Future of Generative AI: What It Is, How It Works and Where It Falls Short
  7. 付诸实践
  8. 资料来源与延伸阅读
  9. 不断探索
  10. 常见问题

概述

It matters because the same few techniques now power chatbots, image tools and coding assistants used by well over 100 million people, and because their outputs can sound or look convincing while still being wrong.

主要要点

  1. Generative AI learns the statistical patterns of its training data and then samples new text, images, audio or code that fit those patterns.
  2. Large language models such as GPT-3 generate text one token at a time by predicting a fitting next piece from everything before it.
  3. Most image generators use diffusion, which starts from random noise and removes it step by step under the guidance of a text prompt.
  4. The transformer architecture, introduced in the June 2017 paper Attention Is All You Need, underlies nearly all modern large language models.
  5. NIST's 2024 Generative AI Profile lists confabulation, meaning confident but false output, among twelve risks that generative AI creates or worsens.
  6. The Stanford AI Index 2025 reports that GPT-3.5-level inference became more than 280 times cheaper between November 2022 and October 2024.

深入探讨

Generative AI is software that makes new things rather than only sorting or scoring existing ones. A traditional machine learning model might look at an email and answer one question: spam or not spam. A generative model can write a reply to that email, draw a picture to go with it, or read it aloud in a synthetic voice. The word generative comes from statistics. A generative model learns an approximation of the probability distribution behind its training data, which is a precise way of saying it learns what typical examples look like and how their parts tend to fit together. Once it has that, it can sample, meaning it can draw new examples that resemble the training data without copying any single one of them.

The most familiar kind is the large language model (LLM), the engine inside chatbots. Text is first cut into tokens, which are short chunks of words or characters. During pretraining the model reads an enormous amount of text and is asked, over and over, to predict the next token from all the tokens before it. Each wrong guess produces an error score, and a procedure called gradient descent nudges the model's parameters, the adjustable numbers inside it, to make that error a little smaller next time. GPT-3, described by OpenAI researchers in May 2020, had 175 billion parameters. When a user types a prompt, the trained model repeats one simple loop: compute a probability for every possible next token, pick one (sometimes the most likely, sometimes a random draw controlled by a setting called temperature), append it, and go again until the answer is finished.

Pretraining alone produces a model that continues text but does not reliably follow instructions. Developers therefore add a second stage. In instruction tuning, the model is trained further on examples of requests paired with good answers. In reinforcement learning from human feedback (RLHF), people rank several model answers, a separate reward model learns to predict those rankings, and the language model is then optimized to score well on that reward model. MIT Technology Review's history of ChatGPT notes that OpenAI's InstructGPT, trained this way in early 2022, followed instructions better and produced less offensive and less false text than the base GPT-3 model, and that ChatGPT was built on the same approach.

Images are usually made with a different mechanism called diffusion. In training, a picture is corrupted with a little random noise, then a little more, over many steps until nothing but static is left. A neural network is trained to undo one step at a time by predicting the noise that was added. To generate, the model starts from pure static and removes noise step by step, guided by a text description, until a clean image appears. The 2020 paper Denoising Diffusion Probabilistic Models by Ho, Jain and Abbeel showed this approach could match or beat earlier methods on image quality, reporting a Frechet Inception Distance (FID, a measure where lower means generated images are statistically closer to real ones) of 3.17 on the CIFAR-10 dataset. An older approach, the generative adversarial network (GAN), introduced by Ian Goodfellow and colleagues in June 2014, trains two networks against each other: a generator that makes fakes and a discriminator that tries to tell fakes from real data.

The key milestones fit on a short timeline. GANs arrived in 2014. In June 2017 the paper Attention Is All You Need introduced the transformer, an architecture that lets every token weigh its relationship to every other token; its English-to-French translation model trained in 3.5 days on eight GPUs and set a new single-model accuracy record. OpenAI's GPT series built on the transformer: GPT-2 in 2019 with 1.5 billion parameters, GPT-3 in 2020, InstructGPT in January 2022 and ChatGPT in late November 2022, according to MIT Technology Review. Diffusion models matured in 2020 and drove the wave of text-to-image tools that followed. Most current systems for text, code, images, audio and video combine these two ideas, transformers and diffusion, in different proportions.

It helps to compare generative AI with the alternatives. Predictive or discriminative AI, such as a fraud detector or a medical image classifier, outputs a label or a number and can be checked against a known right answer, so its accuracy is easy to measure. Generative output is open-ended: there are many acceptable answers to a writing prompt, which makes quality harder to measure and errors harder to spot. Search engines retrieve documents that already exist and point to them; a language model composes new text and, unless it is connected to a retrieval system, cannot show where a statement came from. Rule-based software is predictable and auditable, while generative models are flexible but can give different answers to the same question.

The limitations are well documented. The US National Institute of Standards and Technology (NIST), in its July 2024 Generative AI Profile (NIST AI 600-1), lists twelve risks that generative AI creates or makes worse. The one most users meet first is confabulation, NIST's term for confidently stated but false content, often called hallucination. Others include harmful bias, leaks of private data, intellectual property questions, easier production of disinformation, help for cyberattacks, and environmental costs from heavy computing. Models also have a training cutoff, so they do not know about recent events unless they are given current documents, and they can be steered by cleverly written inputs. None of these problems is fully solved, which is why outputs that matter need checking against a trusted source.

Cost runs on two tracks. Training a frontier model requires thousands of specialized chips for weeks or months, and the Stanford AI Index 2025 reports that the training compute used for notable models has been doubling about every five months. Using a model, called inference, has become far cheaper: the same report finds that the price of querying a system performing at GPT-3.5's level fell more than 280-fold between November 2022 and October 2024, while hardware costs have dropped about 30% a year and energy efficiency has improved about 40% a year. For an individual, that means capable tools are often free or cost a modest monthly subscription. For an organization, the real costs are usually integration, data preparation, review of outputs and the work of deciding where a fallible but fast drafting tool is safe to use.

04工作示例

Trace how a language model writes one sentence

  1. Start with a prompt such as 'The capital of France is' and imagine it split into tokens, roughly one per word.

  2. The model turns each token into a vector of numbers and passes the whole sequence through its transformer layers, where attention links each word to the others.

  3. At the last position it outputs a score for every token in its vocabulary; after softmax, ' Paris' might get a probability near 0.9 while other tokens share the rest.

  4. With a low temperature the model picks ' Paris'; with a high temperature it occasionally picks a less likely token and the sentence goes another way.

  5. The chosen token is appended to the prompt and the whole prediction runs again to produce the next token, such as a full stop.

  6. Repeat the loop until the model emits a special end token or reaches a length limit, then compare the result with a trusted source.

它显示了什么

The learner ends up with a clear picture of next-token generation: each word is a sampled guess conditioned on all previous words. To check the idea, ask a chatbot the same factual question several times; small variations in wording show the sampling at work, and any wrong answer shows why outputs need verification.

现实世界的实施

Chat assistants: ChatGPT, released by OpenAI in late November 2022 as a web app, reached about 100 million users roughly two months later, according to MIT Technology Review's history of the product.

Customer support: a study of 5,172 support agents by Brynjolfsson, Li and Raymond found that access to a generative AI assistant raised issues resolved per hour by about 15% on average, with the largest gains for less experienced workers.

Image creation: diffusion models, popularized by the 2020 Denoising Diffusion Probabilistic Models paper, turn random noise into pictures step by step, and the same idea underlies widely used text-to-image tools for illustration and design drafts.

Writing and drafting: GPT-3, a 175-billion-parameter model described in 2020, could write news-style articles that human evaluators had difficulty telling apart from articles written by people, which is both a capability and a misinformation risk.

Business investment: the Stanford AI Index 2025 reports that generative AI attracted $33.9 billion in private investment worldwide in 2024, an 18.7% increase over 2023, as companies built it into everyday software.

The Future of Generative AI: What It Is, How It Works and Where It Falls Short

Several open problems shape the direction of work. Reliability is the largest: NIST's 2024 profile treats confabulation as a core risk, and researchers are testing retrieval from trusted documents, citation checking and models that state their uncertainty, none of which yet removes errors entirely. Efficiency is a second front. The Stanford AI Index 2025 documents rapid declines in inference cost alongside training compute that keeps doubling roughly every five months, so the field is pulling in two directions at once: very large frontier models and small models cheap enough to run on a phone or laptop. A third direction is multimodality, meaning single models that take in and produce text, images, audio and video together, and agents, which are generative models allowed to call tools, browse or run code to finish multi-step tasks. Each of these adds new ways to fail, so evaluation methods are being developed alongside them. Policy is moving too. Content provenance labels for AI-generated media, court cases over training data, and risk frameworks such as NIST AI 600-1 will influence what developers may train on and how outputs must be disclosed. Economic effects remain uncertain: field studies such as Brynjolfsson, Li and Raymond's customer-support study show measurable productivity gains in specific jobs, but how those results generalize across whole industries is still being measured.

付诸实践

为什么这很重要

  • 更清晰的判决. 它可以帮助您将清晰的技术声明与营销语言分开。
  • 成本与预算. 在花费金钱或时间之前,您可以提出更好的实施问题。
  • 团队与工作流程. 具有共同理解的团队可以做出更好的产品、政策和学习决策。

留意

  • 不同的团队可能会以不同的方式使用同一术语,因此请尽早定义范围。
  • 基准测试可能看起来很强大,但实际性能却参差不齐。
  • 忽视数据质量和评估计划通常会产生脆弱的结果。

后续步骤

  1. 从您需要的结果的简单语言定义开始。
  2. 在测试之前选择一种成功指标和一种失败条件。
  3. 使用代表性数据运行小型试点,而不是完善的演示集。
  4. Document where Generative AI: What It Is, How It Works and Where It Falls Short helps and where simpler methods are better.

资料来源与延伸阅读

  1. arXiv (Goodfellow et al., 2014)生成对抗网络
  2. arXiv (Vaswani et al., 2017)您所需要的就是关注
  3. arXiv (Brown et al., 2020)Language Models are Few-Shot Learners
  4. arXiv (Ho, Jain and Abbeel, 2020)去噪扩散概率模型
  5. MIT Technology ReviewChatGPT is everywhere. Here's where it came from
  6. National Institute of Standards and TechnologyArtificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile (NIST AI 600-1)
  7. Stanford Institute for Human-Centered AI2025年人工智能指数报告
  8. arXiv (Brynjolfsson, Li and Raymond)Generative AI at Work

不断探索

免费通讯

获取每日AI简报

每个工作日早晨提供三条经过验证的AI故事,使用简明英文撰写。永久免费,无广告。

每个工作日发送一封邮件。一键退订。我们永不出售或分享您的地址。

测试一下自己

Take the Generative AI: What It Is, How It Works and Where It Falls Short quiz

每个答案即时反馈,课程通过后可获得可验证ID的可分享证书。

开始测验

支持免费AI教育。AI Understanding是一家501(c)(3)非营利组织——无广告,无付费墙,永不收费。 捐款

常见问题

What is Generative AI: What It Is, How It Works and Where It Falls Short?

Generative AI is the branch of artificial intelligence that creates new content, such as text, images, audio, video or code, by learning the statistical patterns of huge collections of examples and then producing fresh outputs that fit those patterns. It matters because the same few techniques now power chatbots, image tools and coding assistants used by well over 100 million people, and because their outputs can sound or look convincing while still being wrong.

根据指南描述,哪个输出最能体现生成式人工智能?

The guide describes generated outputs such as text, images, audio and code.

流畅的生成摘要中包含源文件中未出现的声明。审阅者应该怎么做?

The guide warns that supplied sources can improve relevance but outputs may still contain unsupported claims.

指南中哪个描述符合基于扩散的图像生成?

The guide says diffusion systems learn to transform noisy representations into samples.

评估生成的代码时应检查什么?

The guide recommends inspecting code behavior and running meaningful tests.

为什么要打开并检查生成的引文?

The guide notes that plausible-looking citations may not exist and must be verified.