HumanRefiner: Benchmarking Abnormal Human Generation and Refining with Coarse-to-Fine Pose-Reversible Guidance

Guian Fang, Wenbiao Yan, Yuanfan Guo, Jianhua Han, Zutao Jiang, Hang Xu, Shengcai Liao, Xiaodan Liang

Introduction

State-of-the-art text-to-image (T2I) models like SDXL and DALL-E 3 often produce visually stunning images but struggle significantly with human anatomical details. Common hallucinations include "spaghetti fingers," extra limbs, and impossible joint rotations. These errors persist because standard training datasets primarily contain "normal" human figures, leaving models without a clear understanding of what constitutes an anatomical anomaly. Furthermore, existing evaluation metrics like FID do not specifically penalize these structural failures.

The AbHuman Benchmark

To address the lack of data and evaluation tools, the authors introduced AbHuman, the first large-scale benchmark specifically designed for abnormal human generation. AbHuman consists of 56,000 synthesized images annotated with 147,000 bounding-box labels across 18 categories of anatomical errors, such as "Twisted Hand" or "Incorrect Limb Count."

Using this dataset, the researchers developed an Abnormal Scorer. This critic model, built on a CLIP ViT-L backbone, provides a quantitative measure (0 to 1) of anatomical distortion. This scorer not only enables benchmarking but also provides a gradient for "Abnormal Guidance" to steer diffusion models away from errors during the generation process.

Methods for Anatomical Correction

The researchers tackle anatomical hallucinations through a multi-stage strategy involving both guidance and post-processing refinement.

Negative Prompting and Guidance

By fine-tuning SDXL on the AbHuman dataset, the model learns to associate specific labels (e.g., "Ab.hand", "Ab.leg") with anatomical errors. During inference, these labels are used as negative prompts to steer the diffusion process away from problematic patterns.

The HumanRefiner Pipeline

The core contribution is HumanRefiner, a plug-and-play refinement module that employs a coarse-to-fine strategy to "repair" generated humans.

  • Coarse (Global) Refinement: HumanRefiner utilizes Pose-Reversibility. It extracts the skeletal pose from a "bad" initial image using a pose detector and regenerates the image using a Pose-T2I Adapter. This forces the model to adhere to a valid skeletal structure while preserving the original artistic intent.
  • Fine (Local) Refinement: Even with pose guidance, fine details like fingers can remain mangled. HumanRefiner uses a specialized detector (YOLOv8/RT-DETR) to identify specific local anomalies and performs detector-guided inpainting to redraw only the problematic regions.

Results and Discussion

HumanRefiner demonstrates significant improvements over baseline models. In human evaluations, the pipeline achieved a 2.9x improvement in limb quality compared to SDXL and a 1.4x improvement over DALL-E 3.

Comparison of human images generated by SDXL (top) exhibiting anatomical errors versus refined versions by HumanRefiner (bottom).

Quantitatively, HumanRefiner lowered the "Abnormal Score" on the AbHuman test split from SDXL's 0.659 to 0.590, while maintaining high image fidelity (FID) and text alignment. Ablation studies confirmed that each component—negative prompting, pose guidance, and local inpainting—contributes progressively to reducing anatomical anomalies.

Conclusion

By leveraging synthetic "failure" data to train a specialized refiner, HumanRefiner offers a robust solution to one of the most persistent problems in AI image generation. While the multi-stage process increases inference time, the dramatic gain in anatomical correctness marks a significant step toward reliable human-centric AI art.

Summary updated

BibTeX
@inproceedings{fang2024humanrefiner,
  author = {Guian Fang and Wenbiao Yan and Yuanfan Guo and Jianhua Han and Zutao Jiang and Hang Xu and Shengcai Liao and Xiaodan Liang},
  title = {{HumanRefiner: Benchmarking Abnormal Human Generation and Refining with Coarse-to-Fine Pose-Reversible Guidance}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73411-3\_12},
}
Figure