Density-Invariant Graph Dynamics for Zero-Shot Cloth Manipulation

When a robot learns to manipulate cloth in simulation and then runs on real hardware, the object it "sees" changes in a way that has little to do with physics. In the simulator, the cloth is a set of evenly spaced particles. In the real world, the cloth is a depth-camera point cloud whose density is uneven: points thin out with distance from the camera, on surfaces tilted away from it, and near occlusion boundaries. Graph-based dynamics models such as Visible Connectivity Dynamics treat these points as nodes of a graph and pass messages between neighbors. Theory on the large-graph limits of such networks says what that message passing computes as the number of points grows. It converges to an integral over the surface, and that integral is weighted by the sampling density. So a model trained on uniform simulated particles computes a different function on real, non-uniformly sampled cloth, even if the simulated physics were exact. This note proposes to treat sampling density as a source of reality gap in its own right, and to remove it by building the model so that its large-graph limit does not depend on how the surface was sampled. The alternative is to randomize density in simulation and hope the model learns to ignore it.

Concretely, we replace the local message passing in a VCD-style cloth dynamics model with propagation through the resolvent of a density-corrected graph Laplacian. A resolvent is a smoothing operator, $(\lambda I + L)^{-1}$, where $L$ is the graph Laplacian and $\lambda$ sets the spatial range. "Density-corrected" means each edge weight is divided by local density estimates at both endpoints before the Laplacian is formed. With that correction, the operator's limit depends only on the cloth's geometry. The test is whether this model, trained on a single simulated sampling with no density randomization, predicts dynamics and plans actions as well under unseen camera placements and point densities as a model trained with extensive density and resolution randomization. A second question is whether it degrades more gracefully outside the randomized range.

Core Claim and Where It Comes From

Two results from the graph-limit literature motivate the claim. Convergence and Stability of Graph Convolutional Networks on Large Random Graphs shows that on graphs built from geometric kernels over a latent space, graph convolutions act as Monte Carlo estimates of a continuous integral operator and converge at rate $O(1/\sqrt{n})$. The rate comes from the usual Monte Carlo variance. Its limit operator integrates against the distribution the nodes were drawn from. For a mean aggregation over a fixed physical radius, the limit is roughly

$$(Tf)(x) = \frac{\int k(x,y)\, f(y)\, p(y)\, dy}{\int k(x,y)\, p(y)\, dy},$$

where $f$ is the feature field on the cloth surface, $k$ is the neighborhood kernel, and $p$ is the point density. When $p$ is uniform, as in simulation, this is a plain local average. When $p$ has a gradient, as in a depth image, the average is pulled toward denser regions. The resulting bias is first order in the kernel radius and the density gradient. Dividing $k(x,y)$ by density estimates $\hat p(x)\hat p(y)$ before normalizing removes this first-order dependence. This is a standard correction in manifold learning. With it, the Laplacian, and therefore its resolvent and heat kernel, converges to an operator determined by surface geometry alone.

The second motivating line is Graph Neural Networks Are Not Continuous Across Graph Resolutions, with its companions Graph Networks Struggle With Variable Scale and On Incorporating Scale into Graph Networks. These papers prove that GCN, GAT, GIN and ChebNet are discontinuous when the same object is represented at different resolutions. They show that resolvent and heat-kernel propagation restores continuity, and they report cross-resolution QM7 errors of 13 to 16 kcal/mol against hundreds or thousands for standard models. That work supplies our propagation operator. It studies static molecules and citation graphs, coarsened by merging nodes into clusters. It does not study sensor-induced density variation, dynamics, or control, and our setting adds all three.

The second-order dependence on $p$ survives the correction, so we do not claim exact invariance. Our claim is that the leading term of the sampling gap is removed by construction rather than by training data.

Relation to Existing Work

The closest system is Learning Visible Connectivity Dynamics for Cloth Smoothing, which we build on directly. VCD voxelizes partial point clouds, uses one graph network to classify candidate edges as mesh or contact edges, and uses a second to predict particle accelerations for planning. It is trained only in the FleX simulator and transfers zero-shot to a Franka arm. Its voxelization is a hand-built density equalizer. It works when the raw density exceeds one point per voxel everywhere, and it cannot help where the real sensor is sparser than the voxel grid, for example on steeply tilted folds or at longer camera distances. We keep VCD's edge prediction, its teacher–student training, and its planner, and change only the propagation operator and the density correction. That isolates the claim.

Other graph-based cloth systems leave the question open for different reasons. SSFold uses the same kind of visible-connectivity graph but avoids simulation by collecting 21 hours of human demonstrations. Inductive Biases for Predicting Deformation and Stress in Deformable Object Grasps with Graph Neural Networks adds a global node to spread stress across a fixed finite-element mesh but never changes mesh resolution or leaves simulation. FabricFlowNet avoids graphs entirely by predicting optical flow on depth images. None of them asks how the model's computation changes when the sampling of the surface changes.

On the transfer side, Sim-to-Real: Learning Agile Locomotion For Quadruped Robots established dynamics randomization over scalar physical parameters. Active Domain Randomization and Domain Randomization via Entropy Maximization refine how the randomization distribution is chosen. Our proposal is not another way to choose that distribution. It argues that one nuisance factor, sampling density, should be removed from the set of things that need randomizing at all, so that the randomization budget goes to physics. The theory on sparse limits, Limits, approximation and size transferability for GNNs on sparse graphs via graphops and A Graphop Analysis of Graph Neural Networks on Sparse Graphs, constrains the design: guarantees exist for spatial propagation but not for operators built from individual eigenvalues. We therefore avoid explicit eigendecompositions.

Research Program

We will build three components.

The first is a density-shift benchmark inside SoftGym (SoftGym). For each simulated cloth state, we render depth point clouds from a simulated camera at controlled heights, tilts and noise levels. We also produce subsampled versions with prescribed non-uniform density fields. The ground-truth particle state is the same across all variants, so the effect of sampling can be measured separately from the effect of physics.

The second is the model. It is VCD with each message-passing block replaced by a learned feature transform followed by resolvent propagation on the density-corrected Laplacian of the predicted mesh-edge graph, with $\lambda$ learned per layer. Contact edges keep ordinary local messages, because they encode short-range collisions rather than surface smoothing. Exact resolvents cost $O(n^3)$, a bottleneck noted in Graph Networks Struggle With Variable Scale. Since $L$ is sparse and positive semi-definite, we instead solve with a few conjugate-gradient iterations, warm-started from the previous timestep. We will report how much accuracy this truncation costs.

The third is analysis. We measure how fast latent embeddings of one cloth state converge across samplings as the point count grows. We check whether the observed rate matches the $O(n^{-1/2})$ Monte Carlo prediction or the faster empirical rates seen in the graphop work. We also measure how the remaining discrepancy scales with the density gradient, which is the second-order term the correction leaves behind.

Baselines

The naive reference point is VCD exactly as published: fixed voxel size, standard message passing, no extra randomization, trained on the same simulated data. Its reported results are the bar for the base task. Normalized improvement, the fraction of possible coverage gain achieved, reaches nearly 1.0 in simulation within 50 actions, and it exceeds 0.94 on real square towels (Learning Visible Connectivity Dynamics for Cloth Smoothing). Our model must at least match this on in-distribution sampling, or the propagation change is not worth having.

The strongest competitor is VCD trained with sampling randomization. During training it sees randomized camera heights, tilts, depth noise, voxel sizes and random non-uniform subsampling covering the training split of our benchmark. This is the domain-randomization answer to the same problem, and it requires no new theory. It gets the same simulated cloth states, the same number of gradient steps, and the same hyperparameter search budget as our model. Its randomization ranges get their own tuning budget, equal in trials to what we spend tuning $\lambda$. To count as beating it, our model, trained without any sampling randomization, must match it within its randomized range and show lower rollout error and higher normalized improvement on held-out sampling conditions outside that range.

A third baseline replaces VCD's aggregation with mean aggregation over a fixed physical radius. By the Monte Carlo argument above, this already converges to an integral operator, though a density-weighted one. It is the cheapest model with a sensible continuum limit.

The key ablation is our model without the density correction: same resolvent propagation, same solver, same training. If the uncorrected resolvent performs as well as the corrected one under density shift, the gain comes from Koke et al.'s operator and not from the density argument that motivates this note. A further ablation swaps the resolvent for the heat kernel $e^{-tL}$, computed by truncated Chebyshev expansion, to check that the result does not depend on the specific operator.

Why not just…?

Why not just randomize point density and resolution in simulation? This is the real threat, and the proposal is designed around it. Within a randomized range it may well match our model. If so, the architectural argument reduces to a claim about out-of-range behavior and training cost, and we will say so. Our case rests on two predictions the experiments can refute. First, randomization covers only the density fields it samples, while the corrected operator removes first-order density dependence for every density field. The gap should therefore appear on held-out camera geometries. Second, randomizing sampling multiplies the training distribution on top of physics randomization. Matched-compute comparisons will show whether that costs physics robustness.

Why not just rely on VCD's voxelization? Voxel downsampling equalizes density only where the raw sensor oversamples the voxel grid. It does nothing in sparse regions, and those are exactly the folded, tilted and distant regions where planning errors matter. The benchmark varies density both above and below voxel resolution, so it will show where voxelization alone suffices. If it suffices everywhere a real camera operates, that is a useful negative result.

Why not just use mean aggregation with a fixed physical radius? It does have a continuum limit (Convergence and Stability of Graph Convolutional Networks on Large Random Graphs), but that limit is weighted by density, as the display equation shows. Our third baseline runs exactly this. If its error under density shift is indistinguishable from ours, then the density bias is too small to matter for cloth, and the resolvent's cost would not be justified.

Proposed Experiments

In simulation, on SoftGym cloth smoothing, we will train every model on one sampling condition with physical randomization held constant. We will then evaluate on the density-shift benchmark. Metrics are one-step and 10-step particle position error against ground truth, latent distance between embeddings of the same state under different samplings, and planning normalized improvement over 50 actions. Results will be split by in-range and out-of-range sampling for the randomized baseline. A secondary run trains all models with VCD's physics randomization on top. This asks whether removing sampling randomization lets a fixed compute budget buy more physics robustness.

On hardware, we will follow VCD's Franka towel-smoothing protocol and add two deliberate camera placements absent from training: a raised, oblique viewpoint and a lower-resolution depth stream. We will also test silk towels and T-shirts. For context on why pixel inputs are not a fallback here, SoftGym reports that image-based reinforcement learning stays near zero on folding.

The decisive check is the comparison between the density-corrected model trained with no sampling randomization and the sampling-randomized VCD on out-of-range real camera placements. A clear win for the corrected model supports the claim that graph-limit design can replace part of domain randomization. A tie means the contribution is the benchmark and the scaling analysis rather than the architecture. A gain for the corrected model over its uncorrected ablation is what ties any improvement to density invariance rather than to resolvent propagation in general.