Skip to main content
QUICK REVIEW

[Paper Review] Leap-LSTM: Enhancing Long Short-Term Memory for Text Categorization

Ting Huang, Gehui Shen|arXiv (Cornell University)|May 28, 2019
Topic ModelingComputer Science19 references5 citations
TL;DR

Leap-LSTM enhances standard LSTM with dynamic, context-aware word skipping for improved efficiency and accuracy in text categorization. By fusing features from preceding, current, and following words, it makes informed skipping decisions, achieving faster inference and better performance than standard LSTM and prior skip-RNN models, with controllable skip rates via a penalization term during training.

ABSTRACT

Recurrent Neural Networks (RNNs) are widely used in the field of natural language processing (NLP), ranging from text categorization to question answering and machine translation. However, RNNs generally read the whole text from beginning to end or vice versa sometimes, which makes it inefficient to process long texts. When reading a long document for a categorization task, such as topic categorization, large quantities of words are irrelevant and can be skipped. To this end, we propose Leap-LSTM, an LSTM-enhanced model which dynamically leaps between words while reading texts. At each step, we utilize several feature encoders to extract messages from preceding texts, following texts and the current word, and then determine whether to skip the current word. We evaluate Leap-LSTM on several text categorization tasks: sentiment analysis, news categorization, ontology classification and topic classification, with five benchmark data sets. The experimental results show that our model reads faster and predicts better than standard LSTM. Compared to previous models which can also skip words, our model achieves better trade-offs between performance and efficiency.

Motivation & Objective

  • To address the inefficiency of standard RNNs in processing long texts by enabling dynamic skipping of irrelevant words during inference.
  • To improve text categorization performance by incorporating contextual information from preceding, current, and following words to guide skipping decisions.
  • To achieve a better trade-off between inference speed and prediction accuracy compared to existing skip-RNN models.
  • To investigate the underlying reasons for performance gains beyond mere word skipping, including training dynamics.

Proposed method

  • Leap-LSTM introduces a novel decision mechanism that evaluates features from preceding text, current word, and following text at each time step to determine whether to skip the current word.
  • It employs multiple feature encoders—CNNs and RNNs—to extract representations from the three contextual sources: past, current, and future words.
  • A learnable skip gate uses the fused features to compute a skip probability, enabling dynamic and context-sensitive skipping behavior.
  • The model is trained with a direct penalization term on the skip rate, allowing precise control over the proportion of words skipped during inference.
  • A novel schedule-training scheme is introduced to explore how dynamic data sampling during training contributes to performance gains.
  • The architecture is integrated into standard LSTM, preserving its long-term dependency learning while enhancing efficiency.

Experimental results

Research questions

  • RQ1Can a model that leverages information from preceding, current, and following words make more accurate skipping decisions than models relying only on past context?
  • RQ2Does controlling the skip rate via a penalization term during training lead to stable and predictable speedups without performance degradation?
  • RQ3What is the contribution of dynamic training sampling (schedule-training) to performance improvement beyond word skipping?
  • RQ4How does the model’s skipping behavior correlate with semantic relevance to the document’s topic?

Key findings

  • Leap-LSTM achieves faster inference than standard LSTM and previous skip-RNN models by dynamically skipping unimportant words while maintaining or improving prediction accuracy.
  • On five benchmark datasets, Leap-LSTM outperforms standard LSTM and prior skip models in both accuracy and inference speed, with a better trade-off between efficiency and performance.
  • The model demonstrates high selectivity in skipping: top-5 keep-rate words across DBPedia classes are highly informative (e.g., 'fc', 'Olympics', 'film'), with some achieving 100% keep rates, indicating strong relevance detection.
  • Case studies show Leap-LSTM retains key topic-relevant terms (e.g., 'treasury prices', 'Olympic men’s basketball') while skipping stop words and prepositions more effectively than Skip LSTM or Skim-LSTM.
  • The schedule-training scheme leads to test accuracies close to the full model, suggesting that dynamic data sampling during training contributes significantly to performance gains.
  • The model’s ability to consider future context enables more accurate skipping than models that rely solely on past hidden states, reducing risky skips.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.