TL;DR
GFlowNets with Human Feedback (GFlowHF) is a novel framework designed to overcome the "tunnel vision" often seen in standard Reinforcement Learning from Human Feedback (RLHF). By training models to sample outcomes with a probability proportional to human rewards—rather than strictly maximizing them—GFlowHF achieves superior exploration, discovers a more diverse set of high-quality solutions, and remains robust even when human labels are noisy.
What Problem Does This Paper Address?
Modern AI breakthroughs rely heavily on RLHF to align model behavior with human preferences. However, standard Reinforcement Learning (RL) has a significant drawback: it is designed to maximize expected rewards. In practice, this often leads to "mode collapse," where the model fixates on a narrow set of "safe" or high-scoring answers, ignoring other valid and diverse possibilities.
Furthermore, human feedback is notoriously noisy. If a human labeler accidentally gives a high score to a mediocre answer, a standard RL agent might over-optimize for that specific error. The authors identify a critical need for a framework that can explore the entire "reward landscape" rather than just sprinting toward the highest peak.
Methods
To address these limitations, the authors introduce GFlowHF, which replaces the standard RL optimization step with a Generative Flow Network (GFlowNet).
The framework operates through several key mechanisms:
- Reward Modeling: Similar to RLHF, the process begins by collecting human evaluations on various trajectories and training a neural network to predict these scores.
- Proportional Sampling: Unlike traditional RL, which seeks the absolute maximum reward, GFlowNets are trained so that the probability of generating a specific outcome is strictly proportional to its reward.
- Flow Matching Loss: The model is trained using a "flow matching" objective. It treats the generation of an answer as a flow through a graph of states and actions, ensuring that the total flow into a state equals the total flow out (plus any reward at that state).
- Diversity by Design: Because the policy is proportional to the reward, the model naturally samples high-reward areas more often, but it does not ignore other areas that still provide decent utility, inherently preserving diversity.
Experimental Setup
As a focused study, the experiments evaluate the framework in a controlled synthetic environment rather than a massive text corpus:
- Point-Robot Task: A 2D continuous environment where an agent must navigate from an origin to specific goal coordinates.
- Multimodal Reward Setup: The researchers established two distinct goals to test if the model could learn to reach both, rather than collapsing to just one.
- Noisy Label Benchmark: To test resilience to human error, an intentionally "fake" high-reward label was introduced at an incorrect coordinate.
Key Insights and Ideas
- Exploration vs. Exploitation: RLHF is heavily biased toward exploitation (doing what it knows works best). GFlowHF treats exploration as a fundamental part of the objective by trying to match the entire reward distribution.
- Robustness to Outliers: GFlowHF proves to be more stable than RLHF. Because it attempts to learn the entire distribution, a single noisy, high-scoring outlier is treated as a statistical anomaly rather than the new "gold standard."
- Beyond Ranking: While RLHF often relies on simple pairwise rankings, GFlowHF benefits from more granular scoring (like preference percentages), providing a richer signal for the flow network to match.
Key Results
The empirical results demonstrate clear advantages for the GFlowHF approach in environments requiring exploration and diversity.
- Discovery of Multiple Goals: In the Point-Robot task with two goals, standard RLHF methods (like PPO and SAC) converged to only one of the two targets. GFlowHF successfully learned to explore and reach both targets.
- Higher Diversity: GFlowHF produced a significantly higher number of "valid-distinctive" trajectories compared to its RLHF counterparts, confirming its ability to avoid mode collapse.
- Noise Resistance: When a noisy high-reward label was added at an incorrect location, RLHF models were easily "distracted" and began moving toward the wrong coordinate. GFlowHF maintained its focus on the true goals, effectively filtering out the noise by looking at the broader reward trend.
Limitations and Future Work
The primary limitation of this current work is scale. The experiments were conducted in a simplified 2D navigation environment. While the theoretical advantages are clear, the computational cost of training GFlowNets on the massive state spaces of Large Language Models (LLMs) remains a significant challenge.
The authors explicitly state that their next step is to apply GFlowHF to real-world language data to determine if it can produce more creative and diverse dialogue than current RLHF-tuned models.
Summary updated