Re-Thinking Inverse Graphics With Large Language Models
Peter Kulits, Haiwen Feng, Weiyang Liu, Victoria Abrevaya, Michael J. Black
TL;DR
Inverse graphics aims to reconstruct a 3D scene from a single image, but generalization across domains remains difficult. The authors propose IG-LLM, an inverse-graphics framework that fine-tunes an instruction-tuned LLM fed by a frozen CLIP visual encoder to output a structured graphics program, with a numeric head enabling continuous metric reasoning and a training objective $p(x)=\prod_{i=1}^n p(s_i|s_1,...,s_{i-1})$. They demonstrate strong compositional generalization, parameter-space generalization across 2D and SO(3) spaces, and 6-DoF pose estimation on synthetic data, with the numeric head yielding improved precision and data efficiency. The work shows that broad world knowledge encoded in LLMs can be repurposed for inverse graphics, offering a data-efficient path toward holistic scene understanding and highlighting future directions such as differentiable rendering and real-world generalization.
Abstract
Inverse graphics -- the task of inverting an image into physical variables that, when rendered, enable reproduction of the observed scene -- is a fundamental challenge in computer vision and graphics. Successfully disentangling an image into its constituent elements, such as the shape, color, and material properties of the objects of the 3D scene that produced it, requires a comprehensive understanding of the environment. This complexity limits the ability of existing carefully engineered approaches to generalize across domains. Inspired by the zero-shot ability of large language models (LLMs) to generalize to novel contexts, we investigate the possibility of leveraging the broad world knowledge encoded in such models to solve inverse-graphics problems. To this end, we propose the Inverse-Graphics Large Language Model (IG-LLM), an inverse-graphics framework centered around an LLM, that autoregressively decodes a visual embedding into a structured, compositional 3D-scene representation. We incorporate a frozen pre-trained visual encoder and a continuous numeric head to enable end-to-end training. Through our investigation, we demonstrate the potential of LLMs to facilitate inverse graphics through next-token prediction, without the application of image-space supervision. Our analysis enables new possibilities for precise spatial reasoning about images that exploit the visual knowledge of LLMs. We release our code and data at https://ig-llm.is.tue.mpg.de/ to ensure the reproducibility of our investigation and to facilitate future research.
