TL;DR
This paper introduces PASTA (Preference Adaptive and Sequential Text-to-image Agent), a reinforcement learning framework designed to guide users through multi-turn, interactive text-to-image generation. By framing prompt expansion as a sequential decision problem and modeling diverse, latent user preference types, PASTA iteratively refines generated images based on user selections. Human evaluations demonstrate that PASTA significantly outperforms standard single-turn and non-adaptive multi-turn baselines, achieving an 85% relative improvement in final image satisfaction.
What Problem Does This Paper Address?
While modern text-to-image (T2I) diffusion models can generate stunning visuals, capturing a user's precise intent remains a major hurdle. A single, initial prompt is often highly underspecified or uncertain, especially when dealing with complex or abstract concepts.
To overcome this, the field is shifting toward interactive, multi-turn generation where an AI agent helps refine the prompt over time. However, existing approaches typically treat user feedback globally, failing to adapt to the fact that different users have highly diverse, subjective stylistic and content preferences. This paper addresses the challenge of building a T2I assistant that can implicitly learn a specific user's preference type over multiple turns and dynamically tailor its prompt suggestions accordingly.
Methods
The authors frame interactive T2I generation as a Latent Contextual Markov Decision Process (LMDP), where the user's underlying preference profile is the hidden context. PASTA solves this sequential problem using a multi-stage data collection and reinforcement learning pipeline:
- User Modeling via EM Strategy: Using both single-turn and newly collected sequential preference data, the authors train a user simulator consisting of a user choice model and a user utility model. They employ an Expectation-Maximization (EM) framework to cluster users into $K$ discrete latent preference types based on their choices.
- Data Augmentation: The user simulator interacts with a base Large Multimodal Model (LMM) to generate a massive synthetic dataset of over 30,000 multi-turn interaction rollouts.
- Value-Based RL Agent: The PASTA agent is trained using Implicit Q-Learning (IQL) on the combined human and simulated datasets. IQL allows the agent to learn an optimal policy offline without out-of-distribution value overestimation.
Policy Architecture
As shown in Figure 2, the policy splits the task into two components:
- Candidate Generator ($\pi_C$): A fixed LMM (Gemini 1.5 Flash) that takes the interaction history and generates a diverse set of $L_C$ prompt expansion candidates across five distinct categories (e.g., rephrasing, adding specific details).
- Candidate Selector ($\pi_S$): A fine-tuned Gemma 2B model that acts as the value function. It scores individual prompts, and the agent selects a final slate of $L$ prompts that maximizes expected cumulative user satisfaction.
Datasets
The authors leverage several datasets for training and evaluation:
- Open-Source Single-Turn Datasets: HPS V2, Pick-a-Pic, and Simulacra Aesthetic Captions (SAC) were used to pre-train the global components of the user preference models.
- Human Rater Sequential Dataset (New): The authors collected and open-sourced a novel dataset containing over 7,000 five-turn interaction trajectories (exceeding 500,000 total images) from 100 human raters interacting with a baseline LMM.
- Simulated Sequential Dataset (New): Over 30,000 rollouts (2.5 million+ images) generated by the user simulator to robustly train the RL agent.
Key Insights and Ideas
- Emergence of Latent Styles: By increasing the number of modeled user types ($K$) in the EM framework, visually distinct domain preferences naturally emerged (e.g., one latent user type consistently favored anime/abstract art, while another preferred photorealistic animals).
- The Power of Simulation-Augmented RL: Training the RL agent solely on synthetic data caused a slight performance drop during human evaluation due to sim-to-real gaps. However, combining real human data with simulated data yielded the best overall performance, proving that a structured user simulator can successfully capture complex multi-turn interaction dynamics.
- Implicit Exploration: To prevent the LMM from narrowing down too quickly, forcing the candidate generator to categorize prompts and restricting the selector to pick at most one prompt per category acted as an effective, lightweight exploration mechanism.
Key Results
- 85% Relative Improvement: In direct head-to-head human evaluations comparing the final turn (turn 5) images, PASTA achieved an 85% relative improvement in user preference over the baseline Gemini 1.5 Flash model.
- Monotonic Satisfaction Gain: Human rater scores confirmed that PASTA consistently and monotonically improved image quality and alignment with user intent across all 5 turns.
- Zero-Shot T2I Generalization: Although trained using Stable Diffusion XL (SDXL) as the underlying T2I engine, PASTA achieved a 20% relative improvement over the baseline when evaluated zero-shot with the state-of-the-art Flux.1 model, demonstrating excellent model-agnostic generalization.
Limitations and Future Work
- Rater and Infrastructure Bias: The authors note that due to a lack of concurrent A/B testing infrastructure, different experimental arms were evaluated sequentially, which could introduce timing or demographic biases among the human rater pool.
- Critique Alignment: While the interface allowed users to provide optional free-text critiques (used in ~20% of turns), the subsequent prompt expansions did not always perfectly align with these textual critiques—a limitation the authors hope to address by tighter integration of text feedback into the RL reward loop.
Summary updated