Introduction
Keyphrase Generation (KG) is the task of automatically producing short, representative phrases for a document. Most modern approaches use Sequence-to-Sequence (Seq2Seq) models fine-tuned with Reinforcement Learning (RL). However, a significant bottleneck exists in the standard reward functions used during training.
Traditional KG metrics like $F_1@5$ are "phrase-level" and binary: if a target is "natural language processing" and the model predicts "natural language generation," it receives a reward of zero—the same score it would get for an entirely unrelated prediction. This "all-or-nothing" approach creates an extremely sparse and polarized reward signal, preventing models from learning from partial successes or recognizing semantic synonyms.
Methods: Fine-Grained Evaluation and Two-Stage RL
To address this, the authors propose a two-stage RL training framework guided by a new Fine-Grained (FG) score and a continuous BERT-based scorer ($FB$).
The FG and FB Scores
Unlike traditional metrics, the FG score evaluates four distinct dimensions to provide a more nuanced signal:
- Token-level $F_1$: Measures individual word matches.
- Edit Distance: Quantifies the character/word changes needed to reach the target.
- Repetition Rate Penalty: Discourages the model from repeating words across different phrases.
- Generation Quantity Penalty: Prevents the model from "gaming" the system by outputting only a single high-confidence phrase.
To further smooth the reward signal, a BERT-based model is trained to predict the FG score, resulting in the $FB$ score. This allows the RL process to become semantically aware, recognizing that phrases like "integrated decision process" and "integrated decision procedures" are functionally equivalent.
Two-Stage RL Framework
The training process follows a strategic progression to guide the model from broad semantic alignment to exact phrase matching:
- Stage 1 (Warm-up): The model is trained using the FG (or $FB$) score as a reward. This helps the model identify partial matches and move into the correct semantic neighborhood.
- Stage 2 (Refinement): The model is further optimized using the traditional vanilla $F_1$ score to push those partial matches toward exact string matches.
Experimental Setup and Results
The framework was evaluated on three standard scientific document benchmarks: KP20k (large-scale training), Inspec (abstracts), and Krapivin (full-text papers).
Key Results
The proposed framework, specifically the catSeq*+2RL(FB) model, achieved state-of-the-art results across all benchmarks. On the KP20k dataset, the model achieved an $F_1@M$ of 0.392 and an $F_1@5$ of 0.330, significantly outperforming previous RL-based frameworks that rely solely on phrase-level $F_1$ rewards.
Insights from Ablation
Ablation studies revealed that Edit Distance was the most crucial component of the fine-grained metric for improving phrase-level accuracy. Qualitatively, the model demonstrated a marked reduction in redundant and repetitive phrases compared to vanilla RL models, which often struggle with variety in generated outputs.
Conclusion
By rewarding "near-misses" and semantic similarities during training, this research enables models to learn deeper linguistic patterns. The two-stage approach effectively "softens" the optimization landscape before tightening it for final performance. Future work may explore making the transition between training stages more seamless or developing even more robust semantic scorers to further bridge the gap between string matching and human-like understanding.
Summary updated