Unifying (Machine) Vision via Counterfactual World Modeling
Authors: Daniel M. Bear, Kevin Feigelis, Honglin Chen, Wanhee Lee, Rahul Venkatesh, Klemen Kotar, Alex Durango, Daniel L. K. Yamins
Abstract
Leading approaches in machine vision employ different architectures for different tasks, trained on costly task-specific labeled datasets. This complexity has held back progress in areas, such as robotics, where robust task-general perception remains a bottleneck. In contrast, "foundation models" of natural language have shown how large pre-trained neural networks can provide zero-shot solutions to a broad spectrum of apparently distinct tasks. Here we introduce Counterfactual World Modeling (CWM), a framework for constructing a visual foundation model: a unified, unsupervised network that can be prompted to perform a wide variety of visual computations. CWM has two key components, which resolve the core issues that have hindered application of the foundation model concept to vision. The first is structured masking, a generalization of masked prediction methods that encourages a prediction model to capture the low-dimensional structure in visual data. The model thereby factors the key physical components of a scene and exposes an interface to them via small sets of visual tokens. This in turn enables CWM's second main idea -- counterfactual prompting -- the observation that many apparently distinct visual representations can be computed, in a zero-shot manner, by comparing the prediction model's output on real inputs versus slightly modified ("counterfactual") inputs. We show that CWM generates high-quality readouts on real-world images and videos for a diversity of tasks, including estimation of keypoints, optical flow, occlusions, object segments, and relative depth. Taken together, our results show that CWM is a promising path to unifying the manifold strands of machine vision in a conceptually simple foundation.
The papers around it, by date and closeness
Higher is closer to this paper; left is older. Lines join papers close to each other: groups of lines are sub-topics. Select a point to see why it is there. Back to the summary of this paper
Papers around this one
Ranked by how close their title and abstract are to this paper’s. Select some to read them together.
Closest papers
-
Understanding Physical Dynamics with Counterfactual World ModelingR. Venkatesh, Honglin Chen, Kevin T. Feigelis et al. · 2023 · European Conference on Computer Vision · cited 18 times · Not summarized yet
Understanding Physical Dynamics with Counterfactual World Modeling uses CWM's temporally factored masking and counterfactual prompting to extract visual structures for Physion dynamics prediction.
Abstract
The ability to understand physical dynamics is critical for agents to act in the world. Here, we use Counterfactual World Modeling (CWM) to extract vision structures for dynamics understanding. CWM uses a temporally-factored masking policy for masked prediction of video data without annotations. This policy enables highly effective"counterfactual prompting"of the predictor, allowing a spectrum of visual structures to be extracted from a single pre-trained predictor without finetuning on annotated datasets. We demonstrate that these structures are useful for physical dynamics understanding, allowing CWM to achieve the state-of-the-art performance on the Physion benchmark.
-
Foundational Models Defining a New Era in Vision: A Survey and OutlookMuhammad Awais, Muzammal Naseer, Salman Khan et al. · 2023 · Computer Vision and Pattern Recognition · preprint, not peer reviewed · cited 173 times · AI summary available
Foundational Models Defining a New Era in Vision surveys vision foundation models, including their compositional scene reasoning and prompt-based capabilities.
Abstract
Vision systems to see and reason about the compositional nature of visual scenes are fundamental to understanding our world. The complex relations between objects and their locations, ambiguities, and variations in the real-world environment can be better described in human language, naturally governed by grammatical rules and other modalities such as audio and depth. The models learned to bridge the gap between such modalities coupled with large-scale training data facilitate contextual reasoning, generalization, and prompt capabilities at test time. These models are referred to as foundational models. The output of such models can be modified through human-provided prompts without retraini…
-
CFM: Language-Aligned Concept Foundation Model for VisionKai Wittenmayer, Sukrut Rao, Amin Parchami-Araghi et al. · 2026 · European Conference on Computer Vision · cited 5 times · Not summarized yet
CFM decomposes language-aligned vision representations into interpretable, spatially grounded concepts, whereas CWM derives visual readouts through counterfactual prompting.
Abstract
Language-aligned vision foundation models perform strongly across diverse downstream tasks. Yet, their learned representations remain opaque, making interpreting their decision-making difficult. Recent work decompose these representations into human-interpretable concepts, but provide poor spatial grounding and are limited to image classification tasks. In this work, we propose CFM, a language-aligned concept foundation model for vision that provides fine-grained concepts, which are human-interpretable and spatially grounded in the input image. When paired with a foundation model with strong semantic representations, we get explanations for any of its downstream tasks. Examining local co-occ…
-
Foundation Models Defining a New Era in Vision: A Survey and OutlookMuhammad Awais, Muzammal Naseer, Salman Khan et al. · 2025 · IEEE Transactions on Pattern Analysis and Machine Intelligence · cited 459 times · Not summarized yet
Foundational Models Defining a New Era in Vision surveys vision foundation models and discusses prompting, generalization, and multimodal scene reasoning.
Abstract
Vision systems that see and reason about the compositional nature of visual scenes are fundamental to understanding our world. The complex relations between objects and their locations, ambiguities, and variations in the real-world environment can be better described in human language, naturally governed by grammatical rules and other modalities such as audio and depth. The models learned to bridge the gap between such modalities and large-scale training data facilitate contextual reasoning, generalization, and prompt capabilities at test time. These models are referred to as foundation models. The output of such models can be modified through human-provided prompts without retraining, e.g.,…
-
Imagine the Unseen World: A Benchmark for Systematic Generalization in Visual World ModelsYeongbin Kim, Gautam Singh, Junyeong Park et al. · 2023 · Neural Information Processing Systems · cited 11 times · Not summarized yet
Imagine the Unseen World introduces a benchmark for visual world models' ability to imagine image transformations in novel situations.
Abstract
Systematic compositionality, or the ability to adapt to novel situations by creating a mental model of the world using reusable pieces of knowledge, remains a significant challenge in machine learning. While there has been considerable progress in the language domain, efforts towards systematic visual imagination, or envisioning the dynamical implications of a visual observation, are in their infancy. We introduce the Systematic Visual Imagination Benchmark (SVIB), the first benchmark designed to address this problem head-on. SVIB offers a novel framework for a minimal world modeling problem, where models are evaluated based on their ability to generate one-step image-to-image transformation…
-
Unified 3D Scene Understanding Through Physical World ModelingWanhee Lee, Klemen Kotar, R. Venkatesh et al. · 2026 · International Conference on Learning Representations · cited 4 times · Not summarized yet
Unified 3D Scene Understanding Through Physical World Modeling unifies 3D tasks such as depth and view synthesis through prompts, citing CWM.
Abstract
Understanding 3D scenes requires flexible combinations of visual reasoning tasks, including depth estimation, novel view synthesis, and object manipulation, all of which are essential for perception and interaction. Existing approaches have typically addressed these tasks in isolation, preventing them from sharing a common representation or transferring knowledge across tasks. A conceptually simpler but practically non-trivial alternative is to unify these diverse tasks into a single model, reducing different tasks from separate training objectives to merely different prompts and allowing for joint training across all datasets. In this work, we present a physical world model for unified 3D u…
-
Unified-IO: A Unified Model for Vision, Language, and Multi-Modal TasksJia-Sen Lu, Christopher Clark, Rowan Zellers et al. · 2022 · International Conference on Learning Representations · cited 561 times · Not summarized yet
Unified-IO unifies vision, language, and multimodal tasks by converting heterogeneous inputs and outputs into token sequences.
Abstract
We propose Unified-IO, a model that performs a large variety of AI tasks spanning classical computer vision tasks, including pose estimation, object detection, depth estimation and image generation, vision-and-language tasks such as region captioning and referring expression, to natural language processing tasks such as question answering and paraphrasing. Developing a single unified model for such a large variety of tasks poses unique challenges due to the heterogeneous inputs and outputs pertaining to each task, including RGB images, per-pixel maps, binary masks, bounding boxes, and language. We achieve this unification by homogenizing every supported input and output into a sequence of di…
-
Masked Visual Actions for Unified World ModelingHadi Alzayer, Wen-Long Huang, Hao-Nan Chen et al. · 2026 · arXiv.org · preprint, not peer reviewed · cited 11 times · Not summarized yet
Masked Visual Actions uses video prediction as a world model and cites CWM while introducing pixel-space action prompts for predicting scene responses.
Abstract
Video models absorb rich priors over how the visual world moves, interacts, and responds to contact, making them promising substrates for robotic world modeling. The central challenge is how to communicate action to such models in a form aligned with the visual space in which they learned these interaction priors, yet still grounded in physical manipulation. We introduce Masked Visual Actions, a pixel-space control interface that expresses action as a partially revealed trajectory of an arbitrary entity in a video. Revealing robot motion makes the model act as a forward dynamics model that predicts the scene's response to low-level robot actions, while revealing desired object motion makes t…
Prior work it builds on
-
On the Opportunities and Risks of Foundation ModelsRishi Bommasani, Drew A. Hudson, Ehsan Adeli et al. · 2021 · Machine Learning · preprint, not peer reviewed · cited 7,760 times · AI summary available
On the Opportunities and Risks of Foundation Models surveys the broad-data, adaptable model paradigm that CWM applies to machine vision.
Abstract
AI is undergoing a paradigm shift with the rise of models (e.g., BERT, DALL-E, GPT-3) that are trained on broad data at scale and are adaptable to a wide range of downstream tasks. We call these models foundation models to underscore their critically central yet incomplete character. This report provides a thorough account of the opportunities and risks of foundation models, ranging from their capabilities (e.g., language, vision, robotics, reasoning, human interaction) and technical principles (e.g., model architectures, training procedures, data, systems, security, evaluation, theory) to their applications (e.g., law, healthcare, education) and societal impact (e.g., inequity, misuse, econ…
-
A Unified Sequence Interface for Vision TasksTing Chen, Saurabh Saxena, La-La Li et al. · 2022 · Neural Information Processing Systems · cited 203 times · Not summarized yet
A Unified Sequence Interface for Vision Tasks represents detection, segmentation, keypoints, and captioning as sequences rather than using CWM's counterfactual prompts.
Abstract
While language tasks are naturally expressed in a single, unified, modeling framework, i.e., generating sequences of tokens, this has not been the case in computer vision. As a result, there is a proliferation of distinct architectures and loss functions for different vision tasks. In this work we show that a diverse set of"core"computer vision tasks can also be unified if formulated in terms of a shared pixel-to-sequence interface. We focus on four tasks, namely, object detection, instance segmentation, keypoint detection, and image captioning, all with diverse types of outputs, e.g., bounding boxes or dense masks. Despite that, by formulating the output of each task as a sequence of discre…
-
Visual Foresight: Model-Based Deep Reinforcement Learning for Vision-Based Robotic ControlF. Ebert, Chelsea Finn, S. Dasari et al. · 2018 · arXiv.org · preprint, not peer reviewed · cited 526 times · Not summarized yet
Visual Foresight predicts future camera images for robotic control, using self-supervised model-based learning rather than CWM's general visual readouts.
Abstract
Deep reinforcement learning (RL) algorithms can learn complex robotic skills from raw sensory inputs, but have yet to achieve the kind of broad generalization and applicability demonstrated by deep learning methods in supervised domains. We present a deep RL method that is practical for real-world robotics tasks, such as robotic manipulation, and generalizes effectively to never-before-seen tasks and objects. In these settings, ground truth reward signals are typically unavailable, and we therefore propose a self-supervised model-based approach, where a predictive model learns to directly predict the future from raw sensory readings, such as camera images. At test time, we explore three dist…
-
A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi et al. · 2020 · International Conference on Machine Learning · cited 27,269 times · AI summary available
A Simple Framework for Contrastive Learning of Visual Representations studies self-supervised visual representation learning, which CWM cites as methodological groundwork.
Abstract
This paper presents SimCLR: a simple framework for contrastive learning of visual representations. We simplify recently proposed contrastive self-supervised learning algorithms without requiring specialized architectures or a memory bank. In order to understand what enables the contrastive prediction tasks to learn useful representations, we systematically study the major components of our framework. We show that (1) composition of data augmentations plays a critical role in defining effective predictive tasks, (2) introducing a learnable nonlinear transformation between the representation and the contrastive loss substantially improves the quality of the learned representations, and (3) con…
-
Images Speak in Images: A Generalist Painter for In-Context Visual LearningXinlong Wang, Wen Wang, Yue Cao et al. · 2022 · Computer Vision and Pattern Recognition · cited 420 times · Not summarized yet
Images Speak in Images unifies visual tasks with image-based prompts and outputs, while CWM obtains zero-shot readouts by comparing predictions on altered inputs.
Abstract
In-context learning, as a new paradigm in NLP, allows the model to rapidly adapt to various tasks with only a handful of prompts and examples. But in computer vision, the difficulties for in-context learning lie in that tasks vary significantly in the output representations, thus it is unclear how to define the general-purpose task prompts that the vision model can understand and transfer to out-of-domain tasks. In this work, we present Painter, a generalist model which addresses these obstacles with an “image”-centric solution, that is, to redefine the output of core vision tasks as images, and specify task prompts as also images. With this idea, our training process is extremely simple, wh…
Papers that cite it
-
Self-Supervised Learning of Motion Concepts by Optimizing CounterfactualsStefan Stojanov, D. Wendt, Seungwoo Kim et al. · 2025 · Neural Information Processing Systems · cited 7 times · Not summarized yet
Self-Supervised Learning of Motion Concepts by Optimizing Counterfactuals uses a pretrained frame predictor to estimate flow and occlusion, citing CWM.
Abstract
Estimating motion in videos is an essential computer vision problem with many downstream applications, including controllable video generation and robotics. Current solutions are primarily trained using synthetic data or require tuning of situation-specific heuristics, which inherently limits these models' capabilities in real-world contexts. Despite recent developments in large-scale self-supervised learning from videos, leveraging such representations for motion estimation remains relatively underexplored. In this work, we develop Opt-CWM, a self-supervised technique for flow and occlusion estimation from a pre-trained next-frame prediction model. Opt-CWM works by learning to optimize coun…
-
Zero-shot World Models Are Developmentally Efficient LearnersKhai Loong Aw, Klemen Kotar, Wanhee Lee et al. · 2026 · arXiv.org · preprint, not peer reviewed · cited 7 times · Not summarized yet
Zero-shot World Models Are Developmentally Efficient Learners studies zero-shot physical scene understanding, including depth and motion, using a temporally factored predictor.
Abstract
Young children demonstrate early abilities to understand their physical world, estimating depth, motion, object coherence, interactions, and many other aspects of physical scene understanding. Children are both data-efficient and flexible cognitive systems, creating competence despite extremely limited training data, while generalizing to myriad untrained tasks -- a major challenge even for today's best AI systems. Here we introduce a novel computational hypothesis for these abilities, the Zero-shot World Model (ZWM). ZWM is based on three principles: a sparse temporally-factored predictor that decouples appearance from dynamics; zero-shot estimation through approximate causal inference; and…
-
Neural Foundations of Mental Simulation: Future Prediction of Latent Representations on Dynamic ScenesAran Nayebi, R. Rajalingham, M. Jazayeri et al. · 2023 · Neural Information Processing Systems · cited 33 times · Not summarized yet
Neural Foundations of Mental Simulation evaluates networks that predict future states of dynamic scenes to investigate mechanisms of physical understanding.
Abstract
Humans and animals have a rich and flexible understanding of the physical world, which enables them to infer the underlying dynamical trajectories of objects and events, plausible future states, and use that to plan and anticipate the consequences of actions. However, the neural mechanisms underlying these computations are unclear. We combine a goal-driven modeling approach with dense neurophysiological data and high-throughput human behavioral readouts that contain thousands of comparisons to directly impinge on this question. Specifically, we construct and evaluate several classes of sensory-cognitive networks to predict the future state of rich, ethologically-relevant environments, rangin…
-
DSG-World: Learning a 3D Gaussian World Model from Dual State VideosWenhao Hu, Xuexiang Wen, Xi Li et al. · 2025 · arXiv.org · preprint, not peer reviewed · cited 1 time · Not summarized yet
DSG-World builds a 3D Gaussian world model from paired perturbed scene observations to improve visibility and physical consistency.
Abstract
Building an efficient and physically consistent world model from limited observations is a long standing challenge in vision and robotics. Many existing world modeling pipelines are based on implicit generative models, which are hard to train and often lack 3D or physical consistency. On the other hand, explicit 3D methods built from a single state often require multi-stage processing-such as segmentation, background completion, and inpainting-due to occlusions. To address this, we leverage two perturbed observations of the same scene under different object configurations. These dual states offer complementary visibility, alleviating occlusion issues during state transitions and enabling mor…
-
Anticipating the Risks and Benefits of Counterfactual World Simulation Models (Extended Abstract)Lara Kirfel, R. MacCoun, Thomas Icard et al. · 2024 · AAAI/ACM Conference on AI, Ethics, and Society · cited 3 times · Not summarized yet
Anticipating the Risks and Benefits of Counterfactual World Simulation Models discusses reconstructing scenes and simulating alternate outcomes, focusing on societal implications.
Abstract
This paper examines the transformative potential of Counterfactual World Simulation Models (CWSMs). CWSMs use pieces of multi-modal evidence, such as the CCTV footage or sound recordings of a road accident, to build a high-fidelity 3D reconstruction of the scene. They can also answer causal questions, such as whether the accident happened because the driver was speeding, by simulating what would have happened in relevant counterfactual situations. CWSMs will enhance our capacity to envision alternate realities and investigate the outcomes of counterfactual alterations to how events unfold. This also, however, raises questions about what alternative scenarios we should be considering and what…
Go further
How are these papers found?
We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.
Updated on 5 November 2026.