Importance of Model Robustness and Stability for Trust in AI
Protecting your productionalized model from uncertain predictions is the subject of AI humility, but identifying those weaknesses in advance and tailoring your modeling approach to minimize them is the core concept behind robust and stable model performance.
What Does It Mean for an AI System to Be Robust and Stable?
The answer to this question is intimately tied to another: How does your model respond to changes in the data? You can explore these questions by subjecting your model to testing.
For model stability, the relevant changes in your data are typically very small disturbances, against which you want ideally to see stable and consistent behavior from your model. Unless there is a recognized hard threshold at which behavior should change, when an input variable is disturbed a small amount, the resulting prediction should likely change only a small amount.
For model robustness, it is more appropriate to think about large disturbances or values that the model has never seen before, which are likely the result of one of three scenarios:
- A change in the process introduced new values
- Certain values are missing when they weren’t before
- These new values are associated with ultimately unrealistic and erroneous inputs
Although additional protection against such outlying inputs should be operationalized as part of AI humility, it is worth understanding how your model’s predictions will respond to these data disturbances. Will your prediction blow up and assume a very high value? Will it plateau asymptotically or be driven to zero?
Sometimes you can anticipate these issues in processing data before you send it to a model to score. For example, consider a model exposed to a value it has never seen before. In a pricing model for insurance, you input information on the make and model on the car. The training data has been cleaned, and instances of “Lexus” are properly capitalized. But a sales representative on a call using the model to provide a quote enters “lexus”. Ideally, the model will not treat this as a never-before-seen value, but will have a preprocessing step to ensure it is case-insensitive and behaves as expected.
Reproducibility is a special case of data disturbance–no disturbance at all. An auditable, reliable model should return the same prediction for the same input values consistently.
How Do I Ensure That Model Behavior Is Stable, Robust, and Reproducible?
Although the details of these concerns might be unique to machine learning, best practices in software development already outline steps to help ensure that a final product is robust and stable.
It’s important to evaluate the accuracy of your model throughout the development process. Find out how to best leverage metrics and visualizations to evaluate whether you’ve achieved accuracy befitting a production-ready AI system.
The speed of model scoring directly impacts how it can be used in your business process. Find out how the speed of predictions influences their trustworthiness.