BudgetLongformer: Can we Cheaply Pretrain a SotA Legal Language Model From Scratch?

Pretrained transformer models have achieved state-of-the-art results in many tasks and benchmarks recently. Many state-of-the-art Language Models (LMs), however, do not scale well above the threshold of 512 input tokens. In specialized domains though (such as legal, scientific or biomedical), models...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Niklaus, Joel, Giofré, Daniele
Format: Artikel
Sprache:eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
container_end_page
container_issue
container_start_page
container_title
container_volume
creator Niklaus, Joel
Giofré, Daniele
description Pretrained transformer models have achieved state-of-the-art results in many tasks and benchmarks recently. Many state-of-the-art Language Models (LMs), however, do not scale well above the threshold of 512 input tokens. In specialized domains though (such as legal, scientific or biomedical), models often need to process very long text (sometimes well above 10000 tokens). Even though many efficient transformers have been proposed (such as Longformer, BigBird or FNet), so far, only very few such efficient models are available for specialized domains. Additionally, since the pretraining process is extremely costly in general - but even more so as the sequence length increases - it is often only in reach of large research labs. One way of making pretraining cheaper is the Replaced Token Detection (RTD) task, by providing more signal during training, since the loss can be computed over all tokens. In this work, we train Longformer models with the efficient RTD task on legal data to showcase that pretraining efficient LMs is possible using much less compute. We evaluate the trained models on challenging summarization tasks requiring the model to summarize long texts to show to what extent the models can achieve good performance on downstream tasks. We find that both the small and base models outperform their baselines on the in-domain BillSum and out-of-domain PubMed tasks in their respective parameter range. We publish our code and models for research purposes.
doi_str_mv 10.48550/arxiv.2211.17135
format Article
fullrecord <record><control><sourceid>arxiv_GOX</sourceid><recordid>TN_cdi_arxiv_primary_2211_17135</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>2211_17135</sourcerecordid><originalsourceid>FETCH-LOGICAL-a675-7246cb4b9480b84ba4e9f73bd7ce7376bc8f7d5b1e5694f73a4bc546a3ba18a3</originalsourceid><addsrcrecordid>eNotz8FOhDAUheFuXJjRB3DlfQGQ0pYWN2Ykjk5SownuyW25MCRAJ5VR5-3V0dVZ_MlJPsaueJZKo1R2g_Fr-EjznPOUay7UOavvD21Piw1z34U4UbyFCmf4JKh2hPvxCK-RlojDDAh1WNZgqccRLM79AXuC59DSCJsYJqh9xMXv7i7YWYfjO13-74rVm4e36imxL4_bam0TLLRKdC4L76QrpcmckQ4llZ0WrtWetNCF86bTrXKcVFHKn4LSeSULFA65QbFi13-vJ1Szj8OE8dj84poTTnwDNhlJew</addsrcrecordid><sourcetype>Open Access Repository</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype></control><display><type>article</type><title>BudgetLongformer: Can we Cheaply Pretrain a SotA Legal Language Model From Scratch?</title><source>arXiv.org</source><creator>Niklaus, Joel ; Giofré, Daniele</creator><creatorcontrib>Niklaus, Joel ; Giofré, Daniele</creatorcontrib><description>Pretrained transformer models have achieved state-of-the-art results in many tasks and benchmarks recently. Many state-of-the-art Language Models (LMs), however, do not scale well above the threshold of 512 input tokens. In specialized domains though (such as legal, scientific or biomedical), models often need to process very long text (sometimes well above 10000 tokens). Even though many efficient transformers have been proposed (such as Longformer, BigBird or FNet), so far, only very few such efficient models are available for specialized domains. Additionally, since the pretraining process is extremely costly in general - but even more so as the sequence length increases - it is often only in reach of large research labs. One way of making pretraining cheaper is the Replaced Token Detection (RTD) task, by providing more signal during training, since the loss can be computed over all tokens. In this work, we train Longformer models with the efficient RTD task on legal data to showcase that pretraining efficient LMs is possible using much less compute. We evaluate the trained models on challenging summarization tasks requiring the model to summarize long texts to show to what extent the models can achieve good performance on downstream tasks. We find that both the small and base models outperform their baselines on the in-domain BillSum and out-of-domain PubMed tasks in their respective parameter range. We publish our code and models for research purposes.</description><identifier>DOI: 10.48550/arxiv.2211.17135</identifier><language>eng</language><subject>Computer Science - Artificial Intelligence ; Computer Science - Computation and Language ; Computer Science - Learning</subject><creationdate>2022-11</creationdate><rights>http://creativecommons.org/licenses/by-nc-nd/4.0</rights><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><link.rule.ids>228,230,780,885</link.rule.ids><linktorsrc>$$Uhttps://arxiv.org/abs/2211.17135$$EView_record_in_Cornell_University$$FView_record_in_$$GCornell_University$$Hfree_for_read</linktorsrc><backlink>$$Uhttps://doi.org/10.48550/arXiv.2211.17135$$DView paper in arXiv$$Hfree_for_read</backlink></links><search><creatorcontrib>Niklaus, Joel</creatorcontrib><creatorcontrib>Giofré, Daniele</creatorcontrib><title>BudgetLongformer: Can we Cheaply Pretrain a SotA Legal Language Model From Scratch?</title><description>Pretrained transformer models have achieved state-of-the-art results in many tasks and benchmarks recently. Many state-of-the-art Language Models (LMs), however, do not scale well above the threshold of 512 input tokens. In specialized domains though (such as legal, scientific or biomedical), models often need to process very long text (sometimes well above 10000 tokens). Even though many efficient transformers have been proposed (such as Longformer, BigBird or FNet), so far, only very few such efficient models are available for specialized domains. Additionally, since the pretraining process is extremely costly in general - but even more so as the sequence length increases - it is often only in reach of large research labs. One way of making pretraining cheaper is the Replaced Token Detection (RTD) task, by providing more signal during training, since the loss can be computed over all tokens. In this work, we train Longformer models with the efficient RTD task on legal data to showcase that pretraining efficient LMs is possible using much less compute. We evaluate the trained models on challenging summarization tasks requiring the model to summarize long texts to show to what extent the models can achieve good performance on downstream tasks. We find that both the small and base models outperform their baselines on the in-domain BillSum and out-of-domain PubMed tasks in their respective parameter range. We publish our code and models for research purposes.</description><subject>Computer Science - Artificial Intelligence</subject><subject>Computer Science - Computation and Language</subject><subject>Computer Science - Learning</subject><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2022</creationdate><recordtype>article</recordtype><sourceid>GOX</sourceid><recordid>eNotz8FOhDAUheFuXJjRB3DlfQGQ0pYWN2Ykjk5SownuyW25MCRAJ5VR5-3V0dVZ_MlJPsaueJZKo1R2g_Fr-EjznPOUay7UOavvD21Piw1z34U4UbyFCmf4JKh2hPvxCK-RlojDDAh1WNZgqccRLM79AXuC59DSCJsYJqh9xMXv7i7YWYfjO13-74rVm4e36imxL4_bam0TLLRKdC4L76QrpcmckQ4llZ0WrtWetNCF86bTrXKcVFHKn4LSeSULFA65QbFi13-vJ1Szj8OE8dj84poTTnwDNhlJew</recordid><startdate>20221130</startdate><enddate>20221130</enddate><creator>Niklaus, Joel</creator><creator>Giofré, Daniele</creator><scope>AKY</scope><scope>GOX</scope></search><sort><creationdate>20221130</creationdate><title>BudgetLongformer: Can we Cheaply Pretrain a SotA Legal Language Model From Scratch?</title><author>Niklaus, Joel ; Giofré, Daniele</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-LOGICAL-a675-7246cb4b9480b84ba4e9f73bd7ce7376bc8f7d5b1e5694f73a4bc546a3ba18a3</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2022</creationdate><topic>Computer Science - Artificial Intelligence</topic><topic>Computer Science - Computation and Language</topic><topic>Computer Science - Learning</topic><toplevel>online_resources</toplevel><creatorcontrib>Niklaus, Joel</creatorcontrib><creatorcontrib>Giofré, Daniele</creatorcontrib><collection>arXiv Computer Science</collection><collection>arXiv.org</collection></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext_linktorsrc</fulltext></delivery><addata><au>Niklaus, Joel</au><au>Giofré, Daniele</au><format>journal</format><genre>article</genre><ristype>JOUR</ristype><atitle>BudgetLongformer: Can we Cheaply Pretrain a SotA Legal Language Model From Scratch?</atitle><date>2022-11-30</date><risdate>2022</risdate><abstract>Pretrained transformer models have achieved state-of-the-art results in many tasks and benchmarks recently. Many state-of-the-art Language Models (LMs), however, do not scale well above the threshold of 512 input tokens. In specialized domains though (such as legal, scientific or biomedical), models often need to process very long text (sometimes well above 10000 tokens). Even though many efficient transformers have been proposed (such as Longformer, BigBird or FNet), so far, only very few such efficient models are available for specialized domains. Additionally, since the pretraining process is extremely costly in general - but even more so as the sequence length increases - it is often only in reach of large research labs. One way of making pretraining cheaper is the Replaced Token Detection (RTD) task, by providing more signal during training, since the loss can be computed over all tokens. In this work, we train Longformer models with the efficient RTD task on legal data to showcase that pretraining efficient LMs is possible using much less compute. We evaluate the trained models on challenging summarization tasks requiring the model to summarize long texts to show to what extent the models can achieve good performance on downstream tasks. We find that both the small and base models outperform their baselines on the in-domain BillSum and out-of-domain PubMed tasks in their respective parameter range. We publish our code and models for research purposes.</abstract><doi>10.48550/arxiv.2211.17135</doi><oa>free_for_read</oa></addata></record>
fulltext fulltext_linktorsrc
identifier DOI: 10.48550/arxiv.2211.17135
ispartof
issn
language eng
recordid cdi_arxiv_primary_2211_17135
source arXiv.org
subjects Computer Science - Artificial Intelligence
Computer Science - Computation and Language
Computer Science - Learning
title BudgetLongformer: Can we Cheaply Pretrain a SotA Legal Language Model From Scratch?
url https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-03T16%3A36%3A16IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-arxiv_GOX&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.genre=article&rft.atitle=BudgetLongformer:%20Can%20we%20Cheaply%20Pretrain%20a%20SotA%20Legal%20Language%20Model%20From%20Scratch?&rft.au=Niklaus,%20Joel&rft.date=2022-11-30&rft_id=info:doi/10.48550/arxiv.2211.17135&rft_dat=%3Carxiv_GOX%3E2211_17135%3C/arxiv_GOX%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_id=info:pmid/&rfr_iscdi=true