Abstract
Text-to-image (T2I) diffusion models often struggle with precise spatial and orientation instructions, particularly in multi-object scenes. We present Compass Control, a framework that enables fine-grained 3D orientation control of individual objects through learned "compass tokens" and localized attention mechanisms. By treating orientation as a controllable attribute, our method allows users to specify the exact yaw of objects without requiring dense 3D inputs.
Introduction
While models like Stable Diffusion excel at generating high-quality imagery, they frequently fail to respect specific spatial arrangements or orientations described in text prompts. Existing methods for controlling viewpoint typically operate on a global camera level or necessitate complex 3D data like depth maps. Compass Control addresses this gap by providing object-centric orientation control, allowing for precise placement and rotation of multiple distinct entities within a single generated image.
Methodology
The Compass Control framework introduces three key innovations to achieve robust orientation steering:
Compass Tokens
Rather than relying on natural language descriptors (e.g., "facing left"), which are often ambiguous to the model, we utilize learned Compass Tokens ($c$). A lightweight MLP encoder maps a target orientation angle $\theta$ to a token embedding. This token is then prepended to the object's name in the prompt (e.g., "A photo of $c_1$ SUV and $c_2$ sedan"), effectively treating 3D orientation as a learnable visual attribute.
Coupled Attention Localization (CALL)
A significant challenge in multi-object control is "attribute bleeding," where the orientation of one object is incorrectly applied to another. To mitigate this, we introduce Coupled Attention Localization (CALL). This mechanism constrains the cross-attention maps of the compass token and its associated object token to a specific 2D bounding box. By restricting the "field of view" for these tokens, CALL ensures that orientation commands are localized to the intended pixels.
Training and Personalization
The model undergoes a staged training process, starting with single-object scenes to learn bounding box adherence, followed by multi-object scenes to refine disentanglement. Furthermore, Compass Control supports Personalization. By combining the framework with DreamBooth, users can provide a small set of images of a specific object and subsequently generate that object in any 3D orientation within diverse environments.
Experimental Results
Compass Control was evaluated using a synthetic scene dataset and tested on unseen object categories to assess generalization.
- Precision: Our method achieved an angular error of 0.198 radians, significantly lower than the nearest competitor, LooseControl (0.385 radians).
- Fidelity: The model maintained a high object generation score of 96.8%, outperforming depth-based methods that often suffer from object distortion.
- Human Evaluation: In a user study with 57 participants, Compass Control was preferred between 86% and 95% of the time for its superior text alignment and orientation consistency in complex scenes.
Conclusion and Future Work
Compass Control provides a simple yet powerful interface for object-centric orientation in T2I models. While currently optimized for ground-based objects and yaw-based rotation, future iterations aim to address complex occlusions and non-rigid poses for humans and animals. By treating orientation as a modular attribute, this work paves the way for more intuitive and precise spatial control in generative AI.
Summary updated