<!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>
      <title-group>
        <article-title>Legal Language Modeling with Transformers</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Lazar PERIC</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Stefan MIJIC</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dominik STAMMBACH</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Elliott ASH</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>ETH Zurich</string-name>
        </contrib>
      </contrib-group>
      <pub-date>
        <year>2020</year>
      </pub-date>
      <abstract>
        <p>We explore the use of deep learning algorithms to generate text in a professional, technical domain: the judiciary. Building on previous work that has focused on non-legal texts, we train auto-regressive transformer models to read and write judicial opinions. We show that survey respondents with legal expertise cannot distinguish genuine opinions from fake opinions generated by our models. However, a transformer-based classifier can distinguish machine- from humangenerated legal text with high accuracy. These findings suggest how transformer models can support legal practice.</p>
      </abstract>
      <kwd-group>
        <kwd />
        <kwd>legal text generation</kwd>
        <kwd>language modeling</kwd>
        <kwd>transformer</kwd>
        <kwd>human validation</kwd>
        <kwd>machine detection of generated text</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        The capacity to efficiently generate human-like text has rapidly increased with the
development of neural language models implemented through deep transformer
architectures [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Besides breezing past the previous state-of-the-art baselines (e.g. perplexity
on the Penn Treebank and other corpora [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]), auto-regressive models like GPT-2 have
amazed both researchers and the public with their ability to generate believable and
expressive text – for example, the now proverbial news article about scientists
discovering unicorns in South America [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. The even better coherence, originality and fluency
achieved by GPT-3 [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] promise additional gains as these models are further extended and
refined.
      </p>
      <p>
        In the legal domain, especially, there is enormous potential for well-intended use of
such language models. The law is the domain of natural language, and natural language
models could be used for many tasks, such as the generation of contracts, briefs, and
rulings. Many legal writing tasks are somewhat repetitive, and in these tasks especially
legal language models could save practitioners significant time and resources. Some early
steps in this direction are taken by [
        <xref ref-type="bibr" rid="ref4 ref5">4, 5</xref>
        ], who use a character-level recurrent neural
network to draft text in the style of international treaties.
      </p>
      <p>
        While the promise of these language models is clear, concerns about potential
misuse have led to extensive discussions, including disagreements about whether these
models should be released to the public [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. A complementary line of papers has explored
automated detection of machine-generated text, mostly focusing on newspaper articles
[
        <xref ref-type="bibr" rid="ref6 ref7">6, 7</xref>
        ]. Correspondingly, other work has explored human responses to news articles
generated by language models, finding that overall humans respond to machine-generated
news text the same way they respond to human-generated news text [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
      </p>
      <p>
        We add to this literature by focusing on generating legal documents. Legal corpora
have two important differences from the generic or news-oriented corpora that have been
the focus of previous work. First, the documents tend to be much longer and to rely
on long-range connections within documents. This document length poses a problem
for the standard Transformer’s memory usage, which grows quadratically with the input
sequence size. One remedy to this problem is Transformer-XL [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], which allows (in
theory) access to arbitrarily long memory sequences using a recurrence mechanism and
relative positional encoding.
      </p>
      <p>
        Second, legal language is technical. Similar to [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], we ask how well humans are
able to distinguish machine- from human-generated documents. But the language used
by judges is more technical, and less expressive, than that used by journalists.
Understanding and writing effective legal documents requires many years of training, which
could make the task difficult for language models. On the other hand, legal language is
more formulaic and repetitive than generic language [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], so it might be easier to
generate believably. Given that the benefits (and risks) of text generation in the law are at least
as significant as those in journalism, more empirical work on this topic is needed.
      </p>
      <p>This paper explores the use of language models for generating legal text. We use a
corpus of 50’000 judicial opinions from U.S. Circuit Courts, appeals courts which review
the decisions made by lower courts. We train a Transformer-XL model from scratch and
fine-tune a pre-trained GPT-2 model on this corpus. We use both models to
machinegenerate text conditioned on the start of judicial opinions not considered during training.</p>
      <p>We evaluate the model outputs qualitatively and based on a set of language metrics.
We validate our method via a survey where human annotators tried to guess genuine from
generated opinion text. Even respondents with legal training had difficulty distinguishing
judge-generated from machine-generated texts. These results suggest that transformer
language models can learn to generate consistent and coherent legal text.</p>
      <p>
        Legal disputes are an adversarial process. In a world where language models are
often used to support legal arguments, it would be useful to detect machine-generated text
when used by an adversary. Following the approach for fake news detection in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], we
show that our machine-generated texts can be used to train a classifier that discriminates
genuine from machine-generated texts with a very high accuracy, seemingly
outperforming humans on that task.
      </p>
      <p>To summarize, our findings suggest the legal language models could be a promising
tool for legal practice. Such technology could be further enhanced and used to assist
practitioners in writing legal documents. In addition, the models could help differentiate
human- from machine-written legal text.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Data and Methods</title>
      <p>2.1. Data</p>
      <p>Our empirical setting is U.S. Circuit Courts, the intermediate appellate courts in the
federal court system. Circuit Court judges review the decisions of the District Courts,
deciding whether to affirm or reverse. The judges explain their decision by providing
a written opinion. Our corpus comprises 50’000 of these U.S. Circuit Court opinions,
uniformly sampled from the universe of opinions for the years 1890 through 2010.1 The
sample includes both lead (majority) opinions and addendum opinions (concurrences and
dissents).</p>
      <p>We undertake minimal pre-processing, so that our generator can replicate the original
style of the texts. We do remove some metadata and XML markup but keep capitalization,
punctuation, etc. In particular, we preserve the special legal citation notation used by U.S.
courts.</p>
      <p>The opinions are in general quite lengthy, containing an average of 2024 tokens
(words) per article. Figure 1 shows the average opinion length over time as well as the
number of documents per year. We see that average length gradually decreased from the
1890s reaching a minimum in the 1970s. After that, the average length of these opinions
has grown steadily until the present day. Notably, it is around 1970 when digital legal
research databases came into use.
1The opinion texts can be obtained from CourtListener.</p>
      <sec id="sec-2-1">
        <title>2.2. Language Model Objective</title>
        <p>Our approach to representing legal documents is an auto-regressive language model.
We are given an unsupervised corpus U . The objective is to learn a set of parameters Q
to maximize</p>
        <p>L1(U ) = å logP(uijui k; :::; ui 1; Q);
i
(1)
the probability of token ui appearing at position i conditional on the k tokens appearing
before ui.</p>
        <p>We experimented with two transformer architectures for auto-regressive language
modeling. First, we trained a Transformer-XL model from scratch on our corpus. Second,
we fine-tuned an existing GPT-2 checkpoint on our legal corpus. The implementations
for each of these approaches are described in the following two subsections.</p>
      </sec>
      <sec id="sec-2-2">
        <title>2.3. From-Scratch Transformer-XL Model</title>
        <p>
          We train a Transformer-XL model from scratch. After applying a word tokenizer
to the training corpus, we built a vocabulary of 528’476 different token types. Sentence
boundaries (detected using spaCy [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ]) are annotated as &lt;eos&gt;. If seed documents
contain words that did not appear in the training corpus, those are replaced with a special
&lt;unk&gt; token. Figure 2 shows an excerpt of the beginning of a new opinion after
preprocessing.
        </p>
        <p>[ * 1209 ] JERRE S. WILLIAMS , Circuit Judge : &lt;eos&gt; This appeal is lodged by
H. Roger Lawler , a debtor in bankruptcy . He claims that an award in bankruptcy of $
&lt;unk&gt; in attorneys ’ fees to Richard W. Horton and Vernon O. &lt;unk&gt; is too high .
Horton and &lt;unk&gt; are cross - appealing the amount of the award</p>
        <p>
          The Transformer-XL model consists of 12 layers, where each layer consists of 16
attention heads. The model dimension is set to 512, the inner dimension in each
fullyconnected feedforward layer (following the attention layer) is set to 2048. These
values were derived from the configuration of the Transformer-XL base model trained on
the WikiText-103 dataset, which was used for text generation in [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ]. This yields 312M
trainable model parameters.
        </p>
      </sec>
      <sec id="sec-2-3">
        <title>2.4. Fine-Tuned GPT-2 Model</title>
        <p>Secondly, we consider a fine-tuned GPT-2 model. We started with a GPT-2BASE
checkpoint, downloaded from huggingface. The model consists of 124M parameters and
was pre-trained on a general-domain corpus. We further fine-tuned the model on the
language modeling task on the Circuit Court opinions using a maximum sequence length
of 256.</p>
        <p>We used the aitextgen library with default settings to perform further training and
text generation.</p>
      </sec>
      <sec id="sec-2-4">
        <title>2.5. Model Training</title>
        <p>We trained the Transformer-XL model with a batch-size of 16 and used a sequence
length of 128 during training. After having trained the network for 24’000 steps, i.e.,
the model has read 50M unique tokens, we achieve a perplexity of 36.85 on held-out
data (perplexity indicates how well our language model predicts the held-out data). We
trained the GPT-2 model on a batch-size of 2 for 36’000 steps, i.e., we provided 18.5M
tokens during training. The fine-tuned GPT-2 model achieved a final perplexity of 28.40
on held-out data.</p>
        <p>Figure 3 shows perplexity over time during training for the Transformer-XL
architecture trained from scratch. It slowly converges. In future work, we would like to explore
fitting models with more parameters on a larger number of opinions.</p>
      </sec>
      <sec id="sec-2-5">
        <title>2.6. Generation and Decoding</title>
        <p>The next step is to generate text using our language models conditioned on a seed
text snippet. For Transformer-XL, we used the memory recurrence mechanism of the
architecture. The sequence length was set to 64 with a memory of 640 tokens. We apply
the decoding strategy from the official codebase2. At each step during generation, we
sample from the k most probable tokens in a uniform manner. The default value for k is
set to 3.</p>
        <p>For GPT-2, we predict the next token given the 255 tokens before that token. We use
top-p decoding strategy with p = 0:9, implemented in the aitextgen library3. That is, we
sample from the most probable tokens from the distribution over the next token such that
the most probable tokens combine in total at least 90% of the probability mass.</p>
        <p>For the experiments, we used our models to automatically generate text snippets
conditioned on the actual start of 1.8K opinions, randomly sampled from the text.
2https://github.com/kimiyoung/transformer-xl
3https://github.com/minimaxir/aitextgen</p>
      </sec>
      <sec id="sec-2-6">
        <title>2.7. Open Source Demonstration</title>
        <p>We produced a Google Colab notebook for generating legal texts using the
finetuned GPT-2 model, available at https://colab.research.google.com/drive/
1VjTUAUgXqZCsmDZYS2N098_2w46oIEED?usp=sharing. We have made the code for
the Transformer-XL model publicly available at https://github.com/lazar505/
transformer-xl.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Evaluation</title>
      <sec id="sec-3-1">
        <title>3.1. A Generated Example</title>
        <p>We show an example of generated text in Figure 4. At the top (a), we see the prompt:
the start of a Circuit Court opinion describing appellant’s request for an exception to a
90day complaint filing period. In (b) we see the genuine completion. The third panel gives
the generated completion for the from-scratch Transformer-XL model (c), the fourth for
the vanilla GPT-2 model (d), and the fifth panel for the fine-tuned GPT-2 model (e).
(a) Prompt: Appellant urges that he acted diligently to present his claim to the court and
that this diligence should justify the one-day delay. Without reciting all of the details of
his efforts we note that the 90-day period for filing a complaint expired on May 14, 1973.
(b) Genuine Ending: On March 6, 1973, he had sought the services of an attorney to draft
a formal complaint for him. The complaint was prepared and delivered to him prior to the
filing deadline but the exact date is not clear from the record. Appellant’s Memorandum
is Support of Motion to Appeal would indicate this date as April 13, 1972.
(c) Transformer-XL: In this connection, the Nygren’s argument is without support.
Appellant argues, for example, for a period not exceeding five days after filing an indictment
on October 15. Appellee argues, for example for an offense involving his activities under
x506, which was committed on October 22 and April 22.
(d) Vanilla GPT-2: Appellant was able to present his claim in the court in less than 10
days, which is not a trivial amount of time to provide for a review of a case in which the
complaint was filed within the 90-day period . Moreover, it is undisputed that appellant
did not have any prior knowledge of the nature of the allegations and the nature of the
issues raised in the complaint.
(e) Fine-tuned GPT-2 on Legal Text: The Government’s failure to disclose the facts of
the case, and the failure of the court to address the underlying factual issues is not at issue
here. On November 19, 1973, respondent filed his civil suit in the District Court. The
District Court denied the claim for $ 100 million, arguing that the District Court had not
acted to protect his interest in the case, and that there was no constitutional or statutory
impediment to enforcing the suit.</p>
        <p>The genuine continuation (b) further explains the exact timeline of the events.
Transformer-XL (c) discusses the argument of the appellant, with some discordant dates
mentioned. Vanilla GPT-2 (d) discusses that the appellant was able to present the claim
in less than 10 days, somewhat contradictory of the initial issue over taking more than 90
days. Finally, the fine-tuned GPT-2 (e) digresses into a discussion of the government’s
failure to disclose the facts of the case. While there is suspicious content in each of the
machine-generated snippets, the style is legalistic and facially convincing.</p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Readability</title>
        <p>To provide some statistical comparison of the text generator models, we calculated
the Flesch–Kincaid readability score4 of the generated samples and the actual cases for
the 1.8K sample. As a non-legal comparison, we compute readability for the Harry Potter
corpus. A higher score indicates easier readability.</p>
        <p>We show results in Table 1, which indicate some interesting variation across the real
and generated corpora. We see that the documents generated by GPT-2 are as hard to
read as the original Court Opinions, while the ones generated by Transformer-XL have a
higher readability score, indicating that they are slightly easier to read. This is in line with
the overall lower perplexity obtained by our fine-tuned GPT-2 checkpoint, indicating that
the GPT-2 checkpoint is closer to the legalese style of the opinions. All our generated
text and the genuine opinions are rather technical and thus hard to read. Meanwhile, the
average readability score for the Harry Potter books is almost twice as high than the
Circuit Opinions and our generated opinions.</p>
      </sec>
      <sec id="sec-3-3">
        <title>3.3. Human Survey Evaluation</title>
        <p>We designed a survey to measure the ability of native English speakers and Legal
Professionals to distinguish generated legal extracts from authentic Court opinions. We
showed the participants an authentic prompt from a legal text, the actual opinion, and
the generated continuation produced by our Transformer-XL and GPT-2 models. The
participants were then asked to rank the text according to how authentic they believed the
different snippets were. At the same time, they had to indicate how confident they were
about their verdict. The ten prompts can be found in Appendix A5.</p>
        <p>We recruited 54 survey participants in total. For the following statistics, we only
include the responses of 25 participants who correctly identified a trivial attention-test
question with at least 70% confidence. More details regarding that example can be found
in Appendix A.</p>
        <p>The human annotators could not distinguish the human from machine generated
legal texts. Comparing genuine texts to GPT-2, the annotators were successful only 49%
of the time (slightly worse than random). With Transformer-XL, the participants were
slightly more accurate, picking the genuine text 53% of the time. In addition, the
annotators indicated a generally low level of confidence in their guesses. The average
in4https://en.wikipedia.org/wiki/Flesch%E2%80%93Kincaid_readability_tests
5Appendices are available at https://www.dropbox.com/s/pra2jb7md0208xv/Legal_Language_
Modeling_with_Transformers.pdf?raw=1
dicated confidence was 57.6% for extracts produced by GPT-2 and 55.4% for extracts
produced by Transformer-XL. The differences between GPT-2 and Transformer-XL are
not statistically significant</p>
        <p>If we focus on a subset of participants with legal expertise, (at least three years of
legal education, n = 6), the results are almost identical. They could not correctly guess the
genuine follow-up text, and they were not confident in their guesses. These numbers
(although a small sample size) suggest that legal experts and other participants are similarly
uncertain about determining whether a legal opinion is machine-generated or written by
humans.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Automated Detection of Machine-Generated Opinions</title>
      <p>
        We have a balanced dataset of 3.6K examples (1.8K judge-generated vs. 1.8K
machine-generated texts) for both the Transformer-XL and the GPT-2 model. We
finetune RoBERTa (a pre-trained bidirectional transformer [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]) to classify which
continuations are judge-generated (the genuine opinion) and which are machine-generated. In
both settings, we train on half of the examples and evaluate on the other half.
      </p>
      <sec id="sec-4-1">
        <title>4.1. Training Transformer Discriminators</title>
        <p>We fine-tune RoBERTa with a learning rate of 2e-5 and a batch-size of 16 for three
epochs. We show results in Table 2. In the last columns of Table 2, we show precision,
recall and F1 for the machine-generated class.</p>
        <p>
          In the first two rows, we see that in contrast to humans (among them legal
experts) considered in our survey, machine-learning models are very good at detecting
machine-generated language. This is in line with observations made in [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ], where
BERTclassifiers outperform humans on the task of automatically detecting machine-generated
text. Remarkably, in the setting where we fine-tune GPT, we detect almost all
machinegenerated examples (recall over 99%) while maintaining a precision of over 90%. In the
Transformer-XL case, we have fairly balanced precision and recall, both over 97%.
        </p>
        <p>In the last two rows, we show results for 2 additional experiments, which would be
closer to a real-world setting where one would not know what model was used to generate
fake legal text. We use our discriminator trained on detecting GPT-2 produced samples
to detect Transformer-XL samples, and vice versa. In both settings, the overall accuracy
of the classifier drops significantly. But still, performance is much better than human
guessing. Interestingly, in both experiments, the discriminator achieves a high precision
at the expense of a reduced recall.</p>
        <p>It seems that overall, our models are capable of detecting machine-generated texts
with very high accuracy. The models are effective even though we provided a
modestsized training set and have not performed any hyperparameter tuning. Appendix B
provides some descriptive analysis of the errors made by the discriminators.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusion</title>
      <p>In this paper, we explored the capabilities of Transformer-based Decoders on
generating U.S. Circuit Court opinions. We show examples of machine-generated text and
validate the quality of our generated text via a survey. The results suggest that
humans (among them legal experts) are in general uncertain about determining whether
text is machine-generated or judge-generated. We additionally explore the capabilities of
machine-learning models to predict whether a given snippet is machine-generated or an
actual opinion. We find that machine-learning models are very good at that task, yielding
way above 90% accuracy in different settings.</p>
      <p>While the hurdle to generate authentic long texts is still high, the level of proficiency
that our two Transformer models achieve for short texts is already high enough to make
a direct identification difficult, even for specialized legal experts.</p>
      <p>This research could be extended in a number of ways. More work could be done to
make these text generators useful for lawyers or judges seeking assistance in drafting
legal documents. For example, one could do conditioned generation based on the direction
of the decision – affirm or reverse. Thus language models could be used to explore the
legal arguments for or against a given position.</p>
      <p>
        It should be mentioned that legal language models, like language models generally,
are vulnerable to biases prevalent in the training data. For example, our judicial-opinion
models could be biased in terms of the ideology and topics used by Circuit Court judges
[
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]. These biases will re-appear in text generated by our models, even if that is not
intended. Measuring and adjusting for these biases is an important area for future work.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <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>and I. Polosukhin</surname>
          </string-name>
          , “Attention Is All You Need,” in
          <source>Advances in Neural Information Processing Systems</source>
          ,
          <year>2017</year>
          , pp.
          <fpage>5998</fpage>
          -
          <lpage>6008</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>T. B. Brown</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          <string-name>
            <surname>Mann</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          <string-name>
            <surname>Ryder</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Subbiah</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Kaplan</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          <string-name>
            <surname>Dhariwal</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Neelakantan</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          <string-name>
            <surname>Shyam</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          <string-name>
            <surname>Sastry</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Askell</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Agarwal</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Herbert-Voss</surname>
            , G. Krueger,
            <given-names>T.</given-names>
          </string-name>
          <string-name>
            <surname>Henighan</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Child</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Ramesh</surname>
            ,
            <given-names>D. M.</given-names>
          </string-name>
          <string-name>
            <surname>Ziegler</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Wu</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Winter</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Hesse</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Chen</surname>
            , E. Sigler,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Litwin</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Gray</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          <string-name>
            <surname>Chess</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Clark</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Berner</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>McCandlish</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Radford</surname>
            ,
            <given-names>I. Sutskever</given-names>
          </string-name>
          , and
          <string-name>
            <given-names>D.</given-names>
            <surname>Amodei</surname>
          </string-name>
          , “
          <article-title>Language Models are Few-Shot Learners,” CoRR</article-title>
          , vol. abs/
          <year>2005</year>
          .14165,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>A.</given-names>
            <surname>Radford</surname>
          </string-name>
          ,
          <string-name>
            <surname>J. Wu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Child</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Luan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Amodei</surname>
          </string-name>
          ,
          <string-name>
            <surname>and I. Sutskever</surname>
          </string-name>
          , “
          <article-title>Language Models are Unsupervised Multitask Learners</article-title>
          ,”
          <source>OpenAI Blog</source>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>W.</given-names>
            <surname>Alschner</surname>
          </string-name>
          and
          <string-name>
            <given-names>D.</given-names>
            <surname>Skougarevskiy</surname>
          </string-name>
          , “
          <article-title>Can Robots Write Treaties? Using Recurrent Neural Networks to Draft International Investment Agreements,” in JURIX, ser</article-title>
          .
          <source>Frontiers in Artificial Intelligence and Applications</source>
          , vol.
          <volume>294</volume>
          ,
          <year>2016</year>
          , pp.
          <fpage>119</fpage>
          -
          <lpage>124</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>W.</given-names>
            <surname>Alschner</surname>
          </string-name>
          and
          <string-name>
            <given-names>D.</given-names>
            <surname>Skougarevskiy</surname>
          </string-name>
          , “
          <article-title>Towards an automated production of legal texts using recurrent neural networks</article-title>
          ,
          <source>” in Proceedings of the 16th edition of the International Conference on Artificial Intelligence and Law</source>
          ,
          <string-name>
            <surname>ICAIL</surname>
          </string-name>
          ,
          <year>2017</year>
          , pp.
          <fpage>229</fpage>
          -
          <lpage>232</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>R.</given-names>
            <surname>Zellers</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Holtzman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Rashkin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Bisk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Farhadi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Roesner</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Y.</given-names>
            <surname>Choi</surname>
          </string-name>
          , “
          <source>Defending Against Neural Fake News,” in Advances in Neural Information Processing Systems</source>
          <volume>32</volume>
          ,
          <year>2019</year>
          , pp.
          <fpage>9054</fpage>
          -
          <lpage>9065</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>D.</given-names>
            <surname>Ippolito</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Duckworth</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Callison-Burch</surname>
          </string-name>
          , and
          <string-name>
            <given-names>D.</given-names>
            <surname>Eck</surname>
          </string-name>
          , “
          <article-title>Automatic Detection of Generated Text is Easiest when Humans are Fooled,” in Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics</article-title>
          ,
          <year>2020</year>
          , pp.
          <fpage>1808</fpage>
          -
          <lpage>1822</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>S. E.</given-names>
            <surname>Kreps</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>McCain</surname>
          </string-name>
          ,
          <string-name>
            <given-names>and M.</given-names>
            <surname>Brundage</surname>
          </string-name>
          , “
          <article-title>All the News that's Fit to Fabricate: AIGenerated Text as a Tool of Media Misinformation</article-title>
          ,” Available at SSRN 3525002,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Dai</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Yang</surname>
          </string-name>
          , J. G. Carbonell,
          <string-name>
            <given-names>Q. V.</given-names>
            <surname>Le</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R.</given-names>
            <surname>Salakhutdinov</surname>
          </string-name>
          , “
          <article-title>Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context,” CoRR</article-title>
          , vol. abs/
          <year>1901</year>
          .02860,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>D.</given-names>
            <surname>Simonson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Broderick</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J.</given-names>
            <surname>Herr</surname>
          </string-name>
          , “
          <article-title>The Extent of Repetition in Contract Language,”</article-title>
          <source>in Proceedings of the Natural Legal Language Processing Workshop</source>
          ,
          <year>2019</year>
          , pp.
          <fpage>21</fpage>
          -
          <lpage>30</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>M.</given-names>
            <surname>Honnibal</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Johnson</surname>
          </string-name>
          , “
          <article-title>An Improved Non-monotonic Transition System for Dependency Parsing</article-title>
          ,”
          <source>in Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing</source>
          ,
          <year>2015</year>
          , pp.
          <fpage>1373</fpage>
          -
          <lpage>1378</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Ott</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Goyal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Du</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Joshi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Levy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lewis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Zettlemoyer</surname>
          </string-name>
          , and
          <string-name>
            <given-names>V.</given-names>
            <surname>Stoyanov</surname>
          </string-name>
          , “
          <article-title>RoBERTa: A Robustly Optimized BERT Pretraining Approach</article-title>
          ,” arXiv preprint arXiv:
          <year>1907</year>
          .11692,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>C. I.</given-names>
            <surname>Hausladen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. H.</given-names>
            <surname>Schubert</surname>
          </string-name>
          , and E. Ash, “
          <article-title>Text classification of ideological direction in judicial opinions</article-title>
          ,”
          <source>International Review of Law and Economics</source>
          , vol.
          <volume>62</volume>
          , p.
          <fpage>105903</fpage>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>