Manuscript Offprint
arXiv:2611.04244CounterSketch: Physics-Grounded Counterfactual Reasoning for Sketch-to-Video Generation
Hien Trinh, Tan-Hiep To, Dinh-Khoi Vo®, Tam V. Nguyen®, Minh-Triet Tran®, and Trung-Nghia Le**
University of Science, Ho Chi Minh City, Vietnam
Vietnam National University, Ho Chi Minh City, Vietnam
University of Dayton, Ohio, USA
{23120254, 25C1103979}@student.hcmus.edu.vn, tamnguyen@udayton.edu, {tmtriet, ltnghia}@fit.hcmus.edu.vn
Abstract. Counterfactual sketch animation explores how a static sketch evolves under a hypothetical intervention. We present CounterSketch, a physics-grounded framework that transforms natural-language “What if...?” queries into physically plausible sketch animations. The framework integrates VLM-guided scene grounding, causal event-chain reasoning, constraint-based trajectory generation, and verification. It models physical transitions to update the scene graph, computes continuous object trajectories, and validates them against physical, geometric, and semantic constraints. The verified trajectories are then projected into object-level motion bounding boxes to guide downstream sketch-video synthesis. Experiments on CounterSketchBench (80 questions) demonstrate that physics-grounded trajectories provide stronger motion guidance than direct VLM predictions. Project page: https://tanhiep-to.github.io/CounterSketch/.
Keywords: Counterfactual Reasoning · Sketch-to-Video Generation · Physical Simulation · Physics-Grounded Generation
1 Introduction
Sketch-to-video generation uses sketches to define scene structure and text to specify motion. Recent methods have explored scene decomposition, object-aware motion planning, and trajectory optimization to improve visual coherence [12,14,23]. However, they largely overlook how physical relations, including support, contact, and collision, evolve during animation [16,15,2]. Moreover, treating scene conditions as fixed limits their ability to reason about changes and subsequent physical consequences.
A complementary direction models physical phenomena through causal event chains. CoECT [17] introduces Physics-driven Event Chain Reasoning (PECR), representing physical processes as sequential events with evolving scene graphs
- These authors contributed equally to this work.
** Corresponding author.
Hien Trinh et al.

Fig. 1: CounterSketch interprets a counterfactual intervention, reasons about its physical consequences, and generates a sketch video whose motion follows the resulting trajectory.
and physics-based constraints. While this formulation captures causal state transitions, it does not address how hypothetical interventions modify scene relations and propagate into object motion.
Building on this perspective, we introduce CounterSketch for counterfactual sketch-to-video generation. As shown in Fig. 1, given a sketch and a natural-language “What if...?” query, the system must infer how a hypothetical intervention changes physical relations and triggers subsequent motion. Unlike conventional motion captions, such queries modify the conditions governing object dynamics, requiring causal reasoning to generate physically plausible animations.
The central challenge lies in propagating intervention effects across interacting objects [4,3,5]. For example, removing a table breaks its support relation and causes a ball to fall, while removing a wall eliminates a collision constraint. Similarly, removing the bottom box of a stack may destabilize other objects. These examples, illustrated in Fig. 2, emphasize the need to track evolving physical relations and generate trajectories consistent with counterfactual constraints.
Our contributions are as follows:
-
A formulation of counterfactual sketch-to-video generation that transforms a static sketch and a natural-language “What if...?” prompt into a physically plausible sketch video.
-
A physics-driven counterfactual event-chain reasoning framework that interprets hypothetical interventions, propagates their consequences through evolving scene relations, and identifies the physical events governing the resulting motion.
-
A unified constrained trajectory framework that models support, contact, collision, gravity, rolling, and related interactions, with trajectory-level verification, bounded repair, and local semantic replanning to enforce geometric and physical consistency before visual synthesis.
-
A trajectory-conditioning mechanism that projects verified object dynamics into temporally aligned image-space motion constraints, providing explicit spatial guidance for downstream sketch-video synthesis.
-
CounterSketchBench, comprising 80 counterfactual questions across 20 base scenes to evaluate counterfactual sketch animation across visual and physical dimensions.

Fig. 2: Representative six types of counterfactual scenes in CounterSketchBench.
Event-Centric Physical Video Generation. Recent approaches model physical processes through causal event chains [16,17]. CoECT [17] introduces Physics-driven Event Chain Reasoning (PECR), representing physical transitions through evolving scene graphs and physics-based conditions. Building on this formulation, CounterSketch infers event chains from hypothetical interventions and converts their physical consequences into constrained trajectories for sketch animation [19,11].
Constraint-Based Motion Planning. Existing methods optimize trajectories under contact and physical constraints, including contact-implicit control [9], joint contact-trajectory optimization [21], and sequential convex optimization [10]. Unlike these methods, CounterSketch must infer how interventions modify the constraint set before trajectory planning. Although counterfactual physical reasoning has been explored for outcome prediction and world-model evaluation [3,4,5], its application to sketch animation remains unexplored. As summarized in Table 1, CounterSketch combines intervention-driven constraint reasoning with MoSketch-based trajectory optimization [14].
Hien Trinh et al.
Table 1: Comparison of representative methods for sketch animation, physics-aware generation, and constraint-based planning. ✓ indicates support and × indicates no support. Optimization denotes per-sketch iterative optimization.
| Method | Counterfactual Reasoning | Planning Basis | Motion Optimization |
|---|---|---|---|
| Sketch animation | |||
| FlipSketch [1] | ✕ | T2V prior | ✕ |
| Live-Sketch [6] | ✕ | T2V prior | ✓ |
| GroupSketch [12] | ✕ | User keyframes | ✓ |
| MoSketch [14] | ✕ | LLM | ✓ |
| Physics-aware generation | |||
| PhysAnimator [19] | ✕ | Physics simulation | ✕ |
| CoECT [17] | ✕ | LLM event chain | ✕ |
| Constraint-based planning | |||
| Contact-implicit [10,21] | ✕ | Fixed constraints | ✓ |
| CounterSketch | ✓ | Physics-aware | ✓ |
3 Problem Formulation
Let be a sketch image and a counterfactual prompt, the goal is to generate a physically plausible sketch video :
We represent as a scene graph , comprising objects and physical relations [20]. The prompt defines an intervention , preservation constraints , and affected objects [3]. Applying yields a counterfactual scene graph and a sequence of physical events , which guide the generation of constrained object trajectories .
4 Proposed Method
CounterSketch consists of five stages: (1) sketch scene grounding, (2) physics-driven counterfactual event-chain reasoning, (3) constraint compilation and physics-based rollout, (4) trajectory verification and closed-loop repair, and (5) trajectory conditioning for video synthesis. The first four stages operate on an explicit physical representation of the scene. The final stage translates the verified trajectories and event states into conditions for downstream sketch-video generation.

Fig. 3: CounterSketch overview. The physical reasoning layer is separated from the downstream sketch-video generator.
4.1 Sketch Scene Grounding
CounterSketch begins by recovering a structured representation of the sketched scene. A vision-language model (VLM) identifies candidate objects, estimates their spatial extent, and infers qualitative relations such as support, contact, attachment, containment, and relative position. These semantic predictions are grounded in the underlying vector strokes to associate each stroke with its corresponding object. Strokes with uncertain object membership are assigned using geometric cues, spatial proximity, or connected components. Each grounded object is then represented by its polygonal or contour-based geometry, centroid, bounds, and motion-relevant physical properties.
Conditioned on these grounded entities and their spatial configurations, we formalize the parsed environment into a scene graph:
where encodes relations such as support, contact, attachment, relative position, containment, and potential collision. This explicit representation allows counterfactual interventions to modify object relations and physical constraints rather than operating merely on visual appearance. This grounded scene graph provides the structured state on which counterfactual interventions are subsequently applied.
4.2 Physics-Driven Counterfactual Event-Chain Reasoning
As illustrated in Fig. 4, CounterSketch translates a “What if...?” intervention into a causal sequence of physical events:
where denotes affected objects, the event type, the physical conditions, and the updated scene graph.
Hien Trinh et al.

Fig. 4: Physics-driven counterfactual event-chain reasoning. The intervention is grounded in the sketch scene graph and propagated through physically meaningful event states.
Vector Intervention The intervention parser extracts , specifying changes to objects, geometry, or relations. These modifications are applied to vector strokes, and the scene graph is updated to reflect immediate effects, such as lost support, new contact, or removed collision boundaries.
Counterfactual Reasoning From the modified scene graph, CounterSketch infers cascading physical events involving gravity, contact, collision, rolling, inclined motion, and pulley constraints. Each event captures the conditions and state transitions governing subsequent motion, providing the causal basis for constraint compilation and trajectory generation.
4.3 Constraint Compilation and Physics-Based Rollout
Figure 5 illustrates constraint compilation, physics-based rollout, and trajectory verification. Each event is converted into geometric and physical constraints over generalized coordinates . For an active constraint ,
These constraints encode support, contact, non-penetration, rolling, and pulley coupling. Given the active constraint Jacobian , mass matrix , and external force , the constrained acceleration is computed as
, where denotes the constraint forces and accounts for the time-dependent constraint terms. Contact transitions are detected from the signed geometric gap , updating the active constraint set as the event chain evolves. The resulting rollout produces continuous trajectories for subsequent verification and visual synthesis.

Fig. 5: Constraint compilation, unified dynamics, hybrid rollout, and trajectory verification.
4.4 Trajectory Verification and Closed-Loop Repair
CounterSketch verifies generated trajectories against geometric, physical, and semantic constraints. Numerical violations trigger parameter or constraint adjustments, while semantic violations require local replanning. Updates are accepted only if they reduce violations. The verifier also ensures counterfactual compliance: interventions must occur, affected objects must respond accordingly, and unaffected objects must remain unchanged unless causally influenced.
4.5 Trajectory Conditioning for Video Synthesis
Verified trajectories are projected into per-frame image-space bounding boxes to guide video synthesis. Static objects retain their original positions, while dynamic objects follow simulated paths. These spatial controls translate physical rollouts into explicit motion guidance consistent with the inferred counterfactual event chain.
5 Experiments
5.1 CounterSketchBench
We introduce CounterSketchBench to evaluate the visual quality and physical plausibility of counterfactual sketch animation. It contains 80 “What if...?” questions across 20 vector-sketch scenes, covering geometric, relational, and kinematic interventions. We assess CounterSketch through qualitative comparisons and an ablation study contrasting physics-grounded trajectory planning with direct VLM prediction.
5.2 Ablation Study
Experimental Setup. Because CounterSketch utilizes MoSketch as its animation generation backbone, we investigate whether our physics-grounded reasoning and constrained rollout provide more effective motion guidance than direct trajectory inference by a vision-language model. We evaluate three progressive configurations while keeping the downstream MoSketch renderer fixed:
Hien Trinh et al.
Table 2: Counterfactual intervention categories in CounterSketchBench.
| Category | Intervention | Example question | # |
|---|---|---|---|
| Object removal | Remove one or multiple objects or supporting structures | What if the table beneath the ball is removed? | 19 |
| Position | Translate, swap, reorder, rearrange objects | What if the right ball is placed to the left of the left ball? | 21 |
| Orientation | Rotate an object, surface, or the entire scene | What if the ground is tilted by 10 15°? | 10 |
| Size / geometry | Scale an object or modify its geometric extent | What if the pendulum string is 50% longer? | 15 |
| Relation / constraint | Modify support, contact, attachment, or relative relations | What if the ball detaches from the string? | 13 |
| Dynamics | Modify an initial dynamic condition | What if the ball starts with a very large initial velocity? | 2 |
| Total | 80 |
Table 3: Ablation of motion guidance for downstream synthesis using MoSketch. All variants share the identical renderer.
| Scene Modification | Trajectory Generation | T2V Alignment | S2V Alignment | Motion Smoothness | Dynamic Degree |
|---|---|---|---|---|---|
| Direct VLM | Direct VLM | 0.1682 | 0.9415 | 0.9830 | 0.5625 |
| CounterSketch | Direct VLM | 0.1729 | 0.9438 | 0.9825 | 0.7250 |
| CounterSketch | CounterSketch | 0.2011 | 0.9580 | 0.9834 | 0.7750 |
- Direct VLM + Direct VLM: A VLM-only upstream baseline where the VLM performs both counterfactual scene modification and trajectory prediction before passing motion guidance to MoSketch.
- CounterSketch + Direct VLM: CounterSketch applies the structured vector intervention to update the scene, after which a VLM directly predicts object bounding-box paths from the modified drawing.
- CounterSketch + CounterSketch: Our complete framework, where the intervention updates the scene graph, causal event chains compile into physical constraints, and verified trajectories condition MoSketch.
We adopt Gemini 3.8 Flash model⁴ as the backbone for both VLM baselines, supplying the identical counterfactual prompt, detected object labels, frame budget, and bounding-box trajectory formatting employed by CounterSketch.
Evaluation Metrics. Following standard sketch animation benchmarks, we assess video synthesis quality using four criteria derived from VBench [7,8,22]. We instruction fidelity (Text–Video Alignment), sketch preservation (Sketch–Video Alignment), temporal coherence (Motion Smoothness), and motion intensity (Dynamic Degree).

Fig. 6: Qualitative results across five representative counterfactual intervention types.
Ablation Results. Table 3 shows that replacing physics-grounded rollout with direct VLM prediction reduces T2V alignment (0.2011 to 0.1729) and Dynamic Degree (0.7750 to 0.7250), with minimal changes in S2V alignment and Motion Smoothness. Removing structured scene modification further reduces these metrics to 0.1682 and 0.5625, respectively, highlighting the importance of structured interventions and physics-grounded trajectories.
5.3 Qualitative Results
Figure 6 illustrates counterfactual interventions involving object removal, repositioning, detachment, scene reorientation, and physical-property changes. The generated keyframes reflect their expected physical consequences: removing a table causes a ball to fall, while detaching an object from a string alters its motion. Geometric changes similarly trigger updated contacts and trajectories. These results demonstrate CounterSketch's ability to propagate interventions into physically coherent, temporally smooth animations.
6 Discussion
CounterSketch separates causal reasoning and trajectory planning from visual synthesis. Event-chain reasoning models physical transitions, while constrained rollout generates physically consistent trajectories. Ablation results show that replacing physics-grounded rollout with direct VLM predictions maintains visual
Hien Trinh et al.
quality and temporal smoothness but weakens semantic alignment and motion dynamism. This highlights the importance of explicit physical reasoning in translating counterfactual interventions into accurate motion.
7 Limitations
CounterSketch depends on reliable sketch grounding, as ambiguous drawings may produce different scene interpretations. Latent physical properties, such as mass, friction, and elasticity, are difficult to infer from sketches alone. Moreover, complex object interactions increase reasoning costs, while practical performance remains dependent on the conditioning capabilities of video generators.
8 Conclusion and Future Work
We introduced CounterSketch, a physics-grounded framework that transforms sketches and “What if...?” queries into physically plausible animations through causal reasoning and verified object trajectories. By separating physical reasoning from visual synthesis, CounterSketch provides interpretable and controllable motion guidance. Future work will explore inferring latent physical properties from multimodal priors and extending the framework to non-rigid motion.
Acknowledgments. This research is funded by Vietnam National University - Ho Chi Minh City (VNU-HCM) under Grant Number B2026-18-17.
References
-
Bandyopadhyay, H., Song, Y.Z.: Flipsketch: Flipping static drawings to text-guided sketch animations. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) (2025)
-
Bansal, H., Peng, C., Bitton, Y., Goldenberg, R., Grover, A., Chang, K.W.: Videophy-2: A challenging action-centric physical commonsense evaluation in video generation. In: International Conference on Learning Representations (2026)
-
Baradel, F., Neverova, N., Mille, J., Mori, G., Wolf, C.: Cophy: Counterfactual learning of physical dynamics. arXiv preprint arXiv:1909.12000 (2019)
-
Begiristain, L., Dünkel, O., Kortylewski, A.: Cronos: Benchmarking counterfactual physical consistency in video models. arXiv preprint arXiv:2605.23699 (2026)
-
Cai, K., Song, R., Zhang, J., Zhang, K., Bodapati, P., Yu, A., Suya, F., Rostami, M., Ma, J., Tian, Y.: What-if world: A causal benchmark for general world models in embodied scenarios. arXiv preprint arXiv:2605.27589 (2026)
-
Gal, R., et al.: Breathing life into sketches using text-to-video priors. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) (2024)
-
Huang, Z., He, Y., Yu, J., Zhang, F., Si, C., Jiang, Y., Zhang, Y., Wu, T., Jin, Q., Chanpaisit, N., Wang, Y., Chen, X., Wang, L., Lin, D., Qiao, Y., Liu, Z.: VBench: Comprehensive benchmark suite for video generative models. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (2024)
-
Huang, Z., Zhang, F., Xu, X., He, Y., Yu, J., Dong, Z., Ma, Q., Chanpaisit, N., Si, C., Jiang, Y., Wang, Y., Chen, X., Chen, Y.C., Wang, L., Lin, D., Qiao, Y., Liu, Z.: VBench++: Comprehensive and versatile benchmark suite for video generative models. IEEE Transactions on Pattern Analysis and Machine Intelligence (2025)
-
Le Cleac'h, S., Howell, T.A., Yang, S., Lee, C.Y., Zhang, J., Bishop, A., Schwager, M., Manchester, Z.: Fast contact-implicit model predictive control. IEEE Transactions on Robotics 40, 1617–1629 (2024)
-
Li, Y., Han, H., Kang, S., Ma, J., Yang, H.: On the surprising robustness of sequential convex optimization for contact-implicit motion planning. arXiv preprint arXiv:2502.01055 (2025)
-
Li, Z., Yu, H.X., Liu, W., Yang, Y., Herrmann, C., Wetzstein, G., Wu, J.: Wonderplay: Dynamic 3d scene generation from a single image and actions. In: 2025 IEEE/CVF International Conference on Computer Vision (ICCV). pp. 9080–9090. IEEE (2025)
-
Liang, G., et al.: Multi-object sketch animation with grouping and motion trajectory priors. In: Proceedings of the ACM International Conference on Multimedia (2025)
-
Liu, F.L., Fu, H., Wang, X., Ye, W., Wan, P., Zhang, D., Gao, L.: Sketchvideo: Sketch-based video generation and editing. In: 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 23379–23390. IEEE (2025)
-
Liu, J., et al.: Multi-object sketch animation by scene decomposition and motion planning. In: Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) (2025)
-
Meng, F., Liao, J., Tan, X., Shao, W., Lu, Q., Zhang, K., Cheng, Y., Li, D., Qiao, Y., Luo, P.: Towards world simulator: Crafting physical commonsense-based benchmark for video generation. arXiv preprint arXiv:2410.05363 (2024)
-
Satish, S.N.K., Jaiswal, D., Chen, H., Bakshi, A.: Physvideogenerator: Towards physically aware video generation via latent physics guidance. arXiv preprint arXiv:2601.03665 (2026)
-
Wang, Z., Hu, Y., Wang, H., Chen, F., Liu, Y., Li, W., Lei, Y.: Chain of event-centric causal thought for physically plausible video generation. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 38122–38131 (2026)
-
Wu, R., Su, W., Ma, K., Liao, J.: Aniclipart: Clipart animation with text-to-video priors. International Journal of Computer Vision 133(6), 3149–3165 (2025)
-
Xie, T., Zhao, Y., Jiang, Y., Jiang, C.: Physanimator: Physics-guided generative cartoon animation. In: 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 10793–10804. IEEE (2025)
-
Xu, K., Chen, K., Fu, H., Sun, W.L., Hu, S.M.: Sketch2scene: Sketch-based co-retrieval and co-placement of 3d models. ACM Transactions on Graphics (TOG) 32(4), 1–15 (2013)
-
Zhang, M., Jha, D.K., Raghunathan, A.U., Hauser, K.: Simultaneous trajectory optimization and contact selection for contact-rich manipulation with high-fidelity geometry. IEEE Transactions on Robotics 41, 2677–2690 (2025)
-
Zheng, D., Huang, Z., Liu, H., Zou, K., He, Y., Zhang, F., Zhang, Y., He, J., Zheng, W.S., Qiao, Y., Liu, Z.: VBench-2.0: Advancing video generation benchmark suite for intrinsic faithfulness. arXiv preprint arXiv:2503.21755 (2025)
-
Zhu, X., Yang, X., Zheng, S., Zhang, Z., Gao, F., Huang, J., Chen, J.: Vector sketch animation generation with differentiable motion trajectories. In: Computer Graphics Forum. p. e70335. Wiley Online Library (2026)