A Comprehensive Survey of AI-Generated Content (AIGC): A History of Generative AI from GAN to ChatGPT and RAFT Algorithm

Darren LI

Hatched by Darren LI

Aug 20, 2023

4 min read

0

A Comprehensive Survey of AI-Generated Content (AIGC): A History of Generative AI from GAN to ChatGPT and RAFT Algorithm

In recent years, the field of artificial intelligence (AI) has witnessed remarkable advancements in generating content through AI models. From the early days of Generative Adversarial Networks (GANs) to the more recent ChatGPT and RAFT algorithm, AI-generated content has come a long way. This article aims to provide a comprehensive survey of AI-generated content, exploring its history and the unique contributions of different models.

Generative Adversarial Networks (GANs) marked a significant breakthrough in the field of generative AI. Developed by Ian Goodfellow and his team in 2014, GANs introduced a novel framework for training generative models. GANs consist of two components: a generator and a discriminator. The generator generates content, such as images or text, while the discriminator tries to distinguish between real and generated content. Through an adversarial training process, the generator learns to produce content that is increasingly similar to real data. GANs opened up new possibilities for generating realistic and high-quality content.

Building upon the success of GANs, researchers developed models like ChatGPT, which focuses on generating conversational responses. ChatGPT utilizes a variant of the Transformer architecture and is pretrained on a massive dataset of internet text. The model is fine-tuned using reinforcement learning from human feedback (RLHF). RLHF involves training a reward model using human-annotated data and then using reinforcement learning algorithms like Proximal Policy Optimization (PPO) to adjust the model's behavior based on human feedback.

However, RLHF algorithms like PPO heavily rely on backpropagation, resulting in high training costs and instability due to numerous hyperparameters. To address these challenges, the RAFT algorithm was introduced. RAFT leverages a reward model to rank and filter generated samples from large-scale generative models. By selecting samples that align with user preferences and values, RAFT fine-tunes an AI model that is more user-friendly. The RAFT algorithm follows a three-step process:

  1. Data collection: For data collection, the algorithm can utilize the generating model in training, pre-trained models like LLaMA or ChatGPT, or a combination of both. This approach enhances the diversity and quality of the generated data.

  2. Data sorting: In RLHF, a classifier or regressor aligned with the target requirements is used to filter out the samples that best match human needs.

  3. Model fine-tuning: The model is fine-tuned using the samples that best align with human preferences, ensuring that the trained model matches human requirements.

The RAFT algorithm offers several advantages over traditional RLHF approaches. It reduces the number of gradient computations by filtering out low-quality data through the reward function. Additionally, it utilizes multiple sampling instances, which further stabilizes and robustifies the model. As a result, RAFT achieves improved stability, robustness, and efficiency in AI model training.

The effectiveness of the RAFT algorithm can be observed in the context of sentiment analysis. In the example provided, LLaMA, an unadjusted sentiment analysis model, randomly outputs positive and negative comments. However, both RAFT and PPO can accurately determine the sentiment of the comments, leaning towards positive or negative. Furthermore, RAFT demonstrates superior performance in generating high-quality content compared to the original Stable Diffusion model. Not only does RAFT produce impressive results, but it also achieves them in significantly less time, requiring only 20% of the original model's time for generation at a resolution of 256x256.

In conclusion, the field of AI-generated content has witnessed significant advancements, from the early days of GANs to the more recent models like ChatGPT and the RAFT algorithm. These models have revolutionized the way content is generated, offering realistic and high-quality outputs. The RAFT algorithm, in particular, presents a promising approach to fine-tuning AI models based on human preferences and requirements. As AI continues to evolve, it is crucial to explore and develop innovative algorithms that enhance the generation of AI-generated content.

Based on the insights from this comprehensive survey, here are three actionable pieces of advice for researchers and practitioners in the field:

  1. Explore the potential of GANs: GANs have proven to be a powerful tool for generating content. Researchers can further explore different applications and variations of GANs to push the boundaries of generative AI.

  2. Incorporate RLHF techniques: Reinforcement learning from human feedback (RLHF) techniques, such as PPO, can significantly improve the behavior of AI models. By fine-tuning models based on human preferences, AI-generated content can be made more user-friendly.

  3. Consider the RAFT algorithm: The RAFT algorithm offers a stable and efficient approach to fine-tuning AI models. Researchers and practitioners should consider incorporating the RAFT algorithm into their workflow to enhance the quality and efficiency of content generation.

In conclusion, the history of generative AI, from GANs to ChatGPT and the RAFT algorithm, showcases the remarkable progress made in AI-generated content. These models have revolutionized content generation and opened up new possibilities for AI applications. By understanding the unique contributions of each model and leveraging innovative algorithms like RAFT, we can continue to advance the field and create AI-generated content that aligns with human preferences and requirements.

Sources

← Back to Library

Hatch New Ideas with Glasp AI 🐣

Glasp AI allows you to hatch new ideas based on your curated content. Let's curate and create with Glasp AI :)

Start Hatching 🐣