[Paper Review] Sequence Tutor: Conservative Fine-Tuning of Sequence Generation Models with KL-control
This paper proposes Sequence Tutor, a reinforcement learning framework that fine-tunes sequence generation models by conservatively optimizing for task-specific rewards while preserving knowledge from pre-trained maximum likelihood estimation (MLE) models via KL-control. The method improves sequence quality and diversity in music and molecular generation, significantly increasing valid molecule yields and enhancing structural coherence without sacrificing data distribution fidelity.
This paper proposes a general method for improving the structure and quality of sequences generated by a recurrent neural network (RNN), while maintaining information originally learned from data, as well as sample diversity. An RNN is first pre-trained on data using maximum likelihood estimation (MLE), and the probability distribution over the next token in the sequence learned by this model is treated as a prior policy. Another RNN is then trained using reinforcement learning (RL) to generate higher-quality outputs that account for domain-specific incentives while retaining proximity to the prior policy of the MLE RNN. To formalize this objective, we derive novel off-policy RL methods for RNNs from KL-control. The effectiveness of the approach is demonstrated on two applications; 1) generating novel musical melodies, and 2) computational molecular generation. For both problems, we show that the proposed method improves the desired properties and structure of the generated sequences, while maintaining information learned from data.
Motivation & Objective
- To address the failure modes of MLE-trained RNNs in generating coherent, diverse sequences with poor global structure.
- To combine the strengths of MLE (data distribution fidelity) and RL (task-specific reward optimization) without relying on imperfect reward functions.
- To maintain sample diversity and prevent mode collapse or repetitive outputs during sequence generation.
- To formalize a conservative fine-tuning approach that penalizes divergence from a pre-trained MLE policy using KL-control.
- To empirically validate the method on two challenging sequence generation tasks: music and molecular generation.
Proposed method
- Pre-train an RNN using maximum likelihood estimation (MLE) to learn a prior policy over next-token distributions.
- Use the MLE RNN's output distribution as a fixed prior policy for KL-control in reinforcement learning.
- Derive novel off-policy RL algorithms for RNNs based on KL-control, incorporating KL divergence as a regularizer to constrain policy updates.
- Formulate the objective as a generalized Ψ-learning framework that unifies G-learning, Q-learning with log prior augmentation, and KL-control.
- Apply entropy regularization via KL minimization to encourage diverse, non-repetitive sample generation.
- Use prioritized experience replay and ϵ-greedy exploration to improve sample efficiency, especially for rare valid sequences in molecular generation.
Experimental results
Research questions
- RQ1Can RL fine-tuning with KL-control improve the structural coherence and quality of sequences generated by MLE-trained RNNs?
- RQ2To what extent can KL-control preserve the data distribution learned via MLE while enabling optimization for task-specific rewards?
- RQ3How does the proposed method compare to standard RL or MLE-only training in terms of sequence diversity and validity?
- RQ4Can the method effectively reduce failure modes such as token repetition and structural incoherence in sequence generation?
- RQ5Does the integration of domain-specific rules (e.g., music theory, molecular valency) via reward shaping lead to better-quality outputs when combined with conservative policy updates?
Key findings
- Sequence Tutor improved the percentage of valid molecules from 30.3% (MLE baseline) to 35.8%, demonstrating a significant gain in structural validity.
- The method increased mean logP from 2.07 to 4.21, indicating improved hydrophobicity, a key property in drug-likeness.
- Mean synthetic accessibility (SA) penalty improved from -2.77 to -1.79, suggesting more easily synthesizable molecules were generated.
- In music generation, Sequence Tutor produced melodies rated as significantly more subjectively pleasing than MLE-generated sequences, with improved harmonic structure and reduced randomness.
- The model reduced unwanted behaviors such as repetitive token sequences and topic drift, even when reward functions were incomplete or imperfect.
- Despite lower QED scores due to simpler molecular structures, Sequence Tutor achieved higher scores on validity, logP, and synthetic accessibility, proving effective for generating drug-like molecules.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.