Reinforcement Learning for Transition-Based Mention Detection

Georgiana Dinu, Wael Hamza, Radu FlorianarXiv 2017

Abstract

This paper describes an application of reinforcement learning to the mention detection task. We define a novel action-based formulation for the mention detection task, in which a model can flexibly revise past labeling decisions by grouping together tokens and assigning partial mention labels. We devise a method to create mention-level episodes and we train a model by rewarding correctly labeled complete mentions, irrespective of the inner structure created. The model yields results which are on par with a competitive supervised counterpart while being more flexible in terms of achieving targeted behavior through reward modeling and generating internal mention structure, especially on longer mentions.

Introduction

Mention detection—the task of identifying and categorizing entities like people, places, or organizations in text—is traditionally treated as a sequence labeling problem. Most models use the BIO (Beginning, Inside, Outside) encoding scheme, which assigns a tag to each word. However, this approach suffers from two major weaknesses: rigidity, as models cannot easily revise decisions based on subsequent context, and label bias, where local word associations (e.g., "New York" as a Geographical Entity) can override the global context (e.g., "New York and New Jersey Port Authority" as an Organization).

This paper introduces a transition-based approach that utilizes Reinforcement Learning (RL) to build entities as labeled binary trees. By formulating the task as a sequence of actions, the model gains the flexibility to revise its internal labeling decisions as it processes more context.

Methodology

The proposed system employs a transition-based formulation inspired by dependency parsing, maintaining a stack for processed tokens and a buffer for upcoming text. The agent selects from two primary actions:

  • Shift_LABEL: Moves a token from the buffer to the stack with an initial label.
  • Reduce_LABEL: Merges the top two stack elements into a single unit with a potentially new label.
Example of the transition-based mention detection process for 'George Washington Bridge'.

To train the model without explicit internal tree structures, the authors use RL (specifically Q-learning and SARSA). The agent receives a positive reward only if the final root of the mention tree matches the gold standard. This episode-based reward structure allows the model to explore various internal groupings, rewarding the final outcome rather than intermediate steps. The underlying architecture combines word embeddings, character-level LSTMs, and convolutional layers to represent phrases on the stack.

Experimental Setup

The model was evaluated on three standard benchmarks:

  • CoNLL English: A classic NER dataset with 4 entity types.
  • CoNLL Spanish: Used to test cross-linguistic performance.
  • OntoNotes 5.0: A large and complex dataset with 18 entity types, including nominal and pronominal mentions.

Results and Discussion

The RL models achieved performance levels comparable to strong supervised baselines (SL). As shown in the results, the RL-Qlearn model achieved an F1 score of 89.17 on CoNLL English, closely matching the SL baseline of 89.85.

Performance comparison (F1 score) between supervised learning (SL) and reinforcement learning (RL) models across three datasets.

Beyond raw performance, the RL approach demonstrated significant advantages in handling label bias. By allowing dynamic revision through the Reduce action, the model can initially label "George Washington" as a PERSON and later re-label the entire phrase as a FACILITY upon encountering "Bridge." Analysis showed that the RL model made significantly fewer mistakes on long mentions (size 3 or 4) compared to the supervised baseline. Furthermore, the model learned latent structures—such as grouping "Stock Market" before attaching it to "New York"—even without explicit structural supervision.

Conclusion

This work demonstrates that RL can effectively train transition-based mention detection models that are both flexible and competitive with supervised counterparts. The "wait-and-see" approach enabled by the transition-based framework effectively mitigates label bias in complex entities. Future research may explore actor-critic architectures for pre-training or incorporating rewards based on syntactic consistency to further improve the coherence of generated internal structures.

Summary updated

BibTeX
@misc{dinu2017reinforcement,
  author = {Georgiana Dinu and Wael Hamza and Radu Florian},
  title = {{Reinforcement Learning for Transition-Based Mention Detection}},
  year = {2017},
  eprint = {1703.04489},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1703.04489},
}
Figure