Andrew Ng emphasizes that disciplined error analysis and evals-driven development, rather than continuous prompt tweaking, remain the primary differentiator between high-performing and mediocre AI agent teams. (0:05)
Current AI progress is heavily concentrated on verifiable tasks with objective ground truth (such as math and code compilation), leaving a massive performance gap on subjective judgment tasks like system architecture and product prioritization. (14:21)
Standard AI chatbots impair conceptual understanding via cognitive offloading, with research showing that using general-purpose chatbots dropped student closed-book final exam math scores by 17% despite boosting homework performance. (20:29)
Ng predicts that almost no software engineers will write code by hand in the future, arguing that human manual code review already creates an unsustainable bottleneck compared to deterministic sandboxing, runtime guardrails, and automated testing. (28:34)
While frontier lab technical knowledge diffuses quickly to the public, Ng estimates that restructuring enterprise teams and legacy workflows to become truly AI-native will take roughly a decade. (52:56)
Detailed notes
## Background
Published by Stanford Online on YouTube on November 27, 2026, this video documents a fireside chat for the graduate course Stanford CS329Z: Engineering AI Agents. The session features guest Andrew Ng in conversation with Stanford assistant professor Diyi Yang to discuss agentic workflows, software engineering practices, model evaluations, and the broader societal impacts of artificial intelligence.
## TL;DR
Andrew Ng outlines the practical realities of engineering AI agents, emphasizing that disciplined error analysis and evals-driven testing matter far more than theoretical elegance or endless prompt tweaking. He distinguishes between verifiable tasks—where AI excels through objective feedback loops—and ambiguous judgment tasks, such as system architecture and team priorities, where humans retain a lasting advantage. Ng explains why he has largely stopped writing or reviewing code by hand in favor of sandboxing and automated testing, cautions against cognitive offloading in education, and predicts that widespread organizational adoption across legacy industries will take roughly a decade.
## Atmosphere & style
The discussion carries the thoughtful, grounded tone of an intimate academic salon, stripping away corporate hype in favor of engineering pragmatism and candid war stories. Ng speaks with measured, unhurried candor, regularly offering contrarian viewpoints—such as dismissing manual code review and critiquing chatbot-driven education—while Yang provides sharp academic counterpoints on verification guarantees. The back-and-forth feels intellectually rigorous yet approachable, blending high-level philosophical reflections with concrete, unvarnished advice for students and practitioners navigating AI transformation.
## Bulletin
- [00:05](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=5s) Andrew Ng emphasizes that disciplined error analysis and evals-driven development, rather than continuous prompt tweaking, remain the primary differentiator between high-performing and mediocre AI agent teams.
- [14:21](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=861s) Current AI progress is heavily concentrated on verifiable tasks with objective ground truth (such as math and code compilation), leaving a massive performance gap on subjective judgment tasks like system architecture and product prioritization.
- [20:29](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=1229s) Standard AI chatbots impair conceptual understanding via cognitive offloading, with research showing that using general-purpose chatbots dropped student closed-book final exam math scores by 17% despite boosting homework performance.
- [28:34](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=1714s) Ng predicts that almost no software engineers will write code by hand in the future, arguing that human manual code review already creates an unsustainable bottleneck compared to deterministic sandboxing, runtime guardrails, and automated testing.
- [52:56](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=3176s) While frontier lab technical knowledge diffuses quickly to the public, Ng estimates that restructuring enterprise teams and legacy workflows to become truly AI-native will take roughly a decade.
## Key takeaways
- [00:05](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=5s) Disciplined error analysis and continuous regression testing against a golden dataset separate production-grade agent engineering from teams stuck at an 80% accuracy plateau.
- [05:14](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=314s) Agent failure modes cannot be deduced purely in the abstract; engineers must empirically deploy agents within basic sandboxes to uncover hidden operational bottlenecks and undocumented API rate limits.
- [12:01](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=721s) Grounding agent automation against documented human workflows allows intermediate trace debugging, which is missing when attempting tasks that have no known human baseline.
- [14:21](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=861s) The public systematically overestimates general AI capability because public benchmarks disproportionately reward easily verifiable tasks rather than open-ended judgment.
- [20:29](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=1229s) General-purpose chatbots optimize for task completion rather than pedagogy; effective educational AI requires deliberate instructional friction to ensure concept mastery.
- [24:30](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=1470s) Stemming educational reliance on single-answer questions is essential as AI masters objective verification, shifting academic value toward unverifiable judgment and trade-off analysis.
- [28:34](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=1714s) Manual human review of thousands of lines of AI-generated code is an impractical bottleneck, making statistical verification, deterministic sandboxing, and runtime guardrails the future of software reliability.
- [37:16](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=2236s) 'Vibe coding' without software engineering fundamentals fails because non-engineers cannot evaluate architectural trade-offs in networking, security, and database design.
- [41:29](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=2489s) AI model providers face a structural conflict of interest due to token-burn revenue models, encouraging verbose code generation over human- and agent-friendly concise code.
- [47:29](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=2849s) Open-weight models will remain technically competitive, but face severe threats from regulatory capture pushed under the banner of AI safety lobbying.
- [51:07](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=3067s) Technical capability gaps between frontier AI labs and the developer community diffuse rapidly, rendering hyper-specialized roles like high-salary prompt engineering quickly obsolete.
- [52:56](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=3176s) Reorganizing traditional enterprise communication channels, handoffs, and operational structures around AI agents represents a ten-year implementation challenge.
- [57:47](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=3467s) The greatest professional risk for knowledge workers is premature defeatism, as AI outputs often exhibit superficial fluency while lacking rigorous underlying substance and broad historical context.
- [01:01:05](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=3665s) Future software development will mirror compiled languages: humans will operate at higher abstraction levels without inspecting raw code, relying on deterministic grounding signals like unit tests and telemetry.
- [01:07:44](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=4064s) Attempting to ban AI in schools is counterproductive; curricula must instead integrate one-on-one mastery tutoring and typing fluency to prepare students for an AI-pervasive future.
## Detailed walkthrough
### [00:05](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=5s) Introduction and the Constancy of Systematic Engineering
Professor Diyi Yang introduces the CS329Z fireside chat with Andrew Ng, highlighting the rapid evolution of artificial intelligence and inviting students in the room to ask questions using the handheld microphone or the class discussion forum. Yang opens by asking Ng how his perspective on AI agents has shifted over the past few months, given the blistering pace of progress across the field.
Ng responds candidly, admitting that his perspective hasn't undergone a dramatic shift recently: “This is a bad answer. I don't know that my view on agents changed dramatically the last few months.” Across his various engineering teams, he observes that the single defining factor separating effective teams from ineffective ones remains fundamentally unchanged: “The biggest difference to me between the teams that are able to build agentic workflows really well versus the ones that are less effective at doing so is still still seems to be the ability to come back to a disciplined error analysis evals kind of process.”
Ng reflects on a recurring dynamic throughout his career: when multiple veteran AI practitioners evaluate an early-stage project, their advice regarding what steps to prioritize next exhibits a remarkably strong correlation. Even though building AI can feel chaotic—with infinite directions one might pursue—experienced builders consistently converge on the exact same recommendations of what to attempt and what to avoid. This consensus gives him immense confidence that engineering agentic systems is not a shot in the dark, but a structured discipline grounded in error-driven development.
---
[03:00](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=180s) Balancing Quick-and-Dirty Prototypes with Rigorous Evals
Yang points out that the CS329Z curriculum emphasizes rigorous evaluation, noting that homework assignments specifically task students with designing test cases for agentic workflows. In response, Ng raises the stakes, stating that knowing how to evaluate is only half the battle—the harder discipline lies in knowing when to transition development methodologies across the lifecycle of a project.
```mermaid
flowchart LR
accTitle: Evolution of Agentic Engineering Lifecycle
accDescr: Diagram illustrating the shift from early exploratory prototyping to late-stage golden-set regression testing.
subgraph Early["Early Stage: Exploration"]
A["Ad-hoc Prompting & Harnesses"] --> B["0% to 80% Fast Gains"]
end
subgraph Late["Late Stage: Production"]
C["Golden Eval Sets & CI Regressions"] --> D["Squeezing out 1% at a Time (90%+ Accuracy)"]
end
Early -->|"Systematic Transition"| Late
```
Early on, projects demand rapid, lightweight prototyping—spinning up tools, tweaking prompts, and observing failures directly. As systems mature, engineers must transition toward golden evaluation datasets, continuous integration (CI), and exhaustive regression testing. Ng highlights two classic failure modes teams encounter along this spectrum:
- **The Hackers Trapped at 80%:** Teams that only possess rapid prototyping skills fire up coding assistants (like Codex, Claude Code, or OpenAI models) and rapidly advance a prototype from 0% to 80% accuracy. However, once they encounter edge cases, they endlessly tweak prompts and shuffle tools. Without systematic regression tests, every fix triggers an unforeseen bug, leaving the project bouncing around an accuracy plateau that never reaches production grade.
- **The Over-Engineered Stagnation:** Often seen in engineers with backgrounds strictly in large corporate environments, some teams impose rigid, slow, heavyweight evaluation frameworks before exploring the solution space. By refusing to write disposable code or test hypotheses quickly, they forfeit agility.
Ng illustrates the rapid exploratory approach with his own work over the preceding weekend, where his team needed design explorations: he rapidly hacked together four distinct implementations, tested them, and reviewed them with the team to pick a direction. “And one of the most difficult things about doing this well is the ability to master both ends of the spectrum and know how to gradually evolve from one type of process to another.”
---
[05:14](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=314s) Where Agents Fail: The Necessity of Empirical Discovery and Sandboxing
When Yang asks where agents struggle and what engineering skills students should hone to address their weaknesses, Ng highlights the rise of the "agent harness" pattern. He explains that working with agents fundamentally differs from traditional software engineering due to the nature of uncertainty:
- **Traditional Software:** While not strictly deterministic due to network flakes or database outages, code is implemented to a defined specification and behaves in a largely predictable manner.
- **Agentic & AI Systems:** Because models are trained on sprawling datasets whose intricate representations cannot be fully inspected, engineers cannot predict edge-case behavior purely through deduction.
Because predicting failure points theoretically is almost impossible, planning in a vacuum fails. If a student attempts to build a coding agent from scratch, the failure could stem from context window compaction, poor instruction-following, inadequate tools, misjudged user intent, or excessive token burn. Spending three months designing sophisticated custom tools is often a misallocation of effort when giving the agent a basic bash shell, strict sandboxing, and runtime guardrails would reveal the real bottlenecks in an afternoon.
Ng reinforces this with an experience from that same weekend, where an agent failed because a third-party public API imposed severe rate limits well below the thresholds advertised in its official documentation. Had he theorized instead of deploying the agent harness, he never would have discovered that the tool was broken. Ng concludes that in agent engineering, reality must be discovered empirically: “And so doing it in a safe, responsible way, that seems to me that that's still the best way I know to build these things, which is for most applications... I found a lot of these things you have to discover empirically rather than by theorizing about it.”
---
[08:56](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=536s) The Shift from Elegant Mathematical ML to Empirical Agent Workflows
Yang contrasts the current paradigm of agent engineering with traditional machine learning. Historically, machine learning followed an elegant mathematical formulation: practitioners framed an objective function and applied clear theoretical frameworks to optimize it.
By contrast, modern agent systems feel messy, fragmented, and black-box. Instead of relying on a clean theoretical recipe, engineers are forced to assemble, configure, and debug sprawling composite systems made of varied components, shifting tools, and prompt configurations, leaving many wondering how to navigate the lack of formal elegance.
[09:42](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=582s) Is Building Agents an Elegant Process?
Diyi Yang raises the dilemma of navigating the vast design space of AI agents. Developers tweak and tune disparate components without knowing what an elegant, principled solution looks like, especially amid growing interest in recursive self-improvement where models might optimize themselves given clear feedback.
Andrew Ng reacts with amusement at the premise that traditional machine learning was ever "elegant." While machine learning theory holds mathematical elegance, the reality of building production systems was always messy, grinding engineering work: running models, performing error analysis, tweaking features, discovering dirty datasets, rewriting scraping scripts, and agonizing over the financial cost of purchasing more data. Ng reminisces about his early days as a young professor nearly fifteen to twenty years ago, when senior faculty actively discouraged his pursuit of deep learning:
> “And very senior faculty would say, Andrew, don’t work on this machine learning deep learning thing. You have no idea what you’re doing. You’re just putting around with neural network layers and neuronal connections. It’s all like just an empirical mess.”
Ng admits those critics were right at the time. Only after researchers spent decades sharpening their intuitions around that empirical mess did the community eventually dress the field up to appear clean and principled.
Yang counters that traditional machine learning still felt more predictable than agent architectures: changing a loss function or objective usually steered the model in an expected direction with theoretical bounds and proofs, whereas agent behaviors feel vastly more difficult to anticipate or bound.
```mermaid
flowchart TD
accTitle: Practical ML Development Loop
accDescr: The iterative, empirical cycle of engineering real-world machine learning systems versus the theoretical ideal.
subgraph Theory["Theoretical Ideal"]
direction TB
T1["Objective Function Design"] --> T2["Optimization & Guarantees"]
end
[12:01](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=721s) Grounding Agents Against Human Reference Points
To corral the high uncertainty of agent behaviors, Ng points to a core operational heuristic: automating tasks that humans already know how to perform is vastly easier than building agentic workflows for tasks beyond human capability. When humans understand an end-to-end task, error analysis becomes systematic.
Taking an ordinary business process—such as downloading a financial invoice PDF, converting it into clean Markdown, prompting an LLM to process and tag it, and routing it to an enterprise endpoint—developers can inspect every trace. If an agent missteps, the engineer does not have to debug the entire system in the abstract; they can pinpoint the exact junction where the model diverged from human baseline actions and apply targeted interventions. Conversely, using agents to tackle problems with no known human path—such as proving brand-new mathematical theorems that no human has ever solved—leaves the developer with no baseline for error analysis.
Ng emphasizes that the true business value of agentic workflows is widely misunderstood. While many assume enterprise automation is merely about replacing human labor to reduce headcounts, cost cutting is rarely the primary driver in high-impact deployments:
> “Yes, businesses will sometimes automate tasks people do to save costs, but the much more interesting use cases is you can automate something people are doing in order to do it, you know, a thousand times faster or to do a thousand times more of it rather than just cost savings.”
- **The Human Reference Advantage**: Building agent workflows for existing human tasks allows step-by-step comparative debugging instead of black-box trial and error.
- **Novel Discovery Challenges**: Open-ended discovery (such as novel mathematical proofs) lacks a human step-by-step trace, making error analysis exponentially harder unless teams first validate on existing, human-solved proofs.
- **Scaling Throughput Over Cutting Costs**: The highest-leverage enterprise agent deployments focus on achieving 1,000× speedups and 1,000× higher task volume rather than labor substitution.
[14:21](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=861s) Human Advantage: Verifiable vs. Judgment Tasks
Yang shifts the conversation to the anxieties facing current computer science students and upcoming graduates entering a tighter job market, where breakthroughs in AI problem-solving make mathematicians, engineers, and junior professionals question their long-term value. She asks Ng how students should evaluate human advantages today.
Ng acknowledges the genuine stress facing new graduates across fields, but points out that intelligence is fundamentally "jagged": an AI system can demonstrate superhuman performance in one domain while failing catastrophically at a task that seems intuitively simpler to a human. The defining divide lies between verifiable tasks and unverifiable judgment tasks:
> “And I think the gap between AI performance on verifiable tasks—things like writing code and proving math theorems, things with an objective right answer, they can often be verified automatically—compared to AI’s performance on unverifiable tasks or judgment tasks, I think that gap is bigger than most people appreciate.”
| Dimension | Verifiable Tasks | Judgment (Unverifiable) Tasks |
|:--- |:--- |:--- |
| **Examples** | Code execution, formal math proofs, factual lookups | System architecture choices, roadmap prioritization, marketing taglines, strategic hiring timelines |
| **Ground Truth** | Single objective right/wrong answer | No single mathematically optimal answer; spectrum of good vs. bad choices |
| **Training Feasibility** | Cheap automated scoring in RL gyms, rapid simulation, easy supervised fine-tuning (SFT) | Requires hiring costly domain experts, data licensing, complex mid-training, and RL with fragile reward functions |
| **Benchmarking** | Clean, automated benchmarks that scale easily | Difficult to benchmark reliably, causing public benchmarks to skew toward verifiable tasks |
| **Vulnerability to AI** | High; rapid model convergence and automation | Low; models struggle, reward-hack, or misalign easily |
Ng explains that because verifiable problems have automated ground-truth checkers, teams can spin up reinforcement learning environments, simulate millions of iterations, and auto-grade whether code compiles or a proof holds. Judgment tasks, by contrast, carry no single mathematical truth. Deciding which computer system architecture to build, which product feature to prioritize, which demographic to target, or whether to hire a VP of sales immediately or wait six months requires human judgment.
While frontier labs can improve LLM performance on judgment domains (such as medical diagnosis), doing so is agonizingly slow and resource-heavy: teams must pay domain experts to annotate custom data, license training corpora, and constantly retune RL reward functions that are prone to reward hacking and misalignment. Because verifiable benchmarks are so much easier to publish, public perception systematically overestimates general AI capability, falling into the historical trap seen during IBM Watson's *Jeopardy!* victory of assuming narrow domain mastery implies broad human-level intelligence.
[19:39](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=1179s) The Generalization Myth and the Human Judgment Advantage
Reflecting on past milestones in artificial intelligence, Andrew Ng reminds the room that breakthroughs on narrow benchmarks rarely yield broad real-world intelligence. When systems won on *Jeopardy!*, observers predicted machines would soon become universally intelligent, yet the technology did not generalize. The same pattern unfolded when DeepMind’s AlphaGo mastered Go, leaving people to ask what else that core algorithm was actually useful for, and earlier still when IBM’s Deep Blue defeated world chess champion Garry Kasparov. Each triumph produced immense excitement, but none generalized as broadly as humanity anticipated.
Turning to the present wave of generative AI, Ng diagnoses a familiar imbalance. AI makes rapid, immensely valuable progress on verifiable tasks—problems with deterministic or checkable right answers. While it makes incremental progress on judgment tasks, Ng observes a massive gap that the public routinely misjudges: “What I see at this moment in time is AI is making amazing progress, really valuable progress on verifiable tasks. It's making some progress as well on judgment tasks, but I see a huge gap and many people are over general are frankly over optimistic about progress on judgment tasks.” Because judgment remains resistant to brute-force verification, humans continue to have a major role to play in navigating ambiguity.
[20:29](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=1229s) Cognitive Offloading and AI Chatbots in Education
Diyi Yang picks up on Ng's focus on judgment, highlighting a fundamental tension within education: human judgment is not innate; it is hard-won through long cycles of hands-on practice, coding, and problem-solving. Today, coding agents let students complete programming assignments in mere hours without grappling with design decisions. Yang cites recent research showing that while students using AI assistants achieve higher homework scores, their closed-book exam performance plummets—a clear case of skill atrophy. She asks how educators can design "productive friction" so learners still acquire essential foundational judgment instead of outsourcing every struggle to an agent.
```mermaid
flowchart TD
accTitle: The Skill Atrophy Cycle of Cognitive Offloading
accDescr: Flowchart illustrating how AI chatbot assistance increases short-term task performance but causes long-term learning loss.
subgraph DirectWork["Task Execution"]
A["Student or Professional Task"] --> B["AI Chatbot Assistance"]
B --> C["Short-Term Success: Higher Homework / Output"]
end
subgraph CognitiveImpact["Cognitive Consequences"]
B --> D["Cognitive Offloading: Reduced Retention"]
D --> E["Skill Atrophy & 17% Exam Score Drops"]
E --> F["Impaired Judgment on Complex Problems"]
end
```
Ng addresses the question by challenging the prevailing Silicon Valley narrative about chatbots in classrooms. Acknowledging that his stance sounds provocative, he emphasizes that it is backed by an expanding body of rigorous evidence: “What I'll say is AI chatbots are terrible for learning.” Chatbots were engineered exclusively to get work done, not to build comprehension. Turning to an LLM triggers cognitive offloading—a cognitive science term for delegating mental processing to a tool—which directly diminishes retention. Ng points to a University of Pennsylvania study measuring the impact of chatbot use on mathematics students:
- Chatbot users earned markedly higher homework marks, but suffered a 17% drop in closed-book final exam scores compared to non-users.
- This chatbot-mediated learning loss is documented across K–12 and universities, and Ng warns it is likely just as severe among adult professionals who rely on conversational assistants.
- When compounded over decades of formal schooling and continuous professional development, this cognitive offloading risks inflicting widespread, permanent deficits in foundational knowledge.
[24:30](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=1470s) Rethinking STEM Education and Learning-Specific AI
Historically, STEM education has rewarded students for finding the single correct answer; mastering a LeetCode problem or completing an algorithmic assignment delivers immediate dopamine because the answer is either right or wrong. However, these clean, verifiable challenges are precisely the category of work where AI excels. Consequently, human value is shifting toward ambiguous, unverifiable judgment tasks that schools rarely teach. Ng stresses that K–12 and higher education institutions like Stanford must radically overhaul their curricula to prioritize nuanced, open-ended problem solving over formulaic answer-hunting.
Responding to the counterargument that users can learn from chatbots, Ng dismisses it as a theoretical edge case. He likens it to claiming someone can master mathematics by doom-scrolling social media: while quality instructional videos exist on those feeds, social media platforms are not designed for learning, and almost no one acquires deep mathematical foundations that way. The same reality governs standard conversational LLMs.
To counter this structural flaw, Ng mentions his work on Learn Vector, a team building AI systems specifically engineered around pedagogy rather than raw task automation:
- Traditional chatbots optimize for generating an immediate answer so the user can close a ticket or finish a task.
- Dedicated learning agents introduce deliberate instructional friction, guiding learners through tailored one-on-one experiences rather than the broadcast, one-to-many formats popularized by platforms like Coursera.
- The overarching goal is shifting AI from purely doing the work to teaching users how to understand, interrogate, and direct the work.
[28:34](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=1714s) Giving Up Hand-Written Code and Manual Code Review
Reframing the discussion around human oversight, Yang poses a question facing the computer science discipline: should software engineers still write code by hand, and should they continue reviewing code line by line? If neither remains practical, what becomes of the traditional computer scientist's role?
Ng answers without hesitation, sharing that he has fundamentally transformed his own daily workflow: “I pretty much stopped writing code by hand and I don't miss it.” Although he spent decades as an accomplished C++ and Python developer, he feels syntactic details slipping away without any remorse. He no longer retains the obscure incantations required to manipulate pandas dataframes for data science, and he welcomes shedding that mental overhead.
Furthermore, Ng has abandoned manual code review by eye. When his AI pipelines generate thousands of lines across complex workflows, inspecting even a small slice creates a crippling human bottleneck:
- Syntactic memorization in languages like Python is treated as low-leverage overhead that AI handles far more efficiently.
- Reading machine-generated code line-by-line turns the human engineer into an unsustainable system choke point.
- Yang presses him on the obvious risk: without human eyes scanning each commit, how can an engineer verify correctness, catch logic regressions, prevent malicious backdoors, or ensure the repository is not broken? Ng notes that after decades in artificial intelligence, he has developed an entirely different, automated operational posture toward software reliability.
[30:18](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=1818s) Sandboxing, Guardrails, and Human Error
Andrew Ng explains that he has long grown comfortable building systems whose internal workings he does not fully understand, relying instead on rigorous testing, statistical guarantees, and deterministic guardrails. To illustrate, he shares an experiment from the previous Friday night when he set out to build a new coding agent prototype. Because coding agents execute broad actions, he strictly restricted the agent's tools to operate inside a single, isolated working directory. Even with very low confidence in the underlying large language model's predictability, he had complete peace of mind because deterministic code-level sandboxing made it physically impossible for the agent to touch files outside that boundary.
Drawing a parallel to engineering leadership, Ng notes that despite managing exceptional teams throughout his career, humans routinely ship defective software. Production outages and bugs have always occurred despite best efforts, necessitating CI/CD pipelines, remediation protocols, and runtime guardrails to counterbalance human fallibility. Having shipped plenty of buggy code himself over decades, Ng feels far more comfortable than most relying on coding agents, trusting structural protections over the illusion of pristine human execution.
> “I've been comfortable with a long time that I don't totally understand what these things I'm building do, but that I'll gain trust in other mechanisms such as rigorous testing and guardrails and have very strong sometimes statistical guarantees but then sometimes also rails and sandboxing which are enforcing code in order to ensure that the system behaves safely.” — Andrew Ng
```mermaid
flowchart TD
accTitle: Deterministic Sandboxing for Coding Agents
accDescr: An LLM coding agent is restricted by deterministic code guardrails to operate only within a designated directory.
subgraph AgentBoundary["Agent Execution Scope"]
A["LLM Coding Agent"] -->|"invokes tools"| B["Tool Harness"]
end
subgraph Safeguards["Deterministic Sandbox"]
B -->|"allowed access"| C["Isolated Working Directory"]
B -.->|"hard-blocked by code"| D["External Files / System Resources"]
end
```
[32:55](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=1975s) The Debate Over Human Code Review
Diyi Yang expresses the opposing perspective, arguing that code review remains essential until formal methods or statistical guarantees can mathematically ensure correctness and guard against issues like reward hacking. She points out a troubling trend inside tech companies: engineers deploy one agent to write code and another to review it, merging the output straight into production. She worries that past a certain threshold, codebases will suffer systemic structural collapse.
Yang highlights the psychological contract that exists between human colleagues: when working with an engineer, you understand their baseline competence, their degree of effort, and their predictable failure modes. Coding agents, by contrast, fail in bizarre and unpredictable ways. She recalls a glaring bug discussed earlier in the course where an agent built a user registration portal; when a user named John registered, the system casually informed him that his password matched the password of an existing user named Rick. Yang insists that until formal verification can prove generated code is 99.8% trustworthy, humans should not abandon manual code reviews.
```mermaid
flowchart LR
accTitle: Human vs Agent Reliability Dynamics
accDescr: Contrasting mental contracts and risk profiles between human engineers and coding agents.
subgraph HumanModel["Human Engineers"]
H1["Mental Contract"] --> H2["Known Competence & Effort"]
H2 --> H3["Predictable Failure Risks"]
end
subgraph AgentModel["AI Coding Agents"]
A1["High Capability"] --> A2["Opaque Error Modes"]
A2 --> A3["Unpredictable Production Bugs"]
end
```
Ng counters with a candid admission: his own production agent systems have suffered severe mishaps, including permanently deleting data and inadvertently introducing a security backdoor into an important production website because a temporary testing backdoor was left open. Yet he remains skeptical that human review is the panacea Yang suggests. When Yang asks whether humans should still review code in the coming year, Ng questions whether he is actually better at reviewing code than an agent is:
> “When I review someone else's code, yeah, I'll do my best, but honestly, I'm not convinced that I am that much better as a reviewing your code at this point than a coding agent will be reviewing someone else's code.” — Andrew Ng
- Data deletion and severe vulnerabilities (such as unremoved diagnostic backdoors) have hit Ng's production projects due to autonomous coding agents.
- Yang argues human review is indispensable until automated techniques or formal methods provide roughly 99.8% correctness guarantees.
[37:16](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=2236s) "Vibe Coding" vs. Software Engineering Fundamentals
Addressing the broader practice of software development, Ng draws a sharp line between casual "vibe coding" and disciplined engineering. On his teams, the phrase "vibe coding" is virtually always paired with the requirement of deep technical understanding. While firing off prompts without understanding might work for disposable prototypes, non-engineers lack the mental models for networking, security architecture, latency, maintainability, and machine learning data pipelines.
Because core engineering centers on navigating trade-offs, an amateur prompter does not even know which trade-offs need to be negotiated. When asked to create an application, an LLM given no guidance will pick arbitrary components—such as selecting an unsuitable database because the prompter does not know the difference between SQL, NoSQL, document stores, and vector databases. An experienced software engineer understands modular decomposition, boundary abstractions, and system architecture, allowing them to prompt precisely, enforce trade-offs, and verify architectural choices. Ng notes that logging hundreds of repetitions with coding agents builds an intuitive calibration for their failure modes, enabling engineers to spawn sub-agents for security audits while knowing precisely where automated trust ends.
> “People that don't understand machine learning fundamentals or software engineering fundamentals often don't even know what trade-offs exist to be made. And when you prompt an LLM without knowing what trade-offs exist to be made, the LLM will just pick some arbitrary design point that often is not right for your application.” — Andrew Ng
- Vibe coding without architectural grounding leads directly to security loopholes, structural collapse, and misaligned technical stacks.
- Repeated exposure to agent errors calibrates an engineer's "gut feel" for evaluating agent-driven security reviews and output reliability.
- High-stakes, life-critical systems remain an exception: Ng concludes he would never want to fly in a rocket running code written by an AI without human review.
[40:40](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=2440s) High-Stakes Code vs. Production Review Bottlenecks
Returning to the question of human oversight in automated development, Andrew Ng clarifies that his skepticism toward manual review is not absolute. When Diyi Yang asks whether there remains any role for human code inspection, Ng laughs and points out that dogmatism serves no one: if you are writing 500 lines of critical software for a space shuttle, human verification is entirely appropriate given the stakes. However, standard production software behaves completely differently. When an agent generates 10,000 lines of code almost instantaneously, human reviewers—who read code ten to a hundred times slower than an AI generates it—quickly turn into an unsustainable engineering bottleneck.
As Andrew Ng summarized the operational reality: “Of course, go and review it, but then for a lot of production systems where AI writes 10,000 lines of code and I feel like if AI writes code so quickly and if humans are, I don't know, what? 10 times, 100 times slower at reviewing code, then if you have to review it by eye, the human review becomes really the massive bottleneck.”
[41:29](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=2489s) Concise Code, Human Readability, and Token Incentives
Diyi Yang raises a counter-proposal from an academic research standpoint: empirical evidence demonstrates that when human experts write a patch for a bug, their diff is usually concise, whereas coding agents churn out sprawling, verbose blocks of code. She asks whether coding agents could be explicitly steered toward conciseness and interpretability so that human review remains feasible. Ng agrees “two-thirds” with her hypothesis, noting that coding agents display a bizarre tendency to bloat output, such as producing massive style sheets of CSS for an empty web page. Writing shorter, cleaner code would certainly help, though Ng notes that concise code does not merely aid human reviewers—it also makes it easier and cheaper for downstream AI agents to audit the codebase.
The conversation turns sharper when examining the business economics behind code generation. Both speakers note that verbose generation inflates context windows and token expenditure. Ng points out an uncomfortable industry dynamic: many model providers and platform developers face a structural incentive to maximize token burn. He recalls advice from Microsoft CEO Satya Nadella suggesting that teams use a different agent harness than their model provider to mitigate conflicting interests, remarking that the token consumption of certain coding harnesses in practice is far higher than engineering necessity dictates.
As Andrew Ng stated regarding the underlying financial motivations: “No, frankly, one unfortunate fact is that a lot of AI companies have an incentive to get us to use more tokens.”
```mermaid
flowchart LR
accTitle: Token Consumption Incentives in Agent Workflows
accDescr: Diagram contrasting model provider incentives to maximize token burn against engineering goals of concise code generation.
subgraph ProviderIncentive["Provider Economics"]
direction TB
A["Model / Harness Providers"] -->|"Structural incentive"| B["Higher Token Burn"]
B -->|"Results in"| C["Bloated Code & Large Contexts"]
end
subgraph EngineeringGoal["Agent Engineering Goals"]
direction TB
D["Optimized Agent Harness"] -->|"Enforces"| E["Concise Patches"]
E -->|"Enables"| F["Faster AI & Human Auditing"]
end
```
[43:36](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=2616s) Academic Research vs. Frontier Lab Resources
Diyi Yang pivots to what she calls a "sad and spicy" dilemma: the immense resource disparity between academic institutions and frontier AI labs. Research on long-horizon, multi-agent systems and emergent risks requires continuous, high-volume compute, leaving university labs feeling severely constrained. Ng acknowledges the strain, sharing that while top universities like Stanford are relatively fortunate, he has seen professors at other institutions asking PhD students to purchase GPUs with their personal savings because their departments had run out of funding—a situation Ng calls “impossible” and deeply concerning. He also warns of the broader macro threat posed by cuts to public scientific research funding across the United States and globally, fearing it could inflict long-term damage on the institution of academic research.
Despite the resource gap, Ng offers a historically grounded optimism. In his decades in machine learning, he jokes that he has never met a single ML engineer who believed they had enough compute: give any engineer infinite compute, and they will burn through it immediately and ask for more. Academic researchers have never operated with frontier-scale budgets, yet they consistently drive conceptual breakthroughs across top AI conferences.
Andrew Ng highlighted this persistent dynamic across eras: “And in my entire career, I don't think I've yet to meet even one machine learning engineer that felt like they had enough compute.”
- Professorial funding strains have reached points where PhD students at some universities were asked to pay out of pocket for compute hardware.
- Andrew Ng expressed serious concern that governmental research budget cuts could inflict structural, hard-to-recover damage on universities.
- Despite having a fraction of corporate budgets, academic labs continue to produce foundational work published at premier AI venues.
[47:29](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=2849s) Audience Q&A: Open-Weight Models and Regulation
Opening the floor to questions, an audience member asks about the future viability of open-source and open-weight models against well-funded proprietary frontier labs. Ng responds unequivocally: he is fully confident that open-weight models will survive. In his analysis, the primary existential threat to open-source AI does not come from technical competition or capital constraints, but from stifling legislative action pushed under the banner of AI safety. He argues that many lobbying efforts disguise protectionism and regulatory capture as risk mitigation in an attempt to suppress competitive open-weight alternatives.
Ng notes that strong corporate champions and an active open-source community have so far beaten back the most harmful bills, though sustained vigilance remains critical. Furthermore, the market is not a zero-sum game that only permits a single monolithic closed-source winner. Intelligence tasks range from simple grammar checks to complex mathematical proofs; different tasks demand distinct model sizes, cost structures, and deployment topologies, leaving ample room for both proprietary and open-weight architectures to thrive simultaneously.
Andrew Ng delivered a sharp critique of defensive lobbying: “AI safety has been used as a weapon against open-weight models in a way that actually has very little to do with actual safety, but everything to do with regulatory capture and companies trying to stifle competition.”
[49:40](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=2980s) Audience Q&A: AI Knowledge Gaps in the Workforce
A question submitted online via the course platform asks how AI-native working paradigms will spread across the broader economy, inquiring whether an enduring knowledge chasm will separate early technical adopters from ordinary workers, and whether large corporations might step in to lead mass reskilling. Ng pushes back on the anxiety surrounding an insurmountable technical divide, arguing that the knowledge gap is consistently hyped beyond reality.
Throughout the history of technology, technical knowledge gaps reliably compress over time rather than widen indefinitely. Frontier labs release their models publicly relatively quickly, meaning their internal teams do not sit on secret operational capabilities for long periods. Pointing to public debates and cybersecurity hype surrounding major frontier releases like Anthropic's Claude 3.5 Sonnet (often referred to alongside internal evaluations and benchmarks), Ng notes that while outside models often reach decent fractions of frontier performance, society adapts and “the world has not ended.”
Andrew Ng contextualized the historical cadence of adoption: “I know some people have been talking about the knowledge gap, and it is real, but what happens with almost always the technology is the knowledge gap decreases over time, right? I think the knowledge gap is probably, I think it's actually significantly hyped up beyond the reality.”
[51:07](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=3067s) Hype Cycles, Knowledge Diffusion, and Prompt Engineering
Andrew Ng addresses the cycle of corporate exaggeration surrounding proprietary model releases. Every time a frontier lab achieves a slight lead, marketing incentives push them to frame it as a monumental leap forward, yet that perceived delta evaporates as soon as the technology reaches the general public. Looking back at capabilities hyped just six months prior, the actual gap between leading labs and the broader ecosystem proves to be minor. Ng explains that technology progresses unevenly—in fits and starts—and in the areas where advancement momentarily stabilizes, technical understanding diffuses across the community with extreme speed.
```mermaid
flowchart TD
accTitle: Technical Diffusion vs Long-Term Industry Implementation
accDescr: Diagram contrasting the rapid diffusion of prompt engineering skills against the multi-decade restructuring needed for enterprise workflows.
subgraph Rapid["Rapid Diffusion (Months)"]
A["Frontier Model Hype"] --> B["Knowledge Diffusion"]
B --> C["Everyday Prompting Competence"]
C --> D["Commoditized Skills<br>(Prompt Engineering Obsolete)"]
end
subgraph Slow["Decade-Long Implementation"]
E["Industry Integration<br>(Banks, Healthcare, Plants)"]
F["Operational Transformation"]
G["AI-Native Team Restructuring"]
E --> F --> G
end
```
To illustrate how transient these technical moats are, Ng revisits the obsession with prompt engineering from three years earlier. He points out that the premise of hiring specialized prompt engineers at astronomical salaries was flawed from inception:
> “And so frankly, a lot of people have learned how to prompt LLMs decently well by now, which is why this idea of 3 years ago that there’ll be this job of a prompt engineer, they’ll be paid hundreds of thousands of dollars a year because they can prompt better, that was a dumb idea, right?”
Basic prompting techniques diffused naturally, while newer foundation models were intentionally trained to eliminate the need for arcane incantations. Consequently, hype over basic interactions faded, and current capability gaps will follow the same pattern.
- Basic prompting and using large context windows have become mainstream skills rather than specialized, high-paying roles.
- Frontier performance margins narrow rapidly once access expands to the wider developer community.
---
[52:56](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=3176s) The Decade-Long Challenge of AI-Native Implementation
Ng argues that the enduring divide in industry will not stem from theoretical machine learning knowledge, but from operationalizing technology within legacy organizations. Re-engineering real-world workflows—whether managing banking transactions, administering healthcare systems, or optimizing throughput and reliability in a manufacturing plant—is grinding, domain-specific work that will take significant time. He asserts:
> “That is what I think will take a decade.”
Transforming legacy organizations into AI-native environments presents a profound organizational bottleneck. Having advised several traditional teams through these reorganizations, Ng notes that the friction runs deep. Assembling a group of individuals who use AI tools does not automatically result in an AI-native organization, because operational efficiency hinges on team-level communication, collaborative handoffs, and workflows rather than individual productivity hacks.
- Technical know-how spreads quickly, but sector-specific integration (finance, healthcare, industrial operations) remains a multi-year effort.
- Organizing teams to be AI-native requires redefining collaborative processes, not merely training individual contributors to use chatbots.
---
[54:38](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=3278s) Diyi Yang’s Perspective on Autonomous Learning and Judgment Upskilling
Diyi Yang provides an optimistic counterpoint regarding how AI accelerates individual capability. In earlier eras, an aspiring machine learning engineer had to complete years of formal coursework across linear algebra, probability theory, statistics, and deep learning algorithms. Today, an individual with sufficient motivation can use conversational AI systems to generate customized visual walkthroughs, intuitive metaphors, code examples, and dynamic explanations, mastering advanced concepts far faster than before.
Because AI democratizes access to technical foundational knowledge, Yang argues that domain-specific judgment—built through years of handling real operational challenges—becomes the ultimate differentiator for the workforce:
> “The judgment, the years of solving problems in that domain actually become very important. They are the basis of judgment.”
Rather than funneling employees into rigid bootcamps, companies should help experienced domain experts leverage AI to execute tasks and coordinate within their groups.
Ng agrees that AI lowers barriers compared to past shifts like textbook publishing or the open web, yet remains measured about whether self-directed motivation alone is enough for most learners. Yang points out that the real-world impact is already visible: high school students are now using generative tools to engineer sophisticated algorithms and build competitive projects that would have been unimaginable just a few years earlier.
---
[57:47](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=3467s) AI Replacement Anxiety and Domain-Specific Advice for Scientists
During the audience Q&A, an attendee raises a paradox: if humans supply high-quality answers to refine AI on judgment tasks, will that accelerate the automation of human labor? The attendee also asks for a single piece of actionable guidance for early-career scientists working in non-computer-science domains like physics and chemistry.
Addressing job security fears, Ng offers an unconventional diagnosis: the real danger is not that AI systems will replace professionals, but that capable people will preemptively surrender out of unfounded defeatism:
> “I think the biggest risk to a lot of people is not AI replacing them because candidly AI just doesn’t work that well.”
Ng recalls encountering a gifted high school student who had grown demoralized and abandoned learning to write because ChatGPT generated fluent prose so quickly. He views this as a tragedy born of misunderstanding what models actually output. Under the surface, AI-generated text often lacks rigorous critical thought, misses situational context, and expresses outright errors with unearned confidence. Professionals should recognize the massive domain of judgment tasks where artificial intelligence fails and deliberately train themselves to excel at those capabilities.
Turning to early-career natural scientists, Ng advises against stopping at generic AI courses or basic prompt recipes:
> “And so I feel like people like me will say everyone should learn to prompt, everyone should learn to write code of AI. All that is true. Everyone should do that. But then when you’re a scientist working in one discipline, all the disciplines I’ve seen as well as all the professions I’ve seen like marketing, recruiting, you know, legal and so on, they’re actually very discipline-specific best practices using AI.”
The true leverage for a chemist, physicist, or specialist lies in uncovering the bespoke workflows, data pipelines, and analytical strategies tailored specifically to their field of study.
[01:01:05](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=3665s) The Shift to Zero-Human-in-the-Loop Coding and Grounding Signals
A student brings up the growing trend of zero-human-in-the-loop coding pipelines and the declining reliance on human knowledge repositories like Stack Overflow, asking whether relying on AI to both write code and troubleshoot solutions presents a systemic risk. Andrew Ng responds candidly about the trajectory of software engineering: “I think in the future almost no one will write code by hand.” While a niche group may continue manual coding, Ng predicts that the proportion of human-reviewed code will decrease significantly, which he views as a positive evolution.
```mermaid
flowchart TD
accTitle: Feedback Loops in AI Code Generation
accDescr: Diagram showing how AI-generated code receives feedback from testing and users to update models.
subgraph Execution["Code Generation & Verification"]
LLM["AI / LLM Code Generation"] --> Tests["Correctness & User Testing"]
Tests --> Deploy["Production Deployment"]
end
subgraph Feedback["Feedback & Training"]
Tests --> Signals["Bug, Correctness, & Product Signals"]
Signals --> Frontier["Frontier Labs"]
Signals --> OpenWeights["Open-Weight Models"]
Frontier --> LLM
OpenWeights --> LLM
end
```
To illustrate why this shift is natural, Ng draws an analogy to programming language compilers. Modern software engineers rarely inspect the assembly output generated from C++; while an expert assembly programmer might hand-craft tighter assembly for a specific routine, standard compilers reliably outperform humans on loop optimizations and broader systemic efficiencies. Although top human engineers can still outperform LLMs on intricate logic, Ng observes that a substantial portion of production code currently written inside large tech corporations is already “frankly, it's not that good.” Consequently, AI-generated code will rapidly become the acceptable standard. Unlike purely synthetic domains where models risk collapsing into recursive hallucination, programming offers concrete, grounding feedback loops—such as deterministic unit tests, bug traces, and user interactions. These signals allow models—both proprietary frontier systems and open-weight models—to continuously improve against ground truth.
- Compilers already optimize loops and assembly generation far better than generalist software engineers, paving the way for coding agents to do the same for higher-level languages.
- Coding remains grounded in external reality through automated test suites, functional correctness, and runtime user telemetry rather than purely recursive self-training.
---
[01:04:14](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=3854s) Broad Context, Human Judgment, and the Degradation of Collaborative Platforms
Ng emphasizes that despite automated code generation, mastering computer science fundamentals remains indispensable because it empowers engineers to properly steer coding agents and evaluate trade-offs. The decisive human advantage lies in an expansive, unstructured context window. An engineer might recall a meeting from a year prior where a customer's subtle facial expression signaled dissatisfaction with a feature, allowing them to make an intuitive architectural judgment that an LLM cannot infer. As Ng notes: “Those are the types of things that seems like humans have the context advantage and the judgment advantage for quite a long time.”
Diyi Yang expands on the broader societal implications of the student's question, pointing out that platforms like Wikipedia and Stack Overflow are not merely transactional lookup engines, but collaborative production communities. When AI-generated content floods these platforms, it undermines the human-driven verification processes that created high-quality repositories in the first place, eroding shared intellectual communities.
Picking up on this point, Ng warns students against the uncritical submission of AI-generated work. He frequently encounters team members turning in essays or reports that look superficially polished to the author, but clearly lack rigorous substance to a subject-matter expert. Ng often verifies his suspicion using tools like Pangram before delivering direct, critical feedback:
> “On subjects that I'm an expert in, when I ask AI, I go, is terrible. I would never make that decision. But on topics that I know nothing about, I ask AI and it sounds great to me, right?”
- The human edge stems from synthesizing nuanced, long-horizon contextual memories—such as historical customer interactions—into architectural choices.
- Influxes of low-effort AI content threaten collaborative knowledge commons like Wikipedia and Stack Overflow.
- Output sensitivity varies: non-experts are easily impressed by fluent LLM text, whereas domain specialists immediately recognize when structured logical thinking is absent.
---
[01:07:44](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=4064s) Early Childhood AI Education and Typemoles
In the final question of the session, an audience member named Fred, a father of two, asks about insights from Ng’s education initiatives and his non-consensus views on building LearnVector. Ng reflects on educating his own young children, aged five and seven. Because conversational speech recognition (ASR) still lacks precise control for young learners, Ng decided to prioritize teaching his daughter how to type, viewing keyboard literacy as a foundational stepping stone toward software agency and responsible AI use.
When existing web typing software proved too dry, Ng privately built and launched a gamified web application called Typemoles (accessible at typemoles.com). Knowing his daughter is motivated by cats, he designed the game so that completing typing drills unlocks feline character costumes. The gamification worked: she recently cleared level 25 of the game, earning a physical completion certificate he printed out at home. Ng mentions that friends' children of similar ages are already using modern AI tools to "vibe code" websites, making tactile computer literacy crucial.
Addressing state-level bans and policy moratoriums on classroom AI, Ng categorizes them as an overly crude regulatory hammer, even though they react to a legitimate failure mode: “Young people will never grow up in the future where they do not have access to AI. So the efforts to have them not use AI seem misguided.” Standard AI chatbots are fundamentally optimized for task completion rather than pedogogical comprehension, which is why LearnVector is focused on designing structured learning experiences beyond typical one-to-many chat interfaces.
- Typemoles (typemoles.com) was custom-built by Ng to teach his daughter keyboard mechanics using cat costume rewards across 25 progression levels.
- Outright classroom bans ignore the reality that upcoming generations will live in an AI-pervasive environment.
- LearnVector is developing novel educational architectures designed specifically for cognitive engagement rather than generic chatbot task-offloading.
[01:10:25](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=4225s) One-on-One Mastery Learning and Closing Remarks
Andrew Ng concludes his thoughts on the future of AI in education by highlighting the immense potential of personalized, one-on-one instruction. Rather than treating artificial intelligence merely as a tool to offload cognitive effort or generate quick answers, he envisions adaptive systems tailored directly to each individual student's pace and comprehension level. He describes an ideal educational environment where personalized models can support students without rushing them through difficult material, remarking, “Where we can have AI meet you where you are and patiently stay with you until you really master the concept.”
Hinting at active work underway in this space, Ng teases that he will have more concrete details and updates to reveal in the near future: “I have more to share about that in in months in weeks or months.” Following this forward-looking note on educational technology, professor Diyi Yang brings the fireside chat to a close, thanking Ng for his time and generosity in sharing his insights with the Stanford CS329Z class, met by warm applause from the audience.
- **Personalized Tutoring Vision:** Ng emphasizes moving beyond generic chatbots toward one-on-one AI tutors designed specifically to meet students where they are and patiently support them through complete concept mastery.
- **Upcoming Announcements:** Ng hints that he will share more details regarding his initiatives around AI-driven personalized learning within the coming weeks or months.
## Notable quotes
> [47:29](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=2849s) AI safety has been used as a weapon against open-weight models in a way that actually has very little to do with actual safety, but everything to do with regulatory capture and companies trying to stifle competition. — Andrew Ng
> [57:47](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=3467s) I think the biggest risk to a lot of people is not AI replacing them because candidly AI just doesn’t work that well. — Andrew Ng
> [01:01:05](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=3665s) I think in the future almost no one will write code by hand. — Andrew Ng
> [01:07:44](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=4064s) Young people will never grow up in the future where they do not have access to AI. So the efforts to have them not use AI seem misguided. — Andrew Ng
> [20:29](https://www.youtube.com/watch?v=aDHf1r6ZZRA&t=1229s) AI chatbots are terrible for learning. — Andrew Ng
## Mentioned
Andrew Ng, Diyi Yang, Stanford University, DeepLearning.AI, Coursera, Google Brain, CS329Z, Codex, Claude Code, OpenAI, IBM Watson, DeepMind, AlphaGo, IBM Deep Blue, Garry Kasparov, University of Pennsylvania, Learn Vector, Satya Nadella, Microsoft, Claude 3.5 Sonnet, Anthropic, ChatGPT, Stack Overflow, Wikipedia, Pangram, Fred, Typemoles, LearnVector
## Video description
Browse Stanford's online courses in Agentic AI: https://stanford.io/4AIRb2z
Andrew Ng, founder of DeepLearning.AI, co-founder of Coursera, founding lead of Google Brain, and an Adjunct Professor of Computer Science at Stanford, joins Stanford professor Diyi Yang for a fireside chat in Stanford CS329Z: Engineering AI Agents.
Key questions answered in this fireside chat:
Q: What separates strong AI agent-building teams from weaker ones, according to Andrew Ng?
A: A disciplined error analysis and evals-driven development process, plus knowing when to move from quick prototyping to rigorous golden-set and regression testing.
Q: Does Andrew Ng think AI chatbots are good for learning?
A: Not as currently built. He says chatbots were designed to get work done rather than to help people learn, and that cognitive offloading can hurt learning, citing research showing lower exam scores.
Q: What will humans still do better than AI?
A: Judgment tasks with no single right answer, such as architecture choices, product priorities, and hiring timing. He says the gap between AI performance on verifiable tasks and on judgment tasks is larger than most people realize.
Q: Does Andrew Ng still write or review code by hand?
A: Mostly not. He relies on rigorous testing, guardrails, and sandboxing instead. Human review still makes sense for small amounts of high-stakes code, but at scale it becomes a bottleneck.
Q: Will open-weight AI models survive?
A: He is confident they will, and sees overly restrictive regulation as the biggest risk to them.
Q: Will the AI knowledge gap between early adopters and everyone else last?
A: He expects technical knowledge to spread quickly. The lasting gap will be in implementing AI inside industries and reorganizing teams to be AI-native, which he expects to take about a decade.
Chapters:
0:00 Introduction
0:24 Error Analysis, Evals, and Rapid Prototyping
4:52 Where Agents Fail: Harnesses and Sandboxing
8:56 Is Building Agents an Elegant Process?
14:21 Human Advantage: Verifiable vs. Judgment Tasks
20:28 AI Chatbots, Learning, and Judgment
28:34 Should Engineers Still Write and Review Code?
41:29 Concise Code and Token Incentives
43:36 Academic Research vs. Frontier Lab Resources
47:29 Audience Q&A: Open-Weight Models and Regulation
49:40 Audience Q&A: AI Knowledge Gaps in the Workforce
57:43 Audience Q&A: AI Anxiety and Advice for Scientists
1:01:16 Audience Q&A: Will Humans Stop Writing Code?
1:07:47 Audience Q&A: AI in Education
About the speakers:
Andrew Ng is the founder of DeepLearning.AI, co-founder of Coursera, founding lead of Google Brain, and an Adjunct Professor of Computer Science at Stanford University.
Diyi Yang is an assistant professor in the Computer Science Department at Stanford University, affiliated with the Stanford NLP Group, Stanford HCI Group, and the Stanford Institute for Human-Centered AI (HAI). Her research focuses on human-centered LLMs and human-AI interaction. She is a recipient of IEEE “AI 10 to Watch” (2020), a Microsoft Research Faculty Fellowship (2021), an NSF CAREER Award (2022), and a Sloan Research Fellowship (2024).
Course website: https://cs329z.stanford.edu/
Watch the full CS329Z playlist: https://youtube.com/playlist?list=PLPRcF5HR02_U&si=3Z4OYphngcmQ0GIy
Recorded 11/9/2026 in CS329Z: Engineering AI Agents, a graduate course at Stanford University taught by Diyi Yang, Michael Ryan, and John Yang.
In a Stanford CS329Z fireside chat with Diyi Yang, Andrew Ng argues that building effective AI agents requires disciplined empirical evaluation and deterministic guardrails rather than mathematical elegance or manual code inspection. He contends that human value will shift from verifiable algorithmic tasks to contextual judgment, even as conversational chatbots pose severe risks to student learning.
Empirical Discipline Over Theoretical Elegance (0:05)
Ng rejects the notion that machine learning was historically an elegant, predictable process, describing practical development as an empirical routine of error analysis, data cleaning, and feature tweaking. When building agentic workflows, successful teams distinguish themselves through disciplined evaluation lifecycles: they start with rapid, ad-hoc prototyping to advance from 0% to 80% accuracy, then transition toward golden evaluation datasets and continuous integration regressions to resolve plateaued edge cases. Because complex neural models cannot be fully inspected or predicted purely by deduction, developers must uncover real bottlenecks—such as third-party API rate limits—through empirical execution rather than abstract theorizing.
Verifiable Tasks Versus Human Judgment (14:21)
Artificial intelligence exhibits 'jagged intelligence,' demonstrating rapid, automated mastery over verifiable tasks—such as code compilation, factual lookups, and formal mathematical proofs—where reinforcement learning environments can cheaply score ground truth. In contrast, models struggle with unverifiable judgment tasks, such as system architecture trade-offs, roadmap prioritization, and hiring timelines, where no single mathematical answer exists and training requires expensive expert annotation. Ng argues that public perception overestimates artificial general intelligence because verifiable benchmarks are far easier to publish, whereas human professionals retain a distinct advantage in navigating real-world ambiguity and synthesizing long-horizon context.
Deterministic Sandboxing Replaces Manual Code Review (28:34)
Ng reveals that he has personally stopped writing code by hand and no longer conducts manual line-by-line code reviews. While human inspection remains critical for life-or-death software like space shuttle controls, Ng views eye-reviewing standard production systems as an unsustainable bottleneck when AI generates tens of thousands of lines of code. Instead of relying on manual oversight, he advocates for code-level sandboxing, statistical testing, and automated guardrails—such as physically restricting an agent's tool access to a single isolated directory—to contain unpredictable model behavior.
Human Review Debate and Vibe Coding (32:55)
Yang challenges the elimination of manual oversight, warning that deploying agents to review other agents risks structural collapse and recounting bugs such as a registration agent leaking user passwords. She contends that human review remains necessary until formal verification provides approximately 99.8% correctness guarantees. Ng counters that casual 'vibe coding' fails without deep technical fundamentals: amateur prompters lack the mental models to select appropriate databases or navigate architectural trade-offs, causing LLMs to select arbitrary design points. While his own production agents have inadvertently deleted data and exposed security backdoors, Ng remains skeptical that human reviewers are reliably superior to calibrated agent audits.
Cognitive Offloading and Educational AI (20:29)
Ng warns that standard conversational chatbots are detrimental to education because they are engineered to complete tasks quickly rather than build conceptual understanding. Citing a University of Pennsylvania study, he notes that while students using chatbots achieved higher homework scores, their closed-book exam scores dropped by 17% due to cognitive offloading and skill atrophy. To counter this, Ng advocates overhauling STEM education away from verifiable answer-hunting and toward nuanced judgment, pointing to his Learn Vector initiative and a gamified typing app, Typemoles, as efforts designed to introduce productive instructional friction and personalized mastery tutoring.
While technical knowledge diffusion quickly commoditizes skills like prompt engineering and open-weight models maintain market viability, Ng forecasts that restructuring traditional industries into AI-native organizations will take a decade. The unresolved challenge lies in balancing frictionless autonomous generation with the rigorous educational friction required to cultivate the next generation's foundational judgment.
Source quotes
[47:29] Andrew Ng: AI safety has been used as a weapon against open-weight models in a way that actually has very little to do with actual safety, but everything to do with regulatory capture and companies trying to stifle competition.
[57:47] Andrew Ng: I think the biggest risk to a lot of people is not AI replacing them because candidly AI just doesn’t work that well.
[61:05] Andrew Ng: I think in the future almost no one will write code by hand.
[67:44] Andrew Ng: Young people will never grow up in the future where they do not have access to AI. So the efforts to have them not use AI seem misguided.
[20:29] Andrew Ng: AI chatbots are terrible for learning.
Original transcript
[0:05] Welcome everyone. Uh this is CS 329 Z.
[0:08] Uh today we are very honored to have
[0:10] Andrew coming here to share with us a
[0:13] lot of his thoughts around AI agents. Uh
[0:16] what we are going to do is I'm going to
[0:18] ask him a few questions and if you have
[0:21] any questions, feel free to raise your
[0:23] hand. We do have a mic in the room and
[0:26] also you can also put post questions on
[0:29] our discussion forum.
[0:31] Um okay.
[0:33] The first question. I think like the
[0:35] field of AI really changed very very
[0:37] fast. So maybe just in the last a few
[0:40] months,
[0:41] what has changed your view of agents?
[0:44] It's totally okay if nothing changed,
[0:45] but we would love to hear like
[0:48] yeah what have changed your perspective
[0:50] of agents in the past a few months.
[0:53] >> Oh I don't know.
[0:56] I
[0:57] This is a bad answer. I don't know that
[1:02] my view on agents changed dramatically
[1:04] the last few months. Um
[1:07] I feel like a lot of my teams busy
[1:09] building agentic workflows and as I look
[1:12] at what works and what doesn't,
[1:15] the biggest difference to me between the
[1:17] teams that are able to build agentic
[1:19] workflows really well versus the ones
[1:21] that are less effective at doing so is
[1:23] still still seems to be the ability to
[1:25] come back to a disciplined error
[1:27] analysis evals kind of process.
[1:31] I feel like
[1:33] it's actually one one interesting
[1:33] experience I had actually multiple times
[1:35] in my career
[1:37] where
[1:38] number of my experienced AI people would
[1:40] look at a specific project
[1:42] and then it turns out that a lot of the
[1:44] times the advice that experienced AI
[1:47] people give to a team on what to try
[1:50] next is remarkably correlated, right?
[1:53] Sometimes it feels like when you work on
[1:55] an AI project there's so many things you
[1:56] could do is it just random, but many
[1:58] times I should quite reassure that when
[2:00] friends and I got to get out well like
[2:01] yeah, yeah, you should try this, don't
[2:03] try this, try this zone. It's it's not
[2:04] that the correlation was perfect. But
[2:06] it's actually pretty high, which gives
[2:08] me high degree of confidence that the
[2:10] way we built the way we engine AI
[2:12] systems is not random. There is a
[2:14] process to it. And the thing I see the
[2:17] one biggest difference between high
[2:18] performing and less high performing
[2:19] teams um is beyond a certain point the
[2:23] team's ability to drive a very
[2:25] disciplined error error error analysis
[2:27] and was driven development process.
[2:29] >> Yeah, that that's actually very well
[2:31] aligned like several of our lectures is
[2:33] actually about this kind of eval and
[2:35] very rigorous uh testing of the agent
[2:38] take a system. In fact, I think like our
[2:40] homework two ask students to actually
[2:42] design certain kind of data points to
[2:44] test agents. Um
[2:47] >> You know what? If you're already
[2:48] familiar with that, let me then up the
[2:49] ante and tell you the the next hardest
[2:51] thing to learn, which is
[2:53] I find that depending on the stage of
[2:55] project of if you're building an agentic
[2:57] workflow,
[2:58] your approach to it is very different.
[3:00] And this is one of the reasons why
[3:02] mastering how to build agents is so
[3:04] difficult. In an early stage project,
[3:07] you should be building quick and dirty
[3:08] prototypes. And then in the late stage
[3:10] project, you should be building golden
[3:12] sets and very rigorous evals and kind of
[3:14] you know CI regression testing.
[3:16] And it turns out that the best practice
[3:18] evolves in a continuous way from the
[3:21] quick and dirty that's a try look at it,
[3:23] fix something, change the prompt to then
[3:25] using these frankly slower but more
[3:27] rigorous processes. So what I see for a
[3:30] lot of teams is there's some teams that
[3:31] only know the quick and dirty processes.
[3:33] And if you do that, it's basically you
[3:35] know think of a firing up Codex or Cloud
[3:37] Code or Open Code and just prompting for
[3:39] a bunch, right? You can often go from
[3:42] like zero to 80% accuracy quite quickly,
[3:44] which is really encouraging. But you
[3:46] just keep on filling the prompts, adding
[3:48] a tool, subtracting a tool, then you
[3:50] often bounce around with improvements,
[3:52] regressions, improvements, regressions,
[3:54] and you just hit that ceiling and you
[3:55] can't get it into production.
[3:57] And then eventually it is this more
[3:59] rigorous process that lets you frankly
[4:02] eke out that 1% 1% at a time until you
[4:04] get to your 90 95 98 whatever's needed
[4:07] to to to deploy it.
[4:09] Um
[4:10] and then the other
[4:11] you know mistake I see is I know some
[4:14] people usually people that have only
[4:15] worked in large companies maybe that
[4:17] only know the overly rigorous process
[4:20] and are not able to execute a quick and
[4:22] dirty process. You build something look
[4:23] at it decide to change it or um I don't
[4:26] know yeah like over the weekend one of
[4:28] my teams are doing design explorations
[4:30] so then you know I built five things oh
[4:33] actually four things looked at them
[4:35] shared all four to the team and then
[4:37] discussed decided which and and so that
[4:38] quick and dirty process is very fast and
[4:41] one of the most difficult things about
[4:42] doing this well is the ability to master
[4:45] both ends of the spectrum and know how
[4:47] to gradually evolve from one type of
[4:49] process to another.
[4:51] Have you taught that too already?
[4:52] >> [laughter]
[4:52] >> No not yet.
[4:54] Yeah I just think one thing is um so
[4:57] agents are definitely getting very very
[4:58] capable and you have a lot of rich
[5:00] experience like building products and
[5:02] also thinking about this process. Where
[5:04] do they struggle? Where what kind of
[5:06] material should we cover to help
[5:07] students figure out where agents are not
[5:09] good where we should invest our
[5:11] engineering skills?
[5:14] >> Yeah so um
[5:17] you know this new design pattern that's
[5:19] started to become popular maybe the
[5:20] beginning of this year of using an agent
[5:23] harness um is is I think it's very
[5:27] exciting and it turns out so actually I
[5:30] should tell you even even some of my
[5:32] teams do this now right is um
[5:34] I I I I find that um
[5:37] one of the big differences between
[5:38] traditional software engineering and
[5:40] engineering AI systems including agents
[5:43] is that the behavior of traditional
[5:45] software is relatively predictable.
[5:48] You write a bunch of code the code does
[5:50] what it's supposed to and it more or
[5:52] less does what you predict right? It's
[5:54] not that traditional software is
[5:55] deterministic you kind of networking
[5:57] issues you know your database can fail
[5:59] who knows so it's not completely
[6:00] deterministic but most of the time you
[6:03] kind of have a spec infinite code to
[6:05] spec, and you kind of can predict
[6:07] relatively well what it will do.
[6:10] One challenge of AI systems, including
[6:12] agents, but also supervised learning
[6:14] systems, deep learning systems, is that
[6:16] you never quite know in advance what
[6:18] they will do
[6:19] because AI systems were built by
[6:21] training on all this data, and often we
[6:24] just don't quite know what happened in
[6:26] the data, what happened in the learning
[6:27] process. And that's why there's this
[6:30] extra source of uncertainty in not
[6:32] knowing when you actually put the
[6:33] software together what it will actually
[6:35] do.
[6:36] And this is why
[6:37] compared to traditional software
[6:39] engineering,
[6:40] building AI systems is a much more
[6:43] iterative process where a lot of the
[6:45] time um it's possible to overthink it,
[6:49] but sometimes the right move is just sit
[6:51] down, prompt an LLM, throw together some
[6:54] quick-and-dirty agent harness or throw
[6:56] together something and then see where it
[6:58] fails and use that to focus your
[7:00] attention to then make it work better in
[7:02] a more systematic way.
[7:04] So even for a lot of my programs, if I'm
[7:06] building an agent harness, or let let's
[7:08] see let's see you want to build a new
[7:09] coding agent, you know, whatever. We we
[7:10] already have good coding agents, right?
[7:12] But if you decide um for a class
[7:14] project, a hobby project, to build your
[7:15] own coding agent,
[7:17] where will it fail? Is it memory
[7:19] compaction? Is it not good at following
[7:21] instructions? Is your set of tools not
[7:23] good enough? Um is it bad at inferring
[7:26] user intents? Is it too resource
[7:27] intensive? Is the token burn too high?
[7:30] It's like unless you've already built
[7:32] coding agents, it's actually really hard
[7:34] to know the answer to that. And so it's
[7:36] extremely easy to pick the wrong thing
[7:38] to focus on. You might say, oh, I want
[7:40] to spend 3 months building better tools
[7:42] for my coding agents, when in reality
[7:44] maybe you should just, I don't know,
[7:46] give it a simple set of tools, give it a
[7:47] bash shell, and maybe sandboxing
[7:49] guardrails, and then try to see what
[7:51] works.
[7:52] And so um
[7:54] this is why uh I I I I I find that um
[7:58] uh
[7:59] that initial instinct to build that
[8:01] quick-and-dirty implementation with
[8:03] appropriate sandboxing and monitoring,
[8:05] right? So do it in a responsible way so
[8:06] you don't build some crazy agent that
[8:08] does damage or erases you know
[8:10] production data or something. So doing
[8:12] it in a safe, responsible way,
[8:13] that seems to me that that's still the
[8:15] best way I know to build these things,
[8:17] which is for most applications. Oh yeah,
[8:19] something I was working over the
[8:20] weekend. Found
[8:22] I won't details maybe I should share,
[8:24] but
[8:25] use a public API
[8:27] and then I found myself very limited far
[8:30] below the published thresholds for when
[8:32] we'd be very limited, right? And so if I
[8:35] hadn't tried it, I would have no way of
[8:37] knowing that
[8:39] you know the actual rate limits that
[8:40] this company implemented was far below
[8:42] what their website said. It just didn't
[8:44] make sense to me. And and and I feel
[8:46] like so the tool was broken. Had to find
[8:48] another tool for my agent. So I found a
[8:49] lot of these things
[8:51] you have to discover empirically rather
[8:54] than by
[8:55] theorizing about it.
[8:57] >> Okay. I I think that's a really good
[8:59] sharing of the space of where agents may
[9:02] fail. I I do want to point out the one
[9:04] thing that I observed from how you
[9:05] described the process that is unlike
[9:08] like in the past, if you think about
[9:10] machine learning, it's it's actually a
[9:11] very elegant process. There is a very
[9:13] clear problem and you know how to
[9:16] formulate them into objectives and there
[9:18] are school of solutions to think about
[9:21] how to approximate that. Today it seems
[9:23] that with agents it feels a very kind of
[9:26] black box process. There are different
[9:28] components we need to configure, but
[9:30] there is no kind of like a clean recipe
[9:32] on like okay, here's how I should learn.
[9:35] Like new things keep coming out. It
[9:37] feels like this process is just like
[9:40] very scattered and you can you can
[9:42] improve different components, but you do
[9:44] not know what would be a really good
[9:47] like elegant solution here. How should
[9:49] we navigate all this kind of like giant
[9:52] design space and even thinking about
[9:54] is there a principle way to to further
[9:57] improve agent performance? I think
[10:00] there are also a lot of discussions
[10:01] around a recursive self-improvement
[10:03] where if there is like a very clear
[10:05] signal, maybe instead of humans like
[10:07] playing around with agents and then how
[10:09] well it
[10:10] We can actually let the models to self
[10:12] improve. Uh yeah, I guess what do you
[10:15] think about this? Since you also done a
[10:16] lot of amazing work earlier days in
[10:18] machine learning.
[10:19] >> Now my my surprise in what you're saying
[10:21] is that you think that machine learning
[10:23] and stuff we've been doing is elegant.
[10:25] >> Oh yeah.
[10:27] >> At least in in maybe I think the theory
[10:30] of machine learning is very elegant, but
[10:32] the
[10:32] practical building working machine
[10:34] learning systems, it was a lot of like
[10:37] you know
[10:38] run it, do error analysis, figure out
[10:41] how to tweak the feature, figure out how
[10:43] to get more data.
[10:45] It's like a data engineering, figure out
[10:46] that this data source actually dirty, so
[10:48] you redo your scripts to clean that
[10:50] data.
[10:51] Then you worry about the cost of buying
[10:52] more data. It was a lot of very
[10:55] engineering work. Um
[10:57] and by the way I actually remember
[10:59] before the rise of deep learning kind of
[11:01] well almost 15 20 years ago um deep
[11:04] learning was criticized as being
[11:05] inelegant, right? I mean you know very
[11:07] senior at that time was kind of a
[11:09] much younger professor
[11:11] um and very senior faculty would say
[11:13] Andrew don't work on this machine
[11:15] learning deep learning thing. You have
[11:16] no idea what you're doing. You're just
[11:18] putting around with
[11:19] neural network layers and neuronal
[11:22] connections. It's all like just an
[11:23] empirical mess and and and and they were
[11:26] right, but I think as we hold our
[11:27] intuitions about how to
[11:29] deal with this weird mess of deep
[11:31] learning algorithms, then maybe we dress
[11:34] it up to just be more elegant. I don't
[11:35] know.
[11:36] >> I think the elegant in terms of like the
[11:39] the the potentials, the directions are
[11:41] actually very predictable. You can
[11:43] anticipate
[11:45] like oh if I change the objective in
[11:47] this way, very likely it's going to go
[11:50] in this way and you can even have
[11:52] certain type of like proofs or guarantee
[11:55] versus it feels like agent behaviors are
[11:57] just really harder to anticipate, right?
[11:59] >> I see. Yeah.
[12:01] Yeah no that's true. Maybe one one way
[12:04] um
[12:05] one way to corral that uncertainty which
[12:07] you write is much larger than rise
[12:09] learning is um
[12:11] I I I still feel like both as learning
[12:13] and building agent workflows um
[12:16] is much easier to automate something
[12:18] that people can do than to
[12:19] [clears throat] try to build workflows
[12:20] for something that even people can't do
[12:23] just because the error analysis process,
[12:26] you know, feels more systematic. So
[12:29] agentic workflow where I want to um do a
[12:32] certain task uh like um let's say I want
[12:35] to uh you know
[12:37] typical business process workflow
[12:39] automation, right? I don't know. Maybe
[12:40] it's not the most exciting, but this
[12:41] actually is important. Download a
[12:43] financial invoice, uh turn a PDF into
[12:46] already markdown, you know, have a LM
[12:49] process it, tag it, route it to the
[12:50] right place, whatever, some workflow
[12:52] like that. Because humans know step by
[12:54] step what's a good answer um if you have
[12:57] a agents you know take incorrect steps
[13:00] you you're not just debugging at the
[13:02] agent level, you can figure out where
[13:04] exactly did the step that the agent take
[13:06] deviate from what a human would have
[13:07] done and use that to steer the agent. Um
[13:10] whereas in contrast if we're trying to
[13:12] build a workflow for something that even
[13:13] humans have no idea how to do then you
[13:16] don't have that reference of you know
[13:17] human level performance or the steps
[13:19] that human would take and then it's kind
[13:21] of harder to brainstorm right now now
[13:23] what I do. So maybe this is why if
[13:25] you're trying to use agents to I don't
[13:27] know prove brand new math theorems that
[13:30] no human has proven you know that that's
[13:32] harder to debug I think um unless you
[13:35] try to debug on theorems that humans
[13:36] have already proven because that could
[13:38] work.
[13:38] Um but I think a lot of the uh uh a lot
[13:41] of the applications I see businesses
[13:42] working on are um trying to automate
[13:45] things that people can do.
[13:47] Um and turns out oh and and just just in
[13:49] case it feels like I'm talking about
[13:51] this oh AI taking jobs, AI automating
[13:53] people's work, that's actually not the
[13:54] primary motivation of what I see
[13:56] businesses doing. Um yes businesses will
[13:58] sometimes automate tasks people do to
[14:00] save costs, but the much more
[14:02] interesting use cases is you can
[14:04] automate something people are doing in
[14:06] order to do it you know a thousand times
[14:08] faster or to do a thousand times more of
[14:10] it rather than just cost savings. I
[14:12] actually see that much more exciting in
[14:14] the practical business implementations,
[14:16] but those are but but I think because of
[14:18] that error analysis it tends to be
[14:19] easier that way.
[14:21] Does it make sense to you?
[14:22] >> Yeah. Okay, I'm going to ask another
[14:24] question to maybe probe this a little
[14:26] bit further. So you you talk about a lot
[14:29] of the kind of like agency humans take
[14:31] in the process such as like all we do
[14:34] error analysis, we play around and then
[14:36] we forecast where the like user needs
[14:39] are or the market needs are etc. So
[14:42] I guess think maybe like take a step
[14:44] back.
[14:45] What do you think are the human
[14:46] advantage today? I think a lot of people
[14:48] are very worried that okay, as AI gets
[14:51] more and more capable, a lot of the task
[14:54] or jobs we work on today may get
[14:57] automated to some to some extent. And
[15:00] now like
[15:01] I guess AI can solve like open math
[15:03] problems and mathematicians are very
[15:06] anxious about their career.
[15:08] So what are human advantage if you want
[15:11] to like
[15:12] talk to our like CS students who are
[15:15] about to graduate this year or next year
[15:17] like what are some human advantage you
[15:20] view here and how should we
[15:22] have a very calm dialogue in today's
[15:25] very confusing world?
[15:27] >> Yeah, I know that there's a lot of
[15:29] people are anxious
[15:31] and
[15:32] many fresh grads have been struggling in
[15:35] the marketplace and jobs for many job
[15:37] roles, not just CS grads doesn't feel as
[15:39] available as it used to be.
[15:42] So I I see the I I think the
[15:46] I think that's
[15:48] the CS role.
[15:51] And at the same time I think that
[15:53] there's a very large
[15:55] set of tasks that people are much better
[15:57] at than you know OMs and agents and will
[16:00] be for a long time.
[16:02] So intelligence is jagged meaning AI is
[16:06] really good at some things and really
[16:08] bad at other things that people would
[16:10] have thought if you can do this, why
[16:11] can't you do that, right? So
[16:13] we we know that intelligence, artificial
[16:15] intelligence is jagged. And I think the
[16:19] gap between AI performance on verifiable
[16:22] tasks, um things like writing code and
[16:24] proving math theorems, things with an
[16:26] objective right answer, they can often
[16:28] be verified automatically compared to
[16:31] AI's performance on unverifiable tasks
[16:33] or judgment tasks. I think that gap is
[16:36] bigger than most people appreciate.
[16:38] Um as many of you know, uh for
[16:40] verifiable tasks, our techniques for
[16:42] training LLMs and AI agents is vastly
[16:46] superior because you can build a
[16:48] reinforcement learning gym or build a
[16:49] simulation environment and let your AI
[16:51] system try to do the tasks millions of
[16:53] times and automatically grade did it
[16:56] solve the math theorem or not? Did it
[16:57] write the code correctly or not? Did it
[16:58] get the right factual answer or not?
[17:00] And use that to use RL or all or other
[17:03] techniques. So it turns out supervised
[17:04] fine tuning easy as well to get labels
[17:06] for verifiable tasks. But so it's much
[17:08] easier um to get AI to do well on
[17:12] verifiable tasks as an objective right
[17:15] or wrong answer.
[17:16] But it turns out for a lot of the work
[17:18] that all of us do, there's a very large
[17:20] set of judgment tasks or unverifiable
[17:22] tasks where there's no one right answer,
[17:26] but there are multiple good answers and
[17:27] multiple bad answers and it's much more
[17:29] valuable to give a good answer than a
[17:31] bad answer.
[17:32] So for example, um what system
[17:35] architecture should you build, you know,
[17:36] for a computer system? Or of this long
[17:39] list of product features, which one
[17:41] should you build first? Um or getting a
[17:44] little bit outside tech, um if you want
[17:47] to market a product, what marketing
[17:48] slogan should you use? What country
[17:50] should you market this product to first?
[17:52] What age demographic should you try to
[17:54] build this for? Um
[17:56] should you hire a VP of sales for your
[17:59] company now or wait 6 months? Um
[18:02] so it turns out that in life there's a
[18:04] ton of judgment tasks where there is no
[18:07] one right mathematical answer and our
[18:10] techniques for getting LLMs and agents
[18:12] to do well on judgment tasks
[18:15] is just
[18:16] a huge struggle.
[18:17] To be clear, we can make LLMs do better
[18:20] on on on tasks, but it's a ton of work.
[18:23] Um, so the frontier companies, if you
[18:25] want to do well on a judgment task, like
[18:28] say healthcare medical diagnosis,
[18:30] whatever,
[18:31] there is a process. You got to hire a
[18:33] ton of experts, pay them a lot to label
[18:35] data, then maybe do, you know, some mix
[18:39] of um pre-training on related data, they
[18:42] have to license, maybe mid-training,
[18:44] maybe post-training. [sighs] You can do
[18:46] RL gyms, but the reward functions aren't
[18:48] quite right, so you can kind of do it,
[18:50] but the reward hack or you find it's not
[18:52] aligned, you could tune the reward
[18:54] function. So we can actually make
[18:55] progress on judgment tasks and
[18:57] unverifiable tasks, but the process of
[19:00] doing so is much more slow and much more
[19:02] painful than the process of doing well
[19:04] on verifiable tasks.
[19:06] Then there's one of the funny effects,
[19:08] which is benchmarking is also much
[19:11] easier on verifiable tasks which is
[19:12] right and wrong answer. [snorts] And so
[19:14] we tend to benchmark only the verifiable
[19:16] tasks for the most part. Um, and so I
[19:19] think that most of society over Oh,
[19:22] if you look back over the last few
[19:23] decades of AI progress, whenever AI has
[19:26] some breakthrough, human nature was to
[19:29] overgeneralize to how well it does on
[19:31] other things as well.
[19:32] So when IBM
[19:34] Jeopardy, IBM Watson, you know, won on
[19:37] Jeopardy, a lot of people thought, wow,
[19:39] AI could win in the Jeopardy
[19:41] competition. It's going to be so smart.
[19:43] But it did not generalize. Even Alpha
[19:45] Go,
[19:46] you know, AI can win Go. It's like,
[19:47] okay,
[19:48] what else did that turn out to be useful
[19:50] for? Or
[19:51] when Gary Kasparov, world chess
[19:53] champion, lost to Deep Blue, right, beat
[19:54] world chess champion at chess, again, it
[19:56] was so exciting, but
[19:58] it didn't generalize as much as humanity
[20:01] thought.
[20:02] What I see at this moment in time is AI
[20:04] is making amazing progress, really
[20:07] valuable progress on verifiable tasks.
[20:10] It's making some progress as well
[20:13] on judgment tasks, but I see a huge gap
[20:16] and many people are over general are
[20:19] frankly over optimistic about progress
[20:21] on judgment tasks. Um, and I think
[20:24] there's actually a very large role for
[20:25] people to play still in those judgment
[20:28] tasks.
[20:29] >> Yeah, it's actually very uh reassuring
[20:32] to hear you talk about this like human
[20:34] advantage um
[20:35] problem. And also I personally agree on
[20:38] the generalization aspect. Um, one word
[20:42] that you mentioned a many times is
[20:43] called a judgment. And I actually want
[20:46] to discuss this further because this
[20:48] actually matters for a lot of the
[20:50] educational contexts. So if you think
[20:52] about how humans get a judgment, most of
[20:55] the time we actually uh go through a
[20:57] process of learning. Um, we learn how to
[21:01] write code so that later we have
[21:03] judgment of what is good code and how to
[21:05] design the software better.
[21:07] Um, we work with certain kind of like
[21:10] problems for a long time and we
[21:13] accumulate our experience and we know
[21:15] what is good judgment, what is bad
[21:16] judgment. So there seems to be a process
[21:19] of learning. Today like we talk about
[21:21] like okay coding agent is amazing. Uh
[21:24] many of us
[21:25] as long as you have the idea, I think
[21:27] coding agent can actually help you
[21:29] implement things very fast. So
[21:31] reflecting that to the learning process
[21:35] these days um it's actually very easy to
[21:37] get done your homework. Uh you probably
[21:40] only spend a few hours and the homework
[21:42] is solved. And it's really like changing
[21:45] how people actually learn to acquire
[21:48] that kind of judgment process. There was
[21:50] also this like a very interesting study
[21:52] uh earlier this year showing that
[21:54] uh if you track a students their their
[21:56] homework score actually uh are getting
[21:59] higher and higher, but then if you do
[22:01] exams the average score of exams
[22:04] actually drop significantly. So there
[22:06] seems to be this kind of skill atrophy
[22:08] happening. But then at the same time the
[22:10] human advantage is actually judgment. So
[22:13] how should we think about this? How to
[22:15] really
[22:16] I don't know whether this is the right
[22:17] word to use, but how to really
[22:19] uh enable people have this kind of
[22:21] productive friction so they learn the
[22:24] key skills to navigate to work with
[22:26] agents.
[22:28] >> Yeah, you know, um,
[22:30] I think we do have a problem with where
[22:33] we how how society is approaching
[22:36] learning. Um,
[22:37] I'm very motivated to work on that. Uh,
[22:40] I have some things I
[22:42] not yet discussing publicly, but I think
[22:44] we have
[22:45] We just I just one one part of what she
[22:47] said I think is important. Um, I'm going
[22:49] to say something that may sound
[22:51] controversial,
[22:52] but
[22:54] is very solidly backed by a very large
[22:57] growing body of rigorous research.
[23:00] What I'll say is
[23:01] AI chatbots are terrible for learning.
[23:04] Um, and I think as alluded, I think we
[23:07] know this intuitively, you know, even in
[23:09] the university context. Um, students
[23:12] that use AI chatbots have higher
[23:14] homework scores, but lower closed book
[23:17] final exam scores, right? We all know
[23:19] this. And it's because cognitive
[23:21] offloading to a chatbot,
[23:22] which is a technical term for getting a
[23:24] chatbot to think for you, means you
[23:26] learn and retain much less.
[23:28] So there's a there's not sure you're
[23:30] relating to the UPenn study uh
[23:32] that showed that um
[23:34] uh
[23:35] 17% lower uh final exam scores or closed
[23:38] book math scores um among students that
[23:41] use a chatbot. Um, and the thing that
[23:44] worries me is more and more of these
[23:46] studies coming out in the formal
[23:48] educational system, so K-12 or primary
[23:50] secondary school and university where
[23:52] this learning tends to be studied.
[23:54] I believe that this type of chatbot
[23:56] mediated learning loss also is very
[24:00] strongly happening among adult
[24:02] professionals. Um, and if the the UPenn
[24:05] study showed 17%
[24:08] learning loss or 17% lower scores,
[24:10] and if we take this type of learning
[24:12] loss, not just as one sharp, compounded
[24:16] across many years of formal education
[24:19] and then among adults,
[24:20] compounded among many years of, you
[24:23] know, informal education as adult, I
[24:25] think that um
[24:26] the learning loss will be very
[24:29] significant.
[24:30] Um,
[24:32] in terms of how people but but in terms
[24:34] of how people learn these skills
[24:37] in software engineering maybe actually
[24:39] in a lot of STEM um we spend a lot of
[24:42] our time teaching people
[24:44] what is the right answer. One nice thing
[24:47] one thing that you know one reason why I
[24:49] enjoy working in STEM is you know
[24:51] there's a right answer. If you get the
[24:52] right answer it feels good like you and
[24:54] it's good it feels good when you
[24:56] do the LeetCode problem and you solve
[24:58] the puzzle and you code works right?
[25:00] That's just fun.
[25:02] Unfortunately verifiable tasks like
[25:04] those those tasks with a right answer is
[25:07] what AI is becoming remarkably good at
[25:09] and so people have to shift to do more
[25:12] unverifiable or to do more judgment
[25:14] tasks and this is a challenge for the
[25:17] STEM educational system which
[25:19] historically has been oriented towards
[25:21] teaching the right answer rather than
[25:23] the ambiguous answer requiring judgment
[25:26] and I think that
[25:28] well we're here at Stanford clearly I
[25:30] love higher ed we all support higher ed
[25:32] it's tremendous mostly good and I think
[25:34] there's also a challenge ahead of us to
[25:37] rework a lot of how we carry out um
[25:41] K-12 as well as higher ed in order to
[25:43] teach more um
[25:45] judgment tasks.
[25:46] Um, maybe one thing I'm excited about is
[25:49] um even though I said AI chatbots are
[25:52] terrible for learning oh and and and
[25:54] there's a specific reason for that.
[25:56] If you think about the way that AI
[25:58] chatbots are built they were designed to
[26:00] help you get work done
[26:02] and they're amazing at getting work done
[26:04] so let's use them for that.
[26:06] But they were never designed to help you
[26:08] to learn um which is why also
[26:12] uh you know a lot of the answers that I
[26:14] asked the chatbot for like last week I
[26:16] don't know if I even remember them
[26:17] anymore right?
[26:19] And I know that people say well but
[26:21] can't you learn from chatbots and I will
[26:23] say
[26:24] yes in theory it is possible to learn
[26:26] from chatbots just like in theory
[26:29] it is possible to learn math by doom
[26:31] scrolling social media.
[26:34] Because there is actually a bunch of
[26:35] good math videos on social media.
[26:38] But I have never pointed anyone to you
[26:40] know
[26:41] popular social media platforms as a way
[26:43] to learn math. And the vast majority of
[26:45] way that the vast majority of use people
[26:47] use social media is not good for
[26:49] learning and the vast majority of ways
[26:51] the vast majority of people use chatbots
[26:52] is not good for learning.
[26:54] Um but maybe one thing that excites me
[26:56] is something you know you know has been
[26:58] spent a lot of time working on
[27:01] Learn Vector which is a team that is
[27:04] working hard to use AI to invent a new
[27:07] generation of learning experiences that
[27:10] are designed to help you learn rather
[27:11] than only designed to help you get
[27:13] things done. Um so
[27:16] I have more to say about that in you
[27:18] know weeks or months but the nice thing
[27:21] about
[27:22] Learn Vector and what we can now do is
[27:25] design much more personalized one-on-one
[27:28] learning experiences rather than the
[27:30] one-to-many learning experiences that
[27:32] you know Coursera and so on
[27:35] have have been able to deliver. So I
[27:37] think
[27:38] I think there's hope but there's a lot
[27:39] of work to do so.
[27:41] >> Yeah I guess like just to
[27:43] taking together a lot of things we have
[27:45] discussed I think
[27:48] there is definitely regime where we need
[27:50] to think about what kind of like new
[27:52] objectives we should have towards like
[27:55] AI or AI agents. In the past I think a
[27:58] lot of the thinking is that let's build
[28:00] this AI to help us get a sense down but
[28:03] today we know that there are also
[28:05] dimensions such as how can we build AI
[28:07] to help us learn? How can we build AI to
[28:10] help us understand what AI has produced
[28:13] because the production, the solution
[28:15] that AI can generate is actually far
[28:17] beyond what humans can digest. So even
[28:20] just like thinking about how AI can help
[28:22] human oversee, understand, teach us,
[28:25] collaborate with us I think many of them
[28:27] are
[28:28] actually going to be like a very
[28:30] important dimensions and they are not a
[28:32] well defined in the past.
[28:34] Um I guess speaking of the oversight, I
[28:37] I do have a very controversial question
[28:39] here.
[28:40] Um so maybe it has two parts.
[28:43] Uh first is should we still write code?
[28:47] Second is should we review code? And
[28:49] then if so, how long? If not, then
[28:52] what should I do as
[28:54] CS people?
[28:56] >> Yeah oh I I would say uh
[28:58] uh
[28:59] actually I I
[29:00] pretty much stopped writing code by hand
[29:04] and I don't miss it.
[29:05] Um
[29:06] I feel like I don't know I I I used to
[29:08] be a pretty good you know whatever
[29:11] Python C++ developer maybe still I'm not
[29:14] sure. But I definitely feel many bits of
[29:16] Python syntax you know fading away from
[29:19] my brain. And I don't have any maybe
[29:21] have used data frames pandas data frames
[29:23] for data analysis.
[29:24] I used to remember frankly well I still
[29:26] pretty remember a little bit all these
[29:28] arcane incantations I had to write to
[29:31] manipulate data and I'm actually kind of
[29:33] glad that you know I'm slowly forgetting
[29:36] all that coding syntax. Um
[29:39] and review do you still review code? I
[29:41] I've actually so frankly I've given up
[29:42] reviewing code by eye because
[29:45] you know long ago actually it is not
[29:46] even recent because my AI systems
[29:48] generate so much code if I had to review
[29:51] even a minuscule fraction of it it's
[29:53] just I become such a massive bottleneck.
[29:56] So I uh
[29:57] >> How if you do not review the code, how
[29:59] do you know it's correct? How do you
[30:00] know that it didn't introduce any other
[30:03] backdoors? It didn't destroy your code
[30:05] base like
[30:06] yeah where where did you gather your
[30:08] evidence or trust towards that?
[30:11] >> You know
[30:12] I think because I've worked in AI for a
[30:15] long time maybe emotionally I've just
[30:18] been comfortable with a long time that I
[30:21] don't totally understand what these
[30:22] things I'm building do
[30:25] but that I'll gain trust in other
[30:26] mechanisms such as rigorous testing and
[30:29] guardrails and have very strong
[30:32] sometimes statistical guarantees but
[30:35] then sometimes also rails and sandboxing
[30:37] which are enforcing code uh uh in order
[30:40] to ensure that the system behaves
[30:43] safely.
[30:44] Maybe actually maybe just one one one
[30:46] quick example um
[30:48] so the thing that I built a bunch of
[30:49] prototypes for on Friday night
[30:52] was um for a long story I won't go into
[30:55] I wanted to build a new coding agent
[30:57] experiment with some things, right? And
[30:59] so coding agents do a ton of stuff and
[31:01] so I gave my coding agent only tools
[31:04] operating a certain working directory
[31:06] and the tools I knew the tools could
[31:08] only access my files in one in in a
[31:11] specific working directory for a coding
[31:12] agent.
[31:13] So then I really didn't care because I
[31:15] knew that the tools hot you know were
[31:17] very hard sandbox for the agent and so I
[31:20] was I thought okay I know it can't do
[31:22] any damage because um
[31:24] uh the tools just did not give the agent
[31:26] any access outside one specific working
[31:29] directory and so I find that even though
[31:31] I had low confidence in the LLM you know
[31:35] not doing weird things um I knew in that
[31:37] instance it couldn't do anything bad
[31:39] because of deterministic code base sort
[31:42] of a um uh sandboxing um
[31:46] yeah and and and maybe one other thing
[31:49] I've seen in my career is um
[31:51] when you manage teams I've been
[31:54] fortunate to manage you know many really
[31:57] really wonderful teams.
[31:59] At the same time
[32:00] when you have an engineer write a bunch
[32:03] of code
[32:04] do you ever know if that engineer's code
[32:07] is correct?
[32:10] As amazing as almost all the engineers
[32:12] I've ever worked with are
[32:14] I think that sadly
[32:16] you know
[32:18] I'm embarrassed to say
[32:19] our teams despite our best effort with
[32:21] sometimes ship buggy code with sometimes
[32:23] ship stuff to production that went down
[32:26] despite our best efforts as humans and
[32:28] then we fixed it and we had you know CI
[32:31] CD remediation and we had just had a lot
[32:34] of protections that led us take the
[32:37] maybe my inability to write correct code
[32:39] all the time and still put enough
[32:40] guardrails to balance it to make it
[32:42] work. So maybe because of uh
[32:44] maybe because of the amount of buggy
[32:46] software I've shipped in my career, I
[32:48] feel, you know, maybe more comfortable
[32:50] than than than average
[32:53] using coding agents from all the things.
[32:55] >> This is actually uh very interesting. I
[32:57] I definitely have very
[32:59] like opposite feeling here towards uh
[33:02] coding agent. I think maybe this is
[33:04] going to be a matter of time when we
[33:06] have a really good guaranteeing of
[33:08] coding agent correctness and reward
[33:10] hacking and a lot of behaviors. In the
[33:12] short term, I mean, we can definitely
[33:15] give coding agents the capability to
[33:17] write code, but I still feel like there
[33:19] is a need to review the code to make
[33:22] sure things are going well. The the
[33:24] >> Do you do you review your code? Oh, wow.
[33:26] >> I mean, getting your teammates to review
[33:28] code.
[33:28] >> I see. Wow.
[33:29] >> Yeah. So okay, let me let me share a
[33:31] very interesting thought experiment
[33:33] here. So
[33:34] uh what happens in companies right now
[33:36] is that you get a one coding agent, you
[33:38] use coding agent to write the code, and
[33:41] then others use coding agent to review
[33:42] the code, and these all get pushed to
[33:45] your production codebase. And this
[33:47] process seems okay, but I always worry
[33:50] that okay, after certain threshold, the
[33:53] entire codebase may collapse. Maybe
[33:55] function-wise is okay, but a lot of
[33:58] other aspects is just going to be really
[34:01] uncontrollable. And I like the example
[34:03] you gave about like working with
[34:05] engineers who have the best effort to
[34:07] make something work. And I think there
[34:09] is a key difference. With humans, you
[34:11] kind of have a very interesting mental
[34:14] contract with a person in a way that you
[34:17] know how good this person is. You know
[34:19] that they are trying their best efforts.
[34:22] There is some kind of risk you can
[34:24] anticipate, and you know how how high or
[34:26] how low that is. With coding agent, I
[34:29] think they are very very powerful, but
[34:31] then on the other side it's also really
[34:33] hard to anticipate what may go wrong.
[34:36] Uh like earlier in the course we
[34:38] actually shared a few examples where I
[34:40] remember there was one
[34:41] someone was getting coding agent to
[34:43] implement a website for users to
[34:45] register etc. And then the one of the
[34:49] use case is someone was trying to
[34:50] register his name is John and then the
[34:52] model tells him that hey actually John
[34:55] your password is actually the same as
[34:58] this user Rick. And then as a result I
[35:01] mean this actually pop up on social
[35:03] media right? So this kind of things I
[35:05] feel like only when it comes to
[35:07] deployment stage you know how terrible
[35:09] coding agent error is. So in a short
[35:12] term I think my view is that we still
[35:15] need some kind of
[35:16] rigorous process to to review the code.
[35:20] However if over time
[35:22] there are very interesting proof or
[35:24] guarantee that tells me that hey we have
[35:27] a formal method or other kind of
[35:29] approach to tell you that 99.8% of the
[35:33] case you should trust the code generated
[35:34] by a certain type of AI then I'll feel
[35:37] more comfortable of skipping the review
[35:39] code process.
[35:40] >> Yeah no yeah
[35:42] maybe I feel that one thing I I
[35:45] just just to be clear I've had coding
[35:47] agents mess up a lot of times on many of
[35:49] my production projects we've had data
[35:51] deleted permanently unfortunately
[35:53] fortunately catastrophic code agent
[35:55] introduced a security report to one of
[35:57] our production websites pretty important
[35:59] pretty important one I won't say which
[36:01] one because we added a back door for
[36:03] testing but left a back door there that
[36:05] was security report.
[36:07] What else has happened to us
[36:09] we've had a bunch of this stuff happen.
[36:13] And then at the same time sadly
[36:16] you know my human engineers or I
[36:18] personally also made
[36:20] a bunch of mistakes shipping various
[36:21] pieces of production software.
[36:24] Yeah I don't know it it
[36:26] >> Should we still I guess like maybe
[36:28] projecting this to next next spring
[36:32] should a human still review code?
[36:34] >> Actually there's actually one thing I
[36:36] that made me realize something which is
[36:40] you know when I review someone else's
[36:42] code
[36:44] yeah I'll I'll I'll do my best,
[36:46] but
[36:47] honestly, I'm not convinced that I am
[36:50] that much better as a reviewing your
[36:52] code at this point than a coding agent
[36:53] will
[36:54] be reviewing someone else's code, then I
[36:56] kind of wonder.
[36:58] I don't know. Maybe I'm just not very
[36:59] good at reviewing codes. Don't let the
[37:01] patience there.
[37:02] I don't [laughter] know.
[37:03] >> Okay. I'm going to last ask the next
[37:06] question, and then I think we would love
[37:08] to hear from folks here to see what
[37:10] questions you have.
[37:12] Okay. The last question is a little bit
[37:15] I'll want to use the word.
[37:16] >> Can I just say one thing though?
[37:18] I think one other thing that is
[37:19] important is
[37:24] I think that for a lot of these
[37:26] applications,
[37:28] there's one thing I find.
[37:31] People that vibe code without
[37:33] understanding will run into more of
[37:35] these loophole, crazy architectures,
[37:37] security issues than a real software
[37:40] engineer that understands the trade-offs
[37:42] in an architect the system.
[37:44] Oh, it turns out on my team,
[37:46] the phrase vibe coding is almost always
[37:48] followed by the phrase understanding,
[37:51] right? And And there's this, you know, I
[37:53] think if you're building a quick and
[37:54] dirty prototype, it's fine. You just who
[37:57] cares about the architecture? Maybe the
[37:58] sandbox secure environment is fine to a
[38:01] But
[38:02] I find that
[38:04] people that are not, you know,
[38:06] engineers, they don't understand how
[38:07] computers work, how networking work,
[38:10] basic security models, how machine
[38:11] learning systems work on engine data.
[38:14] A lot of software engineering relates to
[38:16] making trade-offs, right? What is the
[38:18] security versus latency versus code
[38:20] maintainability versus latency cost
[38:22] versus whatever?
[38:24] And people that don't understand machine
[38:26] learning fundamentals or software
[38:28] engineering fundamentals often don't
[38:30] even know what trade-offs exist to be
[38:32] made. And when you prompt an without
[38:36] knowing what trade-offs exist to be
[38:37] made, the will just pick some arbitrary
[38:40] design point that often is not right for
[38:42] your application. So for example, if
[38:44] someone does not know that there are
[38:45] different types of databases, you know,
[38:48] then you won't give the um the context
[38:50] to help it make a decision. Is it, you
[38:52] know, SQL, NoSQL, document store, vector
[38:55] database, some other crazy database? And
[38:57] so just pick something because it's
[38:59] actually lacking the context because you
[39:00] didn't know yet what context to give it
[39:02] to help it shape that decision. Um
[39:05] and this is why I think a lot of uh
[39:08] software, a lot of these decisions, um
[39:11] including architecture, uh
[39:13] decomposition,
[39:14] um uh you know, what are the right
[39:16] abstractions, um someone that
[39:19] understands software fundamentals knows
[39:22] what trade-offs can be made and will
[39:25] tend to prompt and check and verify
[39:27] those architectural decisions. Um and
[39:30] this also leads to much more reliable
[39:33] software. Um and then also I find that
[39:36] because, you know, I don't know, I've
[39:38] been burned a bunch of times,
[39:40] fortunately in a safe environment by
[39:41] coding agent. Yes, we shipped a few
[39:43] things to production that were mistakes,
[39:46] but we've also done tons of stuff that
[39:48] did not make it to production because we
[39:49] caught the problem before we made it to
[39:50] production. And those multiple reps,
[39:53] most multiple repetitions of seeing the
[39:55] many ways the coding agent messes up,
[39:57] that maybe helps us to calibrate um uh
[40:01] you know, what are the most common
[40:02] failure modes and having seen those
[40:04] failure modes and I feel like, I don't
[40:06] know, now I have a certain gut, right,
[40:08] for if you spin up an
[40:10] and just type um spawn a sub agent and
[40:13] do an index security review and just
[40:15] write something like that. I've done
[40:16] that enough times that you know, I have
[40:18] some gut for how much can I trust that,
[40:21] right? Which is, you know, not
[40:23] completely, but it's also very hopeful.
[40:25] And I think when you just do enough reps
[40:27] of these different practices, um
[40:31] it's still far from perfect. You know, I
[40:33] wouldn't want to generate a space rocket
[40:35] that was
[40:36] AI coded without someone having reviewed
[40:38] the code, I guess. But it's it's it's
[40:40] also acceptable for many things relative
[40:43] to the risk.
[40:44] >> So I I guess I cover you that that need
[40:47] a human review of code?
[40:49] >> For some
[40:49] >> things. I mean, no, so frankly, if
[40:51] you're [laughter] if you're writing code
[40:52] for the space shuttle and there're only
[40:54] like, you know, 500 lines of code, yeah,
[40:56] go go send a human to review it, right?
[40:58] So or so for for for some things if the
[41:01] code isn't too much and the stakes are
[41:03] high enough, we don't need to be
[41:04] religious to say people shouldn't look
[41:06] at code. Of course, go and review it.
[41:08] Uh
[41:09] but then for a lot of production systems
[41:11] where AI writes 10,000 lines of code and
[41:15] I feel like if AI writes code so quickly
[41:18] and if humans are, I don't know, what?
[41:20] 10 times, 100 times slower at reviewing
[41:22] code, then if you have to review it by
[41:25] eye, the human review becomes really the
[41:28] the the the massive bottleneck. Um
[41:32] >> I actually think that the last point is
[41:33] it could be a open problem to think
[41:36] about. So one evidence we have is that
[41:39] if you get a human experts to write a
[41:42] patch for certain kind of issues, the
[41:45] the patch length is actually very short.
[41:47] And if you get coding agents to do the
[41:49] same task, you end up with many many
[41:51] times like lengthy code. So there seems
[41:54] to be something around that. So I guess
[41:56] then my my kind of research mindset is
[41:59] can we actually make coding agents
[42:02] output the code in a way that's very
[42:04] easy for humans to oversee or review if
[42:07] we want? So like writing thousands of
[42:10] lines of code is not like a by default
[42:12] the the the good thing to do, but like
[42:14] they should write code in a way that's
[42:15] clear and also easy for humans to
[42:18] understand if we want to. So do you do
[42:20] you feel this could be a new dimension
[42:23] to focus on as a optimization objective?
[42:27] >> I I I two-thirds agree with you. So I
[42:30] think right, coding agents for some
[42:31] bizarre reason tends to write very very
[42:33] long voluminous So frankly,
[42:35] have the coding agent both your empty
[42:36] web page and for some reason there's
[42:38] like a massive amount of CSS even in a
[42:40] web page with nothing, right? Um
[42:42] I think uh
[42:43] I don't know, I
[42:44] I feel like
[42:46] uh
[42:48] I think if we do what she said, you
[42:50] know, uh write shorter, easier to
[42:52] explain code. It also make the code
[42:54] easier for AI agents to review, not just
[42:56] for people to review. So I think it'll
[42:58] also
[42:58] >> Also save a lot of tokens.
[42:59] >> Yeah, that's sure. No, frankly, one one
[43:01] thing that, you know, I think one one
[43:04] unfortunate fact is that, um, a lot of
[43:07] number of AI companies have actually
[43:09] have an incentive to get us to use more
[43:11] tokens. And so I think it was Satya that
[43:15] said, uh, use a different harness, uh,
[43:18] than your AI model provider. Um, uh, and
[43:21] I find that, um,
[43:23] uh,
[43:24] you know,
[43:25] a lot of friends in all the friends at
[43:26] apps hope they do well, but I find that,
[43:28] uh, uh,
[43:30] sometimes the token burn when you use a
[43:33] certain coding harnesses, physics is
[43:35] higher than it really needs to be.
[43:38] >> Okay. That actually really like
[43:40] navigated to my next question, which is
[43:42] a bit, uh, sad and spicy to some extent.
[43:47] So
[43:48] I think, uh, when we think about agents
[43:50] today, even for this course,
[43:53] uh,
[43:53] we need a resources to actually build
[43:56] agents, especially if you work on
[43:57] research where or projects that the
[44:00] agents needs to do like a really long
[44:02] horizon task or even have have like a
[44:04] team of agents to work together. Um,
[44:07] there are a lot of kind of open
[44:09] challenges such as the OpenAI
[44:11] incident where you really need to
[44:13] observe agents functioning together as a
[44:15] team for long in order to observe
[44:18] certain certain kind of like a
[44:19] consequential risk. And even just like a
[44:22] lot of the exploration students are
[44:24] working on or academic teams are working
[44:26] on, it feels like we are at this stage
[44:28] where we are very constrained by the
[44:31] resources. Maybe this is not the first
[44:33] time in history, but I want to kind of
[44:36] understand from your perspective like
[44:38] what are the unique positions of
[44:41] academia or just like academic research
[44:44] when frontier labs have so much
[44:46] resources not only to do like large
[44:48] language model research, but also to do
[44:50] agent research. How should we navigate
[44:53] this? Where could be some change that we
[44:57] can hope for?
[44:59] >> Yeah, you know, think we're luckiest
[45:01] that to be relatively well resource um
[45:05] uh but still not well as well resources
[45:07] as any other frontier labs. And when I
[45:09] look at the level of resources that
[45:11] number of other universities have um I
[45:14] mean frankly I've seen professors at
[45:16] other universities asking PhD students
[45:18] if they can spend their own money to buy
[45:20] GPUs because the department just didn't
[45:21] have money and then
[45:23] some of the PhD students are put in
[45:24] impossible positions. Uh it is actually
[45:26] um
[45:27] so I think the lack of resources into
[45:29] academic research all around the world
[45:31] um
[45:32] it it it feels not great um
[45:35] uh
[45:36] let's see.
[45:37] And then one grounds of optimism uh it
[45:40] it it turns out that um
[45:42] for many decades now
[45:45] I can't remember any moments in history
[45:49] when people in academia ever felt like
[45:51] they had resources.
[45:53] Um
[45:54] and in my entire career
[45:57] I don't think I've yet to meet even one
[45:59] machine learning engineer that felt like
[46:01] they had enough compute.
[46:04] Um
[46:05] candidly give me as much compute as you
[46:07] want, I will use it all up and then I
[46:09] will say I wish I had even more, right?
[46:11] And maybe one reason that I am still
[46:14] optimistic about what academia can do is
[46:18] um if we look at the leading AI
[46:20] conferences and the papers that and all
[46:23] of our Stanford colleagues and all of
[46:24] our colleagues around the world are
[46:25] publishing
[46:27] you know there's still a ton of
[46:29] amazing stuff that's being done in
[46:31] academia with much lower resources than
[46:33] the frontier labs.
[46:35] Um
[46:36] so I still I still remain actually
[46:38] pretty optimistic but at the same time
[46:41] um
[46:42] you know the the the cuts to uh research
[46:46] funding uh in the US and in many other
[46:48] countries that that seems quite dire uh
[46:51] and I I do worry if this institution of
[46:54] academic research in the United States
[46:56] and the world if um
[46:59] sufficient cuts to research funding will
[47:01] cause this institution to take enough
[47:03] damage that it becomes difficult to
[47:05] recover from.
[47:08] >> Yeah, that's that's a very hopeful uh
[47:10] ending. With that, I guess any any
[47:13] questions from the audience?
[47:15] >> Yeah, uh thank you so much Andrew and D.
[47:18] Um we have some online questions. So if
[47:20] you want to be truly anonymous, you can
[47:21] ask on Ed. Otherwise, I'll walk around
[47:23] the room and and Owen will help me as
[47:25] well. Uh but maybe we can start with uh
[47:27] I guess someone raised their hand and
[47:28] then I have an online question. Yeah.
[47:32] >> What are your thoughts on open source
[47:34] and open weights models?
[47:37] Do you think it's got enough backing to
[47:39] survive against the labs today?
[47:44] >> Yeah, so um I'm confident open source
[47:46] and open weight will survive.
[47:49] Um
[47:50] there is a the the biggest risk to open
[47:52] source open weights is uh if stifling
[47:55] regulations are passed.
[47:57] Um
[47:58] so far collectively the communities
[48:00] managed to fend off those regulations.
[48:03] There is a risk that those regulations
[48:05] will be passed, you know, where in the
[48:07] name of false AI safety and
[48:09] responsibility is clearly super
[48:10] important. But I think as many of you
[48:12] know, um AI safety has been used as a
[48:15] weapon against open weight models in a
[48:18] way that actually has very little to do
[48:19] with actual safety, but everything to do
[48:22] with regulatory capture and companies
[48:23] trying to stifle competition.
[48:25] Um but I think there's enough momentum
[48:28] behind open weight models. Uh
[48:30] and I was actually uh
[48:32] with enough heavyweights among the large
[48:34] companies that are strong supporters of
[48:36] it that I'm actually I'm optimistic open
[48:39] weight
[48:40] will survive.
[48:41] But I'll be even more optimistic about
[48:44] its survival if more of us uh power on
[48:47] to support this and to fight regulatory
[48:50] capture or to fight people passing
[48:52] stifling regulations often in a false
[48:54] name of safety um
[48:56] to to to to it hard for people to
[48:58] release open weight models.
[49:00] Yeah, but yeah, but but
[49:02] you know,
[49:03] there's only one thing. I feel like um
[49:06] there's enough room for the proprietary
[49:08] closed-weight models to do well, for the
[49:10] frontier labs to do well, and at the
[49:12] same time for open-weight models to do
[49:14] well.
[49:15] Um because intelligence is used for many
[49:18] different things, everything from
[49:19] solving tricky math problems to on the
[49:22] easier side maybe grammar checking my
[49:24] essay um and everything in between. So
[49:26] intelligence is used for a huge range of
[49:28] easy to medium to hard tasks. And so we
[49:31] will be using many different models for
[49:33] easy to medium to hard tasks. And that
[49:35] 's why I think there's room for many
[49:36] many models to do well um
[49:39] including many open-weight models at
[49:41] various points of the spectrum.
[49:43] So yeah.
[49:44] >> Uh I'll ask a quick online question. Uh
[49:46] Professor Ng, how do you expect
[49:48] AI-native ways of working to reach the
[49:50] broader workforce? Uh would it be
[49:52] through formal education such as
[49:53] Coursera, deeplearning.ai, universities,
[49:56] uh employer-led training, or organic
[49:58] adoption? And how concerned are you
[50:00] about a lasting gap between early
[50:02] adopters and everyone else? Also, do you
[50:04] see an opportunity for major private
[50:06] company to lead this transition by
[50:07] reskilling the workforce at scale?
[50:10] >> Yeah, thanks.
[50:11] Um
[50:12] I think I I I know some people have been
[50:14] talk about the knowledge gap, and it is
[50:17] real, but what happens with almost
[50:19] always the technology is the knowledge
[50:21] gap decreases over time, right? Uh I
[50:24] think the knowledge gap is uh
[50:27] probably I think it's actually sickly
[50:28] hyped up beyond the reality.
[50:31] Um and uh uh
[50:33] most frontier labs release models
[50:35] relatively quickly, so it's not that
[50:38] employees of frontier labs have access
[50:40] to secret technology for a very long
[50:42] time that no one else has access to. And
[50:44] for example, we all saw the hype around
[50:46] Mythos,
[50:48] and then a lot of people have access to
[50:49] it um and thought they published an
[50:51] article saying that you know, JAX 5. was
[50:54] oh JAX 5.2 or 5.3 had cyber capabilities
[50:57] that were not as good, but you know,
[51:00] some decent fraction of Mythos, and the
[51:02] world has not ended. So, for a limited
[51:04] period of time,
[51:05] only a small group of people had access
[51:07] to Mythos. Hyped it up, said, Wow, it's
[51:09] so amazing. But when the world rest of
[51:10] the world got to see it, we go, Oh, it's
[51:12] nice technology, but it's not, you know,
[51:14] this huge thing that it was made up to
[51:17] be.
[51:17] So, unfortunately, the incentive to hype
[51:20] up
[51:21] that lower advantage is there. And so
[51:23] every time the frontier company has a
[51:25] lower advantage, it will be hyped up.
[51:27] But bear in mind what was hyped up 6
[51:30] months ago
[51:31] and now that everyone has access to what
[51:33] was hyped up 6 months ago, how big was
[51:35] the gap? Not that big, right?
[51:38] Um,
[51:39] so
[51:41] on average, because as technology
[51:43] advances, um, and if technology advances
[51:48] and fits its thoughts, right? It
[51:49] advances fast in some places, slower in
[51:51] some places, and in the subset of places
[51:54] where it isn't improving as much, uh,
[51:57] knowledge tends to diffuse very rapidly.
[51:59] And so for example, um, you know,
[52:01] clearly a lot of LLMs in general
[52:02] workflows is still cutting edge. There's
[52:04] a big gap there, but basically prompting
[52:07] of LLMs, there is still a gap. I feel
[52:09] like, you know, some people prompt much
[52:10] better. Some people still don't know how
[52:12] to take advantage of a very long context
[52:13] window. And so there there is a gap. But
[52:16] frankly, a lot of people have learned
[52:17] how to prompt LLMs decently well by now,
[52:20] which is why this idea of 3 years ago
[52:23] that there'll be this job of a prompt
[52:25] engineer, they'll be paid hundreds of
[52:27] thousands of dollars a year because they
[52:28] can prompt better,
[52:30] that was a dumb idea, right? There's a
[52:32] little bit of prompting skill that very
[52:35] rapidly diffused to many people. Um, and
[52:37] also it turns out LLMs were trained to
[52:39] not need the arcane incantations that we
[52:41] needed 3 years ago. And so that prompt
[52:43] engineer job, remember how hyped up that
[52:45] was 3 years ago? And think about the
[52:46] people that hyped it up. That's gone
[52:48] away. So a lot of things are being hyped
[52:50] up today about the that that gap, um,
[52:53] uh,
[52:54] it will go away too. And I think the
[52:56] bigger gap will not be in technology
[52:58] knowledge, but in practical
[53:00] implementation of know-how. Because what
[53:03] I've seen in many ways of technology is
[53:05] the tech matters, but the tech will
[53:07] diffuse, but in many different
[53:09] industries, how do you go and to use
[53:11] this to improve how a bank operates? How
[53:14] do you go and to improve how a
[53:16] healthcare system operates? How do you
[53:18] go into a manufacturing plant and use
[53:20] this to improve the way it drives down
[53:22] costs, improve improves reliability?
[53:24] That is what I think will take
[53:27] a decade. Um and then I I actually think
[53:30] that that persistence between leading
[53:32] and lagging teams will will be there,
[53:34] but it won't be that magical. And in
[53:37] terms of AI native teams, um I think
[53:40] that that's actually a really tough one.
[53:41] Yeah. I I feel like the the knowledge
[53:43] isn't that magical, I think. People make
[53:46] it out to be more magical than actually
[53:47] feels to to to me. Um but uh
[53:52] I I think many of you know, right? AI
[53:53] native teams move so differently than
[53:55] non-AI native teams. Um
[53:57] uh and I've been personally involved in
[53:59] helping a number of non-AI native teams
[54:01] reorganize to become more AI native, and
[54:05] it's it's really tough.
[54:07] So I think that process we'll still be
[54:09] working at
[54:10] for like a decade. Oh, and I think
[54:12] training and education is a big piece of
[54:14] it, but it's also not the only piece of
[54:16] it because a collection of AI native
[54:18] individuals does not make a team AI
[54:20] native because an AI native team isn't
[54:22] just about every individual being AI
[54:24] native, it's about how the team works
[54:26] together as well. And so figuring that
[54:27] out is still a big piece of um
[54:30] what needs to be done.
[54:31] It's a good question though. Thank you.
[54:34] Actually, do you want to share it? Have
[54:35] you seen you've seen AI native teams?
[54:37] This is so different.
[54:38] >> I actually want to just like add a few
[54:41] sentence.
[54:42] First is that I I I have a hot take that
[54:45] is today if any students or any workers
[54:49] they are motivated enough to learn a
[54:51] subject, they can actually use AI to get
[54:54] themselves to a really really high
[54:57] expertise regime. This is unlike before.
[55:00] Before like if you want to be a good ML
[55:02] engineering, you need to take a training
[55:04] in statistics, probability theory,
[55:06] machine learning, deep learning, all of
[55:08] thing. And there's a really long process
[55:11] for you to learn. Today, you can
[55:12] literally just sit there with AI
[55:14] chatbot, ask questions, uh explain the
[55:17] terms in your favorite language, doing
[55:19] visualizations, animations, stories, a
[55:22] lot of things to really really learn it.
[55:24] So it seems that as long as the
[55:26] motivation is there, you can actually a
[55:28] single individual can actually do a lot
[55:29] of things. From this perspective, I
[55:31] think the knowledge gap or the barrier
[55:34] for for education actually
[55:36] get largely improved with the help of
[55:39] AI. And then um since we talk a lot
[55:41] about judgment, I actually think there
[55:43] is a huge need for companies to think
[55:45] about how to upskill or reskill their
[55:47] workers because now like as you
[55:50] mentioned like the AI expertise is
[55:53] compared to before is not that a huge
[55:56] like need compared to a few years
[55:58] before. The judgment, the years of
[56:01] solving problems in that domain actually
[56:03] become very important. They are the
[56:04] basis of judgment. So if workers
[56:07] actually know how to use AI for solving
[56:10] their task better, knowing how to
[56:12] coordinate with their teams, it feels
[56:14] like this is going to be a more organic
[56:16] way of upskilling the workforce compared
[56:18] to like okay everyone needs to do this
[56:20] boot camp and then to take this course.
[56:22] So I feel like this is going to be a new
[56:24] paradigm thinking about how to really
[56:27] get the companies to upskill their
[56:29] workers.
[56:30] >> Yeah. I know. I think you're more
[56:32] optimistic than I am on that count.
[56:33] Yeah.
[56:34] Maybe I I think since the internet, I
[56:36] think it's true that someone motivated
[56:39] could go learn a lot of things, right?
[56:40] Or you could or or ever since I don't
[56:43] know like book publishing, you can if
[56:44] you're motivated enough, go read a bunch
[56:46] of textbooks, experiment by yourself,
[56:47] read web pages. I think AI has
[56:49] definitely made it one step easier.
[56:53] But um
[56:54] uh
[56:54] I don't know. I I I I I I feel like it's
[56:56] still very difficult even for a
[56:58] motivated individual, but but I I agree
[57:01] it's it's it's easier than it used to
[57:02] be.
[57:03] >> I I think there are a few examples this
[57:05] year where like high schoolers actually
[57:07] use AI to create like neural algorithms
[57:10] that we used in like our I think there
[57:13] are a lot of like, not a lot, but like
[57:15] more and more stories like that. I think
[57:16] it's actually a indirect demonstration
[57:19] of how AI can really change our learning
[57:22] and education.
[57:23] >> Yeah, yeah, yeah. I I I I I I see that.
[57:26] It's actually really
[57:28] remarkable, you know, frankly, high
[57:30] school students applying to Stanford
[57:32] have amazing projects that were
[57:33] unimaginable two or three years ago. Um
[57:37] I don't know. I I I think motivation is
[57:38] a big piece of it. Maybe the question is
[57:40] is motivation alone enough. It it it
[57:41] feels like there's more we could do to
[57:43] help people.
[57:44] Um but we'll figure this out over the
[57:46] next two years.
[57:47] >> Yeah, thank you. Uh
[57:49] so actually
[57:50] my first question is also about the
[57:51] judgment. Oh you you you talk about the
[57:53] judgment. Actually I'm thinking like you
[57:55] know if a human focuses on more judgment
[57:58] work, probably this means like, you
[58:00] know, it's we we make provide more right
[58:04] answers to AI so AI can improve itself.
[58:07] This means like
[58:08] the AI can replace human even faster. So
[58:12] so what do you think of that? And the
[58:13] second thing if I can um my second
[58:16] question is like if you if you just have
[58:19] one advice for the guys who worked in I
[58:22] mean especially the
[58:24] the early
[58:26] career scientists in non-CS field like
[58:29] physics, like chemistry,
[58:31] so just one advice, what do you have?
[58:34] Thank you.
[58:36] >> Yeah, so um you know this this uh uh
[58:40] theme of AI replacing people um
[58:44] I know a lot of people are worried about
[58:45] when AI will replace them.
[58:47] I think the biggest risk to a lot of
[58:49] people is not AI replacing them because
[58:53] candidly AI just doesn't work that well.
[58:55] I I wish AI were better,
[58:57] but I just don't know how to get it to
[58:59] do a lot of stuff I wish it could do. Um
[59:02] I think the biggest risk is
[59:04] people
[59:06] giving up and opting out because of this
[59:09] fear that AI can replace them when in
[59:11] reality it cannot. Um,
[59:14] you know, talented high school students
[59:17] uh,
[59:18] that was depressed because she was
[59:21] learned to write and she felt ChatGPT
[59:23] wrote so she could,
[59:25] why she even try, right? Because she
[59:27] felt well she never write as ChatGPT so
[59:29] why bother.
[59:31] And I think that was sad. I I I was
[59:33] saddened by that because um,
[59:36] every one of us has so much more to
[59:37] contribute than
[59:39] ChatGPT which you know,
[59:41] I don't like
[59:43] AI's writing that much. It just doesn't
[59:45] think that clearly. It's missing
[59:46] context. It just
[59:48] says a lot of wrong stuff very
[59:49] confidently. Um,
[59:51] uh, and I worry about what we can do to
[59:55] encourage young people
[59:57] to use AI because of course why why
[59:59] shouldn't you use AI, but to recognize
[60:01] the many judgment tasks where AI is bad
[60:03] at and to work hard to learn to do that
[60:05] well.
[60:06] Um,
[60:07] yeah. Any advice to to new scientists?
[60:10] Gosh, I don't know. Um,
[60:12] maybe there's there's one thing I've
[60:13] seen which is um,
[60:16] there's a lot of courses, online
[60:18] courses, learning whatever, that teaches
[60:20] AI in a generic way, right? You know,
[60:22] some of my teams deep learning courses
[60:24] there have kind of learned AI in a
[60:26] general way and that's valuable. People
[60:28] should learn AI, but it turns out that
[60:31] um, when you look at any discipline, uh,
[60:34] the disciplines go really deep in the
[60:36] discipline specific use of AI. And so
[60:39] um, so I feel like people like me will
[60:41] say everyone should learn to prompt,
[60:42] everyone should learn to write code of
[60:44] AI. All that is true. Everyone should do
[60:46] that. But then when you're a scientist
[60:48] working in one discipline,
[60:50] all the disciplines I've seen as well as
[60:51] all the professions I've seen like
[60:53] marketing, recruiting, uh, uh, you know,
[60:55] legal and so on, they're actually very
[60:57] discipline specific best practices using
[61:00] AI. They're also very valuable to to go
[61:03] figure out. Uh, I think having people
[61:05] learn those things to complement that
[61:07] with their judgment tasks, uh, that's
[61:09] what leads to more AI native
[61:10] individuals.
[61:13] >> Let's do maybe two more questions. So,
[61:15] uh, you're welcome.
[61:20] >> Hi. Um, I have a question about still
[61:22] like the coding origins. I know there's
[61:24] like a lot of like recently I've been
[61:25] hearing a lot about like zero human in
[61:27] the loop coding for like code shipping.
[61:29] And um, at the same time when you
[61:31] encounter like a bug, the first thing
[61:33] you do these days like you search and
[61:34] then you read the Gemini summary. Nobody
[61:36] even clicks in the stack overflow
[61:37] anymore or like I feel like I don't know
[61:39] if people even like still post on that.
[61:41] So I feel like there's this simultaneous
[61:43] process procedure of like
[61:45] AI is controlling the knowledge of
[61:47] telling us what is right and wrong and
[61:48] how to solve it. And they're also mass
[61:50] producing the things that need to be
[61:52] reviewed and solved.
[61:53] Do you see a risk with that and
[61:56] given
[61:58] I guess just simply as a CS student
[61:59] hearing how a lot of like companies and
[62:01] frontier labs are switching to that mode
[62:03] of production, do you think
[62:06] it's going to become the main paradigm
[62:08] for code writing in the future and then
[62:10] like what what should we do about that?
[62:14] >> Yeah. Um, I think I think in the future
[62:17] almost no one will write code by hand.
[62:19] Maybe a few people should still do it,
[62:21] but uh, and then I think hopefully I I I
[62:24] know the use of reviews code, but I
[62:26] think the percentage of human review
[62:28] code will will dip over time and I think
[62:30] that's a good thing. Um,
[62:33] you know maybe just like just like uh,
[62:35] uh,
[62:36] today I don't really worry about my
[62:38] compiler and how it compiles C++ into
[62:40] assembly.
[62:42] Um, and by the way if you actually look
[62:44] at assembly generated code, it's
[62:46] probably not as good as you hope, right?
[62:49] Um, it turns out uh, compilers can
[62:51] optimize loops and do a lot of things
[62:53] better than I can. So compiler will way
[62:55] out performing now at generating
[62:57] assembly code. But if you look at what
[63:00] um, your compiler did on compiler
[63:02] specific piece of C++ to specific piece
[63:05] of assembly, there will be real experts
[63:07] that could do much better than the
[63:08] compiler.
[63:09] So I think similarly today um, a human
[63:12] expert can write probably better code
[63:15] than an LLM can.
[63:17] Um,
[63:17] but then again the flip side of is so
[63:20] I'm trying to give like I I know I'm
[63:21] being neither here nor there, right?
[63:22] It's like I'm not on the left on the
[63:24] right kind of centrist. But but again,
[63:26] if you actually look at the code written
[63:27] by a lot of humans in big companies,
[63:29] like if you actually go and look at the
[63:30] code,
[63:31] frankly, it's not that good, right?
[63:33] And so this is why I think
[63:35] AI written code will be more and more
[63:37] acceptable. And because a lot of code is
[63:41] ultimately grounded in correctness and
[63:43] user testing, there is a feedback loop.
[63:46] And and I think some of the data will go
[63:47] back to Frontier Labs. They'll use it to
[63:49] train on to improve the systems. I hope
[63:51] a lot of this will go to the open weight
[63:53] models as well, so the knowledge is
[63:55] shared broadly. But because coding, you
[63:58] know, does have some correctness signals
[64:00] or bugginess signals or product decision
[64:02] signals, I think that
[64:04] is not just iteratively training on
[64:06] itself. There's this extra signal to
[64:08] ground it and try to move it forward. So
[64:10] I feel I feel actually pretty optimistic
[64:12] about the progress we've made there.
[64:14] Oh, but but again,
[64:15] knowing the CS fundamentals will make
[64:17] you much better at steering coding
[64:19] agents because then you know what trade
[64:22] offs need to be made and what
[64:24] broader context. It turns out a lot
[64:26] about decision making. If you're
[64:27] building a product, it may be that, you
[64:30] know, a year ago you spoke with a
[64:31] customer and talked about a product
[64:33] feature and they had a funny expression
[64:35] on their face and that told you to
[64:37] either do or not do this thing in the
[64:39] code, right? So humans have access to
[64:41] bewildering wide range of context. And
[64:44] somehow
[64:45] we are surprisingly able sometimes to
[64:49] pull out the right piece of context from
[64:50] six months ago to make the right
[64:52] decision in this moment in time. And I
[64:54] know
[64:55] haste that, you know, type research is
[64:57] getting better, but those are the types
[64:59] of things that
[65:01] seems like humans have the context
[65:03] advantage and the judgment advantage for
[65:05] quite a long time.
[65:07] >> I do want to just make a very short
[65:09] comment. I think the broader like more
[65:11] like societal issue behind the question
[65:14] is actually
[65:15] a lot of those communities is not only
[65:17] just like solving problems, asking
[65:19] questions. If you think about like a
[65:21] Wikipedia, it's really a production
[65:23] community where a lot of editors, human
[65:26] editors, work together to verify the
[65:28] content, like update the content. Today
[65:31] there is just a big flush of AI
[65:34] generated content there that are really
[65:36] destroying like how those beautiful
[65:38] articles are made up. And I think the
[65:40] same with Stack Overflow. There are also
[65:42] other kind of platforms. I think in a
[65:44] long term, this is not only just like a
[65:46] reduction in terms of activity there,
[65:48] but also kind of a decrease in terms of
[65:51] shared human community, online
[65:53] communities to some extent.
[65:55] >> I see. Yeah.
[65:57] Actually, now and and and related to
[65:58] that, I want to give people one tip.
[66:01] There's one thing I've seen in a lot of
[66:03] teams, um
[66:05] which is I have team members turn in AI
[66:07] generated work to me or to the team.
[66:10] And what has often happened is some
[66:13] individual use an LLM to write a piece
[66:16] of text and it looks great to them.
[66:18] But they turn it in and I read it and I
[66:20] go, this is clearly AI generated. The
[66:22] thinking is not clear. Sometimes I copy
[66:24] paste into Paragraph or something and it
[66:25] says, yep, 100% AI generated. And I'm
[66:28] really not impressed, right? And I
[66:29] deliver really critical, you know,
[66:30] polite but critical feedback to them. Um
[66:34] one thing I see is that uh
[66:37] uh different people have different
[66:38] levels of sensitivity to AI generated
[66:41] output. And so if you are turning in AI
[66:44] generated output, just be careful
[66:48] whether it looks good to you, but
[66:50] whether someone more sensitive to
[66:51] nuances may look and go, nope, this is
[66:53] not good work and they recognize this as
[66:55] AI generated work. Um
[66:57] so that's some just something to
[66:59] keep in mind because I've seen a number
[67:01] of people
[67:02] turn in work that they thought was great
[67:04] then more experienced people look at it
[67:06] going, nope, this is clearly you didn't
[67:08] do your work. So I'm not saying again,
[67:10] use AI, but I think that clarity of
[67:13] thinking which often is missing from AI
[67:15] generated work. That Oh, one thing that
[67:17] probably all of us have seen, right? On
[67:19] subjects that I'm an expert in, um when
[67:22] I ask AI, I go, is terrible. I would
[67:24] never make that decision.
[67:26] But on topics that I know nothing about,
[67:28] I ask AI and it sounds great to me,
[67:31] right? I think we all have that
[67:32] experience. Um and this is to me a sign
[67:34] of how
[67:35] very pervasively I think AI is much
[67:38] worse at many judgment tasks across many
[67:40] sectors than, you know, people think.
[67:44] >> Yeah, maybe last question.
[67:46] >> Okay, last question. Uh yes.
[67:51] >> Thank you Andrew for the talk. Uh my
[67:52] name is Fred and I'm the father of two.
[67:54] So I'm very curious about for the
[67:56] education initiative you have done, what
[67:59] did you see that worked or what did you
[68:01] see that doesn't work? And also what
[68:03] kind of non consensus you're holding
[68:06] for building the uh learn vector?
[68:11] >> Yeah, so let's see. Uh my um uh
[68:14] my son and daughter are five and seven.
[68:17] Um
[68:18] uh
[68:19] I've been because they're so young, the
[68:21] AI usage is very limited. Um
[68:24] but I've actually been trying to get my
[68:25] daughter to learn to type because I
[68:28] think that um I I I know, you know,
[68:31] I think ASR is great, but it's just not
[68:32] that precise. Uh and so
[68:35] actually I've never shared this
[68:36] publicly, but um one of my spare fun
[68:39] projects is a project. So it turns out
[68:41] there's a lot of free learn to type apps
[68:43] on the internet, but my daughter found
[68:45] them dry and boring. I couldn't get her
[68:47] to do it. But she really likes cats.
[68:50] So I wanted building an app called
[68:52] Typemoles. I've never told people about
[68:54] this publicly, so you can go check it
[68:55] out typemoles.com.
[68:57] Um I thought this is going to go on
[68:59] YouTube. Oh okay, it's fine. People can
[69:00] try it. People can try it. It's fine.
[69:02] It's fine.
[69:03] Uh
[69:03] but because my daughter is motivated by
[69:05] cats, I found that if I let her unlock
[69:07] new cat costumes, then, you know, she
[69:10] would practice typing a lot. Uh so just
[69:13] this past weekend, my daughter beat
[69:15] level 25 of the game and earned a
[69:17] certificate which I printed out for her
[69:19] showing she completed the Typemoles
[69:20] game. But I did that because um I have a
[69:23] number of friends with uh kids around
[69:25] the same slightly older that are already
[69:28] using AI to to vibe code websites. So
[69:30] I'm hoping that teaching my daughter to
[69:33] type will will make a easier path for me
[69:35] to start to teach her responsible use of
[69:37] AI.
[69:39] I don't know. Yeah. Sorry. That was a
[69:41] random story.
[69:44] But maybe
[69:45] I think
[69:46] you know
[69:48] young people will never grow up in the
[69:49] future where they do not have access to
[69:51] AI. So the efforts to have them not use
[69:55] AI seem misguided.
[69:58] I know that some states have passed kind
[70:00] of moratorium bans on AI.
[70:03] I think that's a
[70:05] very crude hammer
[70:07] but admittedly I just a real problem
[70:09] which is that AI chatbots are terrible
[70:12] for learning and we need to come up with
[70:14] something better.
[70:17] At Learn Vector I'm excited about what
[70:19] the team is doing to develop new
[70:21] learning experiences that aren't one to
[70:24] many
[70:25] but one to one and where we can have AI
[70:28] meet you where you are and patiently
[70:30] stay with you until you really master
[70:31] the concept.
[70:33] I have more to share about that in in
[70:35] months in weeks or months.
[70:38] >> Okay. I think that this is all we have
[70:40] today. Let's thank Andrew again for his
[70:42] time.
[70:43] >> Thank you.
[70:44] >> [applause]