1. Home
  2. The Pragmatic Engineer

Feb 4, 2025

Why fine-tuning is a last resort

Chip Huyen

74 min → 2:10

Overview

Chip Huyen explains how AI engineering has become a product-focused discipline, sharing a practical workflow for building generative AI applications while avoiding premature complexity.

3 things to know

Huyen: AI roles shifted to putting models into products

Chip Huyen explains that the role has shifted from building models from scratch to a product-focused approach centered on integrating powerful, pre-existing models.

More

This has lowered the barrier to entry, making AI development more accessible to engineers without specialized AI degrees.

▶ Watch at 24:15

Fine-tuning is a final resort for AI, Huyen says

Chip Huyen considers fine-tuning a final resort, within a recommended process that starts with prompt engineering, adds rigorous human and automated evaluation, and uses Retrieval-Augmented Generation if needed.

▶ Watch at 27:00

Focus on user problems over generative AI, Huyen says

Chip Huyen contrasts merely using generative AI with solving genuine user problems, while The Pragmatic Engineer notes that understanding user behavior can lead to non-technical fixes like a better interface.

More

Success often depends on understanding user behavior and domain specifics, which may lead to non-technical solutions like better UI.

▶ Watch at 0:28

Also in this episode

The Pragmatic Engineer: Checking data by hand catches failures

The Pragmatic Engineer highlights that continuous human evaluation and manual data inspection are critical for understanding subtle failures, spotting patterns, and making sure a product meets user needs.

▶ Watch at 46:22

Teams quit AI after one failure, says Pragmatic Engineer

The Pragmatic Engineer notes that teams often abandon AI projects after a single failure without proper debugging, or use AI for problems that do not require it.

AI will automate routine coding, says The Pragmatic Engineer

The Pragmatic Engineer predicts that AI will automate the mechanical parts of writing code, elevating software engineers to focus on higher-level system design, breaking down problems, and managing greater complexity.

Quotes

“It's a shift of focus from less machine learning and more engineering and more product.”

▶ Watch at 0:28

“There are two different headlines. So one headline is like, 'I use GenAI.' And then the other headline is 'I solved the problem.'”

▶ Watch at 24:15

“I think you think of it as like the last resort, not the first line of defense.”

▶ Watch at 27:00

2 more quotes

“Users didn't use it because simply because they hate typing.”

▶ Watch at 45:24

“Manual data inspection is one of the activities that has the highest ratio of value to prestige.”

▶ Watch at 46:22

Full summary

Episode Overview

  • The podcast explores the evolution of AI engineering from a model-centric field requiring deep ML expertise to a more accessible, product-focused discipline centered on integrating foundation models via APIs.
  • It outlines a practical, iterative workflow for building GenAI applications, advocating for starting with simple solutions like prompting and evaluation before escalating to more complex techniques like Retrieval-Augmented Generation (RAG) and fine-tuning.
  • The conversation emphasizes the critical importance of user-centric design and human evaluation, arguing that understanding the user's core problem and behavior is more valuable than adopting trendy, complex technology.
  • It covers common pitfalls in AI development, such as over-engineering and premature complexity, and discusses how AI will augment, not replace, the core problem-solving role of software engineers in the future.

Key Concepts

  • Evolution of AI Engineering: The role has shifted from building models from scratch to a product-centric approach focused on integrating powerful, pre-existing models. This has lowered the barrier to entry, making AI development more accessible to engineers without specialized AI degrees.
  • Iterative Development Workflow: A structured process is recommended: start with prompt engineering, follow with rigorous evaluation (both automated and human), then implement Retrieval-Augmented Generation (RAG) if needed, and only consider fine-tuning as a final resort.
  • User-Centric Problem Solving: The primary focus should be on solving a genuine user problem, not simply implementing Generative AI. Success often depends on understanding user behavior and domain specifics, which may lead to non-technical solutions like better UI.
  • The Importance of Human Evaluation: While automated metrics are useful, continuous human evaluation and manual data inspection are critical, high-leverage activities for understanding nuanced failures, discovering patterns, and ensuring the product truly meets user needs.
  • Common Development Mistakes: Teams often err by using AI for problems that don't require it, abandoning projects after a single failure without proper debugging, jumping to complex solutions like vector search prematurely, or blindly adopting new frameworks without understanding them.
  • The Future of Software Engineering: AI will automate the mechanical aspects of writing code, elevating the role of the engineer to focus on higher-level system design, problem decomposition, and managing greater complexity.

Quotes

  • At 0:28 - "It's a shift of focus from less machine learning and more engineering and more product." - Huyen defines the core change that characterizes modern AI Engineering.
  • At 24:15 - "There are two different headlines. So one headline is like, 'I use GenAI.' And then the other headline is 'I solved the problem.'" - She contrasts the two mindsets in building AI products: one focused on using a trendy technology versus one focused on delivering a functional solution.
  • At 27:00 - "I think you think of it as like the last resort, not the first line of defense." - Huyen firmly positions fine-tuning as a final, heavyweight option for improving model performance, to be used only after simpler methods have been exhausted.
  • At 45:24 - "Users didn't use it because simply because they hate typing." - Explaining the surprising and simple reason why a sophisticated tax chatbot saw low engagement, highlighting the importance of understanding user behavior.
  • At 46:22 - "Manual data inspection is one of the activities that has the highest ratio of value to prestige." - Quoting Greg Brockman to emphasize that looking at raw data, though not glamorous, provides immense value.

Takeaways

  • Adopt an iterative development workflow, starting with the simplest solutions (prompting, basic RAG with keyword search) before adding complexity like vector search or fine-tuning.
  • Focus relentlessly on solving the user's actual problem, which requires understanding user behavior through manual data inspection and human evaluation, rather than just applying the latest AI technology.
  • When debugging AI systems, systematically break down the pipeline to localize the specific point of failure (e.g., data processing, retrieval, prompting) before abandoning the approach.
  • Don't underestimate the value of "unprestigious" work; manual data review and direct human evaluation are often the most effective ways to gain critical insights and improve system performance.

Watch the full episode 1 hr 14 min

Read along with the audio summary

A sophisticated tax chatbot saw low engagement for one surprising and simple reason: as Huyen explains, users simply hate typing. In this podcast episode that came out on February 4, 2025, Huyen explores the evolution of artificial intelligence engineering. By the end, you will learn a practical workflow for building generative artificial intelligence applications and why understanding user behavior matters more than complex technology.

How artificial intelligence engineering became more accessible to engineers without specialized artificial intelligence degrees.

Building artificial intelligence used to require deep expertise in machine learning just to build models from scratch. Huyen defines modern artificial intelligence engineering as a shift of focus toward less machine learning, more engineering, and more product. Today, the role centers on integrating powerful, pre-existing foundation models using an application programming interface, or API.

Now that these powerful models are within reach, you need a structured way to build with them.

Why you should treat fine-tuning your model as a last resort.

Many teams want to jump straight to heavy customization, but Huyen says to think of fine-tuning as the last resort rather than the first line of defense. Instead, a structured, iterative process is recommended, starting simply with prompt engineering. After prompting, you follow up with rigorous automated and human evaluation, and then, if needed, implement Retrieval-Augmented Generation, or RAG.

How a better user interface can beat a fancier algorithm.

Huyen contrasts two different mindsets when building products: one headline is that you used generative artificial intelligence, and the other headline is that you solved the problem. The primary focus should always be on solving a genuine user problem, not simply implementing trendy technology. Success often depends on understanding domain specifics and user behavior, like the tax chatbot that failed simply because users hate typing, which may lead you to non-technical solutions like a better user interface.

Finding those real user problems requires looking closely at what your system is actually doing.

Why the least glamorous work in artificial intelligence delivers the highest value.

Automated metrics are useful, but they cannot catch everything on their own. Huyen quotes Greg Brockman, noting that manual data inspection is one of the activities with the highest ratio of value to prestige. Continuous human evaluation and looking directly at raw data are critical, high-leverage activities for understanding nuanced failures, discovering patterns, and ensuring a product truly meets user needs.

How to avoid the most common traps that derail artificial intelligence projects.

Teams often fail not because the technology is broken, but because they abandon projects after a single failure without proper debugging. When debugging your artificial intelligence systems, systematically break down the pipeline to localize the specific point of failure, such as data processing, retrieval, or prompting, before you abandon the approach.

How artificial intelligence will elevate software engineers instead of replacing them.

As artificial intelligence begins to automate the mechanical aspects of writing code, the core problem-solving role of the human engineer is not disappearing. Instead, this automation will augment and elevate the role of the software engineer. Moving forward, engineers will focus less on typing out basic code and more on higher-level system design, breaking down complex problems, and managing greater overall complexity.

The most effective way to build with artificial intelligence is to start with simple solutions, inspect your data manually, and focus relentlessly on the user's actual problem rather than trendy technology. "There are two different headlines. So one headline is like, 'I use GenAI.' And then the other headline is 'I solved the problem.'"

More from The Pragmatic Engineer

Related Episodes