Skip to main content
QUICK REVIEW

[Paper Review] GFlowNets with Human Feedback

Yinchuan Li, Shuang Luo|arXiv (Cornell University)|May 11, 2023
Explainable Artificial Intelligence (XAI)Computer Science3 citations
TL;DR

This paper introduces GFlowHF, a novel framework that enhances AI model exploration by training Generative Flow Networks (GFlowNets) using human feedback. Unlike RLHF, which optimizes for top-rated outputs, GFlowHF learns the full distribution of human scores, enabling diverse, high-quality outputs and improved robustness to noisy labels, as validated in multimodal trajectory generation tasks.

ABSTRACT

We propose the GFlowNets with Human Feedback (GFlowHF) framework to improve the exploration ability when training AI models. For tasks where the reward is unknown, we fit the reward function through human evaluations on different trajectories. The goal of GFlowHF is to learn a policy that is strictly proportional to human ratings, instead of only focusing on human favorite ratings like RLHF. Experiments show that GFlowHF can achieve better exploration ability than RLHF.

Motivation & Objective

  • Address the limited exploration capability of reinforcement learning (RL) in dense or multimodal reward landscapes.
  • Overcome the limitations of RLHF, which focuses only on maximizing top-rated outputs and is sensitive to noisy human labels.
  • Develop a framework that learns the complete distribution of human-rated rewards rather than just ranking preferences.
  • Improve the robustness of AI training under imperfect human feedback, especially in real-world applications with label noise.
  • Enable diverse, high-scoring outcomes in tasks with multiple valid solutions, such as navigation or language generation.

Proposed method

  • Use human feedback to score complete trajectories or final states, assigning scores on a multi-grade scale (e.g., 5-point scale).
  • Train a reward network $ r_{\phi}(s_f) $ to predict scores from final states $ s_f $, using labeled human evaluations.
  • Define the GFlowHF policy as $ \pi(a_t|s_t) = \frac{F_\theta(s_t,a_t)}{F_\theta(s_t)} $, where $ F_\theta $ is a flow network modeling state transitions.
  • Train the flow network using a flow matching loss: $ \mathcal{L}(\tau) = \sum_{t} \left( \sum_{s_{t-1} \in \mathcal{P}(s_t)} F_\theta(s_{t-1} \to s_t) - r_\phi(s_t) - \sum_{s_{t+1} \in \mathcal{C}(s_t)} F_\theta(s_t \to s_{t+1}) \right)^2 $, ensuring the policy distribution matches the human score distribution.
  • For continuous spaces, use a differentiable flow matching loss involving a pre-trained parent-finding network $ G_\psi $ and a scaling factor $ \lambda $.
  • Use multiple baselines (DDPG-HF, TD3-HF, SAC-HF, PPO-HF) for comparison under identical hyperparameters and training protocols.

Experimental results

Research questions

  • RQ1Can GFlowHF learn a policy that reflects the full distribution of human scores, rather than just favoring the highest-rated outputs?
  • RQ2How does GFlowHF compare to RLHF in terms of exploration diversity when multiple high-scoring solutions exist?
  • RQ3Does GFlowHF demonstrate superior robustness to noisy human labels compared to RLHF?
  • RQ4Can GFlowHF maintain performance in multimodal reward environments where RLHF fails to explore all valid modes?
  • RQ5What is the impact of using score-based supervision versus preference-based supervision in training GFlowNets with human feedback?

Key findings

  • GFlowHF explores both target locations in the Point-Robot task, while RLHF methods only converge to one, demonstrating superior exploration in multimodal environments.
  • GFlowHF achieves a higher number of valid-distinctive answers (defined as those above a reward threshold and with high dissimilarity to others) than RLHF, indicating greater diversity.
  • In the presence of a noisy label at (7,10) with an incorrect high score, GFlowHF still identifies both correct targets, while RLHF models are misled and fail to reach the correct goals.
  • The average reward of GFlowHF is slightly higher than RLHF in the clean-label setting, despite not being optimized for maximum reward, due to better distributional learning.
  • GFlowHF's performance remains stable under noisy labels because it learns the overall reward distribution trend, unlike RLHF, which overfits to high-scoring but incorrect labels.
  • The framework is robust to label noise, as shown in Figure 4, where GFlowHF maintains correct exploration even when a single label is incorrectly assigned a high score.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.