Visual instruction tuning arxiv 2304 08485v2

From feiyang-k/curation-bench · View interactive version

Visual instruction tuning arxiv 2304 08485v2 is an AI agent skill from the GitHub repository feiyang-k/curation-bench. Use this skill when you want to generate multimodal instruction-following data by prompting a text-only LLM with image captions and bounding boxes. Avoid it when you have abundant human-annotated inst

How to use this skill

Skill file

Visual Instruction Tuning

One-line decision

Use this skill when you want to generate multimodal instruction-following data by prompting a text-only LLM with image captions and bounding boxes. Avoid it when you have abundant human-annotated instruction data or need the LLM to see actual images during data generation.

Skill metadata

Goal

Generate multimodal instruction-following data by leveraging text-only GPT-4 with image captions and bounding boxes as context, then use this synthetic data to train a vision-language model (LLaVA) for visual instruction following.

Problem signature

Use when

Do not use when

Required inputs

Optional inputs

Outputs

Assumptions and prerequisites

Procedure

  1. Prepare image context as text

Action: Convert image annotations (captions, bounding boxes with labels) into textual descriptions for the LLM.

Why: Text-only LLMs cannot process images directly.

Note: Use COCO captions and detection annotations.

  1. Design prompt templates for three data types

Action: Create few-shot prompts for conversation, detailed description, and complex reasoning.

Why: Different data types teach different visual understanding capabilities.

Note: See paper for details.

  1. Generate instruction data with LLM

Action: Prompt GPT-4 with image context and templates to generate question-answer pairs.

Why: LLM generates diverse, high-quality instruction-response pairs.

Note: Generate 158K samples total across three types.

  1. Pre-train visual projection

Action: Train a linear projection from CLIP ViT-L to Vicuna using CC3M caption data.

Why: Aligns visual features with the language model's input space.

Note: See paper for details.

  1. Fine-tune on instruction data

Action: Fine-tune the full LLaVA model on the 158K synthetic instruction samples.

Why: Teaches the model to follow visual instructions in conversation.

Note: See paper for details.

Parameters to set

Validation checks

Failure modes

Adaptation notes for VLM training

Implementation notes

Evidence from the paper

Source paper

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.