Domains · Data and AI
Leading ML engineering teams
Good work can fail here: the model may not beat the baseline after a careful month. Leading ML engineers means judging experiments instead of outcomes, joining research and engineering habits in one team, and counting what each model costs after launch.
See the 23 roadmap steps this changes ↓What is different here
- 01
A good experiment can fail
In most engineering, careful work produces a working result. Here an engineer can do everything right for six weeks and the model still does not beat the baseline. Effort and outcome are only loosely linked.
If you reward only wins, three things follow. People stop reporting what failed. They tune until something looks like a win. They choose safe problems. All three are rational responses to you.
Judge the experiment, not the result: was the hypothesis written down first, was the comparison fair, is the write-up clear enough that nobody repeats it? Time-box the work and put a decision at the end of each box. Praise a clean negative that saved the team a quarter as loudly as a launch.
- 02
Research habits and engineering habits in one team
People trained in research explore quickly, throw code away and optimise a metric. People trained in software build for maintenance, test and review. Each habit is right in its phase and harmful in the other.
The friction is predictable. Engineers read exploration code as careless. Researchers read process as drag. The usual compromise, a researcher handing a notebook to an engineer to rewrite, loses knowledge and leaves nobody owning the result.
Say which phase each piece of work is in and which standard applies. Keep the shared parts (data loading, evaluation, feature code) at full engineering standard even during exploration. Staff projects with both kinds of people from the first week. Make sure your promotion criteria reward a careful evaluation as much as a clean service.
- 03
Evaluation comes before features
In software a specification says what correct means. For a learned system, the evaluation data and the metric are the specification. If they are weak, nobody can tell whether a change helped, and every later decision rests on guesswork.
Teams under delivery pressure skip this, because building evaluation looks like weeks without progress. Fund it first and tell stakeholders in advance that this is the plan.
Then learn the three questions to ask whenever someone reports an improvement. Against which baseline? On which data, and has the model or its author seen that data before? Does the offline metric move with the outcome the business cares about? Leakage between training and test data is a common way for a strong result to turn out to be nothing.
- paperLeakage and the Reproducibility Crisis in ML-based Science (opens in a new tab)Sayash Kapoor and Arvind Narayanan
- guideRules of Machine Learning: Best Practices for ML Engineering (opens in a new tab)Martin Zinkevich
- paperHow to avoid machine learning pitfalls: a guide for academic researchers (opens in a new tab)Michael A. Lones
- 04
The gain is in the data, the status is in the model
Ask an ML engineer what they want to work on and the answer is usually the model. Ask where the next improvement will come from and the honest answer is usually the data: cleaner labels, missing cases, a feature that is computed wrongly in production.
This is an incentive problem and it is yours. Data work is slow, unglamorous and hard to show in a review. If only modelling earns promotion, nobody will fix the data that limits the model.
Assign senior people to data and labelling, not the newest hire. Have every engineer read raw examples and model errors each week. Credit data improvements by name when you report results. The team will follow what you visibly value.
- 05
A model costs more after launch than before
Launch feels like the end. It is the start of retraining, monitoring, serving cost and a set of upstream data dependencies that will change without telling you. A model also entangles its inputs: change one feature and behaviour shifts everywhere, so small edits need full re-evaluation.
Every launched model is a standing claim on the team. A team that ships several and retires none slowly loses the capacity to build anything new, and nobody decided that.
Count the upkeep in the business case before you build. Name the owner before launch. Keep a list of models in production with what each costs to run and maintain and what it earns. Review the list twice a year and switch off the ones that no longer pay.
- 06
A demo is not a product
A model that works on chosen examples can be built in a week. A model that behaves acceptably on the long tail of real inputs can take many months. Executives see the demo and set the date from it.
People outside the team also expect software behaviour: once it works, it works. A learned system is wrong some of the time by design. The product has to be built around that, with a fallback, a way to correct errors and a stated error level the business accepts.
So show failure cases in every demo. Present the current error level beside the level the product needs. Commit to decision dates, not to a date for reaching a target.
On the roadmaps
These steps change when the team works in ML engineering. Set it as your field and every roadmap highlights them.
AI and Physical AI Team Leader
open with this as your field →- Making failed experiments pay
Have the expected result and the decision it drives written before the run. Review negative results in the same meeting as positive ones, with the same care.
- Reviewing experimental work
Ask for the comparison against the current production model on the same data, not against the author's earlier run. Check for leakage before anything else.
- Evaluation as the product spec
Fund the evaluation set and harness before the first model. To outsiders this looks like weeks without progress, so say in advance that it is the plan.
- Data as a first-class asset
Assign senior people to data and labelling work and credit it in reviews. If only model work earns promotion, nobody will fix the data that limits the model.
- From prototype to production
Do not hand a notebook to another team to rewrite. The people who built the model stay with it through launch and work in the production codebase.
- Monitoring and drift
Decide before launch who retrains, on what trigger and who pays for fresh labels. Otherwise the model decays after the team that built it has moved on.
- Compute budgets and cost
Serving cost outlasts training cost. Put cost per prediction in the launch review and compare it with what a prediction is worth to the business.
- Setting expectations with product
Show failure cases in every demo. A demo on chosen examples fixes a date in an executive's mind that the long tail of real inputs will not meet.
Senior Engineer to Engineering Manager
open with this as your field →- Planning and estimates
You can estimate the engineering: pipelines, serving, evaluation harness. You cannot estimate when a model reaches a target. Plan time boxes with a decision at the end of each.
- Managing performance
Judge the quality of experiments and decisions, not whether the model beat the baseline. Otherwise people tune until something looks like a win and stop reporting failures.
- Communicating status
Percent complete means nothing for model work. Report what was tried, what was learned, the best result so far against the target and the next decision date.
- Quality without reviewing it all
Quality has two halves: the code and the model's behaviour. Tests cover the first. The second needs a held-out evaluation set that nobody tunes against.
- The first slipped deadline
When a model misses its target, more time is rarely the answer. Bring the real options: narrower scope, a simpler approach, more or better data, or stopping.
Engineer to Tech Lead
open with this as your field →- Standards the team actually keeps
Hold shared code (data loading, evaluation, feature computation) to full engineering standard. Exploration code may be rough, inside a boundary the team has agreed.
- Sequencing: risk first
The largest risk is usually whether the data contains the signal at all. Test that with a crude baseline in the first week, before anyone builds pipelines or serving.
- Code review as teaching
Review experiments as well as code: is the comparison fair, is the split clean, is the claim larger than the evidence? Engineers from software backgrounds need this taught.
- Quality and testing strategy
Add tests that software teams do not have: training and serving compute features the same way, the model beats a fixed baseline, and output distributions stay within bounds.
Data and ML Leader
open with this as your field →- ML from notebook to production
An ML engineering team is the owner this step asks for. Make the standard path one that scientists can use themselves, or your team becomes a rewrite queue.
- Where ML is worth it and rules are enough
Your team will be asked to add ML to many things. Its most valuable habit is to build the rule-based version first and show when that is enough.
- Model risk and documentation
Write the model's purpose, training data, known limits and owner at launch, while the builders remember. Reconstructing them a year later for an audit is far harder.
Engineering Manager to Director
open with this as your field →- Headcount planning
Count the upkeep of launched models before you ask for people to build new ones. A team with several models in production may have no free capacity at all.
- Planning across teams
Product teams will plan around a model that does not exist yet. Give them a fallback date: the day you will decide to ship the simple version instead.
Staff and Principal Engineer
open with this as your field →- Managing technical risk
Look for hidden coupling: models that consume other models' outputs, features with no owner, training data that production no longer resembles. These fail with no change on your side.