Skip to main content
QUICK REVIEW

[Paper Review] Optimal Hyperparameters for Deep LSTM-Networks for Sequence Labeling Tasks

Nils Reimers, Iryna Gurevych|arXiv (Cornell University)|Jul 21, 2017
Topic ModelingComputer Science32 references264 citations
TL;DR

The paper systematically analyzes hyperparameters for BiLSTM-based sequence labeling across five NLP tasks, finding which settings matter most and providing robust configuration recommendations.

ABSTRACT

Selecting optimal parameters for a neural network architecture can often make the difference between mediocre and state-of-the-art performance. However, little is published which parameters and design choices should be evaluated or selected making the correct hyperparameter optimization often a "black art that requires expert experiences" (Snoek et al., 2012). In this paper, we evaluate the importance of different network design choices and hyperparameters for five common linguistic sequence tagging tasks (POS, Chunking, NER, Entity Recognition, and Event Detection). We evaluated over 50.000 different setups and found, that some parameters, like the pre-trained word embeddings or the last layer of the network, have a large impact on the performance, while other parameters, for example the number of LSTM layers or the number of recurrent units, are of minor importance. We give a recommendation on a configuration that performs well among different tasks.

Motivation & Objective

  • Identify which hyperparameters and architectural extensions most influence BiLSTM-based sequence labeling performance.
  • Quantify the impact of design choices across five tasks (POS, Chunking, NER, Entities, Events).
  • Provide practical, task-robust recommendations for configuring BiLSTM-CRF models.
  • Assess robustness to random seeds and multi-task learning settings.

Proposed method

  • Evaluate over 50,000 BiLSTM network configurations across five sequence tagging tasks.
  • Compare BiLSTM-CRF, BiLSTM-CNN-CRF, and BiLSTM-LSTM-CRF architectures.
  • Systematically vary hyperparameters including word embeddings, character representations, optimizer, gradient handling, tagging schemes, dropout, layer count, and unit counts.
  • Use random sampling to assess robustness and provide option-wise comparisons with statistical tests.
  • Report findings via descriptive statistics, violin plots, and median/delta analyses.

Experimental results

Research questions

  • RQ1Which hyperparameters have the largest impact on performance across common sequence labeling tasks?
  • RQ2Do architectural extensions (CRF classifier, character representations) consistently improve performance, and under what conditions?
  • RQ3What practical configuration rules of thumb emerge for robust BiLSTM-based sequence tagging across domains and languages?

Key findings

  • Pre-trained word embeddings consistently yield the best performance across tasks; the choice significantly affects results (e.g., POS median difference ~4.97 percentage points when comparing options).
  • Two stacked BiLSTM layers usually perform best when keeping the total recurrent units moderate; the number of units itself has a smaller effect.
  • Adam-family optimizers with Nesterov momentum (Nadam) often provide the highest performance and fastest convergence; SGD frequently fails to converge.
  • Gradient normalization with a threshold around 1 improves test performance notably, while gradient clipping offers no consistent benefit.
  • A CRF classifier as the final layer generally yields higher test performance than a Softmax in tasks with strong tag dependencies; BIO tagging outperforms IOB, and IOBES offers no clear universal advantage.
  • Variational dropout applied to both output and recurrent units outperforms no dropout or naive dropout; around 100 recurrent units per LSTM network is a practical rule of thumb.
  • Multi-task learning helps mainly when tasks are linguistically similar; otherwise single-task setups are often better, with task-specific LSTM layers sometimes being advantageous.

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.