atlas

Research map / Large language models / Language, safety and interpretability

DiffAgent: Fast and Accurate Text-to-Image API Selection with Large Language Model

CVPR 2024 · Large language models › Language, safety and interpretability · approach: Controlled text generation · 4 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes DiffAgent, a LLaMA-2-7B agent that selects Stable Diffusion models and parameters (T2I APIs) for a user prompt, trained with SFT then RRHF alignment using an image-score reward on a new Civitai-derived dataset, DABench.

Problem

Selecting the right personalized Stable Diffusion model and generation parameters from tens of thousands of community models requires many manual trials; the task is to pick a suitable T2I API for a user prompt quickly.

Approach

Treat T2I model selection as LLM API calling: fine-tune an LLM on Civitai-derived prompt-API pairs, then align it with human preferences by extending RRHF so that the ranking reward is a unified image-quality score (CLIP score, ImageReward, HPS v2) computed on generated images from each candidate API.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add RRHF alignment after SFT (ablation)DiffAgent · DABench, COCO Caption, and Parti Prompts (SD XL)Unified Metric: 55.8 -> 57.5; 55.6 -> 57.4; 56.5 -> 58.8Helped
Add RRHF alignment after SFT (ablation)DiffAgent · DABench, COCO Caption, and Parti Prompts (SD 1.5)Unified Metric: 59.7 -> 68.2; 53.5 -> 62.2; 53.7 -> 61.8Helped
Use DiffAgent-RRHF parameter information with the baseline model (ablation)Baseline · DABench, COCO Caption, and Parti Prompts (SD XL)Unified Metric: 49.2 -> 54.2; 48.0 -> 53.7; 49.8 -> 53.6Helped
Use DiffAgent-RRHF model information with default parameters (ablation)Baseline · DABench, COCO Caption, and Parti Prompts (SD XL)Unified Metric: 49.2 -> 53.0; 48.0 -> 52.2; 49.8 -> 52.5Helped
Use DiffAgent-RRHF parameter information with the baseline model (ablation)Baseline · DABench, COCO Caption, and Parti Prompts (SD 1.5)Unified Metric: 37.2 -> 39.5; 42.3 -> 45.2; 43.0 -> 46.5Helped
Use DiffAgent-RRHF model information with default parameters (ablation)Baseline · DABench, COCO Caption, and Parti Prompts (SD 1.5)Unified Metric: 37.2 -> 67.0; 42.3 -> 60.8; 43.0 -> 60.7Helped
Add RRHF alignment after SFT (ablation)DiffAgent · DABench (SD 1.5)hallucination error: 11.5 -> 9.5Helped
Add RRHF alignment after SFT (ablation)DiffAgent · COCO Caption (SD 1.5)hallucination error: 26.9 -> 15.5Helped
Add RRHF alignment after SFT (ablation)DiffAgent · Parti Prompts (SD 1.5)hallucination error: 28.9 -> 20.0Helped
Add RRHF alignment after SFT (ablation)DiffAgent · DABench (SD XL)hallucination error: 7.4 -> 7.1Helped
Add RRHF alignment after SFT (ablation)DiffAgent · COCO Caption (SD XL)hallucination error: 45.6 -> 36.0Helped
Add RRHF alignment after SFT (ablation)DiffAgent · Parti Prompts (SD XL)hallucination error: 48.1% -> 28.0%Helped

Surprising findings

Limitations

Experimental setup

Datasets: DABench COCO Caption Parti Prompts

Benchmarks: DABench COCO Caption Parti Prompts

Metrics: CLIP Score ImageReward HPS v2 Unified Metric hallucination error user win rate

Baselines: Stable Diffusion with default parameters DiffAgent-SFT Baseline*

Builds on: Gorilla GPT4Tools RRHF LLaMA-2 ImageReward

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy