Official implementation of 3DrawAgent: Teaching LLM to Draw in 3D with Early Contrastive Experience.
⭐ CVPR 2026 Highlight Paper
3DrawAgent is a training-free, language-driven framework for 3D sketch generation. Instead of updating model parameters, it uses large language models as 3D sketch planners and improves generation quality through contrastive experience learning. The framework represents sketches as 3D Bezier curves, scores them with CLIP-based rewards, and extracts reusable drawing experience for subsequent inference.
We recommend using Python 3.10 with conda.
conda create -n 3drawagent python=3.10
conda activate 3drawagentPlease install diffvg / pydiffvg by following the official repository:
- Official repo: https://github.com/BachiLi/diffvg
pip install -r requirements.txtCreate .env from the provided template:
cp .env.example .envThen edit .env:
OPENAI_API_KEY=your_api_key
OPENAI_MODEL=your_model_name
OPENAI_BASE_URL=python train.py --prompts examples/prompts.json --output-dir outputs/trainpython infer.py --prompt "A chair" --experiences outputs/train/experiences.json --output-dir outputs/chairIf you find this work useful, please cite:
@inproceedings{xiao2026drawagent,
title = {3DrawAgent: Teaching LLM to Draw in 3D with Early Contrastive Experience},
shorttitle = {3DrawAgent},
author = {Xiao, Hongcan and Xiao, Xinyue and Wang, Yilin and Zhang, Yue and Qi, Yonggang},
booktitle = {Proceedings of the {IEEE}/{CVF} Conference on Computer Vision and Pattern Recognition ({CVPR})},
year = {2026}
}