SearcharxivSearch

arXiv · 2609.24457

Constrained Program Generation for 3D Reaction Animation with a 0.8B Model

Abstract

Visualizing a chemical reaction requires making its molecular changes visible while keeping the animation faithful to the stated chemistry. Equations, structural diagrams and molecular viewers provide complementary descriptions, but assembling an interactive three-dimensional explanation still requires specifying the changes and checking their consistency. We present ChemXRG, a domain-specific language (DSL) framework that addresses this gap by representing a reaction animation as an executable program. Persistent atom identifiers and explicit bond, charge and grouping operations connect the symbolic reaction to the displayed transformation. This shared representation lets generation, verification and rendering operate on the same account of what changes. Given known, atom-mapped reactant and product structures, reaction-grounded constraints fix input-determined facts and restrict action choices; execution checks validate the resulting transformation before geometry and frames are constructed. We implement this paradigm with a reaction-program corpus and ChemQwen, a trained 0.8B DSL generator. Paired and component evaluations show improved compiler acceptance and normalized full-program agreement under input-conditioned constraints, while identifying remaining failures that require execution checks. A public browser application demonstrates the connection from symbolic reaction descriptions to inspectable programs and interactive 3D animations.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Hongyuan Wang, Daming Luo, Nico Pietroni, Christy Liang, Andrew McDonagh. 2026-09-21. Constrained Program Generation for 3D Reaction Animation with a 0.8B Model. https://arxiv.org/abs/2609.24457

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

NaRPA: Navigation and Rendering Pipeline for Astronautics

This paper presents the applications of scientific ray-tracing in modeling and simulating light transport for space-borne image data generation. A ray-tracing engine, the Navigation and Rendering Pipeline for Astronautics (NaRPA), is introduced as a rendering framework to generate virtual datasets and support simulations for robust navigation pipelines. Sensor and environment models that enable the synthesis of space-to-space and ground-to-space virtual observations are presented. The work demonstrates the capabilities of simulating passive and active vision-based sensors using NaRPA to facilitate the design, testing, and verification of aerospace visual navigation algorithms. Additionally, the paper describes a velocimeter LiDAR model and its statistical validation with experimental data.

cs.GR

VoroUDF: Meshing Unsigned Distance Fields with Voronoi Optimization

We present VoroUDF, an algorithm for reconstructing high-quality triangle meshes from Unsigned Distance Fields (UDFs). Our algorithm supports non-manifold geometry, sharp features, and open boundaries, without relying on error-prone inside/outside estimation, restrictive look-up tables nor topologically noisy optimization. Unlike fixed-grid approaches, our Voronoi-based formulation optimizes a set of movable seeds that travel freely along the iso-surface, jointly minimizing a tangent-plane fitting energy, driven by a fixed set of surface samples queried once from the UDF and its gradient, and a repulsion energy that keeps the seeds evenly distributed. It achieves significantly improved topological consistency and geometric fidelity compared to existing methods, while producing lightweight meshes suitable for downstream real-time and interactive applications.

cs.GR

Macrofacet Theory for Gaussian Process Statistical Surfaces

We present macrofacet theory to extend microfacet theory from the micro-space to the macro-space. This is achieved by transforming surfaces into volumetric representations that preserve microfacet characteristics. Therefore, we formulate a macroscopic microfacet model using a classic exponential participating medium. Meanwhile, we observe that traditional microfacet models are equivalent to Gaussian processes by definition but ignore the correlation along the geometric normal of the macro-surface. We extend microfacet theory to address this limitation. Our formulation represents Gaussian process implicit surfaces in a statistical manner, which we refer to as Gaussian process statistical surfaces. As a result, our approach converts Gaussian process statistical surfaces into classic exponential media to render surfaces, volumes and in-betweens without realizations. This enables efficient rendering and improves performance compared to realization-based approaches, while theoretically bridging microfacet models and Gaussian processes. Moreover, our approach is easy to implement.

cs.GR