GarmentGPT: Compositional Garment Pattern Generation via Discrete Latent Tokenization

Fangsheng Weng, Junhao Chen, Xiang Li, Jie Qin, Hanzhong Guo, ShaochunHao, Xiaoguang HanICLR 2026

Introduction

Apparel is a fundamental component of human appearance, making garment digitalization critical for digital human creation. However, creating a 3D garment traditionally requires a professional "sewing pattern"—a 2D blueprint of panels (sleeves, collars, torsos) that are stitched together. This manual bottleneck significantly hinders the scalability of digital garment creation.

Existing AI solutions fall into two traps. Diffusion models act as "data replicators" that produce visually appealing images but lack an intrinsic understanding of the underlying geometry or topology needed for actual manufacturing. Conversely, standard Vision-Language Models (VLMs), while powerful at reasoning, struggle when forced to predict raw floating-point coordinates. Small errors in these numbers accumulate, leading to "broken" patterns where panels do not align or stitches fail to match.

The GarmentGPT pipeline: transforming a real-world image into 2D sewing patterns, draping them in 3D, and applying textures.

The authors identify a "representation gap": the powerful symbolic reasoning of Large Language Models is mismatched with the continuous, messy nature of raw geometric data. To bridge this gap, they introduce GarmentGPT, the first framework to treat sewing pattern generation as a high-level compositional reasoning task rather than a low-level coordinate regression problem.

Methodology: Discrete Latent Tokenization

The core innovation of GarmentGPT is Discrete Latent Tokenization. Instead of asking a model to guess the exact X and Y coordinates of a curve, the authors build a discrete "vocabulary" of garment parts.

  • RVQ-VAE (Residual Vector Quantizer VAE): This module takes continuous boundary curves and compresses them into discrete codebook indices. It effectively turns a continuous curve into a specific "ID number" from a library of standard shapes.
  • Hierarchical Tokenization: The authors designed a specialized language for garments. A pattern is represented as a sequence of tokens: [Start of Garment], [Panel Type], [Edge IDs], and [Stitching Instructions].
  • VLM Backbone: Models like LLaVA-1.5 and Qwen-2.5-VL are fine-tuned to predict these token sequences autoregressively. Because the model is now performing a classification task (picking the right token) rather than a regression task (guessing a number), it can leverage its pre-trained reasoning capabilities to ensure the garment makes structural sense.

Data Curation and Benchmarks

To address the data bottleneck for real-world applications and bridge the gap between "clean" simulated data and "messy" real-world photos, the authors introduced a massive new data suite:

  • RealGarment-1M (RG-1M): A curated dataset of over one million photorealistic images paired with precise sewing patterns (GarmentCode). This was generated using a sophisticated pipeline involving motion-aware simulation and "sim-to-real" image translation.
  • RealGarmentTexture-164K: A collection of 164,000 unique flattened garment textures.
  • Real-Garments Benchmark: A comprehensive new benchmark specifically designed to test how well models handle complex human poses and diverse fabric textures in real-world scenarios.
GarmentGPT successfully handles complex human poses, extracting accurate patterns even from dynamic real-world images.

Key Insights and Results

The fundamental insight of GarmentGPT is that Classification > Regression for LLMs. By discretizing the geometry, the authors turned a math problem into a language problem. Furthermore, by using tokens for panels and stitches, the model's output is inherently "editable" (e.g., swapping a "long sleeve" token for a "short sleeve" token).

GarmentGPT sets a new state-of-the-art across the board:

  • Structural Accuracy: On structured datasets, it achieved 95.62% Panel Accuracy and 81.84% Stitch Accuracy, significantly outperforming previous regression-based models like AIpparel (which hit ~79% and ~57% respectively).
  • Real-World Robustness: On the challenging Real-Garments Benchmark, GarmentGPT maintained a 90.84% Panel Accuracy. For comparison, previous baselines collapsed to as low as 25-38% when faced with real human photos and complex poses.
  • Compositional Editing: The model demonstrated an impressive ability to follow instructions like "Please help me edit the sewing pattern," showing that it truly understands the relationship between the visual garment and its 2D blueprint.

Limitations and Future Work

While GarmentGPT is a significant leap forward, the authors note a few areas for future growth:

  • Complexity Limits: While it handles standard apparel excellently, extremely intricate high-fashion pieces with hundreds of tiny panels might still challenge the current token limit of VLMs.
  • Inference Speed: Autoregressive token prediction is inherently slower than "one-shot" diffusion models. Future work might explore non-autoregressive decoding to speed up generation.
  • Fine-grained Fit: While the structural topology is accurate, achieving a "perfect fit" for specific body types (tailoring) could be further refined by integrating more granular body-shape parameters into the latent space.

Summary updated

BibTeX
@inproceedings{weng2026garmentgpt,
  author = {Fangsheng Weng and Junhao Chen and Xiang Li and Jie Qin and Hanzhong Guo and ShaochunHao and Xiaoguang Han},
  title = {{GarmentGPT: Compositional Garment Pattern Generation via Discrete Latent Tokenization}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=XzXKnazRBF},
}
Figure