University of Alberta
Counterfactual Example Generation Driven by Rule-Based Explanations
Abstract
dc:description.abstractExplainable AI is becoming increasingly important, and much research now exists which either extends existing explanation methods or proposes new ones. These methods are becoming increasingly complex in order to address the complexity of the black-box models that they explain. Medicine, finance, and law are only a few of the critical areas which require explanations when an AI model is used. In these areas, the explanation needs to be clear and straightforward, if there is an issue then blame needs to be accurately attributed to the black-box model. Complex explainers run counter to this goal, the explainer itself is becoming increasingly unexplainable. In this work, we improve an existing method, BARBE, with limited increases to its complexity. We do so by using multivariate normal distributions -- in place of a simple normal distribution -- when producing the perturbed training samples. The classes in perturbed data are also balanced for further improvements. We use these to both improve a measure of model alignment, fidelity, and a trustworthiness related measure, stability. Both values are improved, making our proposed changes, BARBE+PB, a significant improvement over the methods we compared with: LIME, S-LIME, VAE-LIME, and LORE. With stability and fidelity improved, we went on to use the explanation -- in the form of association rules -- to generate counterfactual examples. Counterfactuals are an important ``what-if" tool for users, but the current methods for finding them tend to assume that the black-box outputs a numeric probability for each label. This is not realistic for all applications. BARBE only expects labels from the black-box so we can use the rules from BARBE as a replacement for probabilities. By selecting significant rules and applying them to the sample we can guide the counterfactual generation process while minimizing changes to the sample, improving counterfactual feasibility and lowering cost. This approach remains in-line with our goal, the use of rules is simple and straightforward. Using our approach, we were able to improve the distance and realism of counterfactuals as opposed to the DiCE, LORE, and EECE methods.
Degree
thesis:*- Name thesis:degree_name
- Master of Science
- Level thesis:degree_level
- Master's
- Grantor
- University of Alberta
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Smith, Iain N
- Advisor dc:contributor.advisor
-
- Zaiane, Osmar (Computing Science)
Subjects
dc:subject × 3Rights
dc:rights- Statement dc:rights
-
- This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law.
- Licence dc:rights.uri
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- DOI dc:identifier.doi
- https://doi.org/10.7939/84450