Autoregressive-Diffusion Image Generation: Architecture, Chinese-Made Chip Training, and Non-Standard Resolutions
This article explains a Chinese open-source image generation model that pairs an autoregressive language base with a diffusion decoder. It covers how the two components divide planning and rendering, what to verify in the developer's claim of full training on Chinese-made AI hardware, and how a dynamic token grid handles non-standard resolutions. The figures come from the developer and have not been independently tested.
1. Background: From Step-by-Step Denoising to Understanding Before Drawing
Over the past few years, image generation has followed two main approaches. Early diffusion models generated images through step-by-step denoising. They produced high-quality images but understood instructions poorly. When a prompt described multiple objects with several constraints, common failures included wrong object counts, confused spatial relationships, and styles that did not match the request.
Over the past year, the industry has moved in another direction: using the reasoning ability of large language models for image generation. Language models are good at understanding meaning and breaking down logic. If a language model first interprets the request and plans the composition, and an image module then handles detailed rendering, overall controllability usually improves. In late 2024, an international vendor released an image generation approach built on a multimodal large model, which publicly validated this direction.
The Chinese open-source model discussed in this article follows this direction. It has its own designs for architecture, training, and resolution handling, described below. All figures on parameter count, hardware platform, and performance come from the developer’s disclosures and have not been independently tested.
2. Hybrid Architecture: Autoregressive for Understanding, Diffusion for Rendering
The model uses a hybrid structure: an autoregressive base followed by a diffusion decoder. The two parts have different roles and work in sequence.
2.1 Autoregressive Base: Parsing Requirements and Planning Layout
According to the developer, the autoregressive base has about 9 billion parameters. It does two main things:
- Parses the details in the text prompt, including object count, spatial relationships, style requirements, and any text that should appear in the image.
- Plans the layout of the whole image before any pixels are generated, much like a designer sketching a draft before starting the final artwork.
The autoregressive structure generates content in sequence, the same way a language model does. As a result, language understanding and reasoning learned during pretraining can transfer to composition. This is the structural basis for the model’s “understand first, then draw” approach.
2.2 Diffusion Decoder: Turning the Plan into an Image
The diffusion decoder has about 7 billion parameters. It takes the semantic representation and layout information from the autoregressive base and decodes the final image step by step. Diffusion models handle textures and high-frequency detail well, which compensates for the autoregressive part’s weaker pixel-level detail.
This division of labor has three direct benefits:
- Planning and rendering are separate. When debugging, you can first check whether the layout is correct, then check whether the details are right.
- The chain-of-thought reasoning of the language model can break down complex instructions. For example, it can determine the main subject first, then the position, and finally the text layout.
- Text regions and their content are fixed during planning, so the decoder only needs to render them at the specified positions. This helps Chinese text appear more accurately in the intended locations.
2.3 Trade-offs of the Design
The two modules are connected in series, so there is a dependency at inference time. If the semantic representation from the autoregressive base is off, the diffusion decoder generates the image based on that error. The two modules can be fine-tuned separately after training, but overall quality can only be confirmed through end-to-end evaluation. Metrics for a single module are not enough.
3. Full-Pipeline Training on Chinese-Made Chips: What to Verify
The developer says the model was trained end to end, from data preprocessing through large-scale pretraining, on a Chinese-made AI computing platform. This matters for engineering, but the claim that the full pipeline runs needs a closer look.
3.1 Components of the Training Pipeline
- Data preprocessing: cleaning, filtering, splitting, and distributed loading of image-text pair data.
- Distributed training: a combination of data, tensor, and pipeline parallelism, plus communication optimization.
- Operator adaptation: the custom operators required by the hybrid architecture need complete, efficient implementations on the target hardware.
- Training framework: long training runs need checkpoint-based resumption and fault recovery.
A weakness in any one of these components can slow training or interrupt it partway through.
3.2 How Readers Can Verify the Claims
When you see a claim of full-pipeline training on domestic compute, check the following:
- The parallelism strategy and cluster size used for training.
- Whether throughput and training duration were published.
- Whether there is a list of supported operators.
- Whether resumption from checkpoints was actually tested.
If the developer has not disclosed this information, treat the conclusions as reference only. They should not be the basis for a purchasing decision.
3.3 Practical Implications for Users
If the training base runs stably on Chinese-made hardware, follow-on fine-tuning and deployment can stay on the same ecosystem, which reduces the work of migrating between platforms. Supply chain risk may also drop. Whether that holds depends on the specific procurement channel, driver versions, and compliance conditions, so no single answer applies.
4. Non-Standard Resolutions: Implementation and Limits
4.1 Limits of Fixed-Ratio Approaches
Traditional image generation models usually support only a few preset aspect ratios, such as 4:3, 16:9, and 1:1. Posters, social media covers, and e-commerce banners come in very different sizes. A common workaround is to generate at a standard ratio, then crop or add padding. Cropping can cut off the subject, padding can unbalance the composition, and image quality can suffer.
4.2 Dynamic Grid Approach
According to the developer, the model improves the visual tokenizer. The grid is no longer tied to a fixed aspect ratio. Instead, it is divided dynamically based on the target width and height. The autoregressive model processes variable-length sequences, so images at different resolutions can be trained and run through the same pipeline.
The code below is illustrative pseudocode that shows how sequence length is calculated. It cannot be run directly.
# Pseudocode: shows how sequence length changes with resolution# Assumes each token covers a 16x16 pixel patch. The actual value depends on the model tokenizer's downsampling factor.def token_count(width, height, patch_size=16):cols = ceil(width / patch_size) # Tokens along the widthrows = ceil(height / patch_size) # Tokens along the heightreturn rows * cols# 1240x1600 with 16-pixel patches: 78 columns × 100 rows, 7,800 tokens in totalprint(token_count(1240, 1600))
Sequence length grows roughly in proportion to pixel count. When both sides double, the token count roughly quadruples, and attention computation grows even faster. Memory usage and generation latency both rise accordingly.
4.3 Boundary Conditions
The developer states that the supported range is roughly any aspect ratio between 1024 and 2048 pixels. Before using the model, confirm the following:
- The minimum and maximum side lengths, and whether they match the official documentation.
- The maximum total pixel count, and whether memory is sufficient above that limit.
- Composition quality at extreme aspect ratios, such as 1:8 or 8:1.
