=Paper=
{{Paper
|id=Vol-3168/XAILA2021ICAIL_paper_3
|storemode=property
|title=Discovering the Rationale of Decisions: Experiments on Aligning Learning and Reasoning
|pdfUrl=https://ceur-ws.org/Vol-3168/XAILA2021ICAIL_paper_3.pdf
|volume=Vol-3168
|authors=Cor Steging,,Bart Verheij,,Silja Renooij
|dblpUrl=https://dblp.org/rec/conf/icail/StegingVR21
}}
==Discovering the Rationale of Decisions: Experiments on Aligning Learning and Reasoning==
Discovering the Rationale of Decisions:
Experiments on Aligning Learning and
Reasoning
Cor Steging1 , Silja Renooij2 , and
Bart Verheij1
1
Bernoulli Institute of Mathematics, Computer Science and Artificial Intelligence,
University of Groningen
2
Department of Information and Computing Sciences, Utrecht University
Abstract. In AI and law, systems that are designed for decision support
should be explainable when pursuing justice. In order for these systems
to be fair and responsible, they should make correct decisions and make
them using a sound and transparent rationale. In this paper, we intro-
duce a knowledge-driven method for model-agnostic rationale evaluation
using dedicated test cases, similar to unit-testing in professional software
development. We apply this new method in a set of machine learning ex-
periments aimed at extracting known knowledge structures from artificial
datasets from fictional and non-fictional legal settings. We show that our
method allows us to analyze the rationale of black box machine learning
systems by assessing which rationale elements are learned or not. Fur-
thermore, we show that the rationale can be adjusted using tailor-made
training data based on the results of the rationale evaluation.
Keywords: Responsible AI · Explainable AI · Machine Learning.
1 Introduction
In AI and Law, explainability is a key requirement in system design, due to
the need for the justification of decisions. For machine-supported decisions, this
is nowadays encoded in the GDPR’s right to explanation. Four types of ex-
planations are distinguished [Miller, 2019] and have been applied in AI and
Law [Atkinson et al., 2020b]: Contrastive explanations show why a decision is
made and others are not. Examples include HYPO’s counterexamples and hy-
pothetical situations [Rissland and Ashley, 1987, Ashley, 1990] and argument
diagrams [Verheij, 2003a]. In selective explanations, the focus is on the most
salient elements needed, for instance by the use of the critical questions of ar-
gumentation schemes [Atkinson et al., 2020a, Verheij, 2003b]. Probabilistic ex-
planations are grounded in statistical correlations, and are less applicable in
law with its focus on specific circumstances. An example is the explanation of
evidential Bayesian networks [Vlek et al., 2016] in terms of scenarios and the ev-
idence for and against them. Lastly, social explanations emphasise the transfer
Copyright © 2022 for this paper by its authors. Use permitted under Creative Commons License
Attribution 4.0 International (CC BY 4.0).
2 Steging et al.
of knowledge between individuals, as in models of the dialogue between parties
and in courts, specifying shared and unshared commitments Hage et al. [1993],
Gordon [1995], Atkinson et al. [2020a].
This requirement of explainability is problematic for the application of cen-
tral machine learning techniques in law. Neural networks, for example, are known
to perform well, but behave like a black box algorithm. Hence, explanation tech-
niques have been developed to ‘open the black box’ (cf. LIME [Ribeiro et al.,
2016], SHAP [Lundberg and Lee, 2017]). Even in the domain of vision (where
the successes of neural networks are especially significant), the necessity of such
methods is underpinned by studies regarding adversarial attacks that show that
slight perturbations of images, invisible to the human observer, can radically
change the outcome of a classifier [Goodfellow et al., 2015].
In this paper, we expand upon the method introduced in [Steging et al.,
2021], where we investigate black box machine learning methods with a focus
on proper explainability, and not only in terms of accuracy as in the standard
machine learning protocol. We are in particular interested in the discovery of
the rationale underlying decisions, where the rationale is the knowledge struc-
ture that can justify a decision, such as the rule applied. We aim to measure
the quality of rationale discovery, with an eye on the possibility of improving
rationale discovery.
To measure and possibly improve rationale discovery, we create dedicated
test datasets, on which a machine learning system can only perform well if it
has learned a particular component of the knowledge structure that defined
the data. The idea is similar to how unit testing works in professional software
development: we define a set of cases, targeting a specific component, in which
we know what the answer should be, and compare that to the output that the
system gives.
To be able to focus on what is methodologically feasible, we do not use
natural language corpora (as for instance in argument mining [Mochales Palau
and Moens, 2009, Wyner et al., 2010], conceptual retrieval [Grabmair et al.,
2015] or case prediction [Ashley, 2019, Medvedeva et al., 2019, Brüninghaus and
Ashley, 2003]). Instead we work with datasets of artificial decisions with known
underlying generating rationale.
Our work builds on a study investigating whether neural networks are able
to tackle open texture problems [Bench-Capon, 1993]. The study used a fictional
legal domain (also investigated in [Wardeh et al., 2009, Možina et al., 2005]), in
which the eligibility for a welfare benefit for elderly citizens is determined based
on six conditions. Artificial datasets were generated specifying personal infor-
mation of elderly citizens with their eligibility for the welfare benefit. Multilayer
perceptrons were trained and tested on these datasets, and managed to perform
with high accuracy scores (above 98%). It was shown that the neural networks
were unable to properly learn two of the six conditions. By making adjustments
to the training dataset, the neural networks were able to learn conditions more
adequately, while maintaining similar accuracy scores. But also after adjustment,
the conditions that defined the data were not learned fully correctly. Other ear-
Discovering the Rationale of Decisions 3
lier discussions of neural networks in law are [Philipps and Sartor, 1999, Hunter,
1999, Stranieri et al., 1999].
In the upcoming sections, the study by Bench-Capon [1993] will first be repli-
cated as closely as possible, using modern, widely-used neural network methods,
in order to affirm whether the claims made in 1993 still hold today. Then a
simplified version of the welfare benefit domain is examined to see how well the
networks are able to extract a simplified rationale. Lastly, we study a real legal
setting, namely Dutch tort law. That domain uses only Boolean variables, but
allows for exceptions to underlying rules.
2 Domains and Datasets
For each of the three domains considered in this paper, this section describes
the underlying knowledge structure using logic, from which we will generate
datasets to train a series of neural networks. These networks will subsequently
be analysed using a method we propose for assessing the quality of their rational
discovery. To this end we need two types of datasets for the purpose of testing.
The first are standard test sets sampled from the complete domain to evaluate
the accuracy of the networks. The second type is a dedicated test set designed
to target a specific aspect of the domain knowledge. This section describes all
datasets we use.
2.1 Domains
Welfare benefit domain This fictional domain introduced in [Bench-Capon,
1993] concerns the eligibility of a person for a welfare benefit to cover the ex-
penses for visiting their spouse in the hospital, and can be formalised as follows:
Eligible(x) ⇐⇒ C1 (x) ∧ C2 (x) ∧ C3 (x) ∧ C4 (x) ∧ C5 (x) ∧ C6 (x)
C1 (x) ⇐⇒ (Gender(x) = f emale ∧ Age(x) ≥ 60)∨
(Gender(x) = male ∧ Age(x) ≥ 65)
C2 (x) ⇐⇒ |Con1 (x), Con2 (x), Con3 (x), Con4 (x), Con5 (x)| ≥ 4
C3 (x) ⇐⇒ Spouse(x)
C4 (x) ⇐⇒ ¬Absent(x)
C5 (x) ⇐⇒ ¬Resources(x) ≥ 3000
C6 (x) ⇐⇒ (T ype(x) = in ∧ Distance(x) < 50)∨
(T ype(x) = out ∧ Distance(x) ≥ 50)
That is, a person is eligible iff he/she is of pensionable age (60 for a woman,
65 for a man), paid four out of the last five contributions Coni , is the patient’s
spouse, is not absent from the UK, has capital resources not amounting to more
than £3,000, and lives at a distance of less than 50 miles from the hospital if the
relative is an in-patient, or beyond that for an out-patient.
The six independent conditions for eligibility are defined in terms of 12 vari-
ables, which are the features of the generated datasets. These features and their
possible values are shown in Table 1. In addition to these 12 features, the datasets
4 Steging et al.
Table 1: Features in the welfare benefit domain.
Feature Values
Age 0 – 100 (all integers)
Gender male or female
Con1 ,. . . , Con5 true or false
Spouse true or false
Absent true or false
Resources 0 – 10,000 (all integers)
T ype (Patient type) in or out
Distance (to the hospital) 0 – 100 (all integers)
will contain 52 noise features unrelated to eligibility, just as in the original ex-
periment, giving a total of 64 features plus an eligibility label for each instance.
All datasets are valid in the sense that the given eligibility labels follow from
evaluating the 6 conditions above.
Simplified domain Experiments with different models for the welfare domain
all concluded that it was not possible to extract all six conditions for eligibility
[Bench-Capon, 1993, Wardeh et al., 2009, Možina et al., 2005]. The complexity
of the original problem with 6 different conditions and 64 features, complicate
a proper analysis of the networks’ rationale, since each condition and feature
could potentially influence it. To facilitate this analysis, we simplified the original
problem in two ways. First, the 52 noise variables, which did not seem to affect
the performance of the networks [Bench-Capon, 1993], are removed. Secondly,
we define eligibility solely by the age-gender (C1 ) and patient-distance (C6 )
conditions that were examined in the original experiment to justify the rationale
of the network:
Eligible(x) ⇐⇒ C1 (x) ∧ C6 (x)
Eligibility is thus determined through a combination of a XOR-like function (C6 )
and a nuanced threshold function (C1 ).
Tort law domain Our third domain concerns Dutch tort law: articles 6:162
and 6:163 of the Dutch civil code that describe when a wrongful act is commit-
ted and resulting damages must be repaired. This ‘duty to repair’ (dut) can be
formalised as follows:
dut(x) ⇐⇒ c1 (x) ∧ c2 (x) ∧ c3 (x) ∧ c4 (x) ∧ c5 (x)
c1 (x) ⇐⇒ cau(x)
c2 (x) ⇐⇒ ico(x) ∨ ila(x) ∨ ift(x)
c3 (x) ⇐⇒ vun(x) ∨ (vst(x) ∧ ¬jus(x)) ∨ (vrt(x) ∧ ¬jus(x))
c4 (x) ⇐⇒ dmg(x)
c5 (x) ⇐⇒ ¬(vst(x) ∧ ¬prp(x))
Discovering the Rationale of Decisions 5
Fig. 1: Arguments and attacks (A) and their elementary propositions (B) in
Dutch tort law [Verheij, 2017].
where the elementary propositions are provided alongside an argumentative
model of the law in Figure 1 [Verheij, 2017], and conditions c2 and c3 capture
the legal notions of unlawfulness (unl ) and imputability (imp), respectively.
Compared to the fictional welfare domain, the Dutch tort law domain is
captured in 5 conditions for duty to repair (dut), based upon 10 Boolean features.
Each condition is a disjunction of one or more features, possibly with exceptions.
The feature capturing a violation of a statutory duty (vst) is present in both
condition c3 and c5 , rendering these dependent.
2.2 Datasets
For each experiment, we generate datasets of different types, for different pur-
poses3 For most types of datasets, the generating process is at least partly
stochastic and repeated for every repetition of an experiment. Using the same
3
The Jupyter notebooks used for data generation can be found in a Github repository:
https://github.com/CorSteging/DiscoveringTheRationaleOfDecisions
6 Steging et al.
type of dataset, for example in training and testing a neural network, does there-
fore not mean using the exact same dataset. Table 2 shows an overview of the
domains and their datasets, and illustrates their differences and similarities.
Welfare benefit datasets Within this domain, four types of datasets are gen-
erated, following the original study [Bench-Capon, 1993] as closely as possible:
type A, type B, Age-Gender and Patient-Distance datasets. Each dataset con-
tains the 12 features as defined in Table 1, as well as 52 noise features with
integer values ranging from 0 to 100. The original study used training sets with
2,400 instances, which is quite small by todays standards [Atkinson et al., 2020b].
To make sure conclusions are not the result of using too little data, we will also
include training sets with more data (50,000 instances).
Type A datasets are generated with either 2,400 instances or 50,000 instances.
Exactly half of the instances are eligible, creating a balanced label distribution,
as is common practice in machine learning problems. For the eligible instances,
feature values are generated (randomly where possible) such that they satisfy
the conditions C1 − C6 . For each condition, 16 th of the ineligible instances is de-
signed to fail on that specific condition; where possible the values of the features
involved are generated randomly such that the condition fails. All remaining fea-
tures in these instances are generated randomly across their full range of values
(see Table 1); as a result, it is possible for ineligible instances to fail on multiple
conditions, and some conditions will fail more often than others.
In the original 1993 study it was argued that it was too easy to achieve high
accuracy scores with networks trained and tested on type A datasets, which
contained an average of 4.1 conditions that were not satisfied for ineligible cases.
Using only 4 out of 6 conditions was shown to be sufficient for classifying 98.95%
of the instances correctly.
Type B datasets were subsequently introduced to make the problem more
challenging. These datasets differ from type A datasets only in that ineligible
instances fail on exactly one condition, rather than at least one condition; the
other five conditions are always satisfied. Type B datasets again contain either
2,400 instances or 50,000 instances.
The original study investigated whether “an acceptable rationale can be un-
covered by an examination of the net” [Bench-Capon, 1993]. To this end a set
of test cases was constructed in which all conditions except one were guaranteed
to be satisfied. From these it was concluded that the age-gender condition (C1 )
and the patient-distance condition (C6 ) are not learned by network. The original
paper does not specify how many test cases were constructed, nor exactly how
they were constructed. We will generate dedicated datasets that are tailor made
to evaluate whether the trained networks have actually uncovered these same
two conditions.
The Age-Gender datasets are generated by sampling the age and gender
features across their full range of values, this time considering only multiples
of 5 for age. The values for the other features are generated such that every
condition is satisfied except for the age-gender condition (C1 ). As a result, the
Discovering the Rationale of Decisions 7
Table 2: An overview of the three domains and their datasets. Datasets marked
with an asterisk are used for testing purposes only. For each type of dataset, the
size and label distribution is given. For each domain is indicated the number
and type of features, the number of type of conditions to be learned, whether or
not all cases are covered by the datasets (complete) and whether the domain is
fictional or real.
T/F label Features:
Domain Dataset Size distribution no. and type
Welfare benefit Type A 2,400/50,000 50%/50% 64
Type B (fail on 1) 2,400/50,000 50%/50% Boolean &
Age-Gender* 40,000 42.5%/57.5% numerical
Patient-Distance* 40,000 50%/50%
Simplified Type A 50,000 50%/50% 4
welfare benefit Type B (fail on 1) 50,000 50%/50% Boolean &
Age-Gender* 4,242 42.5%/57.5% numerical
Patient-Distance* 3,234 50%/50%
Tort law Regular 5,000/500 50%/50% 10
Unique* 1024 10.94%/89.06% Boolean
Unlawfulness* 168 66.67%/33.33%
Imputability* 128 87.5%/12.5%
Domain Conditions: no. and type Complete Fictional
Welfare benefit 6, Independent No Yes
Simplified 2, Independent No Yes
welfare benefit
Tort law 5, Dependent Yes No
eligibility of an instance in these datasets is solely determined by whether or not
condition C1 is satisfied. The Age-Gender sets contain 40,000 instances, with
every possible combination of values for age and gender occurring a 1000 times.
This gives a slightly unbalanced label distribution with 42.5% of the instances
being eligible, and 57.5% ineligible. Because the dataset is only used to test the
networks, rather than to train the network, this is not an issue.
The Patient-Distance datasets are similarly generated by sampling the dis-
tance and patient type features across their full range of values, this time con-
sidering only multiples of 5 for distance. The eligibility of an instance in these
datasets is thus determined by whether or not condition C6 is satisfied. The
Patient-Distance datasets also contain 40,000 instances, with every possible com-
bination of values for patient type and distance occurring a 1000 times. In these
datasets, exactly 50% of the instances is eligible.
Simplified datasets For the simplified welfare domain, the same type of datasets
are generated as above, with the same properties except that all noise features
and 8 of the 12 actual features are excluded. For type B datasets, this means
that ineligible instances fail on either C1 or C6 , but not on both, while in type
8 Steging et al.
A datasets the ineligible instances can fail on both conditions. Moreover, in the
Age-Gender dataset the patient-distance condition C6 is always satisfied, and
in the Patient-Distance dataset the age-gender condition C1 is always satisfied.
Type A and type B datasets again contain 50,000 instances each. The Age-
Gender dataset now contains only two features and 4,242 instances, that is, one
unique instance for every possible combination of age and gender. Likewise, the
Patient-Distance dataset contains 3,234 unique instances.
Tort law datasets With 10 Boolean features there are 210 = 1024 possible
unique cases that can be generated from the argumentation structure of the
tort law domain in Figure 1. Each case has a corresponding outcome for dut,
indicating whether or not there is a duty to repair someone’s damages. We will
again consider four types of datasets.
The unique dataset contains these 1024 unique instances for the 10 features
plus the label. In this dataset, there are 912 instances where dut is false and 112
instances where dut is true (11%).
The regular type datasets are generated such that dut is true in exactly half of
the instances. The sets are regular in the sense that balanced label distributions
are common in machine learning problems. These regular datasets are generated
by sampling uniformly from the subset of cases from the unique dataset, such
that each possible case is represented equally within the 50/50 label distribution.
In practice, only a subset of the possible cases is typically available and presented
to a network, upon which the network will have to learn to generalize to all
possible cases. In addition to generating regular type datasets with 5,000 cases,
we therefore also generate smaller regular type datasets with only 500 instances;
the latter contains 35.35% of the unique instances.
In the tort law domain we focus on the notions of unlawfulness (c2 ) and
imputability (c3 ) to assess whether the networks are able to discover conditions
in the data. For each of the two conditions, we again create a dedicated dataset.
The Unlawfulness dataset is the subset of the unique dataset in which the
features for the unlawfulness condition c2 can take on any of their values, while
the other features have values that are guaranteed to satisfy the remaining con-
ditions.Whether or not there is a duty to repair is therefore solely determined
by whether or not condition c2 is satisfied. All combinations of values of the
other features are considered. The Unlawfulness dataset therefore consists of
168 unique instances, of which 66.66% have a positive dut value.
The Imputability dataset is a similar subset of the unique dataset, but now
the features for the imputability condition (c3 ) can take on any value, provided
that the value of vst is such that condition c5 is satisfied. The value of dut(x)
now completely depends on whether or not condition c3 evaluates to true. Due
to the interdependency of conditions c3 and c5 , the Imputability dataset only
has 128 unique instances, with 87.5% of them having a positive dut value.
Discovering the Rationale of Decisions 9
3 Experimental setup and results
In this section we describe and motivate the experiments we performed and
report on their results.
3.1 Experiments
In order to demonstrate our method for assessing and improving rationale dis-
covery of models learned from data, we first need such models. Though our
method is model agnostic, we choose to use neural networks, like in [Bench-
Capon, 1993]. We assume that assessing and improving rationale discovery is
Table 3: Experimental setup. For each domain, every listed training set is used
in combination with all listed test sets.
Train on Test on
Welfare Type A (2,400 instances) Type A (2,400 instances)
benefit Type B (2,400 instances) Type B (2,400 instances)
Type A (50,000 instances) Age-Gender
Type B (50,000 instances) Patient-Distance
Simplified Type A Type A
welfare Type B Type B
benefit Age-Gender
Patient-Distance
Tort law Regular (5,000 instances) Regular (5,000 instances)
Regular (500 instances) Unique
Unlawfulness
Imputability
relevant only for models that are considered to be a good match with the data
they were learned from. Our first step, after training the above mentioned neu-
ral networks, is therefore to evaluate their performance on typical test sets in
terms of the standard accuracy measure. Subsequently we will evaluate the per-
formance of the networks on the dedicated, knowledge-driven test sets that were
specifically designed for assessing the networks’ quality of rationale discovery.
Neural network architectures In the original experiments in 1993, three
multilayer perceptrons were used with one, two and three hidden layers, re-
spectively [Bench-Capon, 1993]. These networks were created using the Aspirin
software [Leighton and Wieland, 1994], but the exact details regarding the net-
works and its parameters (e.g. the learning rate, activation function, gradient
descent method) were left out of the original publication. The networks all had
64 input nodes (one for each feature in the datasets), a varying number of nodes
in the hidden layers, and one output node that determines the eligibility.
10 Steging et al.
In this paper we will use a similar set-up and network architecture for all
three domains. The output is always a single node, representing either eligibility
or duty to repair, depending on the domain under consideration. The number of
input nodes corresponds to the number of features and is therefore dependent on
the domain (see Table 2). More specifically, the welfare benefit domain will have
64 input nodes, the simplified domain will have 4, and the tort law domain will
have 10 input nodes. The node configuration (i.e. number of nodes per layer) of
each network is as follows, where input represents the number of nodes in the
input layer:
– One hidden layer network: input-12-1
– Two hidden layer network: input-24-6-1
– Three hidden layer network: input-24-10-3-1
In the replication of the 1993 experiment, the MLPClassifier of the scikit-learn
package is used [Pedregosa et al., 2011]. The networks use the sigmoid function as
their activation function, which was the most common activation function when
the original study was done. The networks use the Adam stochastic gradient-
based optimizer [Kingma and Ba, 2015], with a constant learning rate of 0.001.
A total of 50,000 training iterations are used with a batch size of 50. Recall
that the focus of this study is not on creating the best possible classifier, but to
demonstrate our method of assessing rationale discovery.
Training and performance testing The three types of neural networks will
be trained and tested on a combination of different datasets, from each of the
three domains. A complete overview of the datasets used in the experiments is
shown in Table 3. This table shows the datasets that the networks will train
on, and the datasets that the networks will be tested with. For each domain,
every combination of training dataset and testing dataset is evaluated in terms
of the accuracy of the resulting network on the test data. Because some of the
datasets are stochastic (each generated dataset is slightly different), the whole
process of data generation, training and testing is repeated 50 times. The mean
classification accuracies along with their standard deviations will be reported.
To assess the rationale discovery capabilities of all the trained networks, we
study their performance on the dedicated test sets for the age-gender, patient-
distance, unlawfulness and imputability conditions. Performance will be mea-
sured both quantitatively, using standard accuracy, and qualitatively by a more
detailed comparison of actual and expected outcomes.
3.2 Results
We will first report the accuracy scores for all combinations of training and
testing datasets in the different domains and subsequently focus on rationale
discovery. Results will be discussed in detail in Section 4.
Discovering the Rationale of Decisions 11
Table 4: The accuracies obtained by the neural networks in the original study
[Bench-Capon, 1993].
Trained on training set A Trained on training set B
Test set A Test set B Test set A Test set B
1 hidden layer 99.25 72.25 99.25 97.91
2 hidden layers 98.90 76.67 99.00 98.08
3 hidden layers 98.75 74.33 unconverged unconverged
Table 5: The accuracies obtained by the neural networks in the replication study.
Trained on training set A
Test set A Test set B Age-Gender Patient-Distance
1 hidden layer 98.97±0.19 72.39±1.66 52.14±4.01 50.05±0.09
2 hidden layers 98.87±0.21 72.56±1.83 53.19±4.56 50.06±0.14
3 hidden layers 98.92±0.23 70.97±1.74 50.45±3.23 50.03±0.07
Trained on training set B
Test set A Test set B Age-Gender Patient-Distance
1 hidden layer 96.13±0.66 90.51±1.25 86.4±1.33 85.77±5.21
2 hidden layers 95.5±0.87 89.4±1.5 85.62±1.21 83.09±7.22
3 hidden layers 93.95±9.03 86.34±7.71 83.81±7.29 74.57±12.8
Table 6: The accuracies obtained by the neural networks in the replication study
with more training data.
Trained on training set A
Test set A Test set B Age-Gender Patient-Distance
1 hidden layer 99.8±0.03 80.98±1.47 60.22±3.87 64.44±2.87
2 hidden layers 99.79±0.04 83.49±1.86 65.04±5.12 66.5±3.24
3 hidden layers 99.78±0.05 82.89±2.05 64.45±5.6 64.2±3.1
Trained on training set B
Test set A Test set B Age-Gender Patient-Distance
1 hidden layer 99.64±0.17 98.53±0.15 98.51±0.47 97.17±0.46
2 hidden layers 99.28±0.36 98.06±0.35 97.75±0.9 96.53±0.3101
3 hidden layers 98.95±0.55 97.5±0.4 96.72±1.0 95.73±0.86
Accuracy Tables 5 – 8 show the mean classification accuracies over 50 runs,
together with their standard deviations, for the different combinations of training
and testing sets in the three domains. These tables include the quantitatively
measured performance on the various dedicated test sets. Tables 5 and 6 present
the results for the replication experiment with the original sizes of the Type
A and Type B datasets and for the replication experiment with more data,
respectively. The accuracies as reported in the orginal paper are provided in
Table 4 [Bench-Capon, 1993]). Results for the simplified welfare benefit domain
are shown in Table 7, and for the tort law domain in Table 8.
12 Steging et al.
Table 7: The accuracies obtained by the neural networks in the simplified welfare
domain.
Trained on training set A
Test set A Test set B Age-Gender Patient-Distance
1 hidden layer 99.12±0.06 98.2±0.15 99.68±0.1 97.75±0.05
2 hidden layers 99.61±0.14 99.2±0.28 99.88±0.1 98.14±0.53
3 hidden layers 99.48±0.27 99.01±0.47 99.7±0.46 98.06±0.61
Trained on training set B
Test set A Test set B Age-Gender Patient-Distance
1 hidden layer 99.46±0.06 99.04±0.12 99.67±0.06 98.04±0.31
2 hidden layers 99.77±0.14 99.6±0.25 99.78±0.18 99.09±0.71
3 hidden layers 99.51±0.78 99.38±0.37 99.63±0.47 98.8±0.66
Table 8: The accuracies obtained by the neural networks in the tort law domain.
Trained on all instances
General Unique Unlawfulness Imputability
1 hidden layer 100±0 100±0 100±0 100±0
2 hidden layers 100±0 100±0 100±0 100±0
3 hidden layers 99.86±0.37 99.76±0.66 99.67±1.83 99.5±1.56
Trained on smaller dataset
General Unique Unlawfulness Imputability
1 hidden layer 98.45±0.5 97.24±0.89 92.8±3.47 91.22±4.04
2 hidden layers 99.03±0.44 98.27±0.78 95.71±3.1 94.38±3.84
3 hidden layers 98.23±0.72 96.83±1.28 92.96±5.33 91.45±3.51
Rationale discovery Each dedicated test dataset is designed to measure how
well a model has learned a specific condition from the domain. Since performance
on these test sets in terms of accuracy is comparable for the different neural net-
work architectures used, we present the results for the qualitative evaluation of
their rationale discovery capabilities for what is in theory the most sophisticated
one: the models with 3 hidden layers.
In the welfare benefit domain, the Age-Gender datasets are used to measure
how well condition C1 is learned. In addition to measuring accuracy on these
dedicated datasets, we can plot the actual output of the neural network, which
should be 1 (eligible) for an individual of pensionable age and 0 otherwise, against
age, for both values of gender. Such plots, showing the mean output of the
networks over 50 runs, are shown in Figure 2 for both the welfare benefit domain
and its simplified version, for networks trained on each of the training sets under
consideration.
Similarly, the Patient-Distance datasets are used to evaluate how well con-
dition C6 is learned, which can be assessed by plotting the networks’ output
against the distance to hospital, for both in-patients and out-patients. The plots
showing the mean network output over 50 runs for both the welfare benefit do-
Discovering the Rationale of Decisions 13
(A) Replication (B) More data (C) Simplified
(D) Replication (E) More data (F) Simplified
Fig. 2: For all training sets from the (simplified) welfare domain: mean network
output vs age on Age-Gender test set when trained on type A training sets (A-C)
and on type B training sets (D-F).
(A) Replication (B) More data (C) Simplified
(D) Replication (E) More data (F) Simplified
Fig. 3: For all training sets from (simplified) welfare domain: mean network out-
put vs distance on Patient-Distance test set when trained on type A training
sets (A-C) and on type B training sets (D-F).
14 Steging et al.
main and its simplified version, and for networks trained on each of the training
sets under consideration, are shown in Figure 3.
In the tort law domain, we can similarly evaluate how well conditions c2 (un-
lawfullness) and c3 (imputability) are learned. For these conditions, the network
should output 1 in cases of the Unlawfulness dataset where the case is unlaw-
ful (c2 ), or in the Imputability dataset where the case can be imputated to a
person (c3 ); otherwise the output should be 0. Since the tort law domain only
contains Boolean features, the outputs of the networks are presented in tables
rather than plots. The mean output over 50 runs for the two training sets on the
Unlawfulness and Imputability datasets is presented in Table 9.
4 Discussion
In this section we discuss in detail the results we found and the conclusions we can
draw from them. We separately focus on standard classification accuracy and on
rational discovery capabilities. We conclude by introducing the approach we took
as a general knowledge-driven method for model-agnostic rationale evaluation.
4.1 Standard Accuracy
Standard accuracy is measured to see whether the learned models are able to
solve the classification problem, regardless of whether or not they discovered the
rationale underlying the data.
Welfare benefit The accuracies obtained in the replication experiment (Table
5) differ from those in the original study (Table 4), but show similar trends.
Originally, networks trained on a type A training set performed well on type
A test sets (around 99%), but much worse on the type B test set (around 70-
76%). When trained on a type B training set, the accuracies on test set A in
the original study stayed the same, with accuracies on test set B increasing to
around 98%. In the replication experiment, training on a type B test set slightly
decreases accuracies on type A test sets, while the accuracy on type B test
sets increased less substantially than in the original experiment. In both cases,
changing the distribution of the training data from type A to type B served
to increase performance on test sets of the latter type while hardly affecting
performance on test sets of the former type. Since type B datasets exploited
some knowledge of the domain (i.e. benefit is typically denied due to failure on
only a single condition), this suggests that overall performance can be improved
using tailor made training sets.
Using more data, we find higher accuracies (Table 6). This is not surprising,
as more training data generally leads to a better performance. Still, for networks
trained on type A data sets, accuracies on a type B test sets (below 85%) are
much lower than on type A test sets (around 99.8%). Training the networks
on type B training sets with more data shows significantly better results than
with fewer datapoints. Accuracies on type A test sets then are still around 99%,
Discovering the Rationale of Decisions 15
Table 9: Mean network output on the Unlawfulness and Imputability datasets
versus the logical evaluation of the unlawfulness resp. imputability conditions.
Trained on all instances Trained on smaller dataset
Unlawfulness Output Unlawfulness Output
False 0 False 0.018
True 1 True 1
Imputability Output Imputability Output
False 0 False 0.875
True 1 True 1
whereas the accuracies on type B test sets are around 98%. The above obser-
vations therefore still hold, even with more data and modern machine learning
methods.
Simplified In the simplified domain, high accuracies are found across all datasets,
averaging out at around 99% (Table 7). Accuracies on type B test sets are only
slightly lower than on type A test sets, unlike in the other welfare domain ex-
periments. The networks do seem to perform slightly better on both types of
test sets when trained on a type B training set as compared to a type A training
set. However, this difference is much more nuanced than in the regular welfare
benefit dataset. This can be explained by the fact that cases in type A data sets
can now fail on at most 2 conditions, rather than the original 6, which is only 1
more than the single failed condition in the type B datasets.
Tort law In the Tort law domain we find accuracies of 100% or near 100% for
networks trained on all instances (see Table 8). When presented with all unique
instances, the networks with one and two hidden layers are able to perfectly
predict the outcome from the Dutch tort law, and the network with three hidden
layers can create a very close approximation.
Presenting a neural network with all available cases is in practice often infea-
sible. If it is possible, then a simple lookup table rather than a neural network
would most likely suffice. For this reason, we also trained the networks on a
subset of only around 35% of the unique instances (see Table 8). As expected,
the accuracies of the networks on the general test sets drop, but only slightly
(to 98-99%). Even on the unique test set, accuracies remain around 96%. This
suggests that it is possible to approximate tort law with a small subset of the
unique cases.
4.2 Rationale Discovery
Looking at the performance of the networks on the dedicated test sets partially
exposes the rationale captured by the network. We designed these test sets such
that each one targets a single condition from the domain. In addition to con-
sidering the accuracy on these dedicated test sets, we qualitatively evaluate the
16 Steging et al.
rational discovery capabilities of the networks by comparing their outputs with
the actual outputs we would ideally expect for the different domains.
Welfare benefit In the welfare benefit domain, the Age-Gender dataset is
used to measure how well condition C1 is learned, that is, whether the networks
output 1 if the individual is of pensionable age (male and over the age of 65 or
female and over the age of 60), and output 0 otherwise. Plotting the age of the
individuals from the Age-Gender dataset against the output of the network, for
each gender, should ideally result in the graph on the left side of Figure 4. Here
the output of the network spikes instantly from 0 to 1 at the age of 60 for women
and 65 for men.
Similarly, for cases from the Patient-Distance dataset the networks should
only output 1 (eligible) if the relative is an in-patient and the distance to the
hospital is less than 50 miles, or if the relative is an out-patient and the distance
to the hospital is further than 50 miles (condition C6 ). Plotting the distance
against the output of the network for both types of patients would ideally result
in the graph shown on the right in Figure 4.
In our replication experiment the output graphs show a similar pattern as in
the original 1993 experiment. In the latter (not shown), the networks trained on
a type A training set do not show the expected pattern, for neither condition;
in fact for the Patient-Distance test cases always a 1 is returned. Training on
a type B training set improved the results, but the turning point at which the
networks output 1 is off. For the Age-Gender dataset it occurs at 45 for women,
rather than 60, and at 50 for men, instead of 65. For the Patient-Distance dataset
the turning point was too gradual, and takes place at 40, rather than 50 miles.
In our replication experiment the outputs of the networks trained on a type B
Fig. 4: An idealistic expectation of the outputs of a network on the Age-Gender
dataset versus the age for both genders (left) and on the Patient-Distance dataset
versus the distance for both patient types (right).
Discovering the Rationale of Decisions 17
dataset (Figures 2(D) and 3(D)) more closely resemble the ideal outputs than the
outputs of the networks trained on a type A dataset (Figures 2(A) and 3(A)), for
both conditions. For the patient-distance condition (C6 ), the turning point does
occur at 50 after training on a type B dataset, unlike in the original experiment.
Training on a type B dataset seems to have a significant impact on the way the
rationale of the networks is formed, as networks are able to internalize condition
C1 and C6 better when trained on a type B dataset. This is furthermore reflected
in the accuracies on the Age-Gender and patient distance dataset as shown in
Table 5, which increase by roughly 30% when training on a type B dataset. These
accuracies on the Age-Gender and Patient-Distance datasets were not present
in the original study.
Upon repeating the replication experiment with more data, this indeed in-
creases the performance of the networks significantly, but we still find perfor-
mance for networks trained on type B datasets to be better than that of networks
trained on type A datasets. Output patterns more closely resemble the ideal ones
after training on type B datasets (see Figure 2(B) versus (E) and Figure 3(B)
versus (E)) and accuracies also increase (see Table 6). Interestingly, the turning
point for condition C1 does occur at the right place when training on more type
B training data: at 60 for females and 65 for males (see Figure 2(E)).
Simplified The simplified domain consists of only the two conditions C1 and
C6 , without any other conditions or noise variables. In this less complex version
of the domain, overall performance is much higher, and conditions C1 and C6 are
learned quite successfully. Figures 2(C) and (F), and 3(C) and (F), respectively,
are very close to the ideal output graphs, with turning points in the correct
places. This is also reflected in near perfect accuracy scores on Age-Gender and
Patient-Distance datasets in Table 7. As argued before, the difference between
type A and type B datasets is much smaller than in the original domain, hence
the results found for these to datasets are now quite similar.
Tort law Recall that in the tort law domain, on the Imputability dataset,
networks should output 1 if the case can be imputated to the person, and 0
otherwise; on the Unlawfulness dataset, the networks should output 1 if the
case is unlawful, and 0 otherwise. Table 9 shows well the networks were able to
internalize the notions of unlawfulness and imputability. When trained on all
instances, the mean output of the networks is 0 if a case is not unlawful, and
1 if it is, which is exactly what it should do. Networks trained on all instances
attain a perfect score on the Imputability dataset as well. This can also be seen
in Table 8, where the networks score 100% accuracy on the Unlawfulness and
Imputability datasets after training on all instances.
With less data, however, accuracies drop to around 92-95% for the Unlaw-
fulness dataset and 91-94% for the Imputability dataset. This accuracy may
still seem high, but we should take into account the label distributions (66.67-
33.33% and 87.5-12.5%, respectively). Table 9 shows that networks still perform
18 Steging et al.
perfectly on cases in which the unlawfulness and imputability conditions eval-
uate to true. When the conditions are false, however, mistakes are made. The
average output of networks on the Unlawfulness dataset increases to 0.018, which
should be 0, meaning that it classifies some lawful cases as unlawful. In the Im-
putability dataset, the mean output increased more drastically to 0.875 when
imputability is false. Meaning that in 87.5% of the instances in which the case
cannot be imputed to a person, the network incorrectly decided that it should.
This means that despite its high accuracy on the general test set, the networks
largely ignored the concept of imputability.
4.3 A Method for Rationale Evaluation
Although our experiments and discussion focused on specific example domains
and neural networks, our approach for rationale evaluation can be seen as a gen-
eral method independent of the machine learning algorithm applied. This paper
therefore proposes a knowledge-driven method for model-agnostic rationale eval-
uation, consisting of three distinct steps:
1. Measure the accuracy of a trained system, and proceed if the accuracy is
sufficiently high;
2. Design dedicated test sets for rationale evaluation targeting selected ratio-
nale elements based on expert knowledge of the domain;
3. Evaluate the rationale through the performance of the trained system on
these dedicated test sets.
The first step is based on the assumption that efforts for assessing and possibly
improving the rationale discovery capabilities of a learned model are only taken
if the general performance of the model is already considered good enough. Here
we assume performance is measured using accuracy, but other measures can be
employed as well and the threshold of what is considered good enough may vary
per domain and application.
The second step in our method depends on domain knowledge. Hence the
method effectively is a quantitative human-in-the-loop solution for rationale eval-
uation.
In the third step, performance is again evaluated, by now not only considering
accuracy but also examining model output and expected output in terms of the
dedicated test sets. Our examples have shown that the latter depend on the type
of features involved.
Subsequently, the information gained by using this rationale evaluation method
can be used to improve the rationale of the system by adjusting the training data
accordingly, imposing sound rationale discovery.
The method does not currently specify how the dedicated test sets are con-
structed. We aim to further operationalize the rationale evaluation method by
using information about the knowledge in the domain, and the distribution of
examples, for instance building on Bayesian networks.
Discovering the Rationale of Decisions 19
5 Conclusion
The work in this paper was inspired by Bench-Capon’s 1993 paper that in-
vestigated whether neural networks are able to tackle open texture problems.
The conclusions were that neural networks can perform very well on such prob-
lems in terms of accuracy, even if some conditions from the domain are not
learned [Bench-Capon, 1993].
In this paper we first replicated the original experiments as closely as possible
to verify that we can reproduce the results from the 1993 paper. In addition,
we repeated the experiments with larger training datasets to ensure that the
original conclusions about conditions that were not learned are not due to a lack
of data. The idea of constructing test cases to test specific conditions inspired us
to propose a method for assessing rationale discovery capabilities by designing
dedicated test datasets and to evaluate performance on these knowledge-driven
test sets, combining quantitative and qualitative evaluation elements in a hybrid
way. Type B datasets served to complicate the problem in the original study, but
also demonstrate that training can be improved using knowledge-driven tailor
made training sets.
We investigated three legal domains, in which neural networks were trained
on labelled cases and tasked with predicting unlabelled cases. We started off
with an artificial domain from the literature, followed by a simplified adaptation
of that domain. Lastly, we investigated a real life domain as well. The results
indicate that the network are able to achieve high accuracies in each of the
three domains. The networks are therefore able to make the right decisions in
most cases, with accuracies averaging around 99% on type A or regular test
sets. This is how machine learning problems are usually evaluated. Using our
approach of rationale evaluation, however, we show that the networks do not
necessarily learn the conditions, despite their high accuracy scores. Performance
on the dedicated test sets, type B, Age-Gender and Patient-Distance dataset
show that the networks are unable to learn the conditions C1 and C6 . This was
suggested in the original experiment [Bench-Capon, 1993] and it holds true in
the replication study with modern, commonly used machine learning techniques
and more data. By adjusting the distribution of the training data based on ex-
pert domain knowledge (training on a type B dataset) these accuracies increase.
Simplifying the domain shows that systems are able to learn the conditions C1
and C6 , though still not perfectly. Even in the real life tort law domain, with a
non-fictional knowledge structure and different characteristics, a similar pattern
can be observed. The networks failed to learn the independent condition that
defines imputability, despite its high accuracies on the general test set.
This study therefore reaffirms the conclusions from previous work, while si-
multaneously introducing a model-agnostic method for assessing rationale dis-
covery capabilities of machine learned black box models, using dedicated test
datasets designed with expert knowledge of the domain. In future research, we
aim to further detail and extend our method such that by employing it, the
soundness of the rationale becomes tangible, and its quality can be asserted.
Ultimately, based on this evaluation, the training data of the black-box systems
20 Steging et al.
can be altered to improve their rationale. Further expanding upon this design
method will bring us closer to AI that is both explainable and responsible.
Bibliography
K. D. Ashley. Modeling Legal Arguments: Reasoning with Cases and Hypotheti-
cals. The MIT Press, Cambridge (Massachusetts), 1990.
K. D. Ashley. A brief history of the changing roles of case prediction in ai and
law. Law in Context, 36(1):93–112, 2019.
K. Atkinson, T. Bench-Capon, F. Bex, T. F. Gordon, H. Prakken, G. Sartor,
and B. Verheij. In memoriam douglas n. walton: the influence of doug walton
on ai and law. Artificial Intelligence and Law, pages 1–46, 2020a.
K. Atkinson, T. Bench-Capon, and D. Bollegala. Explanation in ai and law:
Past, present and future. Artificial Intelligence, 289:103387, 2020b.
T. Bench-Capon. Neural networks and open texture. In Proceedings of the 4th
International Conference on Artificial Intelligence and Law, ICAIL ’93, pages
292–297. ACM, New York, 1993. ISBN 0-89791-606-9.
S. Brüninghaus and K. D. Ashley. Predicting outcomes of case based legal
arguments. In Proceedings of the 9th International Conference on Artificial
Intelligence and Law (ICAIL 2003), pages 233–242. ACM, New York (New
York), 2003.
I. J. Goodfellow, J. Shlens, and C. Szegedy. Explaining and harnessing ad-
versarial examples. In Proceedings of International Conference on Learning
Representations, 2015.
T. F. Gordon. The Pleadings Game: An Artificial Intelligence Model of Proce-
dural Justice. Kluwer, Dordrecht, 1995.
M. Grabmair, K. D. Ashley, R. Chen, P. Sureshkumar, C. Wang, E. Nyberg,
and V. R. Walker. Introducing LUIMA: an experiment in legal conceptual
retrieval of vaccine injury decisions using a uima type system and tools. In
Proceedings of the 15th International Conference on Artificial Intelligence and
Law, pages 69–78. ACM, New York (New York), 2015.
J. C. Hage, R. Leenes, and A. R. Lodder. Hard cases: a procedural approach.
Artificial intelligence and law, 2(2):113–167, 1993.
D. Hunter. Out of their minds: Legal theory in neural networks. Artificial
Intelligence and Law, 7(2):129–151, 1999.
D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. In Pro-
ceedings of 3rd International Conference on Learning Representations, 2015.
R. R. Leighton and A. P. Wieland. The Aspirin/Migraines Software Package,
pages 209–227. Springer, New York, Boston, MA, 1994. ISBN 978-1-4615-
2736-7.
S. M. Lundberg and S. Lee. A unified approach to interpreting model predictions.
In Advances in Neural Information Processing Systems 30, pages 4765–4774.
Curran Associates, Inc., 2017.
M. Medvedeva, M. Vols, and M. Wieling. Using machine learning to predict
decisions of the european court of human rights. Artificial Intelligence and
Law, pages 1–30, 2019.
Discovering the Rationale of Decisions 21
T. Miller. Explanation in artificial intelligence: Insights from the social sciences.
Artificial Intelligence, 267:1–38, 2019. ISSN 0004-3702.
R. Mochales Palau and M. F. Moens. Argumentation mining: the detection,
classification and structure of arguments in text. In Proceedings of the 12th
International Conference on Artificial Intelligence and Law (ICAIL 2009),
pages 98–107. ACM Press, New York (New York), 2009.
M. Možina, J. Žabkar, T. Bench-Capon, and I. Bratko. Argument based machine
learning applied to law. Artificial Intelligence and Law, 13(1):53–73, 2005.
F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel,
M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Pas-
sos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay. Scikit-learn:
machine learning in Python. Journal of Machine Learning Research, 12:2825–
2830, 2011.
L. Philipps and G. Sartor. Introduction: from legal theories to neural networks
and fuzzy reasoning. Artificial Intelligence and law, 7(2):115–128, 1999.
M. T. Ribeiro, S. Singh, and C. Guestrin. ”why should I trust you?”: Ex-
plaining the predictions of any classifier. In Proceedings of the 22nd ACM
SIGKDD International Conference on Knowledge Discovery and Data Min-
ing, San Francisco, CA, USA, pages 1135–1144, 2016.
E. L. Rissland and K. D. Ashley. A case-based system for trade secrets law.
In Proceedings of the 1st International Conference on Artificial Intelligence
and Law, ICAIL ’87, pages 60–66, New York, NY, USA, 1987. ACM. ISBN
0897912306.
C. Steging, S. Renooij, and B. Verheij. Discovering the rationale of decisions:
Towards a method for aligning learning and reasoning (accepted). In Proceed-
ings of the 18th International Conference on Artificial Intelligence and Law,
ICAIL ’21. ACM, New York, 2021.
A. Stranieri, J. Zeleznikow, M. Gawler, and B. Lewis. A hybrid rule–neural
approach for the automation of legal reasoning in the discretionary domain of
family law in australia. Artificial Intelligence and Law, 7(2-3):153–183, 1999.
B. Verheij. Artificial argument assistants for defeasible argumentation. Artificial
Intelligence, 150(1–2):291–324, 2003a.
B. Verheij. Dialectical argumentation with argumentation schemes: An approach
to legal logic. Artificial intelligence and Law, 11(2-3):167–195, 2003b.
B. Verheij. Formalizing arguments, rules and cases. In Proceedings of the 16th
International Conference on Artificial Intelligence and Law, ICAIL ’17, pages
199–208. ACM, New York, 2017. ISBN 978-1-4503-4891-1.
C. S. Vlek, H. Prakken, S. Renooij, and B. Verheij. A method for explaining
bayesian networks for legal evidence with scenarios. Artificial Intelligence and
Law, 24(3):285–324, 2016.
M. Wardeh, T. Bench-Capon, and F. Coenen. Padua: a protocol for argumen-
tation dialogue using association rules. Artificial Intelligence and Law, 17(3):
183–215, 2009.
A. Wyner, R. Mochales-Palau, M. F. Moens, and D. Milward. Approaches to
text mining arguments from legal cases. In Semantic Processing of Legal Texts,
pages 60–79. Springer, Berlin, 2010.