ML Experiment Tracking Beyond MLflow

ML Experiment Tracking Beyond MLflow

Machine learning experimentation rarely involves training a single model once and deploying it immediately. Data scientists typically run dozens or hundreds of experiments, changing datasets, features, hyperparameters, architectures, prompts, and evaluation strategies along the way.

Without proper experiment tracking, it becomes difficult to answer basic questions:

  • Which dataset produced this model?
  • What hyperparameters were used?
  • Which experiment performed best?
  • What changed between two model versions?
  • Can the result be reproduced?

MLflow has become one of the most widely known tools for answering these questions. However, modern ML systems have expanded beyond traditional model training. Teams now work with large language models, multimodal systems, distributed training, feature pipelines, synthetic data, online evaluation, and complex production workflows.

As a result, experiment tracking is evolving beyond simply recording model parameters and accuracy scores.

What is ML Experiment Tracking

ML experiment tracking is the practice of recording the inputs, configurations, outputs, metrics, artifacts, and environment associated with machine learning experiments. While MLflow provides a strong foundation, modern teams may also use platforms such as Weights & Biases, Neptune alternatives and successors, Comet, ClearML, or cloud-native experiment systems depending on their requirements.

The important concept is not the specific tool. It is building a reliable system for connecting data → code → configuration → experiment → model → evaluation → deployment.

Why Experiment Tracking Matters

Imagine running three experiments:

ExperimentModelLearning RateAccuracy
Run 1Random Forest91.2%
Run 2XGBoost0.0593.1%
Run 3XGBoost0.1094.0%

The third experiment appears to be the winner.

But accuracy alone isn’t enough.

You also need to know:

  • Which training dataset was used?
  • Which feature version was used?
  • What preprocessing occurred?
  • Which code commit produced the result?
  • What hardware was used?
  • How long did training take?
  • Which evaluation dataset was used?

Experiment tracking captures this context.

What Should an ML Experiment Track?

A mature experiment-tracking system can record several categories of information.

Parameters

Parameters describe the configuration of an experiment.

Examples include:

  • Learning rate
  • Batch size
  • Number of epochs
  • Model architecture
  • Regularization strength
  • Prompt configuration

Metrics

Metrics measure experiment performance.

Examples include:

  • Accuracy
  • Precision
  • Recall
  • F1 score
  • RMSE
  • MAE
  • ROC-AUC
  • Latency
  • Token usage

Artifacts

Artifacts are files generated during experiments.

Examples include:

  • Model files
  • Dataset samples
  • Charts
  • Confusion matrices
  • Evaluation reports
  • Logs

Environment Information

The environment can include:

  • Python version
  • Package versions
  • Operating system
  • GPU type
  • CUDA version
  • Container image

Source Information

Tracking the source code and configuration makes experiments reproducible.

Examples include:

  • Git commit
  • Branch
  • Configuration file
  • Pipeline version

The Traditional Experiment-Tracking Architecture

A basic architecture looks like this:

Training Code
     ↓
Experiment Tracker
     ↓
Parameters + Metrics + Artifacts
     ↓
Experiment Database
     ↓
Comparison Dashboard

This works well for conventional supervised and unsupervised machine learning.

However, modern AI systems require more.

Why MLflow Isn’t the Whole Story

MLflow remains useful for model lifecycle management and experiment tracking, but modern ML experimentation increasingly involves more than traditional training runs.

For example, an LLM experiment may involve:

Prompt
 ↓
Model
 ↓
Context
 ↓
Tool Calls
 ↓
Generated Response
 ↓
Evaluator
 ↓
Quality Score

Tracking only parameters such as learning rate and model architecture doesn’t capture the entire experiment.

Modern systems therefore need to track AI behavior, not just training configuration.

Experiment Tracking for LLMs

Large language model applications introduce additional variables.

Important information can include:

  • System prompts
  • User prompts
  • Retrieved documents
  • Model version
  • Temperature
  • Top-p
  • Tool calls
  • Token counts
  • Response latency
  • Evaluation scores
  • Human feedback

An LLM experiment might therefore look like:

Experiment
├── Model
├── Prompt Version
├── Retrieval Configuration
├── Context
├── Tools
├── Output
├── Evaluation
└── Cost

This makes experiment tracking much closer to application observability.

Modern Alternatives and Complements

Weights & Biases

Weights & Biases is widely used for experiment tracking, visualization, dataset management, and model development workflows.

Its visualization capabilities make it particularly useful when comparing many training runs.

Comet

Comet provides experiment tracking, model management, visualization, and monitoring capabilities.

It can be useful for teams that want centralized experiment metadata across machine learning workflows.

ClearML

ClearML combines experiment tracking with orchestration, data management, and automation.

This makes it useful for teams managing more complete ML workflows rather than isolated training experiments.

Cloud-Native Platforms

Cloud providers also offer experiment-management capabilities integrated with their ML ecosystems.

Examples include:

  • Amazon SageMaker
  • Google Vertex AI
  • Azure Machine Learning

These platforms can integrate experimentation with training infrastructure, deployment, monitoring, and governance.

Experiment Tracking vs ML Observability

These concepts are related but different.

Experiment tracking focuses primarily on development.

It asks:

What did we try, and what happened?

ML observability focuses primarily on production.

It asks:

How is the deployed model behaving right now?

A mature ML platform often needs both.

Development
     ↓
Experiment Tracking
     ↓
Model Evaluation
     ↓
Deployment
     ↓
ML Observability
     ↓
Production Feedback
     ↓
New Experiment

The feedback loop connects experimentation to production.

The Importance of Dataset Tracking

One of the biggest weaknesses of poorly designed experiment systems is tracking models without tracking datasets.

A model’s performance is heavily dependent on its training data.

Therefore, experiments should ideally record:

  • Dataset version
  • Data snapshot
  • Feature version
  • Data preprocessing
  • Data splits
  • Sampling strategy

This creates a connection between the model and the exact data used to produce it.

Experiment Lineage

Modern experiment tracking is increasingly becoming a lineage problem.

A complete lineage graph might look like:

Raw Data
   ↓
Processed Dataset
   ↓
Feature Set
   ↓
Training Run
   ↓
Model
   ↓
Evaluation
   ↓
Deployment
   ↓
Production Metrics

This allows teams to trace a production model back to the data, code, and experiment that created it.

Reproducibility Is More Than Saving Parameters

Saving hyperparameters isn’t enough to reproduce an experiment.

A reproducible experiment may require:

  • Versioned code
  • Versioned datasets
  • Fixed configuration
  • Dependency versions
  • Random seeds
  • Hardware information
  • Model checkpoints
  • External dependency versions

For large distributed systems, exact reproducibility can still be difficult, but comprehensive metadata makes reproduction significantly easier.

Tracking Experiment Costs

Cost has become an important experimental metric, especially for LLM applications.

Two systems might produce similar quality:

ExperimentQuality ScoreCost
A91%$2.40
B92%$14.80

Experiment B has slightly better quality but costs substantially more.

A mature tracking system should therefore capture metrics such as:

  • GPU hours
  • Training cost
  • Inference cost
  • Token consumption
  • API calls
  • Runtime

This allows teams to optimize for quality, performance, and cost simultaneously.

Experiment Tracking for AI Agents

Agentic AI introduces another layer of complexity.

An agent may perform multiple actions before completing a task:

User Goal
   ↓
Agent
   ↓
Search
   ↓
Tool Call
   ↓
Database Query
   ↓
Reasoning
   ↓
Second Tool Call
   ↓
Final Response

Tracking only the final answer hides much of what happened.

Modern AI experiment systems therefore need to capture traces containing:

  • Agent decisions
  • Tool calls
  • Inputs
  • Outputs
  • Latency
  • Errors
  • Intermediate steps
  • Evaluation results

This brings experiment tracking closer to trace-based observability.

Choosing an Experiment Tracking Strategy

The best solution depends on the type of ML system.

RequirementUseful Capability
Traditional MLParameters + metrics
Deep learningMetrics + visualization + checkpoints
LLM applicationsPrompts + outputs + evaluations
AI agentsTraces + tool calls + evaluations
Large teamsCollaboration + governance
Production MLTracking + lineage + monitoring

Instead of asking “Which tool is best?”, teams should first determine what information must be captured.

Best Practices

Track Everything Needed for Reproduction

Record the code, data, configuration, environment, metrics, and artifacts associated with important experiments.

Version Prompts

For LLM applications, prompts should be treated like code.

A small prompt change can significantly affect model behavior.

Track Evaluation Data

Don’t only store evaluation scores. Track the evaluation dataset and methodology used to generate those scores.

Connect Experiments to Production

When possible, connect deployed models back to the experiment that produced them.

Track Costs

Cost should be treated as an engineering metric, especially for large-scale AI systems.

Automate Metadata Collection

Avoid relying on developers to manually record experiment details.

Common Mistakes

Tracking Only Accuracy

A single performance metric doesn’t provide enough context to understand an experiment.

Ignoring Data Versions

Using the wrong dataset can make an experiment impossible to reproduce.

Treating Prompts as Temporary

For LLM applications, prompt versions can be just as important as model versions.

Separating Experimentation From Production

Production feedback is valuable input for future experiments. The two systems should form a continuous loop.

The Future of ML Experiment Tracking

Experiment tracking is moving toward a broader concept of AI development observability.

Future platforms will increasingly connect:

  • Data lineage
  • Experiment metadata
  • Model versions
  • Prompt versions
  • Evaluation results
  • Agent traces
  • Production monitoring
  • Human feedback
  • Cost analytics

This creates a complete lifecycle:

Data
 ↓
Experiment
 ↓
Evaluation
 ↓
Deployment
 ↓
Observability
 ↓
Feedback
 ↓
New Experiment

The result is a more connected and reproducible AI development process.

ML experiment tracking is no longer limited to recording hyperparameters and accuracy scores. Modern AI systems require teams to track data, code, prompts, models, evaluations, costs, tool calls, and production behavior.

MLflow remains an important part of the ecosystem, but teams may need additional capabilities depending on whether they are building traditional ML models, LLM applications, or agentic systems.

The most important principle is simple: every important experiment should leave behind enough information to understand what happened, reproduce the result, and compare it with future experiments.

FAQ

What is ML experiment tracking?

ML experiment tracking is the process of recording the parameters, datasets, metrics, artifacts, environment, and other metadata associated with machine learning experiments.

Is MLflow still useful?

Yes. MLflow remains useful for experiment tracking and model lifecycle management. However, teams building modern AI applications may need additional tools for tracing, evaluation, prompts, and agent workflows.

What should I track in an ML experiment?

At minimum, track code version, dataset version, configuration, model parameters, evaluation metrics, environment information, and generated artifacts.

How is LLM experiment tracking different?

LLM applications require tracking additional information such as prompts, model versions, retrieved context, token usage, latency, outputs, and evaluation results.

What is the difference between experiment tracking and ML observability?

Experiment tracking focuses on understanding development experiments, while ML observability focuses on monitoring models and AI systems after deployment.

Should experiment tracking include production data?

Production feedback can be valuable, but sensitive production data should be handled according to applicable privacy, security, and governance requirements. Often, teams track metadata and derived evaluation signals rather than storing unrestricted raw user data.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top