mlsanityData to 14 Oct 2026

Beyond Token Limits: Assessing Language Model Performance on Long Text Classification

arXiv 2509.10199 ↗First posted 12 Sep 2025cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

The most widely used large language models in the social sciences (such as BERT, and its derivatives, e.g. RoBERTa) have a limitation on the input text length that they can process to produce predictions. This is a particularly pressing issue for some classification tasks, where the aim is to handle long input texts. One such area deals with laws and draft laws (bills), which can have a length of multiple hundred pages and, therefore, are not particularly amenable for processing with models that can only handle e.g. 512 tokens. In this paper, we show results from experiments covering 5 languages with XLM-RoBERTa, Longformer, GPT-3.5, GPT-4 models for the multiclass classification task of the Comparative Agendas Project, which has a codebook of 21 policy topic labels from education to health care. Results show no particular advantage for the Longformer model, pre-trained specifically for the purposes of handling long inputs. The comparison between the GPT variants and the best-performing open model yielded an edge for the latter. An analysis of class-level factors points to the importance of support and substance overlaps between specific categories when it comes to performance on long text inputs.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 17 of its 29 references that are in the map. First posted on arXiv 12 Sep 2025.

Builds on

17 of 29 references.

References · 17

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  4. 2020Scaling Laws for Neural Language Modelscited by 6,586
  5. 2019Unsupervised Cross-lingual Representation Learning at Scalecited by 3,935
  6. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  7. 2020Longformer: The Long-Document Transformercited by 3,413
  8. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
  9. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  10. 2020Big Bird: Transformers for Longer Sequencescited by 1,684
  11. 2020Rethinking Attention with Performerscited by 1,601
  12. 2024Aya Model: An Instruction Finetuned Open-Access Multilingual Language Modelcited by 295
5 more
  1. 2022Mega: Moving Average Equipped Gated Attentioncited by 179
  2. 2024Same Task, More Tokens: the Impact of Input Length on the Reasoning Performance of Large Language Modelscited by 152
  3. 2023Walking Down the Memory Maze: Beyond Context Limit through Interactive Readingcited by 133
  4. 2019Hierarchical Transformers for Long Document Classificationcited by 104
  5. 2024A Survey on Transformer Compressioncited by 46

Built on by

Not cited yet.