Legal-Tech Open Diaries: Lesson learned on how to develop and deploy light-weight models in the era of humongous Language Models
Not on the map. Why?
Abstract (arXiv)
In the era of billion-parameter-sized Language Models (LMs), start-ups have to follow trends and adapt their technology accordingly. Nonetheless, there are open challenges since the development and deployment of large models comes with a need for high computational resources and has economical consequences. In this work, we follow the steps of the R&D group of a modern legal-tech start-up and present important insights on model development and deployment. We start from ground zero by pre-training multiple domain-specific multi-lingual LMs which are a better fit to contractual and regulatory text compared to the available alternatives (XLM-R). We present benchmark results of such models in a half-public half-private legal benchmark comprising 5 downstream tasks showing the impact of larger model size. Lastly, we examine the impact of a full-scale pipeline for model compression which includes: a) Parameter Pruning, b) Knowledge Distillation, and c) Quantization: The resulting models are much more efficient without sacrificing performance at large.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 53 of its 73 references that are in the map. First posted on arXiv 24 Oct 2022.
Builds on
53 of 73 references.
References · 53
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2019Unsupervised Cross-lingual Representation Learning at Scalecited by 3,907
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2016Deep Learning with Differential Privacycited by 2,682
- 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
- 2019BioBERT: a pre-trained biomedical language representation model for biomedical text miningcited by 1,935
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
- 2019SciBERT: A Pretrained Language Model for Scientific Textcited by 1,404
38 more
- 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,242
- 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,199
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
- 2019Cross-lingual Language Model Pretrainingcited by 1,088
- 2019Publicly Available Clinical BERT Embeddingscited by 995
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2017To prune, or not to prune: exploring the efficacy of pruning for model compressioncited by 596
- 2017Learning Sparse Neural Networks through L0 Regularizationcited by 571
- 2019Improved Knowledge Distillation via Teacher Assistantcited by 567
- 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
- 2021Documenting Large Webtext Corpora: A Case Study on the Colossal Clean Crawled Corpuscited by 481
- 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 476
- 2013Do Deep Nets Really Need to be Deep?cited by 466
- 2020Movement Pruning: Adaptive Sparsity by Fine-Tuningcited by 398
- 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 302
- 2019Q8BERT: Quantized 8Bit BERTcited by 296
- 2021Sustainable AI: Environmental Implications, Challenges and Opportunitiescited by 242
- 2021When Does Pretraining Help? Assessing Self-Supervised Learning for Law and the CaseHOLD Datasetcited by 199
- 2021Block Pruning For Faster Transformerscited by 176
- 2020Training with Quantization Noise for Extreme Model Compressioncited by 145
- 2021ContractNLI: A Dataset for Document-level Natural Language Inference for Contractscited by 145
- 2021Understanding and Overcoming the Challenges of Efficient Transformer Quantizationcited by 139
- 2019Well-Read Students Learn Better: On the Importance of Pre-training Compact Modelscited by 118
- 2020When BERT Plays the Lottery, All Tickets Are Winningcited by 114
- 2022Pile of Law: Learning Responsible Data Filtering from the Law and a 256GB Open-Source Legal Datasetcited by 113
- 2022Measuring the Carbon Intensity of AI in Cloud Instancescited by 110
- 2018A generic framework for privacy preserving deep learningcited by 103
- 2021MultiEURLEX -- A multi-lingual and multi-label legal document classification dataset for zero-shot cross-lingual transfercited by 89
- 2018Tensor Comprehensions: Framework-Agnostic High-Performance Machine Learning Abstractionscited by 84
- 2019Efficient 8-Bit Quantization of Transformer Neural Machine Language Translation Modelcited by 58
- 2022FiNER: Financial Numeric Entity Recognition for XBRL Taggingcited by 47
- 2020The Deep Learning Compiler: A Comprehensive Surveycited by 46
- 2022Mining Legal Arguments in Court Decisionscited by 35
- 2022Improved Multi-label Classification under Temporal Concept Drift: Rethinking Group-Robust Algorithms in a Label-Wise Settingcited by 23
- 2018Marian: Cost-effective High-Quality Neural Machine Translation in C++cited by 22
- 2022Downstream Datasets Make Surprisingly Good Pretraining Corporacited by 20
- 2018Obligation and Prohibition Extraction Using Hierarchical RNNscited by 18
50 most cited of 53 All 53 (JSON)
Built on by
Citing papers per year: 2024: 2.
2 papers.