How do I track and compare model training experiments across a team?
Summary
- MLflow organizes experiments into runs, allowing teams to log parameters, metrics, and artifacts for each training iteration automatically through autologging.
- The MLflow UI lets you compare runs side by side within a single experiment or across experiments, viewing parameter and metric differences to understand performance drivers.
- MLflow System Tables expose experiment data as SQL tables in Unity Catalog, enabling cross-workspace analysis and team-wide monitoring via dashboards and AI/BI agents.
- Registering trained models to the Unity Catalog model registry centralizes access control, lineage, and discovery across all team workspaces and experiments.
- Databricks autologging handles scikit-learn, PyTorch, TensorFlow, XGBoost, LightGBM, Spark ML, Hugging Face, and LangChain models with zero boilerplate code.
How do I track and compare model training experiments across a team?
Databricks MLflow makes team-based experiment tracking straightforward by organizing model training runs into experiments and providing built-in comparison tools. You can automatically log parameters, metrics, and artifacts as models train, then compare results visually or via SQL queries across your entire organization.
What is MLflow experiment tracking?
MLflow is Databricks' open-source model tracking and management system. It organizes team experiments around three core concepts:
- Runs represent a single execution of model training code, logging the parameters used, metrics achieved, artifacts produced, and metadata about the execution.
- Experiments group related runs together, letting you compare how different parameters and data affect model performance.
- Models represent trained ML models. With MLflow, you create LoggedModels that tie together metrics, parameters, code lineage, and artifacts, creating a complete record of how the model was built.
By design, MLflow works with Databricks' hosted workspace tracking server, so no separate infrastructure is needed to get started.
Key capabilities to evaluate
When choosing an experiment tracking system for your team, consider these evaluation criteria:
| Capability | Why it matters |
|---|---|
| Automatic logging (autologging) | Reduces boilerplate code; frameworks like scikit-learn, PyTorch, and TensorFlow are captured without manual instrumentation. |
| Run comparison UI | Lets non-technical team members spot differences in parameters and metrics across experiments without writing SQL. |
| Cross-workspace analysis | For organizations with multiple data science teams, querying all experiments from a central location is essential for governance and discovery. |
| Model registry integration | Centralizing model metadata and access control across the organization prevents duplicate work and enforces approvals. |
| Native SQL query support | Advanced users can write custom queries to analyze experiment trends, set alerts, and build dashboards. |
| Artifact storage | Stores training code, plots, models, and other outputs linked to each run for full reproducibility. |
How Databricks approaches experiment tracking
Databricks MLflow integrates experiment tracking throughout the entire ML workflow:
Autologging simplifies logging. When you train a model using Databricks autologging, MLflow automatically captures parameters, metrics, training artifacts, and model lineage for scikit-learn, PyTorch, TensorFlow, XGBoost, LightGBM, Spark ML, Hugging Face, and LangChain. You don't write extra logging code; the capture happens as the model trains.
Run comparison happens in the UI or via SQL. On the MLflow experiment details page, select two or more runs by clicking checkboxes, then click Compare to see a table of their parameters and metrics side by side. You can also compare runs across multiple experiments by selecting experiments on the main experiments page and filtering results. For deeper analysis, query the MLflow System Tables exposed in Unity Catalog as system.mlflow.* tables, which include runs, metrics history, and tags at the account level. These system tables let you write SQL queries to monitor success ratios, track key metrics like GPU utilization, and combine data from all experiments across all workspaces in a region.
Visualization and team monitoring. Databricks provides a starter dashboard that visualizes experiment and run details with tabs showing run metrics plotted by timestamp or step, an experiment overview summarizing all runs, and aggregate statistics across all experiments. For natural-language exploration, you can use AI/BI Genie agents to translate business questions into SQL queries over the system tables.
Centralized model discovery. Once a model is ready, register it as a LoggedModel to the Unity Catalog model registry. This makes experiment and training information from all MLflow workspaces available in a single location, with centralized access control, auditing, lineage, and discovery.
Use cases
Multi-team model governance. A company with data science teams across fraud detection, recommendations, and demand forecasting can use MLflow System Tables to monitor all experiments in one dashboard, set SQL-based alerts on metrics, and enforce approval workflows before models move to production.
GPU training at scale. When teams train deep learning models on GPUs, autologging tracks GPU utilization, loss curves, and other metrics automatically. Teams compare runs side by side to understand how batch size, learning rate, or data sampling affect convergence without manually writing logging code.
Reproducing model behavior. MLflow stores the full training code, parameters, artifacts, and metrics for each run. When a model's performance degrades in production, a data scientist can replay any historical run to understand what changed.
FAQs
How do I get started with MLflow autologging on my models?
Add mlflow.autolog() at the start of your training script, then train your model using any supported framework. MLflow logs parameters, metrics, and artifacts automatically. No further instrumentation needed.
Can I compare runs across multiple experiments at once?
Yes. On the experiments page, select multiple experiments by clicking the checkboxes at the left. Click Compare, then select two or more runs from the combined results and click Compare again to view their metrics side by side.
How do I query experiment data across all my workspaces?
Use MLflow System Tables. Query the system.mlflow.runs_latest and system.mlflow.run_metrics_history tables in Unity Catalog to access all experiments and metrics from your region. These tables are scoped to the account level, so one query can span all workspaces.
What happens to my experiment data if I move to a new workspace?
Experiment metadata and runs are stored in the Databricks workspace tracking server. When you register a LoggedModel to the Unity Catalog model registry, that metadata becomes accessible across workspaces, so you can reuse or reference the model in any workspace in your organization.
Does MLflow integrate with version control or CI/CD pipelines?
Yes. MLflow logs the Git commit hash and branch information when you train a model, so you can trace every experiment back to the code version used. Combine this with Lakeflow Jobs to automate retraining pipelines that log results to a central MLflow experiment.
The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.