ML Project Management
Iteration Strategies
Read aloud is unavailable in this browser.
The Art of Intelligent Exploration
ML development is an optimization problem conducted under resource constraints. You have limited time, compute budget, and team capacity—but an enormous space of possible experiments. Iteration strategy is the discipline of deciding what to try next.
Naive approaches—random exploration, following intuition, or exhaustive grid search—waste resources. Expert ML practitioners develop systematic iteration strategies that:
- Maximize learning per experiment
- Balance exploration of new approaches with exploitation of known-good directions
- Diagnose problems efficiently to guide corrective action
- Adapt to findings in real-time rather than following rigid plans
This page provides frameworks for intelligent iteration that accelerate model development.
By completing this page, you will be able to: (1) Prioritize experiments based on expected value and information gain, (2) Navigate the exploration-exploitation tradeoff, (3) Apply systematic debugging strategies when models underperform, (4) Allocate resources efficiently across multiple improvement dimensions, and (5) Know when to pivot, persist, or stop.
The Experiment Prioritization Framework
Every experiment has an expected value—the product of its potential impact and its probability of success. Systematic prioritization ranks experiments by this expected value.
The Prioritization Matrix:
Evaluate each potential experiment on two dimensions:
- Impact if successful — How much would this improve our metrics?
- Probability of success — Based on prior evidence, how likely is improvement?
| Low Probability | High Probability | |
|---|---|---|
| High Impact | Moonshots: Try selectively | Quick wins: Prioritize heavily |
| Low Impact | Avoid entirely | Incremental: Fill gaps |
| Category | Examples | Strategy |
|---|---|---|
| Quick Wins | Bug fixes, feature additions with known value | Do immediately |
| Incremental | Hyperparameter tuning, minor architecture changes | Systematic search |
| Moonshots | New architectures, novel features | Allocate 20% of budget |
| Avoid | Low-impact, low-probability changes | Document and skip |
Information Value Prioritization:
Some experiments are valuable not for their direct improvement but for the information they provide. Consider:
- Diagnostic experiments — Help identify root causes ("Is the bottleneck data or model?")
- Ablation studies — Reveal which components contribute value ("Does this feature matter?")
- Boundary probes — Establish performance ceilings ("What's the best we can do with perfect labels?")
These experiments may not improve the model directly but guide subsequent work more effectively.
80% of your improvement typically comes from 20% of your experiments. Prioritize ruthlessly. Before running an experiment, ask: "If this works, does it matter?" If the answer is no, skip it regardless of how intellectually interesting it seems.
Exploration vs Exploitation
The exploration-exploitation tradeoff is fundamental to ML iteration:
- Exploitation — Refining approaches known to work (hyperparameter tuning, feature engineering within established frameworks)
- Exploration — Trying fundamentally different approaches (new architectures, alternative problem formulations)
Phase-Dependent Balance:
The optimal balance shifts throughout a project:
| Phase | Exploration | Exploitation | Rationale |
|---|---|---|---|
| Early | 80% | 20% | Find promising directions |
| Middle | 50% | 50% | Balance breadth and depth |
| Late | 20% | 80% | Polish best approach |
| Deadline | 0% | 100% | Ship what works |
- •Testing fundamentally different model families
- •Trying novel feature representations
- •Exploring different problem formulations
- •Investigating new data sources
- •Adopting recently published techniques
- •Hyperparameter optimization within known ranges
- •Feature engineering on established approach
- •Ensemble combining proven models
- •Data augmentation refinement
- •Threshold and calibration tuning
Portfolio Approach:
Maintain a portfolio of experiments across risk levels:
- Conservative (60%) — Incremental improvements with high probability
- Moderate (30%) — Meaningful changes with reasonable probability
- Aggressive (10%) — High-risk, high-reward experiments
This ensures steady progress while maintaining upside potential.
Pure exploitation leads to local optima—you perfect an approach that's fundamentally limited. Reserve exploration budget even when exploitation is working. Many major ML improvements came from teams willing to try something completely different when incremental gains stalled.
Systematic Debugging Strategies
When models underperform, random experimentation wastes resources. Systematic debugging identifies root causes and guides targeted fixes.
The Debugging Hierarchy:
Diagnose problems in order of fundamentality:
- Data issues — Bugs, quality problems, insufficient volume
- Feature issues — Missing signal, poor representation, leakage
- Model issues — Capacity, architecture, optimization
- Hyperparameter issues — Suboptimal configuration
- Evaluation issues — Misleading metrics, train-test mismatch
Diagnostic Experiments:
| Symptom | Diagnostic Experiment | What It Reveals |
|---|---|---|
| High training error | Overfit a small batch | Model capacity sufficient? |
| High train-test gap | Learning curves by data size | More data needed? |
| Feature importance all low | Train with known-good labels | Features have signal? |
| Performance ceiling | Train with oracle features | What's achievable? |
| Inconsistent results | Multiple random seeds | Variance vs signal? |
| Specific failure modes | Error analysis by segment | Where does model fail? |
1234567891011121314151617181920212223242526272829303132333435
import numpy as npfrom sklearn.model_selection import learning_curve def diagnose_with_learning_curves(model, X, y): """ Generate learning curves to diagnose data vs model issues. Interpretation: - Both curves high + converging = need more data - Train low, gap small = underfitting (need complexity) - Train low, gap large = overfitting (regularize/simplify) """ train_sizes, train_scores, val_scores = learning_curve( model, X, y, train_sizes=np.linspace(0.1, 1.0, 10), cv=5, scoring='accuracy', n_jobs=-1 ) train_mean = train_scores.mean(axis=1) val_mean = val_scores.mean(axis=1) gap = train_mean - val_mean # Diagnosis if train_mean[-1] < 0.7: print("DIAGNOSIS: Underfitting - increase model capacity") elif gap[-1] > 0.15: print("DIAGNOSIS: Overfitting - regularize or get more data") elif val_mean[-1] < val_mean[-3]: print("DIAGNOSIS: More data could help - curves still climbing") else: print("DIAGNOSIS: Model is well-fit for available data") return train_sizes, train_mean, val_meanBefore any debugging experiment, manually examine 50-100 errors. This often reveals immediately actionable issues: data bugs, labeling errors, or systematic failure modes that suggest specific fixes. An hour of error analysis can save days of random experimentation.
Resource Allocation
ML iteration consumes three scarce resources: time, compute, and attention. Effective allocation maximizes learning per unit of resource spent.
Time Allocation:
Typical ML project time breakdown:
| Activity | Allocation | Notes |
|---|---|---|
| Data preparation | 30-40% | Often underestimated |
| Feature engineering | 20-30% | High leverage activity |
| Model development | 20-30% | Actual ML work |
| Evaluation & debugging | 10-20% | Critical for quality |
Compute Allocation:
Not all experiments need full compute. Use tiered allocation:
- Quick scans (10% compute) — Fast feasibility checks, small data samples
- Standard runs (50% compute) — Normal training on full data
- Deep runs (100%+ compute) — Final models, hyperparameter sweeps, ensembles
- •Sample early, scale late — Test ideas on 10% of data before committing to full runs
- •Progressive resolution — Start with coarse hyperparameter grids, refine around promising regions
- •Early stopping — Kill experiments that plateau or diverge instead of waiting for completion
- •Caching — Cache expensive computations (embeddings, features) for reuse across experiments
- •Parallel exploration — Run multiple experiments simultaneously when compute allows
Compute can be purchased; time passes regardless. But attention—the ability to think deeply about experiments—is truly limited. Batch experiments to free attention for analysis. Automate routine runs. Reserve cognitive resources for interpretation and strategy, not babysitting training jobs.
When to Pivot, Persist, or Stop
One of the hardest decisions in ML is knowing when to change direction. Sunk cost fallacy and optimism bias often lead teams to persist on doomed approaches. Objective decision criteria prevent waste.
Decision Framework:
| Signal | Persist | Pivot | Stop |
|---|---|---|---|
| Improvement rate | Steady gains | Plateaued despite exploration | No improvement for 20+ experiments |
| Gap to goal | On track | Large gap, time remaining | Gap too large for timeline |
| Diagnostic findings | Clear improvement path | Fundamental blockers identified | Problem proven infeasible |
| Resource status | Sufficient runway | Resources available for new direction | Resources exhausted |
| Stakeholder alignment | Support continues | Appetite for different approach | Interest withdrawn |
- •Learning curves show data hunger (more data helps)
- •Clear, actionable improvement hypotheses exist
- •Recent experiments show consistent progress
- •Error analysis reveals fixable patterns
- •Oracle experiments show ceiling below requirement
- •Fundamental data quality issues without fix path
- •Dozens of experiments without measurable progress
- •Better alternative approaches have emerged
Time already spent is irrelevant to future decisions. The question is: "Given what we know now, is this the best use of remaining resources?" Teams that can objectively kill failing projects and reallocate resources outperform those that persist out of emotional attachment.
Summary and Key Takeaways
- •Prioritize by expected value — Impact × probability; skip low-value experiments regardless of interest
- •Balance exploration and exploitation — Early: explore broadly; Late: exploit best approaches
- •Debug systematically — Data → Features → Model → Hyperparameters; use diagnostic experiments
- •Allocate resources deliberately — Time, compute, and attention are all scarce; spend wisely
- •Pivot objectively — Sunk costs are irrelevant; decide based on future prospects
- •Error analysis beats random experimentation — Manual inspection often reveals fastest path forward
You now understand iteration strategies that accelerate ML development. Next, we'll explore launch criteria—the rigorous standards that determine when a model is ready for production deployment and how to ensure safe, successful launches.
KEEP LEARNING
Keep learning for free.
Read the complete lesson, save your notes and pick up where you left off with a free account. No card needed.