← Lab /AI/ML

GPT-NeoX preference-learning adds 30-40% training speed-up over TRL and improves benchmark scores

Integrating DPO, KTO, and reward-model training into GPT-NeoX yields a 30-40% speed-up versus TRL and produces higher evaluation scores on standard benchmarks.

AI/ML EleutherAI 10 Oct 2024 Tooling Real-world evidence

Published as “RLHF and RLAIF in GPT-NeoX”

Why it matters

Open-source GPT-NeoX now provides scalable preference-learning tools, lowering the barrier for large-scale alignment research.

Summary

SynthLabs and EleutherAI added implementations of Direct Preference Optimization, Kahneman-Tversky Optimization, and reward-model training to the open-source GPT-NeoX library. Using the same hyperparameters as the Zephyr-7B-beta model, they measured a 30-40% reduction in iteration time compared to the TRL library for 7B and 13B parameter models. On a suite of benchmarks (GSM8k, MMLU, ARC-Challenge, HellaSwag, WinoGrande, TruthfulQA) the NeoX DPO fine-tuned model achieved higher scores than the original Zephyr-7B-beta on most tasks. The evidence consists of a single set of benchmark numbers and a reported speed-up on a specific hardware configuration.

What they found 2

  1. GPT-NeoX post-training is 30-40% faster than TRL for 7B and 13B models

    “leveraging GPT-NeoX for post training provides a 30-40% speed-up compared to TRL at the 7B and 13B parameter scale.”

  2. NeoX DPO fine-tuned model outperforms Zephyr-7B-beta on several benchmarks

    “NeoX DPO from Zephyr-SFT | 63.5 | 41.1 | 59.4 | 61.7 | 85.0 | 79.0 | 54.6”

Caveats 2

  • Speed-up measurements are reported for a single configuration (8 gradient accumulation steps, batch size 2 per device, ZeRO-3, gradient checkpointing) and may not generalize to other settings.
  • Benchmark comparison is limited to the Zephyr-7B-beta model and a specific evaluation harness; no broader set of models or tasks is presented.

What’s new here 4

  • Implementation of Direct Preference Optimization (DPO) in GPT-NeoX
  • Implementation of Kahneman-Tversky Optimization (KTO) for binary-reward learning
  • Support for training reward models and improved supervised fine-tuning
  • Reported 30-40% training speed-up versus the TRL library at 7B/13B scale