Skip to main content
QUICK REVIEW

[Paper Review] Using AntiPatterns to avoid MLOps Mistakes

Nikhil Muralidhar, Sathappah Muthiah|arXiv (Cornell University)|Jun 30, 2021
Software Engineering ResearchComputer Science36 references16 citations
TL;DR

This paper introduces a catalog of anti-patterns in MLOps within financial analytics, using them as a structured vocabulary to identify and resolve recurring pitfalls in model development and deployment. By framing flawed practices as anti-patterns, the authors enable clearer communication, faster debugging, and improved governance—particularly through human-in-the-loop design and model certification authorities—leading to more robust, auditable, and ethically sound ML pipelines at scale.

ABSTRACT

We describe lessons learned from developing and deploying machine learning models at scale across the enterprise in a range of financial analytics applications. These lessons are presented in the form of antipatterns. Just as design patterns codify best software engineering practices, antipatterns provide a vocabulary to describe defective practices and methodologies. Here we catalog and document numerous antipatterns in financial ML operations (MLOps). Some antipatterns are due to technical errors, while others are due to not having sufficient knowledge of the surrounding context in which ML results are used. By providing a common vocabulary to discuss these situations, our intent is that antipatterns will support better documentation of issues, rapid communication between stakeholders, and faster resolution of problems. In addition to cataloging antipatterns, we describe solutions, best practices, and future directions toward MLOps maturity.

Motivation & Objective

  • To document recurring anti-patterns in enterprise-scale MLOps within financial analytics to improve model reliability and operational maturity.
  • To provide a shared vocabulary for stakeholders to communicate issues more effectively and avoid blamestorming during model failures.
  • To reframe ML deployment as a multi-stage decision loop involving humans, not just predictive performance, to enhance ethical and operational accountability.
  • To advocate for model certification authorities and structured governance to ensure compliance, auditability, and risk control in financial ML systems.
  • To support long-term MLOps maturity through data lineage, assertions, model ensembles, and lifecycle tracking.

Proposed method

  • The authors identify and document anti-patterns from real-world MLOps deployments in financial institutions, particularly in treasury settlement fail forecasting and fraud detection.
  • They propose a four-state decision pipeline model (including model prediction, notification, intervention, and outcome states) to represent complex operational realities beyond binary classification.
  • The method emphasizes using assertions and data lineage tracking to ensure data quality and enable audit trails across model lifecycles.
  • Ensemble modeling is recommended to maintain remedial and compensatory pipelines for fault tolerance and model resilience.
  • A human-in-the-loop framework is embedded at multiple stages to allow for intervention, feedback, and ethical oversight in model decisions.
  • The approach integrates reinforcement learning principles to model penalties for undesirable states (e.g., undetected fraud) and guide model training toward safer outcomes.

Experimental results

Research questions

  • RQ1What recurring anti-patterns in MLOps lead to failures in enterprise-scale financial ML deployments?
  • RQ2How can anti-patterns be used as a shared vocabulary to improve communication and accelerate resolution across ML stakeholders?
  • RQ3In what ways does embedding human oversight into the ML decision pipeline improve ethical and operational outcomes?
  • RQ4How can model certification authorities enhance compliance, auditability, and risk management in financial ML systems?
  • RQ5What role do data lineage, assertions, and model ensembles play in building robust, traceable, and resilient MLOps pipelines?

Key findings

  • The authors identified and documented multiple anti-patterns in financial MLOps, including poor data quality, lack of feedback loops, and insufficient human oversight, which commonly lead to model failures.
  • Using anti-patterns as a communication tool reduced blamestorming and accelerated root-cause analysis, enabling faster model refactoring and deployment.
  • The inclusion of notification and intervention layers in the ML pipeline created four distinct operational states, revealing complex ethical and performance trade-offs not captured by standard evaluation metrics.
  • Model certification authorities were found to be essential for ensuring regulatory compliance, risk control, and auditability in high-stakes financial ML applications.
  • Data assertions and lineage tracking significantly improved data quality and enabled traceability for retraining and re-tuning in production environments.
  • Ensemble modeling with compensatory pipelines increased system resilience, particularly in high-impact scenarios like fraud detection where false negatives carry high penalties.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.