# NLPGym -- A toolkit for evaluating RL agents on Natural Language Processing Tasks

Source: [NLPGym -- A toolkit for evaluating RL agents on Natural Language Processing Tasks](<https://www.sota2.com/research/paper/68fa68c61e209131cea1e554>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-25T22:45:52.748Z

Authors: Rajkumar Ramamurthy, Rafet Sifa, Christian Bauckhage

Published: 2020-11-16T20:58:35.000Z

## Abstract

Reinforcement learning (RL) has recently shown impressive performance in complex game AI and robotics tasks. To a large extent, this is thanks to the availability of simulated environments such as OpenAI Gym, Atari Learning Environment, or Malmo which allow agents to learn complex tasks through interaction with virtual environments. While RL is also increasingly applied to natural language processing (NLP), there are no simulated textual environments available for researchers to apply and consistently benchmark RL on NLP tasks. With the work reported here, we therefore release NLPGym, an open-source Python toolkit that provides interactive textual environments for standard NLP tasks such as sequence tagging, multi-label classification, and question answering. We also present experimental results for 6 tasks using different RL algorithms which serve as baselines for further research. The toolkit is published at https://github.com/rajcscw/nlp-gym

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2011.08272>)

[PDF](<https://arxiv.org/pdf/2011.08272.pdf>)
