<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Burak Kilic</string-name>
          <email>b.kilic@uu.nl</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Floris Bex</string-name>
          <email>f.j.bex@uu.nl</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Albert Gatt</string-name>
          <email>a.gatt@uu.nl</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Information and Computing Sciences, Utrecht University</institution>
          ,
          <addr-line>Utrecht</addr-line>
          ,
          <country country="NL">The Netherlands</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>LegalNLP</institution>
          ,
          <addr-line>Contrastive Learning, NLP, Explainable AI</addr-line>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Shareforce B.V.</institution>
          ,
          <addr-line>Rotterdam</addr-line>
          ,
          <country country="NL">The Netherlands</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>Tilburg Institute for Law, Technology, and Society, Tilburg University</institution>
          ,
          <addr-line>Tilburg</addr-line>
          ,
          <country country="NL">The Netherlands</country>
        </aff>
        <aff id="aff4">
          <label>4</label>
          <institution>Workshop Proce dings</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this study, we analyze data-scarce classification scenarios, where available labeled legal data is small and imbalanced, potentially hurting the quality of the results. We focused on two finetuning objectives; SetFit (Sentence Transformer Finetuning), a contrastive learning setup, and a vanilla finetuning setup on a legal provision classification task. Additionally, we compare the features that are extracted with LIME (Local Interpretable Model-agnostic Explanations) to see which particular features contributed to the model's classification decisions. The results show that a contrastive setup with SetFit performed better than vanilla finetuning while using a fraction of the training samples. LIME results show that the contrastive learning approach helps boost both positive and negative features which are legally informative and contribute to the classification results. Thus a model finetuned with a contrastive objective seems to base its decisions more confidently on legally informative features.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <sec id="sec-1-1">
        <title>The scarcity of publicly available, high quality legal data</title>
        <p>
          is causing a bottleneck in legal text classification
research [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ].
        </p>
        <p>
          While there are a few publicly available
datasets, such as CUAD [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ], and LEDGAR [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ], these
datasets are unbalanced. They may provide good
baselines to start with; however, the scarcity of samples for
specific classes means that there is no guarantee of robust
performance once models are adapted to downstream
classification tasks.
        </p>
      </sec>
      <sec id="sec-1-2">
        <title>Few-shot learning methods have proven to be an attrac</title>
        <p>tive solution for classification tasks with small datasets
where data annotation is also time-consuming, ineficient
and expensive. These methods are designed to work with
a small number of labeled training samples and typically
cific downstream task.</p>
        <p>
          In this paper 1, we focus on three major aims. First, we
ifnetune the LegalBERT[
          <xref ref-type="bibr" rid="ref5">5</xref>
          ] model on the publicly
available LEDGAR provision classification dataset. We
compare the success of a contrastive learning objective and a
Proceedings of the Sixth Workshop on Automated Semantic Analysis of
(A. Gatt)
(A. Gatt)
CEUR
htp:/ceur-ws.org
        </p>
        <p>ISN1613-073
https://www.shareforcelegal.com (B. Kilic);
https://www.uu.nl/staff/FJBex (F. Bex); https://albertgatt.github.io/
© 2023 Copyright for this paper by its authors. Use permitted under Creative Commons License
Attribution 4.0 International (CC BY 4.0).</p>
        <p>CEUR</p>
        <p>Workshop Proceedings (CEUR-WS.org)</p>
      </sec>
      <sec id="sec-1-3">
        <title>1While our paper shares a similar title with ”Attention is all you</title>
        <p>
          need” [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ], we focus on a diferent topic.
more standard objective to finetune the pretrained model.
        </p>
        <p>
          Secondly, we finetune the same baseline model with
these two finetuning objectives with the balanced dataset
created from LEDGAR. Lastly, to analyze the
trustworthiness and explain individual predictions, we extract the
tokens from the model as features by using LIME [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ] to
compare which features had more positive or negative
impacts.
        </p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>2. Related</title>
    </sec>
    <sec id="sec-3">
      <title>Work</title>
      <sec id="sec-3-1">
        <title>The legal text classification has been tackled with various BERT techniques to adopt domain-specific legal corpora [7] [8]. While these studies often report state-of-theart results with BERT-based models, they do not address</title>
      </sec>
      <sec id="sec-3-2">
        <title>There have been several pieces of research on eficient</title>
        <p>ifnetuning setups that can potentially address this
necessity, such as parameter eficient finetuning (PEFT),
pattern exploiting training (PET), and SetFit (Sentence</p>
      </sec>
      <sec id="sec-3-3">
        <title>Transformer Finetuning) [9], an eficient and prompt-free</title>
        <p>framework for few-shot finetuning of Sentence
Transformers (ST). SetFit works by first finetuning a pretrained</p>
      </sec>
      <sec id="sec-3-4">
        <title>ST on a small number of text pairs, in a contrastive</title>
      </sec>
      <sec id="sec-3-5">
        <title>Siamese manner. Also, SetFit requires no prompts or verbalizers, unlike PEFT and PET. This makes SetFit simpler and faster. We explain how SetFit works in more depth in the following section.</title>
        <sec id="sec-3-5-1">
          <title>2.1. SetFit: Sentence Transformer</title>
        </sec>
        <sec id="sec-3-5-2">
          <title>Finetuning</title>
        </sec>
      </sec>
      <sec id="sec-3-6">
        <title>SetFit is a prompt free framework for few-shot finetuning</title>
        <p>of ST, addressing labeled data scarcity by introducing
contrastive learning methods to generate positive and
negative pairs from the existing dataset to increase the
number of samples.</p>
      </sec>
      <sec id="sec-3-7">
        <title>There are two main steps involved in SetFit, from training to inferencing. First, a contrastive objective is used to finetune the ST, and then the classification head is trained with the encoded input texts.</title>
      </sec>
      <sec id="sec-3-8">
        <title>At the inference stage, the finetuned ST also encodes</title>
        <p>tence embedding. Next, the classification head that was
trained in the training step, produces the class prediction
of the input sentence based on its sentence embedding.
Formally this is predicted label  =  ( ())
, where</p>
        <p>represents the classification head prediction function.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>3. Data</title>
      <sec id="sec-4-1">
        <title>We present experimental results both on the original</title>
        <p>LEDGAR dataset, and on a balanced version. We describe
the original dataset first, then we give a brief description
of how the dataset was further balanced for the presented
the unseen inputs and produces the embeddings accord- experiments.
ingly. Then the classifier head gives the prediction results
based on the newly generated embeddings.</p>
        <sec id="sec-4-1-1">
          <title>3.1. Data source</title>
          <p>(, , 1)
ST finetuning</p>
          <p>To better handle the limited amount of
labeled training data in few-shot scenarios, contrastive
training approach is used. Formally, we assume a small
set of K-labeled samples  = (  ,   ), where   and   are
sentences and their class labels, respectively. For each
class label  ∈  ,  positive triplets are generated:    =
, where   and   are pairs of randomly chosen
sentences from the same class  , such that   =   =  .
Similarly, a set of  negative triplets are also generated:
 
 = (, , 0)</p>
          <p>
            , where   are sentences from class  and
  are randomly chosen sentences from diferent classes
such that   =  and   ≠  . Finally, the contrastive
ifnetuning data set  is produced by concatenating the
positive and negative triplets across all classes where ||
is the number of class labels, | | = 2||
is the number of
pairs in  and  is a hyperparameter. SetFit will generate
positive and negative samples randomly from the training
set, unless they are explicitly given [
            <xref ref-type="bibr" rid="ref9">9</xref>
            ].
          </p>
          <p>This contrastive finetuning approach enlarges the size
of training data. Assuming that a small number ( ) of
labeled samples is given for a binary classification task,
the potential size of the ST finetuning set  is derived
from the number of unique sentence pairs that can be
generated, namely  ( − 1)/2
larger than just  .</p>
          <p>Classification head training
In this second step, the
ifne-tuned ST encodes the original labeled training data
{  }, yielding a single sentence embedding per training
sample: (

) =  (

) where  ()
is the function
representing the fine-tuned ST. The embeddings, along with
their class labels, constitute the training set for the
classiifcation head   = ((
 ),   ) where |  | = ||
for the vanilla finetuning setup. Therefore the maximum
number of samples is calculated as: maximum number of
samples per label multiplied by the number of total labels,
as can be seen in Figure 1. In practice, in the case of the
vanilla finetuning setup, we end up with fewer training
samples than this total. This is because some labels are
extremely sparse, and there are fewer total samples than
the stipulated maximum per label.</p>
        </sec>
      </sec>
      <sec id="sec-4-2">
        <title>The original LEDGAR dataset is imbalanced. The small</title>
        <p>est label consists of only 23 samples, and the largest has
3167 samples in the original training dataset. Therefore,
to create a new balanced dataset, we selected the most
frequent 32 labels.</p>
        <p>For labels with more than 1000 samples, we
downsampled to 1000 samples per label. For labels with fewer than
1000 samples, we upsampled by crawling and retrieving
additional data from LawInsider,3 removing any
duplicates. As a result, a new dataset has been created that
consists of 32 classes, with each having 1000 provisions.
, which is significantly</p>
        <sec id="sec-4-2-1">
          <title>3.2. Crawling and balancing</title>
          <p>codes an unseen input sentence (  ) and produces a sen- 3https://www.lawinsider.com/</p>
        </sec>
      </sec>
      <sec id="sec-4-3">
        <title>Additionally, we also created a dedicated test dataset</title>
        <p>for the balanced data scenario, and selected 25 samples
per label randomly for the 32 labels, for a total of 800
samples. The remaining 31,200 samples are used for
training with a random 80/20 train/dev split.</p>
        <p>For finetuning with the balanced dataset, we again
train with varying sizes of training data, using 4, 8, 12,
and 16 samples per label for SetFit, and 50, 100, 150, and
200 for the vanilla finetuning setup, as can be seen in
Figure 2.</p>
        <p>Note that, unlike the case of the unbalanced data, the
total sizes for the vanilla finetuning setup in the balanced
case correspond to the totals obtained by multiplying the
maximum sample size with the number of labels.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>4. Experiments</title>
      <sec id="sec-5-1">
        <title>4.1. Models</title>
        <p>
          It has been shown that models which have been
pretrained on domain-specific legal data outperform
generalpurpose models [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. Therefore, throughout this paper,
the baseline we use is a finetuned LegalBERT using
l e g a l - b e r t - b a s e - u n c a s e d .4 We compare this standard,
or ”vanilla” finetuned baseline to a model finetuned with
the contrastive objective used in SetFit.
original LEDGAR dataset is used in this experiments,
with an 80/20 train/dev split.
4.2. Experimental Setup As can be seen from the table above, SetFit’s
contrastive learning approach yielded a better F1-score
comThe finetuning setup is the most crucial stage of the pared to the vanilla finetuning, despite only using a
fracexperimenting setup. Therefore, we kept the common tion of the training samples.
hyperparameters of SetFit and vanilla setups the same. Additionally, we observed that Weighted-F1 displays a
The rest of the parameters were kept as their default val- larger gap between models compared to Micro-F1. This
ues, provided by the respective implementations. The is particularly expected, since the problem of unbalanced
important hyperparameter for SetFit finetuning is the data is exacerbated in the vanilla finetuning setup as the
 parameter, which defines the number of positive and maximum number of samples per label increases.
negative pairs to be generated from the given training
set. We kept this parameter as its default value, 20 across
all the experiments. For both models, we used 1 epoch 5.2. Accuracy comparisons: Original and
for the finetuning. Table 1 gives detailed common hyper- balanced dataset
parameters of finetuning setups for both SetFit Trainer 5
and Vanilla Trainer.6
        </p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>5. Results</title>
      <sec id="sec-6-1">
        <title>5.1. F1-score comparisons: Original dataset</title>
        <sec id="sec-6-1-1">
          <title>In Table 2, we compare the F1-scores for diferent ex</title>
          <p>periments, with the test set described in Section 3. The</p>
        </sec>
        <sec id="sec-6-1-2">
          <title>4https://huggingface.co/nlpaueb/legal-bert-base-uncased 5https://github.com/huggingface/setfit 6https://huggingface.co/docs/transformers/main_classes/trainer</title>
        </sec>
        <sec id="sec-6-1-3">
          <title>In Figure 1, we compare the finetuning results of SetFit and vanilla models, finetuned on the original LEDGAR dataset with the same training split and test dataset as the previous experiment.</title>
          <p>We observed that the models achieve comparable
accuracies overall, despite the diferences in Weighted
F1scores in the Table 2. However, it is still noteworthy that
the contrastive learning approach achieves accuracy
comparable to the vanilla finetuned model with very small
sample sizes.</p>
          <p>In Figure 2, we compare the accuracy of the two
approaches, this time with the balanced LEDGAR dataset.</p>
          <p>In this experiment we also used 80/20 train/dev split. The
results show that the contrastive learning finetuning has
a warmer start compared to vanilla finetuning, particu- sections, we observed that SetFit models were
compalarly in small data scenarios. However, as can be seen rable with vanilla models, despite using a fraction of
from the graph, SetFit is comparable with vanilla model the dataset. However, we get very little information
across all the experiments as well. about whether the models base their decisions on
features which are intuitively correct, that is, if the models
5.3. LIME feature comparisons are classifying the provisions with legally informative
features, or arbitrary ones.</p>
          <p>
            In machine learning in general, but especially in domains LIME is a technique based on the creation of
intersuch as law, trustworthiness of AI systems is crucial. pretable, surrogate models over the features that are
loThe ability to explain model predictions is central to cally faithful to the original classifier. This means that
increasing trustworthiness in at least two respects. First, interpretable explanations need to use representations of
explanations have an impact on whether a user can trust those features that are understandable, trustworthy, and
the prediction of the model to act upon it; second, they justifiable to humans [
            <xref ref-type="bibr" rid="ref6">6</xref>
            ].
also influence whether a user can trust the model to For the text classification tasks, LIME features are
rebehave in a certain way when deployed. stricted to the words that are presented in the provisions.
          </p>
          <p>
            Several approaches to explaining model predictions Thus, the positively weighted words that lead toward a
have been proposed in the literature, including LIME [
            <xref ref-type="bibr" rid="ref6">6</xref>
            ], particular label are called ”positive” features. Likewise,
SHAP [
            <xref ref-type="bibr" rid="ref10">10</xref>
            ], and GRAD-CAM [
            <xref ref-type="bibr" rid="ref11">11</xref>
            ]. the negatively weighted words that reduce the model’s
es
          </p>
          <p>Through the training results mentioned in previous timate of the probability of the label are called ”negative”
Table 3 like ”authority”, ”power”, ”act”, ”execute”, ”binding”, etc.
F1-score comparisons of Adjustments and Authority provi- for the Authority provision. Thus, domain experts can
sions make decisions based on their usefulness.</p>
          <p>Class Label Vanilla SetFit In Figures 4 to 7, we show the top positive features
for the two models separately, for each label. We note
Adjustments 0.7368 0.8571 that similar observations can be made with respect to
Authority 0.5063 0.2903 these figures, that is, the contrastive learning framework
boosts the positive weight of features that are intuitively
more legally informative. Nevertheless, we also see that
features. less informative features, including stop words, are also</p>
          <p>We kept the LIME hyperparameters the same in each assigned some positive weight.
model explanation for fair comparison and the details are Additionally, we also observed similar behavior with
as follows: The limit for the total number of words per the negative features in Figures 9 to 12. For negative
classification is defined as  , and the complexity measure features, the SetFit model trained with a contrastive
obfor the models is defined as: jective assigns a greater negative magnitude. Thus, it
Ω() = ∞[‖  ‖0 &gt;  ] appears that negative role of these features is accentuated
in the contrastive setting, relative to the standard
finewhere the  is defined as a simple interpretable sparse tuning setup. For instance, words like ”changes”, ”shall”
linear model (logistic regression in the case of SetFit, and ”without” for the Adjustments provision and ”which”,
multinomial logistic regression in the vanilla model);   ”common”, ”document” and ”carry” for the Authority
prois defined as the weight vector of  . The  = 10 is vision sound generic and may not give legally
informaselected across all the experiments for simplicity and tive hints to humans. However, in the vanilla model case,
potentially can be as big as the computation allows. The similar legally non-informative negative features are also
size of the neighborhood for local exploration is set to 25. present but not enough to perturb the model’s decisions.
The distance function  was kept as the default, cosine
distance metric. 7</p>
          <p>Thus, in this section, we compare the positive and 6. Conclusions &amp; Future Work
negative features of SetFit and vanilla models extracted
using the LIME setup mentioned above. This paper presented a detailed comparison of legal
pro</p>
          <p>
            To ensure a fair comparison, we used the SetFit model vision classification. Motivated by the challenge of
lowtrained with 800 training samples and the vanilla model resource scenarios and data imbalance, we compared
trained with 9756 training samples. As shown in Figure 1, the performance of a LegalBERT model finetuned in a
the two models converged and obtained comparable per- standard setting, to one finetuned using a contrastive
formance with these settings. We selected two test labels objective.
to compare, namely Adjustments and Authority provi- Following previous work [
            <xref ref-type="bibr" rid="ref5">5</xref>
            ], we assumed that models
sions. Again, for a fair comparison, we chose the labels pretrained on legal data are better able to retain the legal
based on the cases where one technique did better than knowledge and terminologies in the process of
finetunthe other, in terms of their respective F1-scores. For the ing. On the other hand, our experiments show that the
Adjustments label, the SetFit model outperformed the type of finetuning approach matters, especially where
vanilla model, and for the Authority label, vanilla fine- data is relatively scarce. In particular, the contrastive
tuning outperformed the SetFit model. Thus, we aim to learning approach showed promising results in terms of
observe the diferences in the model-predicted features evaluation metrics, achieving performance comparable
for these labels. Table 3 shows the F1-score diferences or better than the vanilla finetuning setup. The results
of these provisions. also showed that the positive and negative features
ex
          </p>
          <p>We begin by comparing the positive features which tracted from the models difer significantly, favoring the
both approaches have in common (i.e. the features they SetFit model, despite using almost 11 times less data.
both assign a positive weight to), for the two target la- As future work, investigating the limitations of SetFit
bels. These are shown in Figure 3 and Figure 8. The deeper with more hyperparameters on legal data may be
ifgures suggest that the contrastive approach from SetFit beneficial for pushing the model capabilities further. Also,
seems to help to boost legally informative features more we plan to use other explainability tools such as SHAP or
than vanilla models, even in the small data scenarios. For GRAD-CAM to compare the extracted features. Finally,
instance, words like ”adjustments”, ”shares”, ”dividend”, an evaluation of the appropriateness of the positive and
”stock”, etc. can give a first strong hint about the Adjust- negative features identified using explainability methods
ment provision classification results, as well as words needs to be carried out with domain experts.</p>
        </sec>
        <sec id="sec-6-1-4">
          <title>7https://github.com/marcotcr/lime</title>
        </sec>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>E.</given-names>
            <surname>Elwany</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Moore</surname>
          </string-name>
          ,
          <string-name>
            <surname>G.</surname>
          </string-name>
          <article-title>Oberoi, BERT goes to law school: Quantifying the competitive advantage of access to large legal corpora in contract understanding</article-title>
          , CoRR abs/
          <year>1911</year>
          .00473 (
          <year>2019</year>
          ). URL: http://arxiv.org/abs/
          <year>1911</year>
          .00473.
          <article-title>a r X i v : 1 9 1 1 . 0 0 4 7 3</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>D.</given-names>
            <surname>Hendrycks</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Burns</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Chen</surname>
          </string-name>
          , S. Ball,
          <article-title>CUAD: an expert-annotated NLP dataset for legal contract review</article-title>
          ,
          <source>CoRR abs/2103</source>
          .06268 (
          <year>2021</year>
          ). URL: https: //arxiv.org/abs/2103.06268.
          <article-title>a r X i v : 2 1 0 3 . 0 6 2 6 8</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>D.</given-names>
            <surname>Tuggener</surname>
          </string-name>
          , P. von Däniken, T. Peetz,
          <string-name>
            <given-names>M.</given-names>
            <surname>Cieliebak</surname>
          </string-name>
          ,
          <article-title>Ledgar: A large-scale multi-label corpus for text classification of legal provisions in contracts</article-title>
          ,
          <source>in: International Conference on Language Resources and Evaluation</source>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>A.</given-names>
            <surname>Vaswani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Shazeer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Parmar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Uszkoreit</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Jones</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. N.</given-names>
            <surname>Gomez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Kaiser</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Polosukhin</surname>
          </string-name>
          ,
          <article-title>Attention is all you need</article-title>
          ,
          <source>CoRR abs/1706</source>
          .03762 (
          <year>2017</year>
          ). URL: http://arxiv.org/abs/ 1706.03762.
          <article-title>a r X i v : 1 7 0 6 . 0 3 7 6 2</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>I.</given-names>
            <surname>Chalkidis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Fergadiotis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Malakasiotis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Aletras</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Androutsopoulos</surname>
          </string-name>
          , LEGAL-BERT:
          <article-title>The muppets straight out of law school, in: Findings of the Association for Computational Linguistics: EMNLP 2020, Association for Computational Linguistics</article-title>
          , Online,
          <year>2020</year>
          , pp.
          <fpage>2898</fpage>
          -
          <lpage>2904</lpage>
          . URL: https: //aclanthology.org/
          <year>2020</year>
          .findings-emnlp.
          <source>261. doi:1 0 . 1 8</source>
          <volume>6 5 3</volume>
          / v 1 /
          <article-title>2 0 2 0 . f i n d i n g s - e m n l p . 2 6 1</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>M. T.</given-names>
            <surname>Ribeiro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Singh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Guestrin</surname>
          </string-name>
          , ”
          <article-title>why should I trust you?”: Explaining the predictions of any classifier</article-title>
          ,
          <source>in: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining</source>
          , San Francisco, CA, USA,
          <year>August</year>
          13-
          <issue>17</issue>
          ,
          <year>2016</year>
          ,
          <year>2016</year>
          , pp.
          <fpage>1135</fpage>
          -
          <lpage>1144</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>N.</given-names>
            <surname>Limsopatham</surname>
          </string-name>
          ,
          <article-title>Efectively leveraging BERT for legal document classification</article-title>
          ,
          <source>in: Proceedings of the Natural Legal Language Processing Workshop</source>
          <year>2021</year>
          , Association for Computational Linguistics, Punta Cana, Dominican Republic,
          <year>2021</year>
          , pp.
          <fpage>210</fpage>
          -
          <lpage>216</lpage>
          . URL: https://aclanthology.org/
          <year>2021</year>
          .nllp-
          <volume>1</volume>
          . 22.
          <article-title>doi:1 0 . 1 8 6 5 3 / v 1 / 2 0 2 1</article-title>
          . n l l p -
          <volume>1</volume>
          . 2 2 .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>I.</given-names>
            <surname>Chalkidis</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Androutsopoulos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Michos</surname>
          </string-name>
          ,
          <article-title>Extracting contract elements</article-title>
          ,
          <source>in: Proceedings of the 16th Edition of the International Conference on Articial Intelligence and Law</source>
          , ICAIL '17,
          <string-name>
            <surname>Association</surname>
          </string-name>
          for Computing Machinery, New York, NY, USA,
          <year>2017</year>
          , p.
          <fpage>19</fpage>
          -
          <lpage>28</lpage>
          . URL: https://doi.org/10.1145/ 3086512.3086515.
          <source>doi:1 0 . 1 1</source>
          <volume>4 5 / 3 0 8 6 5 1 2 . 3 0 8 6 5 1 5 .</volume>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>L.</given-names>
            <surname>Tunstall</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Reimers</surname>
          </string-name>
          ,
          <string-name>
            <given-names>U. E. S.</given-names>
            <surname>Jo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Bates</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Korat</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Wasserblat</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Pereg</surname>
          </string-name>
          ,
          <article-title>Eficient few-shot learning without prompts</article-title>
          ,
          <year>2022</year>
          .
          <article-title>a r X i v : 2 2 0 9 . 1 1 0 5 5</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>S. M.</given-names>
            <surname>Lundberg</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <article-title>A unified approach to interpreting model predictions</article-title>
          ,
          <source>CoRR abs/1705</source>
          .07874 (
          <year>2017</year>
          ). URL: http://arxiv.org/abs/ 1705.07874.
          <article-title>a r X i v : 1 7 0 5 . 0 7 8 7 4</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>R. R.</given-names>
            <surname>Selvaraju</surname>
          </string-name>
          ,
          <string-name>
            <surname>A. Das</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Vedantam</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Cogswell</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Parikh</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Batra</surname>
          </string-name>
          ,
          <article-title>Grad-cam: Why did you say that? visual explanations from deep networks via gradient-based localization</article-title>
          ,
          <source>CoRR abs/1610</source>
          .02391 (
          <year>2016</year>
          ). URL: http://arxiv.org/abs/ 1610.02391.
          <article-title>a r X i v : 1 6 1 0 . 0 2 3 9 1</article-title>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>