Model Assertions for Monitoring and Improving ML Models
Not on the map. Why?
Abstract (arXiv)
ML models are increasingly deployed in settings with real world interactions such as vehicles, but unfortunately, these models can fail in systematic ways. To prevent errors, ML engineering teams monitor and continuously improve these models. We propose a new abstraction, model assertions, that adapts the classical use of program assertions as a way to monitor and improve ML models. Model assertions are arbitrary functions over a model's input and output that indicate when errors may be occurring, e.g., a function that triggers if an object rapidly changes its class in a video. We propose methods of using model assertions at all stages of ML system deployment, including runtime monitoring, validating labels, and continuously improving ML models. For runtime monitoring, we show that model assertions can find high confidence errors, where a model returns the wrong output with high confidence, which uncertainty-based monitoring techniques would not detect. For training, we propose two methods of using model assertions. First, we propose a bandit-based active learning algorithm that can sample from data flagged by assertions and show that it can reduce labeling costs by up to 40% over traditional uncertainty-based methods. Second, we propose an API for generating "consistency assertions" (e.g., the class change example) and weak labels for inputs where the consistency assertions fail, and show that these weak labels can improve relative model quality by up to 46%. We evaluate model assertions on four real-world tasks with video, LIDAR, and ECG data.
Key facts. Cited by 22 papers in the map (data through 7 Oct 2026). First posted on arXiv 3 Mar 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 6; 2022: 2; 2023: 4; 2024: 4; 2025: 3; 2026: 3.
22 papers.
Sort:
By area:
- 2021Collaboration Challenges in Building ML-Enabled Systems: Communication, Documentation, Engineering, and Processcited by 56
- 2023DSPy Assertions: Computational Constraints for Self-Refining Language Model Pipelinescited by 27
- 2024SPADE: Synthesizing Data Quality Assertions for Large Language Model Pipelinescited by 19
- 2021Benchmarking Safety Monitors for Image Classifiers with Machine Learningcited by 14
- 2021Did the Model Change? Efficiently Assessing Machine Learning API Shiftscited by 13
- 2022Trust in AI: Interpretability is not necessary or sufficient, while black-box interaction is necessary and sufficientcited by 13
- 2024Swiss Cheese Model for AI Safety: A Taxonomy and Reference Architecture for Multi-Layered Guardrails of Foundation Model Based Agentscited by 13
- 2021Enabling SQL-based Training Data Debugging for Federated Learningcited by 8
- 2021Reproducibility, Replicability and Beyond: Assessing Production Readiness of Aspect Based Sentiment Analysis in the Wildcited by 7
- 2022HAPI: A Large-scale Longitudinal Dataset of Commercial ML API Predictionscited by 6
- 2023An investigation of challenges encountered when specifying training data and runtime monitors for safety critical ML applicationscited by 4
- 2023Framework for Certification of AI-Based Systemscited by 3
10 more
- 2024Safety Monitoring of Machine Learning Perception Functions: a Surveycited by 3
- 2021Explainability-aided Domain Generalization for Image Classificationcited by 1
- 2024DEBUG-HD: Debugging TinyML models on-device using Hyper-Dimensional computingcited by 1
- 2026Self-Aware Object Detection via Degradation Manifoldscited by 1
- 2023MGit: A Model Versioning and Management Systemcited by 0
- 2025Semantic Integrity Constraints: Declarative Guardrails for AI-Augmented Data Processing Systemscited by 0
- 2025Graph Lineages and Skeletal Graph Productscited by 0
- 2025Perspectives on a Reliability Monitoring Framework for Agentic AI Systemscited by 0
- 2026The Machine Learning Canvas: Empirical Findings on Why Strategy Matters More Than AI Code Generationcited by 0
- 2026Knowledge-Guided Failure Prediction: Detecting When Object Detectors Miss Safety-Critical Objectscited by 0
- 2026Knowledge-Guided Failure Prediction: Detecting When Object Detectors Miss Safety-Critical Objects26 Mar 2026
- 2026Self-Aware Object Detection via Degradation Manifolds20 Feb 2026
- 2026The Machine Learning Canvas: Empirical Findings on Why Strategy Matters More Than AI Code Generation5 Jan 2026
- 2025Perspectives on a Reliability Monitoring Framework for Agentic AI Systems12 Nov 2025
- 2025Graph Lineages and Skeletal Graph Products31 Jul 2025
- 2025Semantic Integrity Constraints: Declarative Guardrails for AI-Augmented Data Processing Systems1 Mar 2025
- 2024Safety Monitoring of Machine Learning Perception Functions: a Survey9 Dec 2024
- 2024DEBUG-HD: Debugging TinyML models on-device using Hyper-Dimensional computing16 Nov 2024
- 2024Swiss Cheese Model for AI Safety: A Taxonomy and Reference Architecture for Multi-Layered Guardrails of Foundation Model Based Agents5 Aug 2024
- 2024SPADE: Synthesizing Data Quality Assertions for Large Language Model Pipelines5 Jan 2024
- 2023DSPy Assertions: Computational Constraints for Self-Refining Language Model Pipelines20 Dec 2023
- 2023MGit: A Model Versioning and Management System14 Jul 2023
10 more
- 2023Framework for Certification of AI-Based Systems21 Feb 2023
- 2023An investigation of challenges encountered when specifying training data and runtime monitors for safety critical ML applications31 Jan 2023
- 2022HAPI: A Large-scale Longitudinal Dataset of Commercial ML API Predictions18 Sep 2022
- 2022Trust in AI: Interpretability is not necessary or sufficient, while black-box interaction is necessary and sufficient10 Feb 2022
- 2021Collaboration Challenges in Building ML-Enabled Systems: Communication, Documentation, Engineering, and Process19 Oct 2021
- 2021Benchmarking Safety Monitors for Image Classifiers with Machine Learning4 Oct 2021
- 2021Enabling SQL-based Training Data Debugging for Federated Learning26 Aug 2021
- 2021Did the Model Change? Efficiently Assessing Machine Learning API Shifts29 Jul 2021
- 2021Explainability-aided Domain Generalization for Image Classification5 Apr 2021
- 2021Reproducibility, Replicability and Beyond: Assessing Production Readiness of Aspect Based Sentiment Analysis in the Wild23 Jan 2021
- 2021Collaboration Challenges in Building ML-Enabled Systems: Communication, Documentation, Engineering, and Processcited by 56
- 2023DSPy Assertions: Computational Constraints for Self-Refining Language Model Pipelinescited by 27
- 2021Benchmarking Safety Monitors for Image Classifiers with Machine Learningcited by 14
- 2021Did the Model Change? Efficiently Assessing Machine Learning API Shiftscited by 13
- 2022Trust in AI: Interpretability is not necessary or sufficient, while black-box interaction is necessary and sufficientcited by 13
- 2021Enabling SQL-based Training Data Debugging for Federated Learningcited by 8
- 2021Reproducibility, Replicability and Beyond: Assessing Production Readiness of Aspect Based Sentiment Analysis in the Wildcited by 7
- 2022HAPI: A Large-scale Longitudinal Dataset of Commercial ML API Predictionscited by 6
- 2023An investigation of challenges encountered when specifying training data and runtime monitors for safety critical ML applicationscited by 4
- 2023Framework for Certification of AI-Based Systemscited by 3
- 2024Safety Monitoring of Machine Learning Perception Functions: a Surveycited by 3
- 2021Explainability-aided Domain Generalization for Image Classificationcited by 1
12 most cited of 18 All 18 (JSON)
- 2026Knowledge-Guided Failure Prediction: Detecting When Object Detectors Miss Safety-Critical Objects26 Mar 2026
- 2026Self-Aware Object Detection via Degradation Manifolds20 Feb 2026
- 2026The Machine Learning Canvas: Empirical Findings on Why Strategy Matters More Than AI Code Generation5 Jan 2026
- 2025Graph Lineages and Skeletal Graph Products31 Jul 2025
- 2024Safety Monitoring of Machine Learning Perception Functions: a Survey9 Dec 2024
- 2024DEBUG-HD: Debugging TinyML models on-device using Hyper-Dimensional computing16 Nov 2024
- 2023DSPy Assertions: Computational Constraints for Self-Refining Language Model Pipelines20 Dec 2023
- 2023MGit: A Model Versioning and Management System14 Jul 2023
- 2023Framework for Certification of AI-Based Systems21 Feb 2023
- 2023An investigation of challenges encountered when specifying training data and runtime monitors for safety critical ML applications31 Jan 2023
- 2022HAPI: A Large-scale Longitudinal Dataset of Commercial ML API Predictions18 Sep 2022
- 2022Trust in AI: Interpretability is not necessary or sufficient, while black-box interaction is necessary and sufficient10 Feb 2022
12 newest of 18 All 18 (JSON)