betaFeedback

WorksComputer Science

Does Pose Encoding Matter? Analyzing Geometric Representations for Discrete Motion Vocabulary Learning

Abstract

Compressing continuous human motion into a finite vocabulary of discrete tokens is now the first stage of many motion understanding and generation pipelines. Vector quantization partitions a latent space into Voronoi cells around a finite codebook, but the geometry of that latent space is inherited from the input pose encoding, and it is unclear which encoding admits an efficient discretization. We study four encodings that place skeletal motion in different geometric spaces: Gaussian joint heatmaps on the pixel lattice, which we show to be a morphological dilation of the joint point set by a quadratic structuring function; root-relative joint positions in Euclidean space; local joint rotations on \SO through a continuous 6D embedding; and a redundant full kinematic encoding. For each, we train VQ-VAE tokenizers whose codebooks lie on the unit hypersphere, varying codebook size, temporal stride, and code dimension. Beyond reconstruction, we measure codebook utilization and the effective vocabulary size, i.e., the number of equiprobable spherical Voronoi cells with the same entropy as the observed token distribution. Rotation and position encodings keep converting additional codewords into effective vocabulary, whereas the full kinematic encoding saturates at a few hundred effective cells and heatmaps at fewer than sixty. The smallest code dimension gives the highest utilization for three of the four encodings, and the effect of temporal stride depends on the encoding. Encodings of the same pose family can thus yield effective vocabularies differing by an order of magnitude, a difference that reconstruction loss alone does not reveal, which points to input geometry as a first-order design choice in motion tokenization.

Introduction

The human body is naturally modeled as an articulated skeleton: a kinematic tree of rigid segments whose motion is determined by the rigid transformation of each joint relative to its parent. Action recognition, anomaly detection, gait analysis, and motion synthesis therefore operate on skeletal pose sequences, obtained from motion capture [18] or from 2D/3D pose estimation [7, 21]. The same underlying geometry is, however, parameterized in very different spaces: as points digitized on a pixel lattice, as point sets in R3\mathbb{R}^{3}, or as elements of the rotation group SO(3)SO(3). Each space has its own continuity, redundancy, and constraint structure.

A widely adopted way to learn from such data is motion tokenization [12, 31], which is at heart a discretization problem: continuous trajectories are mapped to words of a finite alphabet. A vector-quantized autoencoder (VQ-VAE) [24] sends each short motion segment to the nearest element of a learned codebook, and the resulting token sequences are modeled by autoregressive or masked transformers. Geometrically, the quantizer partitions the latent space into the Voronoi cells of the codebook [10]. When latents and codewords are ℓ2\ell_{2}-normalized, as in our models, this partition is a tessellation of the unit hypersphere. Downstream models only see which cell was hit, so the quality of this discretization bounds everything built on top of it.

Motivation. The tokenizer is not a detail. It is trained first, then frozen, and it fixes the vocabulary on which generative, captioning, and recognition models are built [12, 31, 14]; any motion it cannot name is lost to every model trained on its tokens. Yet its most basic design choice, the input encoding, is usually made by convention or by the data source: heatmaps when poses come from an online 2D estimator, rotations when they come from motion capture, the full kinematic feature set because popular generation models use it. Codebook size, code dimension, and temporal stride are then inherited from image and audio models, and the tokenizer is judged by reconstruction loss alone. This first stage has received little systematic study for human motion [23], and it is unclear whether encodings that describe the same skeleton lead to vocabularies of comparable quality. Geometry suggests they may not. The encoder must map every input space onto the same sphere, so discontinuities of the parameterization [32], unenforced constraints such as fixed bone lengths, and redundant channels can all change how the Voronoi cells of the codebook are used.

We study this question from the viewpoint of discrete geometry and mathematical morphology. Our contributions are:

  • A geometric account of four skeletal encodings (Sect. 3). We show that max-merged Gaussian heatmaps are the dilation of the joint set by a quadratic structuring function (Proposition 1), and that rotations recovered by minimal-twist inverse kinematics carry exactly the 42 degrees of freedom of bone directions.

  • A formulation of motion quantization as a spherical Voronoi tessellation, together with capacity measures, namely utilization and effective vocabulary size, that count how many cells a tokenizer actually uses (Sect. 4).

  • A controlled study over codebook size, temporal stride, and code dimension, showing that the choice of encoding strongly affects whether additional codewords become usable vocabulary (Sect. 5).

Main insight. Encodings with the same intrinsic degrees of freedom need not yield vocabularies of the same size. Positions, rotations, and the full kinematic encoding all describe the same 42-dimensional family of poses (Table 1). Yet at K=8192K = 8192 their tokenizers use about 3000, 5200, and 380 effective codewords, respectively, while the full kinematic tokenizer’s reconstruction loss barely changes with KK. This points to the parameterization of the pose, i.e., its continuity, redundancy, and digitization, as a major factor in how much of a discrete vocabulary becomes usable, a factor that reconstruction loss alone does not reveal. Because the encodings also differ in some training details, we treat this as a strong empirical indication and discuss the controls needed to isolate it (Sect. 6). This gives practitioners a concrete criterion for choosing encodings and codebook sizes, and shows how Voronoi tessellations, morphology, and manifold structure can help explain modern learned models.

EncodingAmbientUnderlying geometric spacedof
(i) HeatmapR72×72\mathbb{R}^{72 \times72}lattice samples of exp⁡(ιX⊕qσ)\exp(\iota_X \oplus q_\sigma), X⊂R2X \subset\mathbb{R}^2, ∣X∣=22|X| = 22≤44\le44
(ii) PositionsR66\mathbb{R}^{66}(S2)21(S^2)^{21} per subject (fixed bone lengths)42
(iii) RotationsR130\mathbb{R}^{130}V2(R3)21≅SO(3)21V_2(\mathbb{R}^3)^{21} \cong SO(3)^{21}; IK image ≅(S2)21\cong(S^2)^{21}42+442 + 4
(iv) Full kin.R263\mathbb{R}^{263}as (iii), plus redundant positions, velocities, contacts42+442 + 4

Table 1. Geometry of the four encodings: per-frame ambient space, the space in which the pose actually varies, and its per-frame degrees of freedom (dof). The root features of (iii) and (iv) are counted separately.

Related Work

Quantization geometry and morphology. A nearest-neighbor quantizer partitions its input space into the Voronoi cells of its codebook, and Lloyd’s algorithm alternates between this partition and moving each codeword to the centroid of its cell [10]. With unit-norm data, cosine similarity replaces distance and the centroid step becomes a normalized mean, which gives spherical kk-means [4]. In mathematical morphology, dilation by a quadratic structuring function is the morphological counterpart of Gaussian smoothing and generates a morphological scale-space [26] [2]. We use both views to analyze motion tokenizers.

Pose representations. Skeletal motion is studied in geometric deep learning [8], vision [7], robotics [19], and graphics [29], using either Cartesian joint coordinates or joint rotations combined with kinematics. For rotations the parameterization matters. Zhou et al. [32] proved that every representation of SO(3)SO(3) in a Euclidean space of dimension at most four is discontinuous and proposed continuous 6D and 5D alternatives, and Geist et al. [9] recommend R9\mathbb{R}^{9} with SVD or R6\mathbb{R}^{6} with Gram–Schmidt for general use. Joint heatmaps [5, 1] rasterize joints on a pixel grid to absorb coordinate noise, and frequency encodings [20, 3] represent smooth trajectories by truncated discrete cosine transforms.

Discrete motion representations. Learning from pose sequences underpins much of human behavior analysis [28, 30]. Discrete VAEs [25] and VQ-VAEs [24] learn a finite codebook that serves as a vocabulary for sequence models conditioned on text [14], audio [27], or images [6]. In motion generation, VQ-VAE tokenizers combined with masked [12] or discrete-diffusion [15] transformers are standard, and residual [12] and multi-scale [11] quantization improve reconstruction. Codebooks tend to collapse onto few codewords, which has motivated moving-average updates, codeword resets [31], and finite scalar quantization [22]. A recent benchmark compares motion tokenizers under controlled settings [23]. However, the joint effect of the input encoding’s geometry and of codebook size, code dimension, and temporal stride on how the quantizer’s cells are used has not been studied.

Geometric Encodings of Skeletal Motion

We compare four encodings of skeletal motion that are common in practice and that describe the same motion in different spaces (Figure 1 and Table 1): (i) 2D joint heatmaps on a pixel lattice, (ii) root-relative 3D joint positions, (iii) local joint rotations in SO(3)SO(3), and (iv) a full kinematic encoding that combines rotations, positions, velocities, and foot contacts.

Figure 1. Overview, drawn from one synthetic walking sequence using the definitions of Sect. 3. Left: the four encodings, (i) max-merged Gaussian heatmaps on a 72×7272 \times72 lattice (the zoom shows the ≈3×3\approx3 \times3 support of one joint), (ii) pelvis-relative positions, (iii) local rotations from minimal-twist IK, drawn as joint frames, and (iv) the T×263T \times263 full kinematic feature matrix. Right: normalized latents hih_i (orange) are assigned to the nearest codeword, i.e., to a cell of the spherical Voronoi tessellation, and the cell index is the token. Shading shows how often each cell is used. Because the latents concentrate near a curve, most cells stay empty: here 23 of 120 cells are used and Keff=11.1K_{\mathrm{eff}} = 11.1 (Sect. 4).

Data. Frames are indexed by tt and joints by jj, with j=0j = 0 the pelvis and π(j)\pi(j) the parent of jj. Encodings (ii)–(iv) are derived from Motion-X [16] with J=22J = 22 joints, given directly or reconstructed from SMPL-X/SMPL-H parameters. Sequences are resampled to 20 frames per second (linear interpolation for positions, SLERP for rotations), expressed in a Y-up frame, and cut into windows of T=48T = 48 frames. Normalization statistics come from the training set only.

(i) Heatmaps as a morphological dilation. Heatmaps are popular in online settings: drawing each noisy predicted joint as a small blob makes the input tolerant to small displacements. Following [1], we take 2D joint coordinates xt,jx_{t,j}, obtained with random rotations about the zz-axis, and fit each skeleton into an S×SS \times S pixel lattice with S=72S = 72. Each joint becomes a Gaussian evaluated at the lattice points u\mathbf{u}, and all joints share one channel through a pixel-wise maximum:

Ht(u)=max⁡jexp⁡(−∥u−xt,j∥222σ2),σ=0.6.(1)\mathcal{H}_t(\mathbf{u}) = \max_j \exp\left(-\frac{\lVert\mathbf{u} - \mathbf{x}_{t,j}\rVert_2^2}{2\sigma^2}\right), \qquad\sigma= 0.6. \tag*{(1)}

Stacking frames gives the input volume H∈RT×S×S\mathcal{H} \in\mathbb{R}^{T \times S \times S}. The maximum is what links this encoding to mathematical morphology. The dilation of a function ff by a structuring function bb is (f⊕b)(u)=sup⁡y{f(y)+b(u−y)}(f \oplus b)(\mathbf{u}) = \sup_{\mathbf{y}}\{f(\mathbf{y}) + b(\mathbf{u} - \mathbf{y})\} [26]. Taking the logarithm of Eq. (1) turns each Gaussian into an inverted paraboloid and leaves the maximum in place.

Proposition 1. Let Xt={xt,j}jX_t = \{x_{t,j}\}_j be the joint set, ιXt\iota_{X_t} the function that is 00 on XtX_t and −∞-\infty elsewhere, and qσ(u)=−∥u∥22/2σ2q_\sigma(u) = -\lVert u\rVert_2^2/2\sigma^2. Then

log⁡Ht=ιXt⊕qσ,(2)\log\mathcal{H}_t = \iota_{X_t} \oplus q_\sigma, \tag*{(2)}

and Ht≤1\mathcal{H}_t \le1, with equality exactly at the joints.

Proof. Since ιXt=−∞\iota_{X_t}=-\infty off XtX_t, the supremum runs over the joints only and equals max⁡jqσ(u−xt,j)\max_j q_\sigma(u-x_{t,j}), which is the logarithm of Eq. (1) because log is increasing. Each Gaussian is at most 11, with equality only at its own joint. □\square

In words, the log-heatmap is the joint set dilated by a quadratic (parabolic) structuring function, and σ\sigma acts as a morphological scale [2]. The second statement explains why the maximum is preferred over the sum: every joint keeps its peak, whereas summing two Gaussians closer than 2σ2\sigma fuses them into one peak at their midpoint. With σ=0.6\sigma= 0.6, a joint’s value drops to 0.25 one pixel away and 0.004 two pixels away, so each joint occupies about a 3×33 \times3 neighborhood (Figure 1, zoom). The heatmap is therefore close to a digitization of the joint set, and this encoding discretizes the pose twice: on the lattice, and again in latent space by the quantizer of Sect. 4.

(ii) Root-relative joint positions. Subtracting the pelvis from every joint, pˉt,j=pt,j−pt,0\bar{\mathbf{p}}_{t,j} = \mathbf{p}_{t,j} - \mathbf{p}_{t,0}, removes where the person is but keeps the body’s configuration, orientation, and proportions, giving Xpos∈RT×66X^{\mathrm{pos}} \in\mathbb{R}^{T \times66}. Features are centered per coordinate but divided by a single scale shared by all coordinates, namely the mean standard deviation. A common scale preserves the shape of the skeleton, whereas standardizing each coordinate separately would stretch the body differently along each axis. The 66 numbers are far from free. For a given subject the bone lengths are fixed, so a frame is determined by the 21 unit directions of its bones, i.e., by a point of (S2)21(S^2)^{21}, a 42-dimensional set inside R66\mathbb{R}^{66} (Table 1). The network is not told about this constraint and must learn it from data.

(iii) Local rotations on SO(3)SO(3). Rotations describe how each bone is turned relative to its parent rather than where the joints are. Since our source data mixes formats, we recover them from joint positions by inverse kinematics (IK) on a common skeleton whose bones have fixed rest offsets ojo_j. They relate to positions through forward kinematics [17, 6]:

Rt,j=Rt,π(j)Rt,jloc,pt,j=pt,π(j)+Rt,joj.(3)R_{t,j} = R_{t,\pi(j)}R^{\mathrm{loc}}_{t,j}, \qquad\mathbf{p}_{t,j} = \mathbf{p}_{t,\pi(j)} + R_{t,j}o_j. \tag*{(3)}

The global rotation of a joint is thus the product of all local rotations from the pelvis to that joint, which is why a small change at the shoulder moves the whole arm. IK runs this recursion backwards. For each bone, we take the smallest rotation that turns its rest direction oj/∥oj∥2\mathbf{o}_j/\lVert\mathbf{o}_j\rVert_2 into its observed direction, and express it relative to the rotation already accumulated by the parent. A bone direction says nothing about the twist of the bone around itself, and this minimal-rotation choice has a simple consequence. The accumulated rotation of every joint equals its own alignment rotation, because the parent’s rotation is first removed and then re-applied. Each local rotation therefore depends only on the directions of a bone and its parent. After IK, rotations carry exactly the 42 degrees of freedom of the positions in (ii), re-expressed on SO(3)SO(3)^{[21]} (Table 1). The only singular configurations are bones pointing exactly opposite to their rest direction, where the minimal rotation is not unique.

Each local rotation matrix is fed to the network as its first two columns, a 6D vector from which the third column follows by a cross product. Unlike Euler angles, which suffer from gimbal lock, or quaternions, where q\mathbf{q} and −q-\mathbf{q} denote the same rotation, this representation has no discontinuities [32]. Together with four root features (heading angular velocity, horizontal root velocity, and root height), this gives Xrot∈RT×130\mathbf{X}^{\mathrm{rot}} \in\mathbb{R}^{T \times130}.

(iv) Full kinematics. Our fourth encoding is the feature set widely used in motion generation [13, 12]. It augments (iii) with quantities that the rotations already determine but that a network may find easier to use directly. These are local joint positions (63 values, in the root-facing frame), joint velocities between consecutive frames (66 values), and four binary foot contacts, set when an ankle or toe moves less than a threshold (τ=0.002\tau= 0.002) between frames. This gives Xfull∈RT×263\mathbf{X}^{\mathrm{full}} \in\mathbb{R}^{T \times263}, normalized with a standard deviation shared within each feature group so that no group dominates the loss. Positions and rotations are functions of the same bone directions and velocities are their differences, so the 263 channels re-encode the per-frame degrees of freedom of (iii) about 5.7 times over. This redundancy is exactly what we want to test against quantization.

Quantization as a Spherical Voronoi Tessellation

Quantizer. An encoder fencf_{\mathrm{enc}} maps a window X∈RT×F\mathbf{X} \in\mathbb{R}^{T \times F}, in any of the four encodings, to a sequence of L=T/sL = T/s latent vectors, where the temporal stride ss is the number of frames summarized by one token. The latents are ℓ2\ell_2-normalized, so each lies on the unit sphere, hi∈SD−1\mathbf{h}_i \in\mathbb{S}^{D-1}. The motion vocabulary is a set V={ek}k=0K−1⊂SD−1\mathcal{V} = \{\mathbf{e}_k\}_{k=0}^{K-1} \subset\mathbb{S}^{D-1} of KK unit codewords, and every latent is replaced by its nearest codeword. On the sphere, ∥h−e∥22=2−2⟨h,e⟩\lVert\mathbf{h}-\mathbf{e}\rVert_2^2 = 2 - 2\langle\mathbf{h},\mathbf{e}\rangle, so nearest in distance means largest cosine similarity:

zi=arg max⁡k ⟨hi,ek⟩,Vk={h∈SD−1:⟨h,ek−eℓ⟩≥0 ∀ℓ}.(4)z_i = \underset{k}{\operatorname{arg\,max}}\ \langle\mathbf{h}_i,\mathbf{e}_k\rangle,\qquad V_k = \{\mathbf{h} \in\mathbb{S}^{D-1} : \langle\mathbf{h},\mathbf{e}_k - \mathbf{e}_\ell\rangle\ge0\ \forall\ell\}. \tag*{(4)}

Each codeword ek\mathbf{e}_k claims the cell VkV_k of points closer to it than to any other codeword, and the cells {Vk}\{V_k\} form the spherical Voronoi tessellation of the codebook (Figure 1, right). A token ziz_i is simply the name of the cell that contains hi\mathbf{h}_i, and the downstream sequence model sees only these names. The decoder reconstructs the window from the selected codewords, X^=fdec(ez1,…,ezL)\hat{\mathbf{X}} = f_{\mathrm{dec}}(\mathbf{e}_{z_1}, \ldots, \mathbf{e}_{z_L}). Because arg max has no useful gradient, a straight-through estimator copies the decoder’s gradient from ezi\mathbf{e}_{z_i} to hi\mathbf{h}_i.

The codebook is initialized by cosine kk-means on training latents and then follows the data. Each codeword moves towards the mean of the latents currently in its cell, through an exponential moving average with decay 0.99, and is renormalized onto the sphere. Alternating cell assignment (4) with this update is an online version of Lloyd’s algorithm on the sphere, i.e., spherical kk-means [4]. Its fixed points are centroidal spherical Voronoi tessellations of the latent distribution [10].

Objective. The training loss is

L=Lrec(X^,X)+λposLpos(P^,P)+βLD∑i=1L∥hi−sg⁡[ezi]∥22.(5)\mathcal{L} = \mathcal{L}_{\mathrm{rec}}(\hat{\mathbf{X}},\mathbf{X}) + \lambda_{\mathrm{pos}}\mathcal{L}_{\mathrm{pos}}(\hat{\mathbf{P}},\mathbf{P}) + \frac{\beta}{LD}\sum_{i=1}^{L}\left\lVert\mathbf{h}_i-\operatorname{sg}[\mathbf{e}_{z_i}]\right\rVert_2^2. \tag*{(5)}

The first term asks the decoder to reproduce the input (mean Smooth-ℓ1\ell_1). The second applies the same loss to the 63 joint-position channels P\mathbf{P} of the full kinematic encoding, so that errors in its redundant channels cannot hide errors in the pose itself. It is used only for that encoding (λpos=0.5\lambda_{\mathrm{pos}} = 0.5, otherwise 0). The last term, the commitment loss with β=0.02\beta= 0.02, pulls each latent towards the codeword of its cell. The stop-gradient sg⁡[⋅]\operatorname{sg}[\cdot] makes this term move only the encoder, since codewords follow the moving average.

How many cells are used? Reconstruction loss does not show whether the vocabulary is used well: a tokenizer can reconstruct reasonably while sending almost all latents to a few cells. Let pkp_k be the empirical frequency with which cell VkV_k is selected. We report three quantities: the utilization U=∣{k:pk>0}∣/KU = |\{k : p_k > 0\}|/K, the fraction of cells used at least once; the normalized entropy H^=H/log⁡K\hat{H} = H/\log K, with H=−∑kpklog⁡pkH = -\sum_k p_k \log p_k; and the effective vocabulary size

Keff=eH=KH^,1≤Keff≤UK≤K.(6)K_{\mathrm{eff}} = e^H = K^{\hat{H}}, \qquad1 \leq K_{\mathrm{eff}} \leq UK \leq K. \tag*{(6)}

KeffK_{\mathrm{eff}} is the number of equally used cells that would give the same entropy, also known as the codebook perplexity. For example, a codebook with K=1024K = 1024 and Keff=100K_{\mathrm{eff}} = 100 carries as much information per token as a uniformly used vocabulary of 100 words. The bounds follow because entropy is maximal for the uniform distribution on the used cells. UU counts every cell that is touched, even rarely, whereas KeffK_{\mathrm{eff}} discounts rarely used cells and can be compared directly across codebook sizes.

Experiments

Setup. For heatmaps, the encoder is a one-layer ResNet followed by a four-layer transformer (8 heads, hidden size 256), and the decoder is a one-layer transformer followed by a linear projection back to the lattice. It is trained with AdamW, a cosine schedule from 10−410^{-4} to 10−610^{-6} with 2000 warm-up steps, 4 epochs, and batch size 32. For (ii)–(iv), the encoder has 16 strided 1D convolutional layers and the decoder 17 layers of nearest-neighbor upsampling and convolution, trained with the same schedule (peak 3⋅10−43 \cdot10^{-4}) for 40 epochs with batch size 64, or 256 for full kinematics. Starting from the default configuration K=1024K = 1024, s=2s = 2, D=32D = 32, we vary one factor at a time:

K∈{256,…,8192}K \in\{256, \ldots, 8192\}, s∈{1,2,4,8}s \in\{1, 2, 4, 8\}, and D∈{32,64,128}D \in\{32, 64, 128\}, with D∈{256,512}D \in\{256, 512\} additionally for full kinematics. Figure 2 shows validation losses (Eq. (5)), which are not comparable across encodings, and Table 2 the capacity measures of Eq. (6).

Figure 2. Validation loss during training. Columns: encodings (i)–(iv). Rows: codebook size KK (s=2s = 2, D=32D = 32), temporal stride ss (K=1024K = 1024, D=32D = 32), and code dimension DD (K=1024K = 1024, s=2s = 2). Heatmap losses are scaled by 10310^3.

KK\multicolumn{3}{c}{(i) Heatmap}\multicolumn{3}{c}{(ii) Positions}\multicolumn{3}{c}{(iii) Rotations}\multicolumn{3}{c}{(iv) Full kin.}
H^\hat{H}UUKeffK_{\mathrm{eff}}H^\hat{H}UUKeffK_{\mathrm{eff}}H^\hat{H}UUKeffK_{\mathrm{eff}}H^\hat{H}UUKeffK_{\mathrm{eff}}
256.4860.1614.9792.96217.8652.34118.9577.78194
512.4044.9212.9583.78375.9687.89399.9054.18274
1024.3022.758.9585.44724.98100.00891.8435.14338
2048.3014.7010.9478.901296.98100.001758.7921.75413
4096.4924.7659.9267.572106.9799.973191.666.36242
8192–––.8951.853040.9598.865221.664.94383
1.8435.14338––––––.8697.75388
2.8228.81294.98100.00891.98100.00891.3022.758
4.8128.68274.9585.44724.98100.00891.3415.1411
8–––.7521.97181.6913.67119–––
32.9997.76955.9585.45724.98100.00891.3022.758
64.9996.05955.7317.29158.618.1169.7470.51169
128.9365.69630.503.6132.534.1939.4424.2221

Table 2. Codebook capacity: normalized entropy H^\hat{H}, utilization UU (%), and effective vocabulary size Keff=KH^K_{\mathrm{eff}} = K^{\hat{H}} (Eq. (6)). Each block varies one factor from the default K=1024K = 1024, s=2s = 2, D=32D = 32. Bold: largest KeffK_{\mathrm{eff}} per encoding within a block; –: not run.

Codebook size. Larger codebooks generally lower the validation loss with diminishing returns (Figure 2, top row); the gain is clearest for rotations and positions and marginal for full kinematics, whose curves nearly coincide. The capacity measures separate the encodings more sharply (Figure 3). For positions and rotations, KeffK_{\mathrm{eff}} keeps growing with KK, by factors of 4.2 and 5.9 when KK grows from 1024 to 8192, and rotations use virtually every cell (U≥98.9%U \ge98.9\%) for K≥1024K \ge1024. For full kinematics, KeffK_{\mathrm{eff}} stays between 194 and 413 over a 32-fold range of KK while UU falls to 4.9%: added codewords mostly create Voronoi cells that receive no latents. Since full kinematics has the same per-frame degrees of freedom as rotations (Table 1), this saturation is likely caused by the redundant parameterization or the auxiliary position loss rather than by the intrinsic dimension of the data. Heatmaps use the fewest cells of all encodings, with Keff≤59K_{\mathrm{eff}} \le59 for every KK.

Figure 3. Effective vocabulary size KeffK_{\mathrm{eff}} against codebook size KK (data of Table 2, s=2s = 2, D=32D = 32). The dashed line marks the bound Keff=KK_{\mathrm{eff}} = K, reached when all Voronoi cells are used equally often.

Temporal stride. The stride sets how many frames each token summarizes, and hence how long a trajectory segment each Voronoi cell must represent. Its effect depends on the encoding (Figure 2, middle row). For heatmaps and full kinematics, s=1s = 1 gives the lowest loss and s=4s = 4 the highest. Positions converge faster with smaller strides but reach similar final losses, whereas for rotations s=4s = 4 converges more slowly but ends lowest, so retaining more temporal resolution does not always improve reconstruction. In Table 2, heatmaps use the most cells at s=1s = 1, positions and rotations keep U≥85%U \ge85\% for s∈{2,4}s \in\{2, 4\} but degrade sharply at s=8s = 8, and full kinematics drops from Keff=388K_{\mathrm{eff}} = 388 at s=1s = 1 to 8 at s=2s = 2. Since s=1s = 1 also gives its lowest loss, it is the clear choice for this encoding.

Code dimension. Lower code dimensions give clearly lower losses for positions and rotations (Figure 2, bottom row). For full kinematics the final loss is nearly independent of DD between 32 and 256, with only D=512D = 512 noticeably worse, and for heatmaps D=64D = 64 is best. In terms of capacity, D=32D = 32 is best or tied for heatmaps, positions, and rotations, while KeffK_{\mathrm{eff}} collapses for positions (724 →\to 32) and rotations (891 →\to 39) as DD grows to 128; full kinematics peaks at D=64D = 64. A plausible geometric explanation is that the latents concentrate near a low-dimensional subset of SD−1S^{D-1}, as the low intrinsic dimension of the poses (Table 1) suggests and as sketched in Figure 1. Extra dimensions then add room for cells that no latent reaches. Testing this hypothesis requires intrinsic-dimension estimates of the latents, which we leave for future work.

Practical guidelines. Within our setting, the results suggest the following choices for motion tokenizers. For rotation and position encodings, larger codebooks pay off: up to K=8192K = 8192, each doubling of KK still adds effective vocabulary, and from K=1024K = 1024 on, rotations keep nearly every cell in use. For the full kinematic encoding, codebooks beyond about 1024 entries mostly add idle codewords, and a temporal stride of s=1s = 1 is clearly preferable. A code dimension of D=32D = 32 gives the best utilization for heatmaps, positions, and rotations, and D=64D = 64 for full kinematics; for positions and rotations, D=128D = 128 leaves over 95% of the cells empty. Heatmap tokenizers need particular care: their effective vocabulary never exceeded 59 cells when varying KK at s=2s = 2, so their codebook size should be chosen by KeffK_{\mathrm{eff}} rather than by reconstruction loss alone.

Conclusion

Viewing the motion tokenizer as a spherical Voronoi tessellation and counting how many of its cells are effectively used, we found that the geometric encoding of pose matters more than reconstruction loss suggests. We draw three observations that, to our knowledge, have not been reported for motion tokenization. First, the same intrinsic dimension does not imply the same usable vocabulary. Three encodings of the same (S2)21(S^2)^{21} pose family differ by more than an order of magnitude in effective vocabulary: the continuous rotation embedding makes the best use of the tessellation, while the redundant full kinematic encoding saturates at a few hundred cells. Second, reconstruction loss and vocabulary usage can disagree, so motion tokenizers should be reported with utilization and KeffK_{\mathrm{eff}} alongside reconstruction. Third, lattice heatmaps use few cells: this encoding, a morphological dilation of the digitized joint set that is discretized twice, used fewer than sixty effective cells when varying KK. Low code dimensions were generally preferable, consistent with latents that occupy a low-dimensional part of the sphere, while the best temporal stride depended on the encoding.

These observations give practical guidance for building motion tokenizers, and suggest that discrete geometry and morphology can help explain, not only describe, learned discrete representations. Our evidence has clear limits. Each configuration was trained once, on one dataset, and the encodings also differ in training details. The heatmap model uses a transformer and fewer epochs, and the full kinematic model uses a larger batch and an auxiliary position loss. We therefore read the gaps between encodings as strong indications of a geometric effect rather than as isolated causal estimates. Controlled retraining with matched architectures, batch sizes, and losses, repeated over several seeds, is the most direct next step. We will also relate effective vocabulary to downstream performance and analyze the learned codebooks as spherical point sets (packing and covering radii, relation to action labels).

References

  1. [1]Baharani, M., Kimiyaiey, A., Alinezhad_Nogh­re, G., Danesh_Pazho, A., Maldonado, G., Tabkhi, H.: A feasibility study on self-supervised llm-inspired training for generalizable human motion understanding. In: 37th British Machine Vision Conference (BMVC) (2026) van den Boomgaard, R., Smeulders, A.: The morphological structure of images: The differential equations of morphological scale-space. IEEE Transactions on Pattern Analysis and Machine Intelligence 16(11), 1101–1113 (1994)
  2. [3]Cai, Y., Huang, L., Wang, Y., Cham, T.J., Cai, J., Yuan, J., Liu, J., Yang, X., Zhu, Y., Shen, X., Liu, D., Liu, J., Thalmann, N.M.: Learning progressive joint point propagation for human motion prediction. In: Vedaldi, A., Bischof, H., Brox, T., Frahm, J.M. (eds.) Computer Vision – ECCV 2020. pp. 226–242. Springer International Publishing, Cham (2020)DOI
  3. [4]Dhillon, I.S., Modha, D.S.: Concept decompositions for large sparse text data using clustering. Machine Learning 42(1–2), 143–175 (2001)DOI
  4. [5]Duan, H., Zhao, Y., Chen, K., Lin, D., Dai, B.: Revisiting skeleton-based action recognition. In: 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 2959–2968 (2022). https://doi.org/10.1109/CVPR52688.2022.00298
  5. [6]Dwivedi, S.K., Sun, Y., Patel, P., Feng, Y., Black, M.J.: Tokenhmr: Advancing human mesh recovery with a tokenized pose representation. In: 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 1323–1333 (2024). https://doi.org/10.1109/CVPR52733.2024.00132
  6. [7]Fang, H.S., Li, J., Tang, H., Xu, C., Zhu, H., Xiu, Y., Li, Y.L., Lu, C.: Alphapose: Whole-body regional multi-person pose estimation and tracking in real-time. IEEE Transactions on Pattern Analysis and Machine Intelligence 45(6), 7157–7173 (2023). https://doi.org/10.1109/TPAMI.2022.3222784
  7. [8]Friji, R., Chaieb, F., Drira, H., Kurtek, S.: Geometric deep neural network using rigid and non-rigid transformations for landmark-based human behavior analysis. IEEE Transactions on Pattern Analysis and Machine Intelligence 45(11), 11314–13327 (2023). https://doi.org/10.1109/TPAMI.2023.3291663
  8. [9]Geist, A.R., Frey, J., Zhobro, M., Levina, A., Martius, G.: Learning with 3d rotations: a hitchhiker’s guide to so(3). In: Proceedings of the 41st International Conference on Machine Learning (2024)arxiv.org/abs/2404.11735
  9. [10]Gersho, A., Gray, R.M.: Vector Quantization and Signal Compression. Kluwer Academic Publishers, Boston (1992)
  10. [11]guo, c., Hwang, I., Wang, J., Zhou, B.: Snapmogen: Human motion generation from expressive texts. In: Belgrave, D., Zhang, C., Lin, H., Pascanu, R., Koniusz, P., Ghassemi, M., Chen, N. (eds.) Advances in Neural Information Processing Systems. vol. 38, Main Conference, pp. 99939–99955. Curran Associates, Inc. (2025). https://doi.org/10.52202/085713-3341
  11. [12]Guo, C., Mu, Y., Javed, M.G., Wang, S., Cheng, L.: Momask: Generative masked modeling of 3d human motions. In: 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 1900–1910 (2024). https://doi.org/10.1109/CVPR52733.2024.00186
  12. [13]Guo, C., Zou, S., Zuo, X., Wang, S., Ji, W., Li, X., Cheng, L.: Generating diverse and natural 3d human motions from text. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 5152–5161 (June 2022)DOI
  13. [14]Guo, C., Zuo, X., Wang, S., Cheng, L.: Tm2t: Stochastic and tokenized modeling for the reciprocal generation of 3d human motions and texts. In: European Conference on Computer Vision (ECCV). pp. 580–597 (2022). https://doi.org/10.1007/978-3-031-19835-5_34
  14. [15]Kong, H., Gong, K., Lian, D., Mi, M.B., Wang, X.: Priority-centric human motion generation in discrete latent space. In: 2023 IEEE/CVF International Conference on Computer Vision (ICCV). pp. 14760–14770 (2023). https://doi.org/10.1109/ICCV51070.2023.01360
  15. [16]Lin, J., Zheng, C., Zou, S., Cai, Y., Zhang, R., Wang, J., Zhang, L.: Motion-X: A large-scale 3d expressive whole-body human motion dataset. Advances in Neural Information Processing Systems (2023)arxiv.org/abs/2307.00818
  16. [17]Lucas, T., Baradel, F., Weinzaepfel, P., Rogez, G.: Posegpt: Quantization-based 3d human motion generation and forecasting. In: European Conference on Computer Vision (ECCV). pp. 417–435 (2022). https://doi.org/10.1007/978-3-031-20068-7_24
  17. [18]Mahmood, N., Ghorbani, N., Troje, N.F., Pons-Moll, G., Black, M.J.: AMASS: Archive of motion capture as surface shapes. In: International Conference on Computer Vision. pp. 5442–5451 (Oct 2019)arxiv.org/abs/1904.03278
  18. [19]Mandery, C., Terlemez, Ö., Do, M., Vahrenkamp, N., Asfour, T.: Unifying representations and large-scale whole-body motion databases for studying human motion. IEEE Transactions on Robotics 32(4), 796–809 (2016). https://doi.org/10.1109/TRO.2016.2572685
  19. [20]Mao, W., Liu, M., Salzmann, M.: Generating smooth pose sequences for diverse human motion prediction. In: 2021 IEEE/CVF International Conference on Computer Vision (ICCV). pp. 13289–13298 (2021). https://doi.org/10.1109/ICCV48922.2021.01306
  20. [21]Martinez, J., Hossain, R., Romero, J., Little, J.J.: A simple yet effective baseline for 3d human pose estimation. In: 2017 IEEE International Conference on Computer Vision (ICCV). pp. 2659–2668 (2017). https://doi.org/10.1109/ICCV.2017.288
  21. [22]Mentzer, F., Minnen, D., Agustsson, E., Tschannen, M.: Finite scalar quantization: Vq-vae made simple. In: Kim, B., Yue, Y., Chaudhuri, S., Fragkiadaki, K., Khan, M., Sun, Y. (eds.) International Conference on Learning Representations. vol. 2024, pp. 51772–51783 (2024)arxiv.org/abs/2309.15505
  22. [23]de Oliveira, K.C., Brito, I.A., Fernandes, L.A., Rios, W., Filho, A.R.G.: Benchmarking motion tokenizers: A controlled study of human motion quantization. In: ECCV26 Workshop: Human Motion-Informed World Models and Socially Intelligent Action (2026), https://openreview.net/forum?id=J6GFuk0FQR
  23. [24]van den Oord, A., Vinyals, O., Koo, K.: Neural discrete representation learning. In: Advances in Neural Information Processing Systems (NeurIPS). pp. 6309–6318 (2017)arxiv.org/abs/1711.00937
  24. [25]Ramesh, A., Pavlov, M., Goh, G., Gray, S., Voss, C., Radford, A., Chen, M., Sutskever, I.: Zero-shot text-to-image generation. In: Meila, M., Zhang, T. (eds.) Proceedings of the 38th International Conference on Machine Learning. Proceedings of Machine Learning Research, vol. 139, pp. 8821–8831. PMLR (18–24 Jul 2021)arxiv.org/abs/2102.12092
  25. [26]Serra, J.: Image Analysis and Mathematical Morphology. Academic Press, London (1982)DOI
  26. [27]Siyao, L., Yu, W., Gu, T., Lin, C., Wang, Q., Qian, C., Loy, C.C., Liu, Z.: Bailando: 3D Dance Generation by Actor-Critic GPT with Choreographic Memory . In: 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 11040–11049 (Jun 2022). https://doi.org/10.1109/CVPR52688.2022.01077
  27. [28]Sun, Z., Ke, Q., Rahmani, H., Mian, A., Wang, R., Wang, G., Liu, J.: Human action recognition from various data modalities: A review. IEEE Transactions on Pattern Analysis and Machine Intelligence 45(3), 3200–3225 (2023). https://doi.org/10.1109/TPAMI.2022.3183112
  28. [29]Wang, T., Dionne, O., De Ruyter, M., Minor, D., Rempe, D., Zhao, K., Petrović, M., Yuan, Y., Li, C., Luo, Z., Robison, B., Blackwell, X., Antoniazzi, B., Peng, X.B., Zhu, Y., Yuen, S.: Motionbricks: Scalable real-time motions with modular latent generative model and smart primitives. ACM Trans. Graph. 45(4) (Jul 2026). https://doi.org/10.1145/3811334
  29. [30]Wu, P., Pan, C., Yan, Y., Pang, G., Yuan, Q., Yang, P., Zhang, Y.: Deep learning for video anomaly detection: A review. IEEE Transactions on Neural Networks and Learning Systems 37(7), 3010–3030 (2026). https://doi.org/10.1109/TNNLS.2025.3647892
  30. [31]Zhang, J., Zhang, Y., Cun, X., Zhang, Y., Zhao, H., Lu, H., Shen, X., Shan, Y.: Generating human motion from textual descriptions with discrete representations. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 14730–14740 (June 2023)
  31. [32]Zhou, Y., Barnes, C., Lu, J., Yang, J., Li, H.: On the continuity of rotation representations in neural networks. In: 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 5738–5746. IEEE (2019)arxiv.org/abs/1812.07035

Paper details

vlnc:W_w7vd9s5m
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 7

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents