Lens:重新思考基础文本到图像模型的训练效率
Lens: Rethinking Training Efficiency for Foundational Text-to-Image Models
AI总结:
本文提出Lens,一个具有38亿参数的文本到图像模型,在多种基准测试中表现与超过60亿参数的最新模型相当甚至更优,同时训练计算需求显著降低。通过最大化训练批次的数据信息密度和改进收敛速度的架构选择,实现了高效的训练和优化。
摘要:
我们介绍了Lens,一个具有38亿参数的文本到图像(T2I)模型,其在多种基准测试中表现与超过60亿参数的最新模型相当甚至更优,同时训练计算需求显著降低。例如,Lens仅需约Z-Image的19.3%的训练计算。Lens的训练效率源于两个关键策略,除了其紧凑的模型大小外。首先,我们通过(i)在Lens-800M数据集上训练,该数据集包含8亿个密集标注的图像-文本对,其标注由GPT-4.1生成,平均每个标注约109个词,提供比传统短标注更丰富的语义监督,以及(ii)从具有多种分辨率和多样长宽比的图像中构建每个批次,从而扩大每个优化步骤的有效视觉覆盖范围。其次,我们通过精心的架构选择提高了收敛速度,包括采用提供更好潜在表示的语义变分自编码器(VAE)以及采用加速优化并实现从英语训练数据中多语言泛化的强语言编码器。预训练后,我们应用基于分类学驱动提示的强化学习(Lens-RL-8K)和结构化奖励标准来抑制伪影并提高视觉质量,一个具有训练免费系统提示搜索的推理模块以更好地对齐用户请求与模型,以及基于知识蒸馏的加速4步推理。通过高效的训练和系统的优化,Lens能够泛化到任意的长宽比从1:2到2:1以及分辨率高达1440^2,并支持几种常用语言的提示。得益于其紧凑的尺寸,Lens在单个NVIDIA H100 GPU上可以在3.15秒内生成1024^2的图像,而其蒸馏后的turbo版本可以在0.84秒内完成4步生成。
英文摘要:
We introduce Lens, a 3.8B-parameter T2I model that achieves performance competitive with, and in several cases surpassing, state-of-the-art models with more than 6B parameters across various benchmarks, while requiring significantly less training compute. For example, Lens requires only about 19.3% of the training compute used by Z-Image. The training efficiency of Lens stems from two key strategies beyond its compact model size. First, we maximize data information density per training batch by (i) training on Lens-800M, a dataset of 800M densely captioned image-text pairs whose captions are generated by GPT-4.1 and contain approximately 109 words on average, providing richer semantic supervision than conventional short captions, and (ii) constructing each batch from images with multiple resolutions and diverse aspect ratios, thereby enlarging the effective visual coverage of each optimization step. Second, we improve convergence speed through careful architectural choices, including adopting a semantic VAE that provides better latent representations and employing a strong language encoder that accelerates optimization while enabling multilingual generalization from English-only training data. After pre-training, we apply RL with taxonomy-driven prompts (Lens-RL-8K) and structured reward rubrics to suppress artifacts and improve visual quality, a reasoner module with training-free system prompt search to better align user requests with the model, and distillation-based acceleration for 4-step inference. Through efficient training and systematic optimization, Lens generalizes to arbitrary aspect ratios from 1:2 to 2:1 and resolutions up to 1440^2, and supports prompts in several commonly used languages. Thanks to its compact size, Lens generates a 1024^2 image in 3.15 seconds on a single NVIDIA H100 GPU, while its distilled turbo version performs 4-step generation in 0.84 seconds.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。