# MegaStyle: Constructing Diverse and Scalable Style Dataset via Consistent Text-to-Image Style Mapping

*Junyao Gao, Sibo Liu, Jiaxing Li, Yanan SUN, Yuanpeng Tu, Fei Shen, Weidong Zhang, Cairong Zhao, Jun Zhang*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/139382) · [Open on the map](../papers.html#p139382)

Category: [Diffusion & Image Generation](../pcat/5.md) › [Training-Free Diffusion Image Editing](../pgroup/477.md) · Type: new method · Keywords: style dataset, text-to-image generation, contrastive learning, style encoder, style transfer

Areas: [Evaluation & Benchmarks](../areas/evaluation.md) › Visual Multimodal Evaluation › Text-to-Image Evaluation

## Summary
MegaStyle introduces a scalable data curation pipeline that builds a large, intra-style consistent and inter-style diverse style dataset of 1.4 M images using text-to-image style mapping.

## Explained to a 5-year-old
We made a big collection of pictures that all look the same inside each style and different from each other across styles. We used a smart computer that can draw pictures from words to make those pictures. Then we taught another computer how to tell which style a picture belongs to. And how to change a picture's style. This helps people create cool pictures more easily.

## Explained to a 5-year-old, longer
The researchers wanted to create a huge set of images that are consistent when they belong to the same style. They also wanted the images to be diverse so that each style looks different from the others. To do this, they used a large AI system that can turn text descriptions into pictures with a specific style. They built a big list of style descriptions and a big list of content descriptions. By pairing each style description with each content description, they generated millions of images. After generating the images, they trained a special AI to recognize the style of any image. This style recognizer can tell how similar two images are in terms of style. They also built another AI that can change the style of an existing picture to match a new style. The new images and the two AIs were tested to see how well they worked. The tests showed that the images kept their style consistently and that the style recognizer and style changer worked reliably. This new collection and tools make it easier for artists and researchers to work with styles. Overall, the project provides a large, high-quality resource for style-related tasks.

## For a technical reader
MegaStyle builds a large-scale pipeline that uses text-to-image models to generate millions of style-consistent images from paired style and content prompts. It then trains a style encoder via contrastive learning and a FLUX-based transfer model, delivering reliable similarity measurement and generalizable style transfer. The resulting MegaStyle-1.4M dataset can be used to fine-tune both components for downstream applications. This approach simplifies dataset creation and provides ready-to-use models for developers needing style manipulation capabilities.

## Problem
Creating large-scale style datasets that are both consistent within each style and diverse across styles is challenging, as existing collections often lack either intra-style consistency or inter-style variety.

## Method
The approach leverages the consistent text-to-image style mapping of large generative models to generate images from paired style and content prompts, then applies style-supervised contrastive learning to train a style encoder and a FLUX-based style transfer model.

## Results
Experiments confirm that the dataset preserves intra-style consistency and inter-style diversity, and the trained encoder and transfer model achieve reliable style similarity measurement and generalizable style transfer.

## Contributions
The paper presents a scalable pipeline for constructing a large, balanced style dataset with guaranteed consistency and diversity, and introduces a style-supervised contrastive learning method for training a style encoder and a FLUX-based style transfer model.

## Practical relevance
The work provides a large, reliable resource for style transfer research and enables more robust and generalizable style manipulation.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/139382)
