Training SOTA Multimodal Models on Domestic Chips: A Technical Breakdown of Visual Text Rendering
This article examines how a new-generation image generation model was trained end to end on domestic chips and achieved leading results in complex visual text generation and long-text rendering. It explains why text rendering is difficult for multimodal models, how to interpret evaluation metrics such as word accuracy and normalized edit distance, and what it takes to run full-pipeline training on domestic hardware. It also covers practical patterns for producing reliable results in real applications, including structured prompts, block-based rendering, automated verification, and cost control.
1. Introduction: Multimodal Generation Enters the “Readable Text” Era
Over the past two years, the main competitive front in image generation has been visual aesthetics and semantic consistency, while “the text in the image comes out wrong” has remained a persistent industry pain point. A notable recent development: a team open-sourced a new-generation image generation model that was trained entirely on domestic chips and achieved leading scores in two evaluations, complex visual text generation and long-text rendering. The significance goes beyond leaderboard rankings. It validates that the “domestic compute foundation + multimodal large model” route is both engineering-feasible and cost-controllable.
Setting aside specific product attributes, this article discusses three questions from a general technical perspective: why visual text rendering is hard, how to evaluate it scientifically, and how developers can reliably produce high-quality results in real business scenarios.
2. Why Text Rendering Is a Hard Problem for Multimodal Models
Text rendering requires a model to do three things at once, none of which can be skipped:
- Glyph-level modeling: Chinese characters have dense strokes and symmetric structures, so the model must learn stroke topology rather than just a texture that “looks like a character.”
- Semantic-level alignment: The text content is determined by the prompt, and the model must inject the language condition precisely into the spatial layout to avoid “a beautiful image with the wrong copy.”
- Layout-level constraints: Font size hierarchy, line spacing, whitespace, and text-image avoidance relationships are all layout problems, and errors are visually amplified.
Common failure modes fall into four categories: missing or incomplete strokes, invented glyphs, garbled mixed Chinese-English text, and collapse in the later portion of long text. The first two stem from insufficient glyph representation, the third from unclean coupling of multilingual conditions, and the fourth from attention decay under long sequences combined with the length distribution of training data.
3. How to Read the Evaluation System: The Engineering Meaning Behind the Metrics
To judge whether a text generation model is usable, look at three types of metrics together.
- Word Accuracy: Measures character-level agreement between generated content and target text, directly reflecting whether the output can be used as is.
- Normalized Edit Distance (NED): More sensitive to insertion, deletion, and substitution errors, it reflects how much is wrong rather than only whether something is wrong, making it suitable for evaluating long-text stability.
- Per-category leaderboard breakdown: Looking at Chinese, English, and average scores separately shows whether a model is balanced or specialized.
Two self-built metrics should be added in engineering practice: first, layout compliance rate (whether text overflows the safe area or occludes the main subject); second, retry success rate (the proportion of single-pass successes across multiple samplings of the same prompt). The latter has the largest cost impact because it determines the volume of wasted calls on the business side.
The evaluation logic can be expressed schematically as follows:
def render_score(gt_text, ocr_text, layout_mask):wa = word_accuracy(gt_text, ocr_text) # character-level accuracyned = normalized_edit_distance(gt_text, ocr_text)layout_ok = check_safe_area(layout_mask) # whether the layout is out of boundsreturn {"wa": wa, "ned": ned, "layout_ok": layout_ok}
It is worth emphasizing that OCR read-back is only an approximation. Punctuation, stylized lettering, and handwriting all introduce bias, so leaderboard scores should serve as a selection reference rather than the sole acceptance criterion.
4. Hardware-Software Co-Design: Key Steps to Getting Training Working on Domestic Chips
Completing full-pipeline training on domestic chips usually requires clearing four hurdles:
- Operator coverage and precision alignment: Core operators such as attention, normalization, and convolution need complete support, plus numerical consistency checks against a reference implementation under mixed precision.
- Distributed parallelism strategy: Combining data parallelism, tensor parallelism, and pipeline parallelism, with a focus on communication bottlenecks and load imbalance in large-scale clusters.
- Fault tolerance and checkpoint resume: Node failures are unavoidable in long training runs, so periodic checkpoint saving and fast recovery are needed to reduce wasted compute.
- Data pipeline throughput: Decoding and augmenting high-resolution image-text pairs is a common bottleneck, requiring prefetching, caching, and format preprocessing.
A simplified training robustness checklist:
1. Small-sample convergence check (loss curve deviation from reference implementation < threshold)2. Spot checks for single-card vs. multi-card result consistency3. Evaluation of checkpoint save frequency and recovery time4. Monitoring and alerts for data loading throughput and compute utilization
5. Implementation Practice: Using Text Rendering in Real Business
For high-frequency scenarios such as social media covers, explainer graphics, and event posters, the recommended practice path is:
- Structured prompts: Break “style / subject / copy / layout / aspect ratio” into fixed fields, and provide the copy separately to prevent the model from improvising and producing wrong characters.
- Copy length tiers: Generate short titles in a single pass; split long paragraphs into multiple blocks, render block by block, then composite, which significantly reduces the probability of late-stage collapse.
- Resolution and aspect ratio strategy: When a model natively supports arbitrary aspect ratios from square up to the 2048x2048 range, it is still advisable to preset common ratio templates for target placements to reduce text truncation caused by secondary cropping.
- Quality gate and retry: Add automatic read-back verification, and resample automatically when it fails, turning manual rework into pipeline processing.
- Cost governance: Build a cost model based on “resolution x sampling count x retry rate,” and minimize wasted calls through template reuse and caching. Pricing has already emerged in the industry that brings single-image generation cost down to the level of fractional cents, a price band that makes batch production a viable option.
A schematic business call wrapper:
def generate_cover(prompt, text_blocks, ratio="1:1", max_retry=3):for _ in range(max_retry):img = render(prompt, text_blocks, ratio=ratio)if verify_text(img, text_blocks):return imgreturn fallback_template(text_blocks) # fallback template guarantees deliverability
6. Engineering Support and Observability
At the production stage, it is advisable to place generation capabilities on general cloud infrastructure: object storage for image assets, a message queue to smooth out traffic spikes, a container platform for elastic scaling of inference services, and logging plus monitoring and alerting to track failure rates, latency distribution, and retry rates. Version management for prompts and outputs should also be established to support regression checks and problem diagnosis.
7. Conclusion
Full-pipeline training of a SOTA multimodal model on domestic chips shows that compute self-reliance and model capability are not an either-or choice. For developers, the real dividend is that once text rendering, a long-standing weakness, is addressed, scenarios such as posters, covers, and explainer graphics can move into automated production. Focus on four things, structured prompts, block-based rendering, automated verification, and a cost model, and leaderboard capability can be turned into stable business output.
