The map of AI roles: AI engineer, ML engineer, researcher, data scientist
Four titles that share a vocabulary and almost nothing else: who builds the model, who builds on it, who studies the data, and the people outside engineering whose judgement every eval label encodes
Larkhollow's support agent gives wrong refund answers for one customer. Which role's usual first move is the right one?
Ask five people at five companies what an AI engineer does and you get five answers. The title is a few years old. Shawn Wang (swyx) popularised it in “The Rise of the AI Engineer”, an essay published on Latent Space in 2023, which argued that software engineering would spawn a new subdiscipline specialising in applications of AI, in the way that site reliability and data engineering had split from earlier work. Companies adopted the title faster than they agreed what it meant. Today it sits beside four older titles, and job adverts mix them freely.
This chapter does not argue that one title is better. It gives you a way to tell them apart that survives bad adverts, and it names the people who are not on the engineering org chart but decide whether any of the work is correct.
The model: what the person ships
Do not ask what a role knows. All five roles below can read a loss curve and write Python. Ask what each one ships, and what they are judged on.
| Role | Ships | Judged on | Usual first move when output is wrong |
|---|---|---|---|
| Research scientist | New methods, trained models, papers | Whether the model can do something it could not do before | Change the training recipe or the data it learns from |
| ML engineer | A trained, tuned or distilled model, and the system that trains and serves it | Latency, throughput, cost to serve, model quality on the task it was trained for | Retrain, retune, or fix the training data and the serving path |
| Data scientist | Analyses, experiments, metrics and models that inform a decision | Whether a decision changed for the better, and whether the number can be trusted | Look at the data, test a hypothesis, design the measurement |
| AI engineer | A model-backed feature: prompts, context, tools, evals, guardrails, cost budget | Measured quality in production and cost per successful task | Read the failures, fix the context or the tool, rerun the eval |
| Forward deployed engineer | One customer’s working deployment | The customer’s outcome, proved on their data | Go to the customer’s data and the customer’s people |
Two things follow from the table. First, the same wrong answer starts four different investigations, and each is correct from where that person stands. Second, none of the five owns the thing the others all depend on: a trusted statement of what “right” means. We come back to that gap after the boundaries.
The AI engineer is defined against the others by what they usually do not do. The adjacent roles listed in this track’s overview say the same thing from each side: the ML engineer trains and serves models while the AI engineer mostly builds on models others trained; the researcher advances what models can do, where the AI engineer makes what exists reliable in a product; the data scientist answers questions to inform decisions, where the AI engineer ships a feature and uses data to keep it good. For the forward deployed engineer, the Forward Deployed Engineer track’s map of deployment roles (planned) takes the boundary further.
Where the model comes from, and who touches which layer
The cleanest way to see the boundaries is to follow a model from raw text to a customer’s screen. The pretraining-to-RLHF chapter lays out what each stage changes and what it cannot. It gives a short table you can reuse here: facts and the capability ceiling are set by pretraining; default behaviour, persona and refusals by post-training; behaviour on this one request by the system prompt and messages.
Overlay the roles on those layers:
- Pretraining and the capability ceiling belong to a handful of labs and the research scientists inside them. A company the size of Larkhollow does not touch this layer. It chooses a model that sits at a ceiling it can live with.
- Post-training and fine-tuning are an ML engineer’s layer when you run your own weights. When you use a hosted model, you may not be able to tune it at all, and the layer belongs to the vendor.
- The per-request layer (system prompt, retrieved context, tool definitions, output format, guardrails) is the AI engineer’s layer. It is the cheapest layer to change, the fastest to test, and where most product failures are fixed.
- The data around the model (what the support team writes, what customers ask, what the logs show) is the data scientist’s ground, and with it the question of whether a change helped.
This layering also tells you when a boundary should move. The fine-tuning chapter lays out the order to try things in: prompt first, then retrieval, then fine-tuning when volume is high and the task is narrow and stable. The AI engineer makes that call. The ML engineer then carries it out if the answer is yes. A team that skips straight to fine-tuning has handed a prompt problem to the most expensive layer.
The role nobody lists: whose judgement the labels carry
Look back at the table. Every role needs to know whether an answer is correct, and none of them is the authority on it. The authority is the person who does the job the model is imitating. For Larkhollow’s support agent, that is a senior support lead who knows that a refund over a certain amount needs a second approval, that a duplicate charge is handled differently from a dispute, and which of the customer’s fourteen pages of policy actually get applied.
This matters because of how an eval set works. The eval-set chapter makes labels trustworthy by having two people label independently and measuring how often they agree. If two people who both understand the rubric disagree on a fifth of cases, a fifth of your score is decided by who happened to label. A judge is only as meaningful as its measured agreement with those labels, as the LLM-as-judge chapter shows. So the labels set the ceiling on everything you measure afterwards, and who produces them is a structural question, not an admin task.
Three further points shape who should own labels.
Domain judgement is the scarce input. An engineer can learn a refund policy, but will apply it as written. A support lead applies it as the customer applies it, with the exceptions they have absorbed. The gap between the two is the exact place where a feature fails in production, so the person who knows it must be the one labelling.
Criteria move once labelling starts. Shankar and colleagues, studying people who evaluate model outputs, found that people need criteria in order to grade outputs, and that grading outputs is how they discover what their criteria are. They call this criteria drift. The practical result is that you cannot hand a finished guide to a labeller and leave. The guide, the cases and the labellers change together over the first pass, and someone has to own that loop.
One voice beats many for consistency. Hamel Husain, writing about building judges for LLM products, recommends finding the one or two key people whose judgement decides whether the product succeeds, and treating a single principal expert as the standard, because it keeps evaluations consistent and gives that person ownership of the system. You will not always get one person. You should still name one adjudicator for disputed cases.
Those three points give the division of labour that the Decide below asks you to choose between:
| Task | Best owned by | Why |
|---|---|---|
| Deciding what is correct on a case | The people who do the job (support leads) | They hold the judgement the label encodes |
| Writing and revising the labelling guide | AI engineer, with the leads in the room | The engineer sees which distinctions the model confuses |
| Choosing which cases to label, and how many | Data scientist or AI engineer | A sampling and coverage question |
| Measuring agreement (percentage and kappa) | Data scientist or AI engineer | A statistics question |
| Running the eval on each change | AI engineer | It is part of shipping the feature |
| Calibrating an LLM judge against the labels | AI engineer, checked by the data scientist | The judge replaces labelling hours only where agreement is proved |
An outside labelling firm fits when the rubric is stable and written down, the volume is in the thousands, and the data may leave the building. It fits poorly at the start, when the rubric is still moving and the hard cases are exactly the ones a stranger will mislabel.
A map at Larkhollow
Larkhollow has 300 people, 120 of them engineers, and builds support and operations agents on each enterprise customer’s own data. Twelve forward deployed engineers in two pods work inside customers after signature. Every role on the map exists there. The split below, apart from the twelve, is illustrative: it shows the shape and is not a benchmark.
| Role | Rough headcount | What they do for the support agent |
|---|---|---|
| AI engineer | about 16 | Own the agent’s prompts, tools, evals and cost per resolved ticket |
| ML engineer | about 7 | Serve a small self-hosted classifier that routes tickets; retrain it when routing drifts |
| Data scientist | about 4 | Design the sampling, measure agreement, analyse what changed after a release |
| Research scientist (applied) | about 2 | Test whether a new model family clears the quality bar; not on the product path |
| Forward deployed engineer | 12 (two pods) | Run the deployment inside the customer and bring back their cases |
| Everyone else | the remainder | Build the platform, the connectors to ticketing, core and ERP systems, and the infrastructure |
On a good week these people hand each other things with evidence. The FDE brings back thirty real refund conversations. The AI engineer, Chidozie, turns them into cases and a draft guide. The data scientist, Emiko, picks the sample and sets the agreement target. The customer’s support leads label. Chidozie runs the eval, and the ML engineer is called only if the routing classifier’s numbers move.
On a bad week the handoffs are by assumption. The FDE assumes the AI engineer will find the cases. The AI engineer assumes the data scientist will label them. The data scientist assumes the support leads have already decided what correct means, and the leads assume engineering will tell them when it matters. Four people each own a quarter of the problem and nobody owns the labelled set.
Where practitioners disagree
One person or a team of specialists. The popular picture of the AI engineer is one person doing prompts, retrieval, evals, tools and deployment. That works at small scale, and it is what makes the title attractive. The authors of “What We Learned from a Year of Building with LLMs” (Yan, Bischof, Frye, Husain, Liu and Shankar) include a section titled “Don’t Fall into the Trap of ‘AI Engineering Is All I Need’” in the book edition of their series. The title is a warning: that the engineering skills do not replace data and evaluation work. Other teams go the opposite way and split the roles early, which costs handoffs. Neither is wrong. The deciding fact is how much of your quality problem is software and how much is measurement.
Who owns evals. Some teams say the engineer who ships the feature must own the eval, or it will not be run. Some say the product manager should own it, because the PM owns what correct means. Some say a data scientist, because it is a measurement problem. Each is partly right, and the table above splits the work for that reason. What is not defensible is nobody owning it.
Title inflation. An “AI engineer” at one company is a prompt writer, and at another is building inference infrastructure. A “machine learning engineer” may never have trained anything. A “research scientist” may ship product. When you read an advert or write one, replace the title with three nouns: what the person ships, who uses it, and how it is judged. If you cannot, the job is not yet defined, as the track’s chapter on why AI engineers exist argues for the role as a whole.
What you own at Foundations
At the Foundations level you will not set the org’s shape. You will be placed on a map someone else drew, so your job is to read it and make it explicit where it is blurred.
- Know which layer you are changing: the prompt, the context, the tool, or the weights. Say it in the pull request.
- Know who the adjudicator is for your feature’s labels. If you cannot name one, ask before you build the eval.
- Know your handoffs: who gives you cases, who checks your measurement, who is called if the model itself has to change.
- Know the adjacent roles well enough to ask them the right question. A data scientist wants the question, the population and the decision. An ML engineer wants the data, the metric and the serving constraint.
Day to day
The map shows up in ordinary working weeks as a few repeating conversations. The cadences below are rules of thumb from how teams like this commonly work, not standards.
- Weekly: a failure review. The AI engineer takes twenty failing or low-scoring cases and sorts each by layer: wrong context, wrong tool result, wrong instruction, model limit, or a bad label. The sort tells you which role to talk to. Mostly it ends at your own desk. The labels category is the one people forget.
- Fortnightly: a labelling session with the domain experts. Ninety minutes, the support leads and you, ten to twenty disputed cases on screen. You are not collecting votes. You are finding where the guide is silent. Update the guide the same day.
- Per release: a data scientist’s check. Before a prompt or model change ships, the data scientist or a reviewer who did not write the change looks at the case-by-case comparison, not only the total. The author of a change is the worst person to judge it.
- When volume or cost changes: a conversation with the ML engineer. If one narrow task is high volume and stable, ask whether a smaller tuned model is worth owning. Bring the cost per task and the eval result from the current setup.
- Monthly: a read of what the FDEs are seeing. Customer cases are the best source of new eval cases. A short note from each pod keeps the set honest, as the eval-set chapter describes.
- Always: a record of who decided what. When an expert overrules a label, write down who and why. It is the cheapest thing you will do and the first thing you will want when a number is questioned.
Under 30 people there is one person who does all of it, and the title matters less than the habit. The same engineer writes the prompt, builds the eval and, if asked, trains something. The risk is labelling your own work: with no domain expert on the team, find one customer or colleague who does the underlying job and give them an hour a week. Do not hire a specialist for a role you cannot yet define in three nouns.
Between 30 and 300 people the roles begin to separate, usually because one person becomes the bottleneck on evals or on serving. The first data scientist or ML engineer arrives. Write down the handoffs before the hire, or each new role will quietly take over the closest work. Name an adjudicator for each feature’s labels, and book their time like an engineering dependency, because it is one.
At 300 and above every role exists, often in different departments with different managers and different tools. The problem is overlap and politics: two groups both claim the eval, and neither pays the labelling cost. The work is a written responsibility map per feature, a standing arrangement for domain experts’ time, and a shared labelled-set registry so teams do not relabel the same cases. Expect finance and HR in the conversation, since labelling hours are a budget line.
Template
# Responsibility map: <feature> — <company>
Author · Date · Review date
## The feature and the decision it supports
<One sentence. What the feature does, who uses it, what a wrong answer costs.>
## Map
| Work | Role that does it | Role that decides | Checked by | Evidence handed over |
|---|---|---|---|---|
| Deciding what is correct on a case | | | | |
| Writing and revising the labelling guide | | | | |
| Choosing and sampling cases | | | | |
| Labelling | | | | |
| Measuring agreement | | | | |
| Running the eval on each change | | | | |
| Prompt, context and tool changes | | | | |
| Model tuning or replacement | | | | |
| Serving and cost | | | | |
## Labelling hours
<cases x minutes per case; double-labelled sample; total; hours promised; the gap.>
## Not owned by engineering
<Items, and who owns them.>
## Disputes
<Who adjudicates a disputed label, and how it is recorded.>
## Redraw when
<The trigger: agreement below target, a new customer, a new model, a role leaving.> WORKED EXAMPLE
Larkhollow is building a support agent for an enterprise customer’s refunds desk, and Chidozie, the AI engineer, drew this map before the pilot. The customer handles about 5,400 refund tickets a month (illustrative). The eval set is 200 cases, with 60 of them labelled twice to measure agreement. Labelling takes about 4 minutes a case for someone who knows the policy.
Feature. Draft refund replies for the customer’s agents to approve. A wrong amount is a financial loss and a complaint.
Map (extract). What is correct on a case: the customer’s senior support leads decide; Chidozie checks only that the case is well formed. The labelling guide: Chidozie owns it, with both leads in the room for ninety minutes each fortnight. Sampling: Emiko, the data scientist, picks 200 cases covering each refund type and the 12 rarest exceptions, which she checks against ticket volume. Labelling: the two leads. Agreement: Emiko, with kappa as well as raw agreement, target 0.8. Eval on each change: Chidozie. Model tuning: not proposed; the ML engineer is consulted only if the routing classifier’s numbers move. Serving and cost: the platform team.
Labelling hours. 200 cases at 4 minutes is 13.3 hours; 60 double-labelled cases add 4 hours; the total is 17.3 hours. The leads have promised 4 hours a week each, which is 24 hours across the three weeks before go/no-go, so there are 6.7 hours of slack for revising the guide.
Not owned by engineering. Whether the refund policy itself is right, which belongs to the customer’s head of support. Disputes. The more senior lead adjudicates, and the reason goes in the guide the same day. Redraw when. Kappa falls below 0.8 on a fortnightly re-check, or a second customer is added. Review date: the go/no-go meeting.
Now you
You are the AI engineer on Larkhollow’s second agent, for the order-changes desk of another enterprise customer. Go/no-go is in four weeks. The facts: about 3,000 tickets a month (illustrative); the policy is eight pages; the eval set will be 150 cases, with 45 labelled twice; labelling takes about 5 minutes a case. Three support leads exist, but the customer’s head of support has offered only 3 hours a week from each of two of them. A data scientist, Emiko, can give you two days in the period. A forward deployed engineer is on site and has already collected 25 real conversations. The complications: the customer’s head of support wants the leads’ time spent on “real work”, and suggests the FDE label instead because he is “technical”; and the ML engineers have offered to fine-tune a model before anyone has measured the base one. Draw the map. It must show whether the labelling hours fit, who labels, and what you say to each complication.
Self-check
Chidozie is the AI engineer on Larkhollow's support agent for an enterprise customer's refunds desk. The 200 eval cases need pass/fail labels on one question: did the answer follow the customer's refund policy, a 14-page document whose exceptions the support leads apply from memory. In a trial, Chidozie and Emiko, the data scientist, labelled the same 30 cases and agreed on 21 (70%). The customer's two senior support leads can give 4 hours a week each, and the pilot go/no-go is in three weeks. Who labels the 200 cases?
- POST The Rise of the AI Engineer Shawn Wang (swyx), 2023
The essay that popularised the title. Read it for the argument that applying models is a discipline of its own, and for how quickly the title outran its definition.
- BOOK AI Engineering: Building Applications with Foundation Models, chapter 1 Chip Huyen, 2025
The book-length account of the AI engineer's work. Chapter 1 sets out how building on foundation models differs from traditional machine learning engineering. Read: AI Engineering (O'Reilly, 2025), ch. 1.
- BOOK Designing Machine Learning Systems, chapter 1 Chip Huyen, 2022
The ML engineer's side of the map: the systems around a model you train yourself. Read it to see what the AI engineer is not usually doing. Read: Designing Machine Learning Systems (O'Reilly, 2022), ch. 1.
- POST Creating a LLM-as-a-Judge That Drives Business Results Hamel Husain, 2024
The case for putting one domain expert's judgement at the centre of your evaluation, and for starting from their labels and critiques.
- PAPER Who Validates the Validators? Aligning LLM-Assisted Evaluation of LLM Outputs with Human Preferences Shreya Shankar, J.D. Zamfirescu-Pereira, Bjorn Hartmann, Aditya Parameswaran, Ian Arawjo, 2024
The source of criteria drift: why the people who grade outputs cannot fully write their criteria in advance. Read: UIST 2024; arXiv 2404.12272.
- POST What We Learned from a Year of Building with LLMs (Part II) Eugene Yan, Bryan Bischof, Charles Frye, Hamel Husain, Jason Liu, Shreya Shankar, 2024
Practitioners on the operational side of LLM applications and the teams that build them, and the case for adding data and evaluation skills beyond engineering.
All companies and people in these examples are fictional. Any resemblance to a real business or person is unintended.