<!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>Rhetorical Role Labelling for Legal Judgements Using ROBERTA</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Soumayan Bandhu Majumder</string-name>
          <email>soumayanmajumder@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dipankar Das</string-name>
          <email>dipankar.dipnil2005@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Jadavpur University</institution>
          ,
          <addr-line>188, Raja S.C. Mallick Rd, Kolkata</addr-line>
          ,
          <country country="IN">India</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Legal document</institution>
          ,
          <addr-line>Roberta, Rhetorical role</addr-line>
        </aff>
      </contrib-group>
      <abstract>
        <p>In the present attempt we build a Roberta based model for shared task 2 (Rhetorical Role Labelling for Legal Judgements) in AILA 20. We use Roberta model to get the text embedding. Output of the Roberta is passed through the bidirectional LSTM of 256 units and 128 units, after that passed that output through a dense layer and global_max_pooling_1D layer and finally a softmax layer of 7 activation unit. We use batch size of 16 and max length of 120. We submit 3 runs where 2nd, 3rd and 1st run submissions were scored (Macro-F-score) 0.468, 0.457 and 0.452 respectively. These three systems ranked 1st, 2nd and 4th respectively.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
    </sec>
    <sec id="sec-2">
      <title>2. Related Study</title>
      <p>
        There are some previous work already done on this area. Saravanan et.al. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] worked upon rhetorical
role identification in rent control, income tax, sales tax domain. Here they have used Conditional
Random Field (CRF) upon label transition features. Savelka et.al. [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] also worked upon in rhetorical
role identification and used CRF upon parts of speech tags. They here worked upon Cyber crime
domain. Bhattacharya et.al. [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] worked upon legal domain for rhetorical role identification and used
      </p>
      <sec id="sec-2-1">
        <title>LSTM with CRF to detect each of seven labels.</title>
        <p>2020 Copyright for this paper by its authors.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Dataset</title>
      <p>Legal case documents follow a common thematic structure with implicit sections like Facts of the
Case, Issues being discussed, Arguments given by the parties, etc. These sections are popularly
termed as "rhetorical roles".</p>
      <p>So here we have to classify each sentence of a document to one of the below mentioned seven
classes. Here we briefly explain what those seven classes actually mean for better understanding.
1. Facts: Sentences that denote the chronology of events that led to filing the case.
2. Ruling by Lower Court: Since we will be providing Indian Supreme Court cases, these cases
were given a preliminary ruling by the lower courts (Tribunal, High Court etc.). These
sentences correspond to the ruling/decision given by these lower courts.
3. Argument: Sentences that denote the arguments of the contending parties.
4. Statute: Relevant statute cited.
5. Precedent: Relevant precedent cited.
6. Ratio of the decision: Sentences that denote the rationale/reasoning given by the Supreme</p>
      <p>Court for the final judgement.
7. Ruling by Present Court: Sentences that denote the final decision given by the Supreme Court
for that case document.</p>
      <p>We are given 50 legal documents for training purpose and 10 legal documents for testing. Number
of sentences present in these documents are different. Each sentence is labelled with one of the seven
classes. These classes are not balanced. Below we give a snapshot of our dataset that is provided us for
training.</p>
      <sec id="sec-3-1">
        <title>Snapshot of our training dataset</title>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Methods</title>
      <p>Pre-processing:- We are given labelled dataset. Labels of these dataset are categorical variables so
first we have to convert these variables to one hot encoded variables. Here we have done nominal
encoding (one hot encoding) instead of ordinal encoding because here order does not matter.
Model:- We have tried different types of models for this shared task. Mainly those models are
Random forest, Universal Sentence Encoder, BERT, ROBERTA. Among these models ROBERTA
gives the best result.</p>
      <p>In Random forest based model we used around 500 trees which are of full depth with gini index.
In Universal Sentence encoder based model we have used U.S.E. large version 5, first we get those
embeddings and then passed through the softmax layer of 7 activation unit to get the desired output.
In BERT based model we used bert_large_uncased. We passed the output of the bert through the 256
unit neural network with relu activation unit then apply the dropout of 0.4 and passed it through the
128 unit neural network with relu activation unit and again apply dropout of 0.4 and finally passed it
through the softmax layer of 7 activation unit to get the desired output.</p>
      <p>In Roberta based model to predict labels the output of Roberta is send to the bidirectional LSTM of
256 units and 128 units respectively, after that passed that output through a dense layer and
global_max_pooling_1D layer and finally a softmax layer of 7 activation unit. We have used loss
function as categorical crossentropy and Adam as optimizer. We use batch size of 16 and max length
of 120. We submit 3 runs where 1st run submission runs for 13 epoch, 2nd run submission runs for 15
epoch and 3rd run submission runs for 19 epoch.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Experiments &amp; Results</title>
      <p>Here we are going to see performance of our four different models (Random forest, Universal
Sentence Encoder, BERT, ROBERTA) upon validation dataset, which we taken from our training
dataset. From the below mentioned table we can see that among these models ROBERTA based model
performed best.</p>
      <sec id="sec-5-1">
        <title>Models</title>
      </sec>
      <sec id="sec-5-2">
        <title>Metrics</title>
      </sec>
      <sec id="sec-5-3">
        <title>Random</title>
      </sec>
      <sec id="sec-5-4">
        <title>Forest</title>
      </sec>
      <sec id="sec-5-5">
        <title>Universal</title>
      </sec>
      <sec id="sec-5-6">
        <title>Sentence</title>
      </sec>
      <sec id="sec-5-7">
        <title>Encoder</title>
        <p>precisio
n
recall
F score
precisio
n</p>
      </sec>
      <sec id="sec-5-8">
        <title>Argumen t</title>
        <p>0.103</p>
        <p>From the below mentioned confusion matrix (of ROBERTA model) we can see that from our
validation dataset (10 documents of training set) which classes are predicted correctly and which are
predicted wrong. We can see that Argument class predicted correctly 91 times, Facts class predicted
correctly 388 times, Precedent class predicted correctly 149 times but precedent predicted as Ratio of
the decision 221 times that is why we are getting recall value of 0.34, Ratio of the decision is correctly
predicted 279 times but wrongly predicted as Facts 129 times, Ruling by Lower court predicted
correctly for just 8 times and this creates the most problem for our models. This Ruling by Lower court
predicted as Facts 39 times and Ratio of the decision 24 times so its recall value decreases very much
and become 0.10 only. Ruling by present court predicted correctly 25 times and Statute predicted
correctly 67 times.</p>
        <p>For evaluation of the model Macro F-score is considered instead of accuracy because here given classes
are not balanced. Here task organizers first calculate Recall, Precision and F-score for each category of
labels within each document. Then the score for each document in a run were computed by averaging
the scores for all seven categories in that document. Finally, the overall scores for a run are computed
by averaging the scores for each document.</p>
      </sec>
      <sec id="sec-5-9">
        <title>Team_runid</title>
        <p>ju_nlp_1
ju_nlp_2
ju_nlp_3</p>
      </sec>
      <sec id="sec-5-10">
        <title>Macro precision</title>
        <p>0.504
0.506
0.519</p>
      </sec>
      <sec id="sec-5-11">
        <title>Macro recall Macro F-score</title>
        <p>0.483 0.452
0.501 0.468
0.479 0.457</p>
      </sec>
      <sec id="sec-5-12">
        <title>Final result given by the task organizers</title>
      </sec>
      <sec id="sec-5-13">
        <title>Accuracy</title>
        <p>0.588
0.588
0.57</p>
        <p>Our system ju_nlp_2 ranked 1 in this competition with Macro F-score of 0.468. We submit our
Roberta model with 13 epochs (ju_nlp_1), 15 epochs (ju_nlp_2) and 19 epochs (ju_nlp_3) respectively.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusion</title>
    </sec>
    <sec id="sec-7">
      <title>7. References</title>
      <p>From the above we can see that we try different types of models to get desired output but we face
main problem to detect the class Ruling by the lower court because in our validation dataset (comprised
of 10 documents) we can only predicted it 8 times correctly and precision and recall value of 0.444 and
0.10 respectively. In future we should try some other things to detect this particular class correctly.
Performance of this model depends upon how the test data reflects the real world dataset.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>M.</given-names>
            <surname>Saravanan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Ravindran</surname>
          </string-name>
          , and
          <string-name>
            <given-names>S.</given-names>
            <surname>Raman</surname>
          </string-name>
          , “
          <article-title>Automatic Identification of Rhetorical Roles using Conditional Random Fields for Legal Document Summarization,”</article-title>
          <source>in Proc. International Joint Conference on Natural Language Processing: Volume-I</source>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>J.</given-names>
            <surname>Savelka</surname>
          </string-name>
          and
          <string-name>
            <surname>K. D. Ashley</surname>
          </string-name>
          , “
          <article-title>Segmenting U.S. court decisions into functional and issue specific parts,”</article-title>
          <source>in Proc. JURIX</source>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Bhattacharya</surname>
            , Paheli &amp; Paul, Shounak &amp; Ghosh, Kripabandhu &amp; Ghosh, Saptarshi &amp; Wyner,
            <given-names>Adam.</given-names>
          </string-name>
          (
          <year>2019</year>
          ).
          <article-title>Identification of Rhetorical Roles of Sentences in Indian Legal Judgments</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>P.</given-names>
            <surname>Bhattacharya</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Mehta</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Ghosh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Ghosh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Pal</surname>
          </string-name>
          ,
          <string-name>
            <surname>A. Bhattacharya.</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Majumder</surname>
          </string-name>
          ,
          <article-title>Overview of the Fire 2020 AILA track: Artificial Intelligence for Legal Assistance</article-title>
          .
          <source>In Proc. of FIRE 2020 - Forum for Information Retrieval Evaluation</source>
          , Hyderabad, India,
          <source>December 16-20</source>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>