CoChat

Using transformers to improve answer retrieval for legal questions

Vold, Andrew, Conrad, Jack G. · 2021 · Proceedings of the Eighteenth International Conference on Artificial Intelligence and Law
Cited by 19

The DOI matches its Crossref record; 7 of the 7 references it cites were found in a registry or an index.

Abstract

Transformer architectures such as BERT, XLNet, and others are frequently used in the field of natural language processing. Transformers have achieved state-of-the-art performance in tasks such as text classification, passage summarization, machine translation, and question answering. Efficient hosting of transformer models, however, is a difficult task because of their large size and high latency. In this work, we describe how we deploy a RoBERTa Base question answer classification model in a production environment. We also compare the answer retrieval performance of a RoBERTa Base classifier against a traditional machine learning model in the legal domain by measuring the performance difference between a trained linear SVM on the publicly available PRIVACYQA dataset. We show that RoBERTa achieves a 31% improvement in F1-score and a 41% improvement in Mean Reciprocal Rank over the traditional SVM.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1145/3462757.3466102

Cites

7 of 7 references verified0 citation errors · 0 not checkable

Statistics

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Research works printed but not linked: 16

  1. 10.1007/s10772-020-09692-0 · DOI
  2. 10.1145/3086512.3086547 · doi:10.1145/3086512.3086547
  3. 10.5555/1622407.1622416 · doi:10.5555/1622407.1622416
  4. 10.1145/3322640.3326711 · DOI
  5. Y. Liu , M. O., N. Goyal , J. Du , M. Joshi , D. Chen , O. L., M. Lewis , L. Zettlemoyer , and V. Stoyanov . Roberta: A robustly optimized bert pretraining approach , 2019 . Y. Liu, M. O., N. Goyal, J. Du, M. Joshi, D. Chen, O. L., M. Lewis, L. Zettlemoyer, and V. Stoyanov. Roberta: A robustly optimized bert pretraining approach, 2019.
  6. G. McElvain , G. Sanchez , S. Matthews , D. Teo , F. Pompili , and T. Custis . West-search plus: A non-factoid question-answering system for the legal domain . In Proceedings of the 42nd International ACM SIGIR Conference on Research and Development in Information Retrieval, SIGIR 2019 , Paris, France, July 21--25 , 2019 , pages 1361 -- 1364 . ACM, 2019. G. McElvain, G. Sanchez, S. Matthews, D. Teo, F. Pompili, and T. Custis. West-search plus: A non-factoid question-answering system for the legal domain. In Proceedings of the 42nd International ACM SIGIR Conference on Research and Development in Information Retrieval, SIGIR 2019, Paris, France, July 21--25, 2019, pages 1361--1364. ACM, 2019.
  7. M. Ott , S. Edunov , A. Baevski , A. Fan , S. Gross , N. Ng , D. Grangier , and M. Auli . fairseq: A fast, extensible toolkit for sequence modeling , 2019 . M. Ott, S. Edunov, A. Baevski, A. Fan, S. Gross, N. Ng, D. Grangier, and M. Auli. fairseq: A fast, extensible toolkit for sequence modeling, 2019.
  8. 10.1145/1165485.1165536 · doi:10.1145/1165485.1165536
  9. P. Rajpurkar , J. Zhang , K. Lopyrev , and P. Liang . Squad: 100,000+ questions for machine comprehension of text , 2016 . P. Rajpurkar, J. Zhang, K. Lopyrev, and P. Liang. Squad: 100,000+ questions for machine comprehension of text, 2016.
  10. A. Ravichander , A. W. Black , S. Wilson , T. B. Norton , and N. M. Sadeh . Question answering for privacy policies: Combining computational and legal perspectives. CoRR, abs/1911.00841 , 2019 . A. Ravichander, A. W. Black, S. Wilson, T. B. Norton, and N. M. Sadeh. Question answering for privacy policies: Combining computational and legal perspectives. CoRR, abs/1911.00841, 2019. · arXiv
  11. P. Story , S. Zimmeck , and N. Sadeh . Which apps have privacy policies? In M . Medina, A. Mitrakas, K. Rannenberg, E. Schweighofer, and N. Tsouroulas, editors, Privacy Technologies and Policy, pages 3 -- 23 , Cham, 2018 . Springer International Publishing . P. Story, S. Zimmeck, and N. Sadeh. Which apps have privacy policies? In M. Medina, A. Mitrakas, K. Rannenberg, E. Schweighofer, and N. Tsouroulas, editors, Privacy Technologies and Policy, pages 3--23, Cham, 2018. Springer International Publishing.
  12. H. R. Turtle . Text retrieval in the legal world. Artif. Intell. Law, 3(1--2):5--54 , 1995 . H. R. Turtle. Text retrieval in the legal world. Artif. Intell. Law, 3(1--2):5--54, 1995.
  13. E. M. Voorhees . The trec-8 question answering track report . In Proceedings of TREC-8 , pages 77 -- 82 , 1999 . E. M. Voorhees. The trec-8 question answering track report. In Proceedings of TREC-8, pages 77--82, 1999.
  14. 10.18653/v1/K17-1028 · DOI · Paper page
  15. 10.18653/v1/P16-1126 · DOI · Paper page
  16. M. Zhu , A. Ahuja , D. Juan , W. Wei , and C. K. Reddy . Question answering with long multiple-span answers. In T. Cohn, Y. He, and Y. Liu, editors , Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: Findings, EMNLP 2020, Online Event, 16--20 November 2020 , pages 3840 -- 3849 . Association for Computational Linguistics , 2020. M. Zhu, A. Ahuja, D. Juan, W. Wei, and C. K. Reddy. Question answering with long multiple-span answers. In T. Cohn, Y. He, and Y. Liu, editors, Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: Findings, EMNLP 2020, Online Event, 16--20 November 2020, pages 3840--3849. Association for Computational Linguistics, 2020.

Cited by

See all 19

Metadata

Authors
Vold, A., & Conrad, J. G.
Affiliations
Thomson Reuters
Venue
Proceedings of the Eighteenth International Conference on Artificial Intelligence and Law
Publisher
ACM
Published
2021-06-21
Pages
245-249
Cited by
19
References
7

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.