Learning Quantised Structure-Preserving Motion Representations for Dance Fingerprinting

Arina Kharlamova, Bowei He, Chen Ma, Xue LiuarXiv 2026

TL;DR

The paper introduces DANCEMATCH, an end-to-end framework for "dance fingerprinting"—essentially a Shazam for dance that retrieves semantically similar choreographies directly from raw video. By quantising continuous human motion into a discrete, structured vocabulary using Spatio-Temporal Transformers, the system enables highly efficient, sub-linear, large-scale dance retrieval without losing the underlying geometric and temporal structure.

What Problem Does This Paper Address?

With the explosion of short-form video platforms like TikTok, Instagram Reels, and YouTube Shorts, dance has become a dominant form of digital expression. However, millions of daily remixes and re-uploads have created a massive challenge: there is currently no efficient way to search, index, or attribute choreographic content based purely on movement. This lack of capability complicates everything from basic video retrieval to copyright and authorship litigation over digital dance representations.

Existing motion analysis methods typically rely on high-dimensional, continuous embeddings. While effective for tasks like motion reconstruction, these continuous representations are notoriously difficult to index efficiently, lack interpretability, and fail to scale to massive video databases. This paper addresses the challenge of building compact, discrete, and interpretable motion signatures that allow for fast, large-scale similarity matching across diverse dance styles and performers.

Methods

The DANCEMATCH framework consists of a two-stage pipeline that transforms raw video into discrete tokens and then executes a fast hierarchical search:

  1. Pose Extraction: The system extracts 3D skeletal trajectories from monocular RGB video using a CoMotion-based pose estimator, ensuring robust multi-person tracking without requiring manual calibration.
  2. Motion Quantisation: Continuous skeletal trajectories are processed using a Spatio-Temporal Transformer (STT) coupled with a vector-quantisation (VQ) bottleneck. The encoder uses parallel dual-branch attention to model spatial (inter-joint) and temporal (intra-joint) dynamics simultaneously. Latent motion patches are then mapped to the closest entry in a learned discrete codebook, transforming the continuous motion into a sequence of "motion tokens" (a symbolic motion vocabulary). To prevent codebook underutilisation and mode collapse, the authors implement an immediate dead-code revival strategy and progressive warm-ups.
Figure 2. Overview of the DANCEMATCH framework. The Spatio-Temporal Transformer (STT) encoder extracts per-joint latent embed- dings from skeletal motion sequences. Latent patches are discretised via vector quantisation into motion tokens using a learnable codebook. The STT decoder reconstructs the motion sequence from the quantised representation. Immediate dead-code revival and EMA-based up- dates ensure stable codebook utilisation and prevent mode collapse.
  1. Dance Retrieval Engine (DRE): To search through thousands of tokenized sequences in real time, the authors design a two-stage retrieval engine:
  2. Stage 1 (Histogram-Based Indexing): Sequences are converted into a scale-invariant Bag-of-Words histogram of motion word frequencies. Cosine similarity provides a rapid, sub-linear approximate search to generate a candidate shortlist. An optional autocorrelation-based periodicity detector tags cyclic motions.
  3. Stage 2 (Distance-Based Re-Ranking): The shortlisted candidates are precisely re-ranked using a weighted ensemble of elastic sequence distance metrics, including Time Warp Edit Distance (TWED), Longest Common Subsequence (LCSS), Edit Distance on Real Sequences (EDR), and Edit Distance with Real Penalty (ERP).
The two-stage Dance Retrieval Engine (DRE) pipeline, decoupling fast histogram filtering from precise distance-based re-ranking.

Datasets

The authors evaluate their framework on two primary datasets:

  • AIST Dance Video Database: A curated dataset containing ten dance genres (e.g., Break, Pop, House) performed by 30 dancers across 60 music tracks, providing a clean testbed for intra-class diversity and temporal variations.
  • DANCETYPESBENCHMARK: A new, large-scale dataset introduced in this paper to simulate real-world, noisy social-video conditions. It consists of scraped TikTok and YouTube Shorts clips of Fortnite in-game emotes, offering consistent choreographic labels across highly varied character models and visual styles.

Key Insights and Ideas

  • The Power of Discretisation: Converting continuous motion into a discrete "vocabulary" bridges the gap between computer vision and text/audio indexing. It unlocks sub-linear search complexities that are impossible with raw continuous embeddings.
  • Decoupling Global vs. Local Structure: The two-stage DRE architecture proves that global statistical distributions (histograms) are highly effective at rapidly pruning the search space, while local sequence alignment metrics (like TWED) are essential for handling temporal elasticity, variations in execution speed, and sampling noise.
  • Sustaining Codebook Health: Training vector-quantised models on long, dense motion sequences usually leads to representation collapse (where only a few codebook entries are used). The authors' immediate dead-code revival strategy successfully maintains high codebook utilisation (>80%), ensuring diverse and expressive motion signatures.

Key Results

The framework demonstrates that discrete approximate indexing can match the accuracy of exhaustive search methods at a fraction of the computational cost.

  • Brute-Force Efficiency: The histogram index achieves 95.7% of the retrieval performance of an exhaustive brute-force baseline.
  • Retrieval Accuracy: On the filtered AIST dataset, the sub-linear Histogram Index achieved a 61.9% Match Rate and 38.1% Rank-1 accuracy (compared to 65.3% and 39.0% for the computationally expensive brute-force search).
Table 1. Retrieval accuracy on AIST (ten genres, ≥2 samples per class).
  • Scalability: When scaled up to an extended dataset simulating real-world user-generated data (100 categories, 50 instances each), the system maintained a Rank-1 accuracy exceeding 40%, validating its ability to generalise across different dancers and execution tempos.

Limitations and Future Work

While DANCEMATCH represents a major step forward for dance fingerprinting, the authors note several limitations:

  • Loss of Temporal Order in Stage 1: The initial histogram-based filtering discards sequential ordering, which can limit fine-grained discrimination before the re-ranking stage.
  • Lack of Semantic Grounding: The motion tokens are learned in an unsupervised manner and do not inherently correspond to human-understandable dance terms or specific anatomical labels.
  • Fixed Metric Weights: The ensemble of distance metrics in the re-ranking stage relies on manually tuned, fixed weights.

Future work will focus on learning sequence-preserving embeddings that retain temporal dynamics during the initial filtering stage, training neural similarity models to predict human perceptual correspondence, and incorporating local temporal contexts (like bigram or trigram motion patterns).

Summary updated

BibTeX
@misc{kharlamova2026learning,
  author = {Arina Kharlamova and Bowei He and Chen Ma and Xue Liu},
  title = {{Learning Quantised Structure-Preserving Motion Representations for Dance Fingerprinting}},
  year = {2026},
  eprint = {2604.00927},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.00927},
}
Figure