Using transformers to improve answer retrieval for legal questions
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.
Integrity signals
Registry
Cites
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.
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?
In the citing paper
“Other work uses pretrained models for improved legal question answering to power commonly used legal search engines and help lawyers conduct legal research [Vold and Conrad 2021].”
From On the Opportunities and Risks of Foundation Models (2021) · cites this paper as Vold and Conrad 2021
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
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2018) · arXiv · doi:10.48550/arxiv.1810.04805 · Cited by 73,173
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2019) · Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers) · doi:10.18653/v1/n19-1423 · Cited by 54,325
Dense passage retrieval for open-domain question answering
Karpukhin, V., Oguz, B., Min, S., Lewis, P., Wu, L., Edunov, S., Chen, D., & Yih, W.-T. (2020) · Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2020.emnlp-main.550 · Cited by 3,575
The probabilistic relevance framework: BM25 and beyond
Robertson, S., & Zaragoza, H. (2009) · Foundations and Trends® in Information Retrieval · doi:10.1561/1500000019 · Cited by 3,374
TinyBERT: Distilling BERT for natural language understanding
Jiao, X., Yin, Y., Shang, L., Jiang, X., Chen, X., Li, L., Wang, F., & Liu, Q. (2020) · Findings of the Association for Computational Linguistics: EMNLP 2020 · doi:10.18653/v1/2020.findings-emnlp.372 · Cited by 1,786
Reading Wikipedia to answer open-domain questions
Chen, D., Fisch, A., Weston, J., & Bordes, A. (2017) · Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/p17-1171 · Cited by 1,546
LEGAL-BERT: The Muppets straight out of Law School
Chalkidis, I., Fergadiotis, M., Malakasiotis, P., Aletras, N., & Androutsopoulos, I. (2020) · Findings of the Association for Computational Linguistics: EMNLP 2020 · doi:10.18653/v1/2020.findings-emnlp.261 · Cited by 994
Research works printed but not linked: 16
- 10.1007/s10772-020-09692-0 · DOI
- 10.1145/3086512.3086547 · doi:10.1145/3086512.3086547
- 10.5555/1622407.1622416 · doi:10.5555/1622407.1622416
- 10.1145/3322640.3326711 · DOI
- 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.
- 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.
- 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.
- 10.1145/1165485.1165536 · doi:10.1145/1165485.1165536
- 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.
- 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
- 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.
- 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.
- 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.
- 10.18653/v1/K17-1028 · DOI · Paper page
- 10.18653/v1/P16-1126 · DOI · Paper page
- 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
On the Opportunities and Risks of Foundation Models
Bommasani, R., Hudson, D. A., Adeli, E., Altman, R., Arora, S., von Arx, S., Bernstein, M. S., Bohg, J., Bosselut, A., Brunskill, E., et al. (2021) · arXiv · doi:10.48550/arxiv.2108.07258 · Cited by 2,676
End-to-End Transformer-Based Models in Textual-Based NLP
Rahali, A., & Akhloufi, M. A. (2023) · AI · doi:10.3390/ai4010004 · Cited by 164
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.