Follow-Your-Shape: Geometry in Motion & Control
- Follow-Your-Shape is a design principle that explicitly models geometry to condition outputs in motion synthesis, image editing, and robotic control.
- It employs techniques like FSQ-VAE to couple discrete motion tokens with continuous SMPL shape parameters, preserving kinematic style and enhancing text-driven synthesis.
- The approach extends to formation control, continuum robotics, and glyph recognition, providing robust, shape-aware outputs across various technical settings.
Searching arXiv for papers using the term "Follow-Your-Shape" and the primary motion-synthesis paper. “Follow-Your-Shape” is a label that has been used in multiple technical settings to denote systems whose outputs are constrained by an explicit target morphology, contour, or trajectory. In text-driven human motion synthesis, it denotes the capability to generate human motions that not only follow a text description of an action, but also adapt the style and kinematics of that action to a specified body shape (Liao et al., 4 Apr 2025). The same label has also been used for shape-aware image editing, arbitrary-shape multi-agent formation, real-time glyph recognition, and follow-the-leader continuum-robot planning (Long et al., 11 Aug 2025, Fujioka et al., 2024, Lee, 2011, Shentu et al., 12 May 2026). This suggests a recurring research pattern: geometry is not treated as a secondary by-product, but as a first-class conditioning signal or control objective.
1. Human-motion meaning of the term
In the motion-synthesis literature, “Follow-Your-Shape” addresses a limitation of existing text-to-motion generation methods: they often learn a homogenized, canonical body shape because it is easier to model, but this homogenization can distort the natural correlations between different body shapes and their motion dynamics (Liao et al., 4 Apr 2025). The central problem is therefore not only semantic alignment between text and action, but also morphological alignment between action realization and body shape.
The formulation in “Shape My Moves” separates content and style in a specific way. Motion content is represented by discrete tokens learned from shape-normalized motion, while body shape is represented continuously through SMPL shape parameters. A single sequence model is then trained to predict both the continuous shape and the motion tokens from text, after which the motion is decoded back into a continuous, shape-aware trajectory. The stated result is a continuous $3$D joint trajectory whose overall form, including stride length, joint sweep, and center-of-mass height, naturally “follows” the predicted shape .
A common misconception in this setting is that shape normalization merely removes nuisance variation. The motion paper argues the opposite: normalizing away shape too aggressively may erase correlations that are physically and perceptually meaningful. Under this view, body shape is not only an appearance variable; it contributes to kinematic style.
2. Shape-aware FSQ-VAE and joint text conditioning
The motion architecture begins with a shape-normalized motion sequence
which is encoded as
The encoder output is quantized by a finite scalar quantizer. In the paper’s notation, each latent is first bounded with a per-dimension range , transformed with and scaling, and then rounded with straight-through gradients: An equivalent vector-form description is
Shape is reintroduced in the decoder rather than in the discrete codebook. Let be the SMPL shape parameter. It is projected through an MLP projector 0 to obtain a time-invariant shape feature
1
This feature is concatenated with each quantized code and decoded as
2
The training objective reconstructs the shape-aware ground-truth motion 3, adds a rotation reconstruction term, and imposes physics losses 4, 5, and 6, which penalize ground-penetration, foot skating, and bone-length variation. Classic VQ-VAE commitment and codebook regularizers are also included.
The same work explicitly avoids discretizing shape. Instead, the continuous SMPL shape vector 7, described as six measurement attributes plus the canonical ten SMPL parameters, is regressed from a learned transformer embedding: 8 The sequence model is a pretrained T5 transformer whose vocabulary is extended by 9 motion codes 0, a shape token 1, and start/end tokens for motion. Given a text prompt, it autoregressively predicts
2
with joint conditional probability
3
The training losses combine token prediction and shape regression, with
4
To expose the VAE to diverse shapes, the training procedure replaces a random 5 of ground-truth 6 values with synthetics from the Shapy/A2S model; for these synthetic shapes, only the physics losses are applied (Liao et al., 4 Apr 2025).
3. End-to-end synthesis pipeline, training regime, and significance
At inference time, the motion pipeline is explicitly staged. A free-form text prompt is tokenized and passed through the transformer, which predicts the special shape token 7 and a sequence of motion codes. The shape embedding yields
8
the motion codes are de-quantized to 9, the shape style feature is computed as 0, and the final motion is decoded by
1
The paper further notes that 2 can optionally be retargeted to arbitrary skeletons via standard IK (Liao et al., 4 Apr 2025).
The reported training setup is specific. The FSQ-VAE uses AdamW with learning rate 3 for 4K iterations and 5 for 6K iterations, batch size 7, on A100. Its loss weights are 8, 9, and 0. The transformer uses AdamW with learning rate 1 and 2, with two-stage fine-tuning: 3K iterations on text↔motion and text→motion tasks, followed by 4K iterations on text→motion only; batch size is 5 across 6 A100s.
The evaluation is described as quantitative, qualitative, and supplemented by a comprehensive perceptual study. No metric values are given in the provided material, but the paper’s stated conclusion is that disentangling motion content and shape style in a quantized VAE, predicting both jointly from text through a single transformer, and reassembling them in the decoder yields motions that match the action description while also following the specific body shape predicted from language.
4. Shape-aware image editing under the same label
In image editing, “Follow-Your-Shape” names a different method class: a training-free and mask-free framework for prompt-driven object-shape transformations while strictly preserving non-target content (Long et al., 11 Aug 2025). The motivation is that recent flow-based image editing models often struggle with large-scale shape transformations. The paper identifies three common failure modes in prior editors: reliance on external segmentation masks, reliance on noisy cross-attention maps, and unconditional KV-injection that preserves background but “over-anchors” and suppresses edits.
The key construct is the Trajectory Divergence Map (TDM). The method performs DDIM/RF inversion of the source image and an editing denoising pass under the target prompt, then compares token-wise velocity differences between inversion and denoising trajectories. For token 7 at timestep 8,
9
Each 0 is min-max normalized over spatial tokens, aggregated over a denoising window 1 by softmax fusion, smoothed with a Gaussian kernel, and thresholded at 2, with default 3, to produce a binary mask 4. The mask localizes where the shape edit should occur.
This mask drives Scheduled KV Injection over three denoising phases. In Phase 1, 5 everywhere, producing unconditional KV injection of inversion features for initial trajectory stabilization. In Phase 2, keys and values are blended token-wise: 6 In Phase 3, 7, so only target-prompt features are injected. Because the mask is derived from the model’s own velocity differences, no external mask is required.
The benchmark introduced for this task, ReShapeBench, comprises 8 new images and enriched prompt pairs specifically curated for shape-aware editing. Its composition is given as 9 single-object images, 0 multi-object images, and a 1-image evaluation split mixing these with selected PIE-Bench examples; all images are 2, and prompts are generated by Qwen-2.5-VL and manually validated. Metrics are LAION Aesthetic Score, PSNR, LPIPS3, and CLIP Similarity. The reported numbers are: Follow-Your-Shape achieves Aesthetic 4, PSNR 5, LPIPS 6, and CLIP 7; the next best methods are reported as Aesthetic 8–9, PSNR 0–1, LPIPS 2–3, and CLIP 4–5. The same paper also states limitations: prompt and hyperparameter sensitivity, and temporal instability when extending TDM to video in Wan 6, where instability in 7 across frames can cause flicker or inconsistent edits.
5. Shape following in distributed control and continuum robotics
In multi-agent formation control, a related “Follow-Your-Shape” description is built on cyclic pursuit for arbitrary desired closed curves (Fujioka et al., 2024). Agents move in 8, with positions 9, headings 0, and predecessor index
1
The desired shape is a closed planar curve 2 represented as a truncated Fourier series,
3
with 4 for all 5.
The controller maintains an internal phase variable 6 and uses
7
so that agents remain evenly spaced in phase. Position is updated by
8
where 9 is the shape-following velocity and
0
pulls the agent toward the predecessor’s trajectory. The paper distinguishes two scenarios: one in which each agent knows its own absolute heading and the full Fourier series of 1, and a local-information scenario in which agents know only their initial heading and one-step predecessor displacement, embed shape information via
2
and sporadically realign orientation with probability 3. The numerically most robust law is the “Achievement–Decrease” rule
4
Simulation details include initial conditions on a circle of radius 5, parameters 6, 7, 8 with later tests varying 9 from 00 to 01, and convergence measured by the average discrete Fréchet distance to the best-fit scaled, rotated, translated 02. The method is reported to form multiple shapes, including those represented as Fourier series, while collision avoidance is explicitly not handled.
In continuum robotics, the cognate notion is follow-the-leader motion for manipulator-mounted continuum robots (Shentu et al., 12 May 2026). The problem is defined over waypoint sequence
03
configuration space
04
and discretized backbone
05
with objectives of exact tip tracking and minimal shape deviation. The errors are
06
The planner builds an offline library
07
then performs online search over active shapes, closed-form base-pose alignment, and Chamfer-distance selection. Base alignment is decomposed into translation, rotation about the tip via Rodrigues’ formula, and axial rotation; the combined base pose is
08
Theoretical guarantees include resolution complete shape search, exact tip tracking at each waypoint and each interpolation step, and an asymptotic tip-error bound
09
On 10 simulated paths over 11 test classes, the paper reports 12 tip error and 13 mean shape deviation at 14 success rate, with clustered search reducing planning time from about 15 s to about 16 s in the PCC benchmark. Hardware experiments on a 17-DOF tendon-driven continuum robot mounted on a serial manipulator report nonzero execution errors, attributed to unmodeled tendon stretch, friction, and hysteresis rather than planner failure.
6. Gesture interfaces, recognition, and broader interpretation
An older but conceptually related usage appears in the Squiggle glyph recognizer, which describes how a “Follow-Your-Shape” interface can be built around affine template matching and real-time shadow rendering (Lee, 2011). Raw pen samples are regularized into fixed-length segments, given as 18 px in the prototype, then interpolated to exactly 19 milestones with 20. The total path length
21
is recorded for triangle-area normalization.
Affine alignment is constructed from corresponding triangles. For each glyph 22, the triangle matrix is
23
with determinant normalized as
24
The recognizer selects the largest-area triangles from the input glyph, typically the top 25 with 26–27, and for each template forms the affine map
28
provided the template triangle is nondegenerate. Match quality is then measured by the sum of squared aligned point distances,
29
Incremental matching updates only the tail of the path, rebuilds the determinant structure only every few input points, and renders “shadows” of the top-30 matches, with 31 given as an example. The prototype parameters include 32, degenerate-triangle threshold 33, line-detection threshold 34–35, orientation-similarity cutoff 36, shadow opacity 37–38, and runtime of 39–40 Hz on modern tablets.
Across these literatures, a plausible implication is that “Follow-Your-Shape” is less a single formalism than a recurring design principle. In motion synthesis, shape is a conditioning variable that modifies kinematic realization; in image editing, it is a region-localized structural transformation inferred from trajectory divergence; in formation control and continuum robotics, it is a target curve or path to be tracked; in glyph recognition, it is the geometric object against which incremental input is affinely aligned. What remains constant is the insistence that geometry be explicitly modeled rather than absorbed into a residual latent.