Seeing vs. Knowing: Counterfactual Supervision and Correction for 3D-Aware Object Editing

Jian Zahng, Zhijun Zhang

TL;DR

Moving or rotating an object in a single photo is a bit like a magic trick: you have to "hallucinate" the parts of the object that were hidden while keeping the visible parts looking exactly like the original. This paper introduces a training strategy that teaches AI editors to intelligently balance the "truth" of the original pixels with the "geometric knowledge" of a 3D model, ensuring that edits like rotation and scaling look consistent, realistic, and physically grounded.

What Problem Does This Paper Address?

When you try to rotate a car in a photograph, you run into a fundamental problem: the camera didn't capture the other side of the car. To fix this, researchers often use "3D-aware" editors that reconstruct a rough 3D model (a "3D state") from the photo to act as a guide.

However, these 3D reconstructions are rarely perfect. They might be blurry, have "baked-in" lighting, or get the texture slightly wrong. This creates a conflict for the AI editor: should it trust the crisp, authentic pixels of the original photograph, or the complete, but potentially ugly, 3D state? Standard training doesn't give the model a clear rulebook for this conflict. As a result, models often "drift"—either ignoring the 3D guide and failing to rotate properly, or blindly following the 3D guide and losing the fine details of the original object.

Methods

The authors propose two clever training strategies to resolve this "Seeing vs. Knowing" dilemma without changing the underlying AI architecture.

  1. Counterfactual State Supervision: The team creates "what-if" scenarios during training. They intentionally create conflicts between the photo and the 3D state—for example, by repainting the hidden surfaces of the 3D model or swapping textures on visible parts. By showing the model these "counterfactual" pairs, they teach it a spatial rule: If a surface was visible in the original photo, trust the photo; if a surface is newly revealed, trust the 3D state.
  2. Symmetric Counterfactual Correction: Even if a model knows the rules, it can "drift" during the generation process (sampling). To fix this, the authors use "twins"—pairs of images that share either the same photo or the same 3D state but have different targets. They nudge the model's internal representations toward the "wrong" twin and then train it to recover and steer back toward the correct target. This makes the model much more responsive to the 3D guidance throughout the entire generation process.
The system uses 3D reconstructions to guide edits, but employs counterfactual training to decide when to trust the photo vs. the 3D model.

The system is built on top of the FLUX.1 Kontext model, using LoRA adapters (a lightweight way to fine-tune large models) to learn these new editing skills.

Datasets

The researchers didn't just rely on existing data; they built a specialized synthetic pipeline to support their counterfactual training:

  • Synthetic Training Dataset: 3,308 scenes featuring 254 different objects from the Google Scanned Objects (GSO) collection. They generated 172,000 training pairs, including the "counterfactual" versions where textures and geometries were intentionally mismatched.
  • Benchmarks: They evaluated the model on OBJect (a synthetic benchmark for 3D-aware editing) and SpatialEdit-Bench (a diverse benchmark for fine-grained spatial control).

Key Insights and Ideas

  • The Trust Issue: The core insight is that 3D-aware editing isn't just about having a 3D model; it's about knowing when to ignore it. By forcing the model to handle intentional errors in the 3D guide during training, it becomes robust to the inevitable errors it will see in the real world.
  • Sampling is Dynamic: Most models are trained on static pairs, but image generation is a multi-step process. The "Symmetric Correction" recognizes that a model can lose its way mid-generation and provides a "homing signal" to keep it on track.
  • Zero Inference Cost: Perhaps the most elegant part of the work is that all these "counterfactual" tricks happen during training. Once the model is trained, it performs edits in a single pass without needing extra optimization or expensive 3D processing at runtime.

Key Results

The method, simply called "Ours" in the paper, consistently outperformed existing state-of-the-art tools like GeoDiffuser and SpatialEdit.

  • Better Preservation: It achieved the lowest LPIPS scores (a measure of perceptual difference), meaning it was the best at keeping the background and unedited parts of the image exactly as they were.
  • Precise Control: On the SpatialEdit-Bench, it showed significantly higher accuracy in following rotation and translation commands compared to instruction-based models like FLUX.1 Kontext or Qwen-Image-Edit.
  • Qualitative Excellence: As seen in the figures, the model handles complex interactions—like a car's reflection on a wet street or the shadows of a chair—much more convincingly than its predecessors.
Qualitative comparison showing the model's ability to handle rotation, scaling, and translation while maintaining scene consistency.

Limitations and Future Work

The authors are upfront about one major bottleneck: Reconstruction Quality. Because the editor relies on a 3D asset reconstructed from a single photo (using Hunyuan3D 2.1), if that initial 3D model is fundamentally broken or missing huge chunks of geometry, the final edit will suffer.

Future work could involve incorporating "reconstruction uncertainty"—essentially teaching the model to realize when its 3D guide is guessing wildly, so it can rely more on its internal generative priors to fill in the blanks.

Summary updated

Abstract

Rotating, translating, or rescaling an object in a photograph requires revealing unseen surfaces, preserving visible appearance, and updating shadows and reflections. Reconstructed 3D assets, rendered at the target pose as a 3D state, provide explicit geometric guidance, but their imperfect textures may conflict with the photograph, while standard paired training does not explicitly teach the editor which source to trust. To address this, we propose counterfactual state supervision, which constructs controlled photo--state conflicts through hidden-surface repainting, hidden geometry with re-rendered shadows and reflections, and visible-surface texture replacement. This teaches the editor to follow the 3D state for unseen content while preserving photograph-visible appearance. However, learning this distinction does not ensure that it is maintained during sampling. We therefore introduce symmetric counterfactual correction, which uses state-side and photo-side twins, which share the photograph and the state respectively, to construct directed latent perturbations toward condition-inconsistent targets and train recovery toward the target specified by the current condition. Both strategies operate only during training, requiring no architectural changes or additional inference steps. Experiments on OBJect and SpatialEdit-Bench demonstrate strong spatial editing performance and content preservation, while controlled ablations show improved source selection and sustained responsiveness to conditioning during sampling.
BibTeX
@misc{zahng2026seeing,
  author = {Jian Zahng and Zhijun Zhang},
  title = {{Seeing vs. Knowing: Counterfactual Supervision and Correction for 3D-Aware Object Editing}},
  year = {2026},
  eprint = {2611.29542},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29542},
}
Figure