Introduction
Training sequence generation models, such as those for image captioning or program synthesis, typically relies on Maximum Likelihood Estimation (MLE). While effective for learning local dependencies, MLE suffers from exposure bias: the discrepancy between training on ground-truth prefixes and testing on model-generated prefixes. Reinforcement Learning (RL) offers a solution by optimizing for sequence-level metrics (e.g., CIDEr). However, RL in discrete action spaces is plagued by high gradient variance, making training notoriously unstable. Standard variance reduction techniques, such as the "Self-Critic" method, often prove insufficient for complex, large-vocabulary tasks.
Methods
This work introduces a novel policy gradient estimator based on the Augment-REINFORCE-swap-merge (ARSM) framework. The core innovation lies in using correlated Monte Carlo rollouts. Instead of independent sampling, the method utilizes a Dirichlet-distributed random vector. By "swapping" elements within this vector, multiple "pseudo-actions" are generated that are highly correlated. These correlated rollouts act as high-quality baselines for each other, significantly reducing gradient variance.
To address the computational bottleneck of large vocabularies ($V$), the authors propose two variants:
- ARS-K: A version that samples only $K$ reference categories, maintaining efficiency for large $V$.
- Binary-Tree ARSM (BT-ARSM): This approach decomposes a $V$-way choice into a sequence of binary decisions on a tree, reducing complexity from $O(V)$ to $O(\log V)$. Hierarchical clustering on word embeddings is used to construct the tree, ensuring semantically similar words are grouped together, providing a strong inductive bias.
Key Insights: Adaptive Complexity
A critical feature of the ARSM estimator is its adaptive nature. The number of unique "pseudo-rollouts" adjusts based on the model's uncertainty. Early in training or at difficult decision points, the model generates more unique rollouts to explore the space. As confidence grows, the number of unique rollouts decreases, accelerating training and providing implicit regularization.
Experimental Results
The proposed methods were evaluated on the Karel neural program synthesis task and the MS COCO image captioning dataset.
- Neural Program Synthesis (Karel): ARSM achieved a generalization score of 16.28%, outperforming "RL beam" (14.92%) and MLE (12.76%). Notably, ARSM was the only method demonstrating steady, non-divergent improvement throughout training.
- Image Captioning (MS COCO): ARS-20 reached a CIDEr score of 108.4, surpassing the popular Self-Critic baseline (106.5).
- Efficiency: BT-ARSM reduced output layer operations by approximately 380x compared to standard softmax while maintaining superior caption quality over vanilla MLE.
Discussion and Future Work
While ARSM significantly stabilizes RL for sequence generation, it currently relies on MLE pre-training to avoid the "cold-start" problem, where high initial uncertainty could lead to an explosion in the number of pseudo-actions. Future research will focus on improving efficiency in scenarios without pre-trained models and further optimizing the computational overhead during the early stages of training. The success of BT-ARSM also suggests that hierarchical structures combined with correlated sampling are a promising path for scaling RL to extremely large discrete action spaces.
Summary updated