mlsanityData to 14 Oct 2026

Preventing RNN from Using Sequence Length as a Feature

arXiv 2212.08276 ↗First posted 16 Dec 2022cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Recurrent neural networks are deep learning topologies that can be trained to classify long documents. However, in our recent work, we found a critical problem with these cells: they can use the length differences between texts of different classes as a prominent classification feature. This has the effect of producing models that are brittle and fragile to concept drift, can provide misleading performances and are trivially explainable regardless of text content. This paper illustrates the problem using synthetic and real-world data and provides a simple solution using weight decay regularization.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 5 of its 14 references that are in the map. First posted on arXiv 16 Dec 2022.

Builds on

5 of 14 references.

References · 5

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Longformer: The Long-Document Transformercited by 3,413
  3. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
  4. 2017Regularizing and Optimizing LSTM Language Modelscited by 205
  5. 2021Sequence Length is a Domain: Length-based Overfitting in Transformer Modelscited by 35

Built on by

Not cited yet.