Training SOTA Multimodal Models on Domestic Chips: A Technical Breakdown of Text Rendering Breakthroughs
This article examines a recent technical milestone in which a next-generation image generation model was trained entirely on domestic chips and achieved leading results in complex visual text generation and long-text rendering benchmarks. Rather than focusing on a specific product, it abstracts the progress into three reusable engineering questions: why text rendering is difficult, how to evaluate it quantitatively, and how to train and deploy on domestic compute platforms. It covers the core challenges of rendering discrete symbols with continuous diffusion, evaluation metrics such as word accuracy and normalized edit distance, general techniques for improving text fidelity, and practical engineering considerations for training, inference cost reduction, and production deployment.
1. Introduction: Multimodal Generation Reaches a Usable Stage
Multimodal image generation is shifting from “visually appealing” to “information-readable.” Early models improved noticeably in composition, lighting, and style transfer, but once text needed to appear in an image, outputs often had missing strokes, invented glyph shapes, or even rendered Chinese as unrecognizable symbols. The root cause is that image generation models do not treat glyph structure as discrete information that requires strict constraints.
A recent technical advance is worth noting: a team open-sourced a next-generation image generation model that was trained entirely on domestic chips and achieved leading performance in two general benchmarks—complex visual text generation and long-text rendering. This article does not focus on any specific product. Instead, it abstracts the phenomenon into three reusable engineering problems: why text rendering is difficult, how to quantify and evaluate it, and how to complete training and inference deployment on domestic compute platforms.
2. Why Text Rendering Is Difficult
2.1 Text Is Discrete, Diffusion Is Continuous
Mainstream image generation uses diffusion or flow matching paradigms, where the denoising process iterates in a continuous latent space. Text is strongly structured discrete symbols: stroke order, component position, and character spacing all have strict constraints, and small perturbations in continuous space can easily cause structural errors.
2.2 Chinese Has a Larger Character Set and Higher Glyph Density
Chinese has a large number of commonly used characters, dense strokes per character, and many visually similar characters. The model must simultaneously remember “glyph templates” and “semantic context,” creating significantly higher capacity pressure than Latin-alphabet scenarios. This is also why long-text rendering difficulty rises sharply: as the character count increases, attention must cover a longer spatial range, and later segments are prone to collapse.
2.3 Training Data and Annotation Costs Are High
High-quality samples with precise image-text alignment and exact text content are scarce. Text in posters, hand-copied newspapers, and illustrations is often stylized; if annotation noise is high, the model learns incorrect glyph priors.
3. How to Quantify Text Rendering Capability
Evaluation should cover at least three dimensions rather than relying only on visual impression:
- Word Accuracy: the proportion of target text in the generated image that can be correctly recognized, reflecting “did it write it correctly.”
- Normalized Edit Distance (NED): the edit distance between the recognized result and the target text, normalized so that values closer to 1 indicate greater consistency, reflecting “how far the errors are from the target.”
- Long-text consistency: measured separately in Chinese, English, and mixed scenarios to observe the performance decay curve as character count grows.
For engineering practice, it is recommended to build a tiered test set: short titles (4–10 characters), medium copy (20–50 characters), and long paragraphs (100+ characters), covering difficult samples such as artistic fonts, vertical text, and irregular layouts. An illustrative evaluation flow is shown below:
# Pseudocode: tiered evaluation flowdef evaluate(model, samples):buckets = {"short": [], "medium": [], "long": []}for s in samples:img = model.generate(prompt=s.prompt, text=s.target_text)text = ocr(img) # general text recognition capabilitybuckets[s.level].append({"wa": word_accuracy(text, s.target_text),"ned": normalized_edit_distance(text, s.target_text),})return {k: mean(v) for k, v in buckets.items()}
4. General Technical Paths to Improve Text Rendering
- Strong text conditioning: inject the target text as an explicit condition (rather than relying only on the prompt) and keep the text representation stable across denoising stages.
- Glyph prior modeling: introduce character-level or component-level structural constraints to reduce confusion between visually similar characters.
- Layout planning: generate text boxes and a layout plan first, then render the content, reducing the probability of long-text misalignment.
- Two-stage refinement: the first stage produces the overall image, and the second stage performs local repainting and alignment on text regions.
- Data cleaning loop: use a recognition model to filter training samples in reverse and remove data with inconsistent text annotations.
5. Training and Inference Engineering on Domestic Chips
Training entirely on domestic chips means the software and hardware stack must be co-optimized. General experience includes:
- Operator coverage and graph compilation: ensure core operators such as attention, convolution, and normalization are efficiently supported, reducing performance loss from falling back to generic implementations.
- Mixed precision and memory management: combine gradient checkpointing, sequence parallelism, and tensor parallelism to control peak memory usage.
- Distributed training stability: improve fault self-healing, checkpoint resume, and log monitoring, which are especially critical for long-running training.
- Inference optimization: reduce per-image cost through quantization, operator fusion, batching, and cache reuse. The industry has widely adopted “cost per generated image” as a core metric, and some platforms can bring it down to a fraction of a cent.
- Service support: combine object storage for artifacts, message queues for peak shaving, container platforms for elastic scaling, and logging and monitoring with alerting to ensure stability.
If an enterprise wants to reproduce similar capabilities in its own environment, it can build a training and inference pipeline using general capabilities such as container platforms and monitoring alerts on Baidu AI Cloud, while keeping compute and the model stack replaceable.
6. Cost and Deployment Recommendations
- Tiered routing: use lightweight models for simple text and high-precision models for complex layouts to control average cost.
- Caching and reuse: cache results for identical text and layouts to significantly reduce repeated overhead.
- Quality gates: before launch, set thresholds using both accuracy and edit distance to avoid “good-looking but wrong text.”
- Compliance and copyright: training and generated materials require attention to licensing and content safety review.
7. Conclusion
Domestic chips supporting SOTA multimodal model training validates the feasibility of hardware-software co-design, while improved text rendering capability makes multimodal generation truly production-ready. For developers, focusing on three main threads—explicit text conditioning, tiered evaluation, and inference cost reduction—makes it possible to steadily build deliverable image generation capabilities within their own tech stack.
