WeChat's WeLM-Image: One Model for Generation and Editing, Engineered Around Serving Cost

Tencent WeChat's WeLM-Image folds image generation, editing, and multi-reference composition into a single model, but it set per-request serving cost as a design goal from day one. Here's how that goal reshaped the architecture.
← All posts
온
온틀 리서치
2026년 11월 09일 Updated 2026.11.24 29 min read views 4

Say an AI PM is building a card-news set for a product launch. They drop in a brand logo and a product photo as references, and every slide needs its own promo copy rendered as text in exactly the right spot. Until now this kind of job has been fragmented. You'd generate a background with one model, layer the fragile text on top in a design tool, and start over whenever a reference image's attributes bled together.

WeLM-Image, released by Tencent's WeChat Vision team, is an attempt to pull this fragmented workflow into a single model. Generating an image from text, editing it to instructions, and composing several reference images are all handled by one shared processing structure — a backbone, the single neural network every input passes through, whatever that input is.

What's worth paying attention to is the order of the design decisions. Instead of pushing performance first and trimming cost later, the authors set "serve it on a single GPU" and "keep per-request cost low" as top-priority constraints from the outset. In a high-traffic service like WeChat, the more requests come in, the more any difference in per-request compute piles directly onto total operating cost. How that cost target reshaped the model's structure is the heart of this piece.

What makes this hard

A modern image-generation model is asked to do several things at once. It has to honor the objects, relationships, counts, layout, and style inside a long prompt (the written instruction you hand the model) all at the same time; it has to render long strings mixing Chinese and English onto a poster or sign with the right content in the right place. It has to edit a person while keeping their face intact, and when blending multiple reference images, it has to keep each one's features from tangling together.

The problem is that these jobs draw on different kinds of computation. Understanding the meaning of text and producing continuous pixels differ in how they're learned and how much capacity they need. Cram both into one model and they tend to trip each other up. Mix them and they interfere; pull them apart and the cooperation breaks. That's the tension every unified model runs into.

How they solved it

The cost-reduction side comes down to three choices. Split up the roles, compute only as much as each request needs, and reuse any computation once it's done. The quality side is handled separately, afterward.

Split the roles. The model is broadly cleaved into two parts. One "understands" the request text and the reference images; the other "produces" the actual pixels. The two parts keep their own parameters (the internal settings a model acquires through training). Pulling them apart this way reduces the chance that learning-to-understand and learning-to-draw get in each other's way. The authors call this structure MoT (Mixture-of-Transformers).

But split them completely and the two parts can't talk to each other. So at every layer they're joined by "shared attention." Attention is the mechanism by which the small units of information a model processes (tokens) choose where to look at one another. Here it lets the producing part pull from the understanding part's information and the reference images' information at every layer. Parameters are split, but the information they exchange is shared. At the same time, the content of the target image still being drawn is hidden from the other side, which blocks any copying of the answer in advance.

Use only the experts you need. Inside each of the two parts sit several "experts," and only some of them fire for each token. This is MoE (Mixture-of-Experts). Because not all of them fire every time, you can grow the model's total capacity while keeping the compute per pass small. Frequent, common computation goes to a small set of always-on experts; rare patterns go to experts selected on the fly. The number of experts fired is lopsided. The understanding part fires fewer per token, the producing part fires more (the concrete numbers are in the deep-dive section). The priority weighted toward generation shows up in the numbers.

Reuse computation. An image doesn't come out in one shot. It starts from noise and sharpens over multiple steps. Inputs that don't change step to step — the text and the reference images — are computed once up front and stored (cached), and only the part that changes each step is recomputed. It's a device for shedding repeated computation.

Quality is polished separately. Generation and editing were each optimized by a different reinforcement-learning (scoring the output and nudging the model toward the better side) branch. For generation, the score combines prompt alignment with aesthetics, text rendering, and visual naturalness. For editing, it's designed so that instruction-following dominates the whole reward. The reward takes the form instruction-following × (0.4 + 0.4×source preservation + 0.2×visual quality), where the instruction-following score — a continuous value from 0 to 1 — acts as a weight multiplying the rest. In other words, the more you violate the instruction the more reward is shaved off, but violating part of it can still leave the reward positive. These two specialized models are later merged into one: early on, when noise is heavy, the part that lays out the overall composition leads; later, when noise is light, the part that refines local detail takes over.

How it differs from other unified models

WeLM-Image isn't the first attempt to fit understanding and generation into one model. To line several models up for comparison, it helps to narrow it to a single question — what, and how much, do the understanding side and the producing side share?

At one extreme is "melt it all together." Approaches like HunyuanImage 3.0 blend language understanding and image generation into one shared backbone. The more they share, the better information flows — but the greater the risk that two differently-natured training objectives interfere. At the other extreme, the two are kept almost fully separate. Little interference, but the interaction is severed.

WeLM-Image sits in the middle. Parameters are cleaved apart with MoT to cut interference, but shared attention re-links them at every layer so information keeps flowing. It's a design that tries to structurally dodge both extremes' risks at once. Any quantitative edge over other models should be read only within the benchmark conditions that follow.

Quality and speed results

First, quality. In the reported comparisons, the 1536-resolution model took the lead among the evaluated open-source models on PRISM-Bench and Qwen-Image-Bench (Table 5), and on UnicBench and WeGenEditBench (Table 14). Raising both generation and editing together in a single model is the authors' core claim.

Next, speed. WeLM-Image-Turbo, built with a few-step generation technique, produces one 1024×1024 image on a single GPU (NVIDIA H20) in 8 steps and 4.98 seconds. The "without guidance" here means skipping the correction (guidance) that spends extra compute to boost instruction fidelity. The base model, which applies that correction across 50 steps (CFG, a method that spends more compute to lift quality), takes 56.99 seconds on the same GPU — so Turbo is about 11.4× faster (Table 4). Editing takes 6.78–13.17 seconds on the same GPU for 1 to 4 input images (Table 4). The more references, the longer the context to process, and the longer the time climbs.

Finally, the conditions for reading these numbers. Three things need to be kept apart. First, the first-place results above are all "among open-source models," not an overall ranking that includes closed commercial models. Second, the 4.98 seconds and 6.78–13.17 seconds are the times to make one image on one specific piece of hardware, a single H20. Throughput when a real service batches many requests together differs from these numbers and has to be measured separately. Third, the axes a benchmark measures aren't the whole of real-world service quality.

So how is "a single GPU" possible? Split the cost into three strands and it becomes clear what each device cuts and what it leaves behind. (1) The storage cost of loading the model into memory — none of the three devices reduces this. (2) The compute cost of running one step — MoE lowers it by reducing the experts fired each step. (3) The number of steps traversed — few-step generation reduces it, and caching sheds the repeated computation within it. So all three devices cut compute together, but the burden of loading the entire model (31.7B parameters) into memory stays. That's why exactly how much GPU memory you need on that single card can't yet be answered from this material alone.

Limits and open questions

The constraints to weigh before adopting it mostly collapse into one. The verified languages are Chinese and English. Korean text-rendering performance can't be known from this material, so you shouldn't lean on it as-is for Korean posters or signage. Put differently, there's no grounds yet to adopt it for Korean-language work.

This constraint is also tied to the design choices. The price of making single-GPU serving and low per-request cost the top priority is that model size and step count were capped from the start. That may mean some of the capability ceiling was conceded. Beyond that, the release scope of weights and code, failure cases in specific domains, and the cost curve when the number of references reaches five or more can't be confirmed from the material provided.

The ONTLE take — what to measure, and how

Back to the card-news scene. The time in that job actually goes to three places: reviewing whether the reference images have tangled, regenerating when they're off, and post-editing the broken text back on. WeLM-Image can reach the first two. If it's trained to bind multiple references each to the features it's responsible for, the logo stays the logo and the product stays the product as they merge into one scene — cutting the review-and-regenerate round trips. Having made the ability to draw text directly a top priority leaves room to touch the post-editing stage too, but with Korean performance unverified, it's too early to expect that far.

So this is not "a tool whose adoption is done" but "a job to validate at ONTLE." The surest test is to produce the same single card-news set both the old way and with WeLM-Image, and compare. Recording the following alongside turns the judgment into numbers.

  • Total working time: measure the time from request to final delivery, side by side for both methods.
  • Revision count: the number of regenerations and post-edits until the final version lands.
  • Korean accuracy: pull samples directly and check whether the glyph shapes and placement of the copy are correct. Don't assume Chinese/English performance carries over to Korean.
  • Logo preservation rate: the share of input-reference logos that stay intact without distortion.

There's also a point to raise when settling the operating configuration. The latency figures (4.98 seconds, 6.78–13.17 seconds) are values under the conditions of one H20, Turbo, 8 steps, no guidance, so you have to re-measure them on your own GPU, batching, and step settings before putting them into a service-response-time target (SLA). When weighing quality against speed, decide in advance which to use per use case — the base model (50 steps, CFG) or Turbo (8 steps, no guidance) — and for editing-quality evaluation, place "was the instruction followed" as a weighting term that multiplies the whole score, so that results that look good but violate the instruction a lot get their scores shaved. Until these figures are in hand, you can't talk as if the effect has been confirmed.

Deep dive: structure and evaluation details

Structure numbers. The backbone is 27 decoder layers with a hidden dimension of 2,048; layer 0 alone is a dense FFN (intermediate dimension 11,264), while layers 1–26 are MoE. Routing is asymmetric: the understanding path uses the top 6 experts per token (about 2.2B parameters active), the generation path the top 20 (about 5.4B active) — this is the "allocation weighted toward generation" mentioned in the main text. Total stored parameters come to 31.7B, but when processing a single target token, what actually fires on the generation side is about 5.4B. This contrast shows why the storage burden (31.7B) and the per-step compute burden (5.4B) differ.

VAE (the component that compresses an image to work with it). WeLM-Image-VAE is trained in three stages: reconstruction pretraining, semantic alignment, and text-centric decoder fine-tuning. Evaluation splits along two axes. On the reconstruction axis, WeLM-Image-VAE posted the best PSNR (a measure of how losslessly it restores the original — higher is better) on COCO 512 (34.89), an ImageNet 512 subset (34.47), and its own text-dense poster 1024 set (38.49). On the generation axis, it was the best among 16-channel tokenizers with an FID (how close the output is to the distribution of real images — lower is better) of 12.21 and an IS of 97.96. That said, on FID alone FLUX.2-VAE is lower at 9.87 — meaning WeLM-Image-VAE's edge carries the qualifier "under the 16-channel condition." Doing reconstruction well doesn't mean doing generation well, and splitting the two axes is what explains that.

What the evaluation measures and what it can't. Generation and rendering use GenEval, PRISM-Bench, Qwen-Image-Bench and others; editing uses UnicBench, WeGenEditBench and others. Among these, LongText-Bench and CVTG-2K target long-text rendering, while multi-image editing and UnicBench target reference-composition consistency. Conversely, these metrics can't measure actual user satisfaction or the trustworthiness required in specific domains like medicine or law.

References