Chucheng Xiang1,2,
Runze Wang1,2,
Zhi Deng2*,
Ruchao Bao1,2,
Yuanwei Zhang3,2,
Yuxuan Xie2,
Hanliu Wang2,
Liangzhen Fei1,2,
Wenzheng Wu1,2,
Cheng Wan4,2,
Peifeng Li1,2,
Zhongyuan Liu2,
Ligang Liu1*
1University of Science and Technology of China 2Tencent 3Tsinghua University 4Hong Kong University of Science and Technology
Project Page | arXiv | Paper (DOI) | HF Model | HF Dataset | English | 简体中文
Reasoning about fine-grained placement constraints—such as physical support (on, under) and spatial containment (within open shelves or cabinets)—is essential for realistic 3D scene creation, yet remains out of reach for methods that rely solely on oriented bounding boxes (OBBs). GALA is a 0.7B geometry-aware multimodal language model (Utonia point cloud encoder + Qwen3-0.6B LLM) that perceives explicit per-object point clouds alongside natural language instructions to autoregressively predict 6D object poses [x, y, z, roll, pitch, yaw].
- Explicit Point Cloud Perception: Encodes floor, existing-object, and target-object point clouds to resolve fine-grained containment and support geometry.
- Two-Stage Training Recipe: Stage 1 pretrains the multimodal MLP projector on 500k geometry–language alignment tasks; Stage 2 jointly fine-tunes the projector and LLM on 331k autoregressive placement steps.
- Multi-Source 3DISH Dataset Pipeline: End-to-end curation across 3D-FRONT, Imaginarium, SpatialLM, and artist-crafted scenes with scene-tree autoregressive ordering and physical filtering.
- Plan–Place–Verify Scene Agent: Couples LLM-driven scene planning, GALA placement inference, and Blender/XPBD physical verification for text-to-scene generation and interactive editing.
- Inference (GALA-0.7B): 1 GPU with >= 8 GB VRAM (~3 GB memory and ~1s per object placement).
- Training (Two-Stage Full SFT): 8 GPUs with >= 80 GB VRAM (e.g., 8 × NVIDIA H20 / A100, ~7 hours total).
conda create -n gala python=3.11 -y
conda activate gala
# Install PyTorch (CUDA 12.1) and point cloud dependencies
uv pip install --python "$(which python)" \
torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu121
uv pip install --python "$(which python)" \
torch_scatter==2.1.2 --find-links https://data.pyg.org/whl/torch-2.5.1+cu121.html
uv pip install --python "$(which python)" \
https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.4.post1/flash_attn-2.7.4.post1+cu12torch2.5cxx11abiFALSE-cp311-cp311-linux_x86_64.whl
# Install repository dependencies and customized LLaMA-Factory
uv pip install --python "$(which python)" -r requirements.txt
uv pip install --python "$(which python)" -e third_party/LLaMA-Factory
# Upgrade cuBLAS to prevent SIGFPE on Hopper GPUs (H20/H100) with torch cu121
uv pip install --python "$(which python)" "nvidia-cublas-cu12==12.3.4.1"Verify installation:
python -c "from llamafactory.model.pointlm.inference import PointLMInference; print('OK')"wget https://download.blender.org/release/Blender4.5/blender-4.5.0-linux-x64.tar.xz
tar -xf blender-4.5.0-linux-x64.tar.xz
export BLENDER_BIN="$(pwd)/blender-4.5.0-linux-x64/blender"
# Install vhacdx into Blender's bundled Python
"$(pwd)/blender-4.5.0-linux-x64/4.5/python/bin/python3.11" -m pip install vhacdx| Resource | Hugging Face Hub | Target Path | Description |
|---|---|---|---|
| GALA-0.7B Checkpoint | ChuchengXiang/GALA-0.7B |
checkpoints/GALA-0.7B |
Paper-reported checkpoint (Step 6240) |
| GALA-Dataset (3DISH) | ChuchengXiang/GALA-Dataset |
datasets/ |
Processed splits, scenes, and Imaginarium assets |
# 1) Download the paper-reported GALA-0.7B checkpoint (Step 6240)
huggingface-cli download ChuchengXiang/GALA-0.7B --local-dir checkpoints/GALA-0.7B
# 2) Download the processed dataset and Imaginarium 3D assets
huggingface-cli download ChuchengXiang/GALA-Dataset --repo-type dataset --local-dir datasets_hf
mkdir -p datasets/Imaginarium datasets/processed
cp -r datasets_hf/processed/* datasets/processed/
tar -xzf datasets_hf/assets/imaginarium_assets.tar.gz -C datasets/Imaginarium
# Verify dataset directory configuration (or set export DATASETS_ROOT=/path/to/datasets)
python config/paths.pyCopy the template and fill in an API key (OpenAI, Gemini, Anthropic, or a local OpenAI-compatible endpoint) for high-level scene planning:
cp config/llm_key_example.json config/llm_key.jsonpython scripts/run_agent.py build-index --dataset imaginariumGenerate a scene from text:
python scripts/run_agent.py generate \
-m "$(pwd)/checkpoints/<model_dir>" \
-i "I want a modern bedroom with a double bed, two nightstands, and a wardrobe." \
-b "[[0,0],[4,0],[4,3.5],[0,3.5]]"Incrementally edit an existing scene:
python scripts/run_agent.py edit \
-m "$(pwd)/checkpoints/<model_dir>" \
-s output/agent/generated_scene/generated_scene_layout.json \
-i "Add a floor lamp to the right of the bed."Batch generation across multiple GPUs:
python scripts/run_agent.py batch \
-m "$(pwd)/checkpoints/<model_dir>" \
--jobs scenes.json \
--gpus "0,1,2,3"Render or inspect in Blender:
blender -b -P scripts/visualize_layout.py -- \
--layout output/agent/generated_scene/generated_scene_layout_repaired.json \
--render-image output/visualizations/generated_scene.png \
--dataset autoOutputs are saved under output/agent/<scene_id>/, including <scene_id>_layout.json, <scene_id>_layout.glb, physics-repaired <scene_id>_layout_repaired.{json,glb}, and step-by-step renders.
To rebuild the training, validation, and test splits from raw multi-source scene collections (3D-FRONT, Imaginarium, SpatialLM, and artist-crafted scenes):
# Run all 17 stages: asset point cloud sampling, scene conversion, rotation augmentation,
# physical filtering, scene-tree autoregressive sequence generation, and 9:0.5:0.5 family splitting
bash scripts/run_data_pipeline.sh --dataset 3dish --tag ""
# Pre-cache Utonia grid-subsampled point cloud features (.utonia.npy) for fast training
cd third_party/LLaMA-Factory
python scripts/pointlm_cache_pcd.py \
--data_files ../../datasets/processed/ \
--backbone_type utonia \
--utonia_grid_size 0.02 \
--workers 64All training configurations reside in third_party/LLaMA-Factory/:
cd third_party/LLaMA-Factory
# 0) Assemble initial Utonia + Qwen3-0.6B checkpoint
python scripts/transfer_point_encoder.py \
--point_encoder_source /path/to/utonia.pth \
--llm_backbone Qwen/Qwen3-0.6B \
--output models/Utonia-Qwen3-0.6B
# 1) Stage 1: Projector Alignment Pretraining (freeze Utonia & Qwen3, train projector for 3 epochs)
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 llamafactory-cli train \
examples/train_full/qwen3-0_6b/3dish_alignment_500k_train/base.yaml
# 2) Stage 2: Autoregressive Placement Fine-Tuning (freeze Utonia, train projector + LLM for 4 epochs)
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 llamafactory-cli train \
examples/train_full/qwen3-0_6b/3dish_separate_pointcloud_331k_train/base.yamlOr run the automated training and evaluation sequence script:
cd third_party/LLaMA-Factory
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 bash scripts/run_train_sequence.shAblation Study Configs (examples/train_full/qwen3-0_6b/):
- w/o point cloud (text-only SFT):
3dish_331k_train/base.yaml - w/o pretraining (skip Stage 1):
3dish_separate_pointcloud_331k_train/without_pretrain.yaml - w/o artist scenes (exclude Imaginarium & handcrafted):
3dish_no_imaginarium_handcrafted_separate_pointcloud_train/base.yaml
Single-object placement benchmark (Within Valid Rate, Instruction Valid Rate, Floating Rate, Support Ratio):
cd third_party/LLaMA-Factory
# Evaluate all checkpoints in a training directory and generate leaderboard.csv
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 \
NUM_GPUS=8 \
EXPERIMENT=qwen3-0_6b/3dish_separate_pointcloud_331k_train \
TRAIN_YAML=examples/train_full/qwen3-0_6b/3dish_separate_pointcloud_331k_train/base.yaml \
DATA_FILE=../../datasets/processed/3dish_separate_pointcloud_331k_test.json \
SCORE_DATA_FILE=../../datasets/processed/3dish_separate_pointcloud_331k_test.json \
bash scripts/run_pointlm_eval.shWhole-scene autoregressive rollout on held-out test scenes:
SCENE_ID="imaginarium_bedroom_14" \
PCD_MODEL_PATH="/path/to/checkpoint" \
bash scripts/run_ar_infer.shIf you find GALA, our codebase, or the 3DISH dataset helpful in your research, please cite our SIGGRAPH Asia 2026 paper:
@inproceedings{xiang2026gala,
title = {{GALA}: Geometry-Aware Language Model for Controllable Object Arrangement},
author = {Xiang, Chucheng and Wang, Runze and Deng, Zhi and Bao, Ruchao and Zhang, Yuanwei and Xie, Yuxuan and Wang, Hanliu and Fei, Liangzhen and Wu, Wenzheng and Wan, Cheng and Li, Peifeng and Liu, Zhongyuan and Liu, Ligang},
booktitle = {Proceedings of the SIGGRAPH Asia 2026 Conference Papers},
year = {2026},
publisher = {ACM},
doi = {10.1145/3829340.3842289}
}We thank the authors of LLaMA-Factory, Utonia, Qwen3, Imaginarium, 3D-FRONT, ReSpace, and SpatialLM for their open-source contributions.
- Code: Licensed under the Apache License 2.0 (see NOTICE).
- Dataset: Released under the CC BY 4.0 license.

