On the Effects of Fine-tuning Language Models for Text-Based Reinforcement Learning
Mauricio Gruppi, Soham Dan, Keerthiram Murugesan, Subhajit Chaudhury
TL;DR
This work examines how fine-tuning language models (LMs) affects learning in text-based reinforcement learning (TBRL). By comparing fixed pretrained LMs against fine-tuned variants across TextWorld Commonsense and Jericho, it shows that preserving semantic information accelerates training and enhances robustness, while fine-tuning induces semantic degeneration that impairs learning and transfer to paraphrased or vocabulary-altered tasks. The study reveals word-embedding drift during fine-tuning and demonstrates that fixed LMs maintain performance under language perturbations, whereas fine-tuned models falter. These findings highlight the value of maintaining pre-trained semantic structures in TBRL and point toward methods that balance task-specific adaptation with semantic retention.
Abstract
Text-based reinforcement learning involves an agent interacting with a fictional environment using observed text and admissible actions in natural language to complete a task. Previous works have shown that agents can succeed in text-based interactive environments even in the complete absence of semantic understanding or other linguistic capabilities. The success of these agents in playing such games suggests that semantic understanding may not be important for the task. This raises an important question about the benefits of LMs in guiding the agents through the game states. In this work, we show that rich semantic understanding leads to efficient training of text-based RL agents. Moreover, we describe the occurrence of semantic degeneration as a consequence of inappropriate fine-tuning of language models in text-based reinforcement learning (TBRL). Specifically, we describe the shift in the semantic representation of words in the LM, as well as how it affects the performance of the agent in tasks that are semantically similar to the training games. We believe these results may help develop better strategies to fine-tune agents in text-based RL scenarios.
