Abstract
The text encoder is a critical component of text-to-image and text-to-video diffusion models, fundamentally determining the semantic fidelity of the generated content. However, its development has been hindered by two major challenges: the lack of an efficient evaluation framework that reliably predicts downstream generation performance, and the difficulty of effectively adapting pretrained language models for visual synthesis. To address these issues, we introduce GRAN-TED, a paradigm to Generate Robust, Aligned, and Nuanced Text Embeddings for Diffusion models. Our contribution is twofold. First, we propose TED-6K, a novel text-only benchmark that enables efficient and robust assessment of an encoder's representational quality without requiring costly end-to-end model training. We demonstrate that performance on TED-6K, standardized via a lightweight, unified adapter, strongly correlates with an encoder's effectiveness in downstream generation tasks. Notably, under our experimental setup, compared with training a diffusion model from scratch, evaluating with TED-6K is about 750x faster. Second, guided by this validated framework, we develop a superior text encoder using a novel two-stage training paradigm. This process involves an initial fine-tuning stage on a Multimodal Large Language Model for better visual representation, followed by a layer-wise weighting method to extract more nuanced and potent text features. Our experiments show that the resulting GRAN-TED encoder not only achieves state-of-the-art performance on TED-6K but also leads to demonstrable performance gains in text-to-image and text-to-video generation.
Introduction
In the realm of diffusion-based generative models, the text encoder acts as the primary interface between human intent and visual output. Despite its importance, optimizing these encoders has traditionally been a slow and resource-intensive process. Researchers have faced two primary hurdles: the "Evaluation Friction," where assessing an encoder requires training a full diffusion model from scratch, and the "Adaptation Gap," where standard Large Language Models (LLMs) struggle with visual nuances like spatial reasoning and attribute binding.
GRAN-TED addresses these challenges by introducing a high-speed evaluation benchmark and a specialized training paradigm for Multimodal Large Language Models (MLLMs).
The TED-6K Benchmark
To eliminate the need for costly end-to-end training during the evaluation phase, we developed TED-6K. This text-only benchmark consists of 6,641 evaluation instances across eight semantic categories, including Action, Spatial, Temporal, and Quantity.
Instead of generating images, TED-6K utilizes a lightweight Context Aggregator—a small Transformer adapter—to evaluate whether an encoder can distinguish between correct captions and "hard negatives" (e.g., captions with swapped attributes). This approach is approximately 750x faster than traditional methods, reducing evaluation time from 50 hours to just 4 minutes, while maintaining a remarkable Pearson correlation of r = 0.9914 with actual downstream generation performance.
The GRAN-TED Encoder
Guided by the TED-6K framework, we developed the GRAN-TED encoder based on the Qwen3-VL MLLM. Our approach moves beyond simple LLM adaptation through two key innovations:
- Visual Specialization: We fine-tuned the MLLM on a large-scale dataset of Visual Question Answering (VQA) pairs. This forces the text embeddings to align more closely with visual concepts, effectively giving the encoder "eyes" to see the world within its hidden states.
- Layer-wise Feature Weighting: Rather than using a single layer or a simple average, we implemented a learnable weighting module that identifies which layers contain the most potent information for visual synthesis.
To ensure training stability, we employ a Two-Step Training Strategy. In the first step, layer weights are trained jointly with the diffusion model. In the second step, these weights are frozen to provide a consistent signal for the final convergence of the diffusion backbone.
Results and Discussion
GRAN-TED achieves state-of-the-art (SOTA) performance on the TED-6K benchmark with a score of 57.42, outperforming models with significantly larger parameter counts. When integrated into downstream diffusion models, GRAN-TED delivered substantial improvements on GenAI-Bench, with a +1.24 boost for text-to-image (T2I) and a +2.39 boost for text-to-video (T2V) tasks.
Qualitative analysis confirms that GRAN-TED provides superior adherence to complex prompts, particularly those involving specific object counts and spatial relationships. While the model shows slight trade-offs in fine-grained adjective and adverb sub-tasks, its overall robustness in capturing macro-level events and semantic alignment represents a significant leap forward for generative AI.
Conclusion
GRAN-TED provides a comprehensive solution to the bottlenecks of text encoder development. By combining the high-efficiency TED-6K benchmark with a visually specialized MLLM training strategy, we enable faster iteration and higher-fidelity generation. Future work will focus on refining the encoder's grasp of micro-level details, such as OCR and complex spatial relationships, to further bridge the gap between human language and visual reality.
Summary updated