Giter Site home page Giter Site logo

yonseivnl / vlm-rlaif Goto Github PK

View Code? Open in Web Editor NEW
31.0 3.0 3.0 1.44 MB

ACL'24 (Oral) Tuning Large Multimodal Models for Videos using Reinforcement Learning from AI Feedback

License: Apache License 2.0

Python 95.21% Shell 2.31% HTML 0.98% JavaScript 1.27% CSS 0.23%

vlm-rlaif's Introduction

๐Ÿค– VLM-RLAIF (ACL'24 Oral)

Tuning Large Multimodal Models for Videos using Reinforcement Learning from AI Feedback,
Daechul Ahn1,3, Yura Choi1,3, Youngjae Yu1, Dongyeop Kang2, Jonghyun Choi3,โ€ 
1Yonsei University, 2University of Minnesota, 3Seoul National University
โ€ Corresponding Author
ACL 2024 (To appear)

model-checkpoint model-checkpoint-sft paper

PWC

ย 

๐Ÿ“ฃ News

  • [Aug 07, 2024] We update our trained lora checkpoint of reward model & policy model initialization to Hugginface
  • [Aug 06, 2024] Our model is available in HuggingFace Spaces!
  • [Jul 16, 2024] ๐ŸŽ™๏ธ VLM-RLAIF has been selected for โœจoral presentationโœจ at ACL 2024! See you in Bangkok ๐Ÿ‡น๐Ÿ‡ญ
  • [Jun 16, 2024] ๐Ÿ”ฅ Our next work on aligning large video multimodal model, i-SRT๐Ÿš„, is now available [arXiv, code]
  • [May 31, 2024] ๐Ÿฅณ VLM-RLAIF is accepted to ACL 2024 !

ย 

๐Ÿ‘€ Overview

Abstract: Recent advancements in large language models have influenced the development of video large multimodal models (VLMMs). Previous approaches for VLMMs involve Supervised Fine-Tuning (SFT) with instruction-tuned datasets, integrating LLM with visual encoders, and additional learnable parameters. Here, aligning video with text, and vice versa, remains a challenge, primarily due to the insufficient quality and quantity of multimodal instruction-tune data compared to that of text-only. This discrepancy often results in alignments that poorly ground the video content. To address this, we present a novel alignment strategy that employs a multimodal AI system equipped with Reinforcement Learning from AI Feedback (RLAIF), providing self-preference feedback to refine itself and facilitating the alignment of video and text modalities. Our approach uniquely integrates detailed video descriptions as context into a multimodal AI system during preference feedback generation to enrich the understanding of video content, a process we call context-aware reward modeling. Empirical evaluations on various video benchmarks demonstrate that our VLM-RLAIF outperforms existing approaches, including the SFT model.

Pipeline of VLM-RLAIF

๐Ÿ—ƒ๏ธ Dataset and Checkpoints

Check PREPARE_DATASET.md to prepare training & validation datasets

Model Size Checkpoint corr. detail. context temp. const.
RLAIF 7B SNUMPR/vlm_rlaif_video_llava_7b 3.63 3.25 4.00 3.23 3.32
SFT 7B SNUMPR/vlm_sft_video_llava_7b 2.79 2.82 3.37 2.28 2.49

Lora Checkpoints (used to train the model w/ PPO)

Model Size Lora Checkpoint
Policy init 7B SNUMPR/vlm_policy_init_7b_lora
Reward model 13B SNUMPR/vlm_rm_13b_lora

ย 

Dataset Usage Link
SFT (short) SNUMPR/vlm_rlaif_datasets/SFT_short.json
SFT (long) SNUMPR/vlm_rlaif_datasets/SFT_long.json
Preference dataset (for RM) SNUMPR/vlm_rlaif_datasets/RM_13b_v1_dataset_39k.json
PPO init SNUMPR/vlm_rlaif_datasets/PPO_init.json
RLAIF SNUMPR/vlm_rlaif_datasets/RL_data.json

ย 

๐Ÿ“Š Evaluation

Check PREPARE_DATASET.md to prepare training & validation datasets

  • Zero-shot QA
    bash Evaluation/zeroshotqa/scripts/zeroshotqa_pipeline.sh
  • Video Generative Benchmark
    bash Evaluation/scripts/videochatgpt_pipeline.sh

ย 

๐Ÿ’ป Training w/ RLAIF

  • Refer to the RLAIF folder to train reward model, policy model, and do PPO

ย 

๐Ÿ”ง Data Generation

Available Soon

ย 

๐Ÿ“š Citation

@inproceedings{ahnCYKC24,
      author    = {Daechul Ahn and Yura Choi and Youngjae Yu and Dongyeop Kang and Jonghyun Choi},
      title     = {Tuning Large Multimodal Models for Videos using Reinforcement Learning from AI Feedback},
      booktitle = {ACL},
      year      = {2024}
}

ย 

License

  • The majority of this project is released under the Apache 2.0 license as found in the LICENSE file.
  • The service is a research preview intended for non-commercial use only, subject to the model License of LLaMA ย 

Acknowledgement

vlm-rlaif's People

Contributors

yuuraa avatar dcahn12 avatar daechulahn avatar

Stargazers

 avatar Gary Gege avatar David Marx avatar Shyam Sudhakaran avatar  avatar Eunseop Yoon avatar SeshurajuP avatar Orr Zohar avatar tensorboy avatar Jonghyun Choi avatar Zuhao Yang avatar kingfly avatar  avatar ์ด๋ฃจ๋ฆฌ avatar SIGMIND avatar Youngtaek Oh avatar Xiaodong Wang avatar Straughter "BatmanOsama" Guthrie avatar Bowen Yuan avatar Kang Won Byun avatar Rohit Gupta avatar Byeonghwi Kim avatar Tianxiao avatar ermu2001 avatar  avatar yunkai avatar Nik avatar hl-Chen avatar  avatar Nina Shvetsova avatar Zirui Song avatar

Watchers

 avatar Nik avatar ์ด๋ฃจ๋ฆฌ avatar

vlm-rlaif's Issues

Look forward to you code!

Hi there:
It's amazing job, looking forward to your code. Thanks for your contribution on open source community.
Best

Look forward to your codes!

Thanks for your great work!
I want to deploy it to my project, so can you tell me when will you release your codes about training?
Thanks a lot.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.