TL;DR
This paper introduces TrufLL, a novel approach to train language generation models from scratch using Reinforcement Learning (RL) without relying on pre-trained models or task-specific labeled data. By dynamically truncating the vocabulary space with a generic language model, TrufLL effectively tackles the challenge of large action spaces in RL for language generation, achieving competitive results on visual question generation tasks.
What Problem Does This Paper Address?
Traditional approaches to natural language generation (NLG) often rely on sequential transfer learning, where large pre-trained language models are fine-tuned on downstream tasks. While effective, this method suffers from issues like catastrophic forgetting, computational inefficiency, and a dependency on labeled datasets. Furthermore, fine-tuned models can exhibit text degeneration issues such as exposure bias and language drift.
The authors propose to address these limitations by training language generation models from scratch using Reinforcement Learning (RL). However, a major hurdle for RL in language generation is the enormous size of the vocabulary, leading to a combinatorial explosion of possible actions. This makes exploration and learning extremely difficult. TrufLL aims to overcome this by leveraging a generic language model to guide the RL agent's exploration within a dynamically truncated vocabulary.
Methods
The core of TrufLL lies in its Dynamic Vocabulary Truncation mechanism. At each step of text generation, TrufLL uses a pre-trained, task-agnostic language model (fLM) to predict a subset of the most probable next words. This subset forms the agent's effective action space for that step, significantly reducing the complexity for the RL algorithm. The RL agent is then trained using a Policy Gradient method (specifically, Proximal Policy Optimization - PPO) to maximize a reward signal, which in this case is derived from a Visual Question Answering (VQA) model's ability to correctly answer a generated question given an image-answer pair.
Key aspects of the method include:
- Training from Scratch: TrufLL avoids pre-training on task-specific data, relying solely on interaction with an environment and a reward signal.
- Task-Agnostic LM for Truncation: A generic LM (like GPT-2) is used to guide the vocabulary truncation, providing general linguistic knowledge without task-specific biases.
- Dynamic Truncation: The size of the truncated vocabulary can vary at each time step, adapting to the language model's uncertainty. Various truncation functions are explored, including top-k, probability threshold, and nucleus sampling.
- RL for Language Generation: The problem is framed as a sequential decision-making process, where the agent learns a policy to generate words.
Datasets
The authors evaluate TrufLL on two Visual Question Generation (VQG) datasets:
- CLEVR: A synthetic dataset with template questions on simple objects, useful for proof-of-concept evaluation.
- VQAv2: A natural language dataset with open-formed questions on images from the MS-Coco dataset, representing a more challenging, large-vocabulary scenario.
The VQA models used for reward generation were trained on these datasets.
Key Insights and Ideas
- RL can learn language generation from scratch: The paper demonstrates that it's feasible to train a language generation policy using RL without relying on extensive pre-training or labeled task-specific data.
- Generic LMs are powerful for guiding RL exploration: Using a task-agnostic LM to dynamically truncate the action space is highly effective in making RL tractable for large vocabulary tasks. This provides a crucial linguistic prior.
- Avoiding pre-training mitigates common NLG issues: By training from scratch, TrufLL inherently avoids problems like catastrophic forgetting and exposure bias that plague fine-tuned models.
- Task-agnostic LM enables transferability: The approach is designed to be general and transferable to various NLG tasks, as long as a generic LM and a reward signal are available.
- Dynamic truncation is key: The ability to adapt the vocabulary subset at each step is crucial for balancing exploration and exploitation, leading to better language metrics.
Key Results
- Competitive Performance: TrufLL achieves performance and language metrics comparable to, and in some cases exceeding, traditional pre-trained baselines on both CLEVR and VQAv2 tasks.
- CLEVR: TrufLL (Task-LM) outperforms pre-trained baselines in terms of task success. TrufLL (Ext-LM) also shows strong performance, demonstrating the effectiveness of using a generic LM.
- VQAv2: TrufLL (Ext-LM) shows a good trade-off between language quality, diversity, and grounding, competing qualitatively with pre-trained models.
- Human Evaluation: Human evaluations confirm that TrufLL generates meaningful and diverse questions, often differing from the dataset's initial distribution.
- Reduced Language Biases: The approach inherently reduces issues like exposure bias and language drift.
Limitations and Future Work
- Mode Collapse: TrufLL's diversity metrics suggest potential mode collapse, with high peakiness and self-BLEU scores, indicating a tendency to generate similar phrases.
- Off-Policy Learning Challenges: While explored, off-policy learning for TrufLL on large vocabulary tasks like VQAv2 faces numerical instability challenges, particularly with large LMs like GPT-2.
- Generalization of Off-Policy: The authors suggest that improving off-policy RL algorithms and regularization techniques could enhance generalization.
- Task-Specific LM vs. Generic LM: While the paper emphasizes the benefits of generic LMs, they also evaluate task-specific LMs, noting that the generic LM approach is more aligned with their goal of reducing data dependency.
- Future Work: The authors suggest exploring more advanced off-policy RL algorithms, further investigating temperature scheduling for dynamic truncation, and applying TrufLL to other NLG tasks.
Summary updated