Home Technology peripherals AI ICML 2024 Oral | Is DPO more suitable for LLM than PPO? Tsinghua Wuyi team's latest revelation

ICML 2024 Oral | Is DPO more suitable for LLM than PPO? Tsinghua Wuyi team's latest revelation

Jul 22, 2024 pm 06:41 PM
project

ICML 2024 Oral | DPO是否比PPO更适合LLM,清华吴翼团队最新揭秘
The AIxiv column is a column where this site publishes academic and technical content. In the past few years, the AIxiv column of this site has received more than 2,000 reports, covering top laboratories from major universities and companies around the world, effectively promoting academic exchanges and dissemination. If you have excellent work that you want to share, please feel free to contribute or contact us for reporting. Submission email: liyazhou@jiqizhixin.com; zhaoyunfeng@jiqizhixin.com

Wu Yi, assistant professor at the Institute of Interdisciplinary Information, Tsinghua University, former full-time researcher at OpenAI, research areas include reinforcement learning, large model alignment, human Computer interaction, robot learning, etc. Obtained a PhD from the University of California, Berkeley, in 2019, studying under Professor Stuart Russell; graduated from Tsinghua University's Institute of Interdisciplinary Information (Yao Class) in 2014. His representative works include: NIPS2016 best paper, Value Iteration Network; the most cited paper in the field of multi-agent deep reinforcement learning, MADDPG algorithm; OpenAI hide-and-seek project, etc.

How to make large models better comply with human instructions and intentions? How to make large models have better reasoning capabilities? How to avoid hallucinations in large models? Whether these problems can be solved is the most critical technical challenge to make large models truly widely available and even achieve super intelligence. These most difficult challenges are also the long-term research focus of Wu Yi’s team, and are problems to be overcome by large model alignment technology (Alignment).

In alignment technology, the most important algorithm framework is reinforcement learning based on human feedback (RLHF, Reinforcement Learning from Human Feedback). RLHF learns a reward function (Reward Model) based on human feedback based on human preference feedback for the output of the large model, and further performs reinforcement learning training on the large model, so that the large model can learn to distinguish the quality of responses in repeated iterations, and achieve Improved model capabilities. Currently, the world's most powerful language models, such as OpenAI's GPT model and Anthropic's Claude model, place great emphasis on the importance of RLHF training. OpenAI and Anthropic have also internally developed RLHF training systems based on large-scale PPO algorithms for large model alignment.

However, due to the complex process of the PPO algorithm and the high consumption of computing power, the large-scale RLHF training system of the American AI company has never been open source. Therefore, although the PPO algorithm is very powerful, alignment work in academia has rarely used complex methods. The PPO algorithm is used for RLHF research, and alignment algorithms such as SFT (supervised fine-tuning) or DPO (Direct Policy Optimization) are generally used that are simpler, more direct, and have lower requirements on the training system.

So, does a simple alignment algorithm definitely work better? The work "Is DPO Superior to PPO for LLM Alignment? A Comprehensive Study" published by Wu Yi's team at ICML 2024 carefully discussed the characteristics of the DPO and PPO algorithms and pointed out the key points to improve the effect of the RLHF algorithm. In this work, based on the self-developed large-scale RLHF training system, Wu Yi's team used the PPO algorithm and an open source model with fewer parameters for the first time, surpassing the closed-source large-scale code generation task CodeContest in the recognized most difficult challenge. Model AlphaCode 41B.

ICML 2024 Oral | DPO是否比PPO更适合LLM,清华吴翼团队最新揭秘

The relevant results were accepted as Oral Presentation by ICML 2024, and will be publicly reported at the first Oral session Alignment-1 of ICML 2024 on July 23, together with the work of well-known institutions such as OpenAI and Anthropic.

ICML 2024 Oral | DPO是否比PPO更适合LLM,清华吴翼团队最新揭秘

Next, let us compare the code generation effects of GPT-4 and the CodeLlama 34B model trained by the PPO algorithm. In Example 1, the CodeLlama 34B model trained by the PPO algorithm and the GPT-4 model are generated Code of comparable quality.

ICML 2024 Oral | DPO是否比PPO更适合LLM,清华吴翼团队最新揭秘

In Example 2, you can see that both the CodeLlama 34B model and the GPT-4 model trained by the PPO algorithm can generate complete and runnable python code. However, in this example, GPT-4 generated incorrect code and failed to output correctly on the test data. The code generated by the CodeLlama 34B model trained by the PPO algorithm can pass the test.

ICML 2024 Oral | DPO是否比PPO更适合LLM,清华吴翼团队最新揭秘

ICML 2024 Oral | DPO是否比PPO更适合LLM,清华吴翼团队最新揭秘

In this paper from ICML 2024, the research team discussed the characteristics of DPO and PPO algorithms in detail and pointed out the key points to improve the capabilities of DPO and PPO.

ICML 2024 Oral | DPO是否比PPO更适合LLM,清华吴翼团队最新揭秘

  • Paper title: Is DPO Superior to PPO for LLM Alignment? A Comprehensive Study
  • Paper address: https://arxiv.org/pdf/2404.10719

DPO algorithm Limitations

Compared with PPO, DPO uses offline data instead of online sampling data for training. After analysis, the DPO algorithm will cause the trained model to have a preference for outputs outside the training data distribution, and in some cases produce unpredictable responses.

So, in order to improve the capabilities of the DPO algorithm, the research team summarized two key technologies: Carry out additional SFT training before RLHF training, and use online sampling data instead of offline data.

ICML 2024 Oral | DPO是否比PPO更适合LLM,清华吴翼团队最新揭秘

Experiments show that using additional SFT training can make the base model and reference model more biased towards the distribution within the data set, greatly improving the effect of the DPO algorithm; on the other hand, the DPO algorithm using online sampling data for iterative training can It has been steadily improved and its performance is far better than the basic DPO algorithm.

The key points of the PPO algorithm

Excluding DPO, the paper also summarizes three key points to maximize the capabilities of PPO:

  • Use a large batch size (large batch size)
  • advantage normalization
  • and update the reference model using exponential moving average (exponential moving average for the reference model).

ICML 2024 Oral | DPO是否比PPO更适合LLM,清华吴翼团队最新揭秘

The research team successfully used the PPO algorithm to achieve SOTA results on the dialogue tasks Safe-RLHF/HH-RLHF and the code generation task APPS/CodeContest.

ICML 2024 Oral | DPO是否比PPO更适合LLM,清华吴翼团队最新揭秘

On the dialogue task, the research team found that the PPO algorithm that combines three key points is significantly better than the DPO algorithm and the online sampling DPO algorithm DPO-Iter.

ICML 2024 Oral | DPO是否比PPO更适合LLM,清华吴翼团队最新揭秘

In the code generation tasks APPS and CodeContest, based on the open source model Code Llama 34B, the PPO algorithm has also reached the strongest level, surpassing the previous SOTA, AlphaCode 41B in CodeContest.

To achieve large model alignment with better results, a highly efficient training system is indispensable. Wu Yi’s team has long-term accumulation in realizing large-scale reinforcement learning training and has built it since 2021 A proprietary distributed reinforcement learning framework.

ICML 2024 Oral | DPO是否比PPO更适合LLM,清华吴翼团队最新揭秘

  • NeurIPS 2022 The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games [1]: Proposed and open sourced the reinforcement learning parallel training framework MAPPO for multi-agent to support multi-agent training in cooperative scenarios. This work was It has been used in a large number of works in the field of multi-agent, and the current number of citations in papers has exceeded 1k.
  • ICLR 2024 Scaling Distributed Reinforcement Learning to Over Ten Thousand Cores [2]: Proposed a distributed training framework for reinforcement learning, which can be easily expanded to tens of thousands of cores, and the acceleration ratio exceeds OpenAI's large-scale reinforcement learning system Rapid .
  • ReaLHF: Optimized RLHF Training for Large Language Models through Parameter Reallocation [3]: Recently, Wu Yi’s team further implemented the distributed RLHF training framework ReaLHF. The ICML Oral paper of Wu Yi's team was produced based on the ReaLHF system. The ReaLHF system has been developed for a long time and has undergone a lot of detail polishing to achieve optimal performance. Compared with previous open source work, ReaLHF can achieve near-linear scalability in RLHF, a scenario that is more complex than pre-training. It also has higher resource utilization and can perform RLHF stably and quickly on 128 A100 GPUs. Training, related work has been open sourced: https://github.com/openpsi-project/ReaLHF

In addition to improving the coding capabilities of large language models, Wu Yi’s team also uses a variety of reinforcement learning algorithms and large The combination of models realizes a variety of complex LLM Agents and can carry out complex interactions with humans.

Use reinforcement learning in MiniRTS to create a language agent that can both follow human instructions and make optimal decisions [4].

ICML 2024 Oral | DPO是否比PPO更适合LLM,清华吴翼团队最新揭秘

Train strategy-diversified reinforcement learning strategies in Werewolf to improve the decision-making capabilities of large models [5].

ICML 2024 Oral | DPO是否比PPO更适合LLM,清华吴翼团队最新揭秘

In the Overcooked game, small models and large models are combined to implement a cooperative Language Agent that can provide real-time feedback [6].

ICML 2024 Oral | DPO是否比PPO更适合LLM,清华吴翼团队最新揭秘

Combining the robot control strategy trained by reinforcement learning and the reasoning capabilities of the large language model allows the robot to perform a series of complex tasks [7].

ICML 2024 Oral | DPO是否比PPO更适合LLM,清华吴翼团队最新揭秘

In order for large models to truly enter thousands of households, alignment technology is crucial. For academics and large model practitioners, good open source work and papers will undoubtedly greatly reduce experimental costs and development It is also expected that with the development of technology, more large models that serve human beings will appear.

[1] Yu, Chao, Akash Velu, Eugene Vinitsky, Jiaxuan Gao, Yu Wang, Alexandre Bayen, and Yi Wu. "The surprising effectiveness of ppo in cooperative multi-agent games."
[2] Mei, Zhiyu, Wei Fu, Guangju Wang, Huanchen Zhang, and Yi Wu. "SRL: Scaling Distributed Reinforcement Learning to Over Ten Thousand Cores."
[3] Mei, Zhiyu, Wei Fu, Kaiwei Li, Guangju Wang, Huanchen Zhang, and Yi Wu. "ReaLHF: Optimized RLHF Training for Large Language Models through Parameter Reallocation."
[4] Xu, Shusheng, Huaijie Wang, Jiaxuan Gao, Yutao Ouyang, Chao Yu, and Yi Wu. "Language-guided generation of physically realistic robot motion and control."
[5] Xu, Zelai, Chao Yu, Fei Fang, Yu Wang, and Yi Wu. "Language agents with reinforcement learning for strategic play in the werewolf game."
[6] Liu, Jijia, Chao Yu, Jiaxuan Gao, Yuqing Xie, Qingmin Liao, Yi Wu, and Yu Wang. "Llm- powered hierarchical language agent for real-time human-ai coordination."
[7] Ouyang, Yutao, Jinhan Li, Yunfei Li, Zhongyu Li, Chao Yu, Koushil Sreenath, and Yi Wu. "Long-horizon Locomotion and Manipulation on a Quadrupedal Robot with Large Language Models."

The above is the detailed content of ICML 2024 Oral | Is DPO more suitable for LLM than PPO? Tsinghua Wuyi team's latest revelation. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

The author of ControlNet has another hit! The whole process of generating a painting from a picture, earning 1.4k stars in two days The author of ControlNet has another hit! The whole process of generating a painting from a picture, earning 1.4k stars in two days Jul 17, 2024 am 01:56 AM

It is also a Tusheng video, but PaintsUndo has taken a different route. ControlNet author LvminZhang started to live again! This time I aim at the field of painting. The new project PaintsUndo has received 1.4kstar (still rising crazily) not long after it was launched. Project address: https://github.com/lllyasviel/Paints-UNDO Through this project, the user inputs a static image, and PaintsUndo can automatically help you generate a video of the entire painting process, from line draft to finished product. follow. During the drawing process, the line changes are amazing. The final video result is very similar to the original image: Let’s take a look at a complete drawing.

From RLHF to DPO to TDPO, large model alignment algorithms are already 'token-level' From RLHF to DPO to TDPO, large model alignment algorithms are already 'token-level' Jun 24, 2024 pm 03:04 PM

The AIxiv column is a column where this site publishes academic and technical content. In the past few years, the AIxiv column of this site has received more than 2,000 reports, covering top laboratories from major universities and companies around the world, effectively promoting academic exchanges and dissemination. If you have excellent work that you want to share, please feel free to contribute or contact us for reporting. Submission email: liyazhou@jiqizhixin.com; zhaoyunfeng@jiqizhixin.com In the development process of artificial intelligence, the control and guidance of large language models (LLM) has always been one of the core challenges, aiming to ensure that these models are both powerful and safe serve human society. Early efforts focused on reinforcement learning methods through human feedback (RL

Topping the list of open source AI software engineers, UIUC's agent-less solution easily solves SWE-bench real programming problems Topping the list of open source AI software engineers, UIUC's agent-less solution easily solves SWE-bench real programming problems Jul 17, 2024 pm 10:02 PM

The AIxiv column is a column where this site publishes academic and technical content. In the past few years, the AIxiv column of this site has received more than 2,000 reports, covering top laboratories from major universities and companies around the world, effectively promoting academic exchanges and dissemination. If you have excellent work that you want to share, please feel free to contribute or contact us for reporting. Submission email: liyazhou@jiqizhixin.com; zhaoyunfeng@jiqizhixin.com The authors of this paper are all from the team of teacher Zhang Lingming at the University of Illinois at Urbana-Champaign (UIUC), including: Steven Code repair; Deng Yinlin, fourth-year doctoral student, researcher

Posthumous work of the OpenAI Super Alignment Team: Two large models play a game, and the output becomes more understandable Posthumous work of the OpenAI Super Alignment Team: Two large models play a game, and the output becomes more understandable Jul 19, 2024 am 01:29 AM

If the answer given by the AI ​​model is incomprehensible at all, would you dare to use it? As machine learning systems are used in more important areas, it becomes increasingly important to demonstrate why we can trust their output, and when not to trust them. One possible way to gain trust in the output of a complex system is to require the system to produce an interpretation of its output that is readable to a human or another trusted system, that is, fully understandable to the point that any possible errors can be found. For example, to build trust in the judicial system, we require courts to provide clear and readable written opinions that explain and support their decisions. For large language models, we can also adopt a similar approach. However, when taking this approach, ensure that the language model generates

Axiomatic training allows LLM to learn causal reasoning: the 67 million parameter model is comparable to the trillion parameter level GPT-4 Axiomatic training allows LLM to learn causal reasoning: the 67 million parameter model is comparable to the trillion parameter level GPT-4 Jul 17, 2024 am 10:14 AM

Show the causal chain to LLM and it learns the axioms. AI is already helping mathematicians and scientists conduct research. For example, the famous mathematician Terence Tao has repeatedly shared his research and exploration experience with the help of AI tools such as GPT. For AI to compete in these fields, strong and reliable causal reasoning capabilities are essential. The research to be introduced in this article found that a Transformer model trained on the demonstration of the causal transitivity axiom on small graphs can generalize to the transitive axiom on large graphs. In other words, if the Transformer learns to perform simple causal reasoning, it may be used for more complex causal reasoning. The axiomatic training framework proposed by the team is a new paradigm for learning causal reasoning based on passive data, with only demonstrations

arXiv papers can be posted as 'barrage', Stanford alphaXiv discussion platform is online, LeCun likes it arXiv papers can be posted as 'barrage', Stanford alphaXiv discussion platform is online, LeCun likes it Aug 01, 2024 pm 05:18 PM

cheers! What is it like when a paper discussion is down to words? Recently, students at Stanford University created alphaXiv, an open discussion forum for arXiv papers that allows questions and comments to be posted directly on any arXiv paper. Website link: https://alphaxiv.org/ In fact, there is no need to visit this website specifically. Just change arXiv in any URL to alphaXiv to directly open the corresponding paper on the alphaXiv forum: you can accurately locate the paragraphs in the paper, Sentence: In the discussion area on the right, users can post questions to ask the author about the ideas and details of the paper. For example, they can also comment on the content of the paper, such as: "Given to

A significant breakthrough in the Riemann Hypothesis! Tao Zhexuan strongly recommends new papers from MIT and Oxford, and the 37-year-old Fields Medal winner participated A significant breakthrough in the Riemann Hypothesis! Tao Zhexuan strongly recommends new papers from MIT and Oxford, and the 37-year-old Fields Medal winner participated Aug 05, 2024 pm 03:32 PM

Recently, the Riemann Hypothesis, known as one of the seven major problems of the millennium, has achieved a new breakthrough. The Riemann Hypothesis is a very important unsolved problem in mathematics, related to the precise properties of the distribution of prime numbers (primes are those numbers that are only divisible by 1 and themselves, and they play a fundamental role in number theory). In today's mathematical literature, there are more than a thousand mathematical propositions based on the establishment of the Riemann Hypothesis (or its generalized form). In other words, once the Riemann Hypothesis and its generalized form are proven, these more than a thousand propositions will be established as theorems, which will have a profound impact on the field of mathematics; and if the Riemann Hypothesis is proven wrong, then among these propositions part of it will also lose its effectiveness. New breakthrough comes from MIT mathematics professor Larry Guth and Oxford University

LLM is really not good for time series prediction. It doesn't even use its reasoning ability. LLM is really not good for time series prediction. It doesn't even use its reasoning ability. Jul 15, 2024 pm 03:59 PM

Can language models really be used for time series prediction? According to Betteridge's Law of Headlines (any news headline ending with a question mark can be answered with "no"), the answer should be no. The fact seems to be true: such a powerful LLM cannot handle time series data well. Time series, that is, time series, as the name suggests, refers to a set of data point sequences arranged in the order of time. Time series analysis is critical in many areas, including disease spread prediction, retail analytics, healthcare, and finance. In the field of time series analysis, many researchers have recently been studying how to use large language models (LLM) to classify, predict, and detect anomalies in time series. These papers assume that language models that are good at handling sequential dependencies in text can also generalize to time series.

See all articles