A Roadmap for Adopting and Implementing MLOps in Your Organization
Introduction: The Rise of MLOps
Machine Learning (ML) has become a key strategic capability and competitive differentiator for enterprises across all industries. IDC predicts that by 2024, 60% of Global 2000 companies will be using ML-as-a-service platforms to scale AI development and deployment. However, many organizations still struggle to translate the potential of ML into tangible business impact.
According to Algorithmia‘s 2021 Enterprise ML Survey, 83% of all organizations have increased their AI/ML budgets year-over-year and the average number of data scientists has grown by 76% since 2018. Yet, 64% of companies report taking more than a month to deploy a model into production and 38% say more than half of their models never make it out of experimentation.
The key barrier holding back ML value realization is the lack of operational rigor in deploying and managing models, akin to what DevOps did for software development. This is where MLOps (Machine Learning Operations) comes in. MLOps is an emerging practice for collaboration between data science and IT teams to manage the end-to-end model lifecycle at scale and with quality.
As Gartner highlights in its 2020 AI Ops research, "The democratization and scaling of ML requires a comprehensive approach to manage ML pipelines – from data preparation to production deployment and monitoring – in a well-governed fashion. This is the realm of MLOps platforms."
Key Challenges in Adopting MLOps
While the benefits of MLOps are clear, organizations face several hurdles in embracing it:
-
Disjointed Teams: ML initiatives often originate in data science teams that are siloed from engineering and operations groups. Bridging these divides and driving shared accountability is a cultural shift.
-
Talent Gaps: The State of Enterprise ML 2020 report by Algorithmia finds a significant gap in MLOps skills. Only 10% of companies report having ML engineers to support production deployments. Hiring and upskilling for MLOps roles is a key challenge.
-
Process Maturity: Many companies lack well-defined processes for the ML lifecycle compared to standard SDLC practices. Handoffs between data prep, model building, deployment and monitoring are often ad hoc leading to friction.
-
Tools Proliferation: The MLOps tools landscape is highly fragmented with a mix of open-source, cloud and commercial options. Picking the right stack and avoiding tool sprawl requires careful curation and architecture.
-
Governance Gaps: AI governance practices around model explainability, fairness, security and compliance are still nascent. Operationalizing responsible AI in tandem with MLOps is an imperative but complex effort.
Overcoming these challenges requires a programmatic approach and transformation roadmap to implement MLOps tailored to each company‘s context. Let‘s dive into the key elements of such a roadmap.
Step 1: Establish Executive Support for MLOps
Forrester‘s 2020 State of ML Ops report finds that "MLOps is poised for significant growth but needs top-down executive direction to align all stakeholders and connect metrics to meaningful business outcomes." Some strategies to build CXO-level sponsorship:
- Align MLOps to strategic imperatives and quantify business impact
- Benchmark capabilities against industry peers and articulate gaps
- Leverage case studies and best practices from first movers
- Propose quick-win pilots to demonstrate value with contained risk
- Appoint an ML champion in the C-suite to shepherd the effort
Step 2: Identify Key Use Cases and Prioritize Projects
With executive buy-in secured, data science and business teams should jointly identify promising ML use cases to productionize using MLOps. Some key prioritization criteria:
- Business criticality and value driver (e.g. cost, growth, experience)
- Feasibility of operationalizing model (data quality, explainability)
- Regulatory and risk considerations (e.g. protected data, high stakes)
- Expected frequency of model refresh (e.g. real-time vs batch)
As an example, a large North American bank prioritized an initial set of 10 use cases across origination, underwriting, marketing and servicing to improve customer experience and operational efficiency. The portfolio was a mix of high-value batch models and real-time decisioning engines.
Step 3: Assess Current MLOps Maturity and Gaps
A variety of frameworks exist to gauge organizational maturity and readiness for MLOps. Google‘s MLOps Levels defines a maturity curve across three levels:
- Level 0 (Manual): ML process highly manual with minimal automation and lack of standards
- Level 1 (ML Pipeline Automation): CI/CD pipeline and model registry to enable ML lifecycle
- Level 2 (CI/CD): Pipelines are automated and models are deployed in production environments with monitoring
Similarly, Microsoft‘s MLOps Maturity Model defines five levels – No MLOps, DevOps but no MLOps, Automated Training, Automated Model Deployment, and Full MLOps Automation.
Using these frameworks, companies can map their current MLOps state across key capabilities to identify gaps:
| Capability | Sub-Capabilities | Maturity |
|---|---|---|
| Data Management | Ingestion, Prep, Labeling, Validation | Low |
| Model Development | Versioning, Packaging, Testing, Registry | Medium |
| Model Deployment | Orchestration, Serving, Scaling, A/B Testing | Low |
| Model Monitoring | Logging, Metrics, Alerting, Feedback Loop | Low |
| Infrastructure | Compute, Storage, Network, Security | Medium |
| Governance | Policy, Compliance, Explainability, Fairness | Low |
Step 4: Build the Right MLOps Team and Skills
With the maturity assessment complete, organizations can identify roles and skills needed to enable MLOps. Sample roles include:
- MLOps Engineer/Architect: Designs and implements DevOps-like practices and pipelines across the ML lifecycle
- ML Platform Engineer: Builds and operates shared ML tools, infrastructure and services
- DataOps Engineer: Manages data pipelines and quality for ML training and inference
- ML Product Manager: Defines the model strategy, roadmap and success criteria
- ML Compliance Officer: Oversees responsible AI governance and controls
Building this cross-functional "MLOps squad" requires a mix of hiring, upskilling and strategic partnering. Companies should invest in ML/data engineering and AI product management as key critical skills.
Step 5: Select MLOps Tools and Platforms
A robust MLOps platform consists of several key components:
- Data pipeline tools for ingest, prep, quality, labeling (DVC, Apache Atlas)
- Experiment tracking and model registry (MLflow, WandB)
- Model CI/CD for training and deployment pipelines (Kubeflow, TensorFlow Extended)
- Feature store for reusable model inputs (Feast, Tecton)
- Model serving for online/batch inference (Seldon, KFServing)
- Model monitoring and observability (Fiddler, Arthur, Arize)
Organizations may choose to assemble an MLOps stack from best-of-breed open source tools or opt for an end-to-end enterprise platform from cloud providers (AWS SageMaker, Azure ML, Google Vertex AI) or ISVs (Cloudera, Dataiku, Databricks).
Key considerations in picking an MLOps platform include support for multi-cloud, open source tools, and integration with existing DevOps pipelines and software supply chains.
Step 6: Design MLOps Processes and Practices
Gartner advocates a "DCCEE" lifecycle to structure key MLOps processes:
- Discover business objectives and success criteria
- Compose data engineering and model training pipelines
- Certify model quality and governance
- Exchange model serving and A/B testing
- Evaluate model monitoring and business value measurement
Each phase requires collaboration between data scientists, data/ML engineers and IT ops. Sample artifacts include:
- Model cards to document training metadata, performance and intended use
- ML pipeline templates for feature and model CI/CD with A/B testing
- Checklists for data/model validation, security and compliance controls
- Runbooks for model deployment, explainability and monitoring
- Playbooks for model incident response and remediation
Teams should adopt agile practices like sprints, gitflow, and pair programming between data scientists and engineers. Integrating MLOps processes with broader SDLC gates is also critical.
Step 7: Pilot and Scale MLOps Incrementally
With the right skills, tools and processes in place, organizations can pilot MLOps on an initial set of use cases. Some proven practices:
- Pick 2-3 use cases to validate MLOps approach and deliver quick wins
- Establish joint success criteria spanning model quality and speed to value
- Instrument models heavily for explainability, fairness and performance monitoring
- Treat models as products with clear ownership, roadmaps and retirement plans
- Codify best practices into templates and evangelize learnings
With the patterns established, organizations can then scale MLOps to more teams, use cases and domains at lower cost and effort. Over time, MLOps should become a repeatable, managed service within a shared ML platform (what Gartner calls "ML PaaS").
Step 8: Iterate and Continuously Improve
MLOps is a continuous evolution rather than a destination. Some strategies for ongoing maturation:
- Track a balanced set of KPIs across model velocity, quality and value
- Conduct blameless post-mortems to extract failure patterns and improvement areas
- Collaborate across ML PaaS, DataOps and ModelOps teams to optimize end-to-end lifecycle
- Stay abreast of emerging architecture patterns like feature stores, vector databases, and model registries
- Join industry and open-source communities like MLCommons, MLSpec and Kubeflow
- Extend MLOps to support advanced techniques like AutoML, multi-modal learning and reinforcement learning
Conclusion and Key Takeaways
To recap, MLOps is a key enabler for organizations to industrialize machine learning and harness its transformative potential. By adopting DevOps principles to ML workloads, MLOps brings greater agility, reliability and scalability to modeling and allows data science teams to rapidly deliver real-world value.
However, implementing MLOps requires a concerted organizational and technology transformation. Companies need to establish a compelling vision, assemble dedicated teams, select an enabling toolchain, and institute robust operating practices to succeed with MLOps. By following a structured and iterative roadmap, organizations can accelerate their path to MLOps maturity.
While MLOps is still an emerging space, several clear lessons are already apparent:
- MLOps is a collaborative, cross-functional effort that requires bridging historical silos between data science, data engineering, IT and business
- Organizations need to balance speed and quality by automating ML pipelines where possible while still allowing for domain-specific flexibility
- Responsible AI practices around model fairness, security, privacy and transparency must be operationalized in lockstep with MLOps
- Companies should leverage a combination of open standards, cloud services, and commercial platforms vs. reinventing the entire MLOps stack
Ultimately, the journey to MLOps is more than just tools and processes. It requires a fundamental mindset shift and cultural embrace of rapid experimentation, incremental delivery, and shared accountability across data science and operations. But for organizations that get MLOps right, it can become a major source of competitive differentiation to harness the power of continuous learning and intelligence.