Back to Basics: Revisiting REINFORCE-Style Optimization for Learning from Human Feedback in LLMs

Ahmadian et al., 2024, Back to Basics (Proceedings of the 62nd Annual Meeting of ACL (Volume 1: Long Papers))

Subscriber deck — free during early access

2 cards in “2.3 REINFORCE Leave-One-Out (RLOO)” · whole deck

2.3 REINFORCE Leave-One-Out (RLOO)

  1. What is the RLOO estimator?
    Sample \(k\) completions per prompt; for each, use the mean reward of the other \(k-1\) as its baseline: \(\frac{1}{k}\sum_{i}\big[R(y_i, x) - \frac{1}{k-1}\sum_{j \ne i} R(y_j, x)\big]\nabla \log \pi(y_i \mid x)\). This is an unbiased, on-the-fly, parameter-free substitute for a learned value function.
    samplerewardbaselineadvantagey₁0.90.37+0.53y₂0.30.57−0.27y₃0.60.47+0.13y₄0.20.60−0.40baseline = mean reward of the other three samples
    Every sample is pushed up or down relative to its siblings; RAFT would train on y₁ only (invented rewards, k = 4)
    • Ahmadian et al., 2024, Back to Basics (Proceedings of the 62nd Annual Meeting of ACL (Volume 1: Long Papers)), §2.3, p. 12251
  2. How does RLOO differ from RAFT (reward-ranked fine-tuning)?
    RAFT samples \(k\) completions and fine-tunes only on the top-ranked one, discarding the rest; RLOO uses all \(k\) samples, both as baselines for each other and in a multi-sample gradient estimate.
    • Ahmadian et al., 2024, Back to Basics (Proceedings of the 62nd Annual Meeting of ACL (Volume 1: Long Papers)), §2.3, p. 12251

Source

  • Arash Ahmadian, Chris Cremer, Matthias Gallé, Marzieh Fadaee, Julia Kreutzer, Olivier Pietquin, Ahmet Üstün and Sara Hooker. 2024. Back to Basics: Revisiting REINFORCE-Style Optimization for Learning from Human Feedback in LLMs. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 12248–12267. License: CC BY 4.0. Flashcards adapted from this work. doi:10.18653/v1/2024.acl-long.662 https://aclanthology.org/2024.acl-long.662/