[Paper Review] A Methodology and Software Architecture to Support Explainability-by-Design
This paper proposes a methodology and software architecture for Explainability-by-Design, enabling proactive integration of explanation capabilities into decision-making systems. It introduces a three-phase workflow—focused here on technical design—where requirements are translated into reusable configurations that generate provenance traces from application logs, enabling personalized explanations via queryable data; the approach demonstrated in two scenarios achieved explanation development in as little as two hours per sentence.
Algorithms play a crucial role in many technological systems that control or affect various aspects of our lives. As a result, providing explanations for their decisions to address the needs of users and organisations is increasingly expected by laws, regulations, codes of conduct, and the public. However, as laws and regulations do not prescribe how to meet such expectations, organisations are often left to devise their own approaches to explainability, inevitably increasing the cost of compliance and good governance. Hence, we envision Explainability-by-Design, a holistic methodology characterised by proactive measures to include explanation capability in the design of decision-making systems. The methodology consists of three phases: (A) Explanation Requirement Analysis, (B) Explanation Technical Design, and (C) Explanation Validation. This paper describes phase (B), a technical workflow to implement explanation capability from requirements elicited by domain experts for a specific application context. Outputs of this phase are a set of configurations, allowing a reusable explanation service to exploit logs provided by the target application to create provenance traces of the application's decisions. The provenance then can be queried to extract relevant data points, which can be used in explanation plans to construct explanations personalised to their consumers. Following the workflow, organisations can design their decision-making systems to produce explanations that meet the specified requirements. To facilitate the process, we present a software architecture with reusable components to incorporate the resulting explanation capability into an application. Finally, we applied the workflow to two application scenarios and measured the associated development costs. It was shown that the approach is tractable in terms of development time, which can be as low as two hours per sentence.
Motivation & Objective
- To address the growing regulatory and societal demand for explainable AI in decision-making systems.
- To reduce the cost and complexity of compliance with explainability requirements by embedding explanation capability early in the system design lifecycle.
- To provide a reusable, modular software architecture that supports the implementation of explanation services across diverse application contexts.
- To enable domain experts and developers to collaboratively define and implement explanation requirements through a standardized technical workflow.
- To demonstrate the feasibility and efficiency of the approach through real-world application scenarios with measurable development times.
Proposed method
- The methodology is structured in three phases: Explanation Requirement Analysis, Explanation Technical Design, and Explanation Validation, with this paper focusing on the second phase.
- A technical workflow transforms domain-specific explanation requirements into system configurations that define how logs from the target application are processed.
- The workflow generates provenance traces—structured records of decision-making processes—by analyzing application logs and capturing causal dependencies.
- These provenance traces are stored in a queryable format, allowing runtime extraction of relevant data points for explanation generation.
- A reusable software architecture is proposed, composed of modular components that integrate with existing applications to expose explanation services.
- The architecture supports dynamic explanation personalization by enabling queries over provenance data based on consumer-specific needs.
Experimental results
Research questions
- RQ1How can explanation capabilities be systematically and proactively integrated into the design of decision-making systems?
- RQ2What technical workflow enables the translation of domain-specific explanation requirements into implementable system configurations?
- RQ3How can provenance traces be automatically generated from application logs to support explanation generation?
- RQ4What software architecture enables reusable, scalable, and customizable explanation services across different applications?
- RQ5What is the practical development cost of implementing explanation capabilities using this methodology in real-world scenarios?
Key findings
- The methodology enables the implementation of explanation capabilities with a development time as low as two hours per explanation sentence in real-world scenarios.
- The approach supports the creation of personalized explanations by enabling targeted queries over provenance traces derived from application logs.
- The proposed software architecture allows for modular integration of explanation services into existing applications with minimal customization.
- The workflow successfully translates high-level explanation requirements into concrete, executable configurations for explanation generation.
- The methodology reduces the risk of ad hoc or inconsistent explanation implementations by enforcing a standardized, design-time approach.
- The evaluation across two application scenarios confirms the approach is tractable and scalable for practical deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.