Skip to content
AI.info

Papers

DiffRAC: Repetitive Action Counting with Video Diffusion Motion Priors

Counting repeated actions is difficult because similar-looking frames do not always mean a full repetition has occurred: the same pose can appear within one cycle, and pauses can look repetitive.

The paper’s first page · arXiv:2611.41907
arXiv
2611.41907 · Preprint · not peer-reviewed
Published
2026-11-30
Authors
Junyuan Xiao, Guangmo Yi, Jingqi Tian, Cheng Chen, Lionel Z. Wang, Wenming Yang, Xinjie Li

In plain words

Counting repeated actions is difficult because similar-looking frames do not always mean a full repetition has occurred: the same pose can appear within one cycle, and pauses can look repetitive.

AI summary

Overview

Research area: Computer vision, video understanding, and repetitive action counting.
Technical level: Advanced.
Scope: The paper presents DiffRAC, a method that uses motion relationships learned by a video diffusion model to estimate how many complete repetitions occur in a video.

What This Paper Is About

Counting repeated actions is difficult because similar-looking frames do not always mean a full repetition has occurred: the same pose can appear within one cycle, and pauses can look repetitive. DiffRAC aims to identify recurring motion phases more reliably by examining which video frames a diffusion model’s attention connects, then using those relationships to estimate local repetition rates and combine them into a video-level count.

Key Contributions

  1. A diffusion-based motion encoder for counting. DiffRAC uses a Wan video diffusion transformer, adapted with LoRA and then frozen, to extract relationships between times in a clip.
  2. A period-aware counting readout. It combines evidence from temporal lags, a periodogram, and period templates to estimate plausible cycle lengths, then predicts a window’s repetition activity and frequency.
  3. A way to combine overlapping windows. It averages their rate estimates over the original video timeline before integrating them, avoiding counting shared frames multiple times.
  4. Evidence-gated count refinement. The method can propose an adjusted count and accept it only when a benchmark-specific agreement rule supports the change.

Main Findings

  • Strong results on the reported benchmarks: DiffRAC achieves 74.34% OBO and 0.143 nMAE on RepCount-A, 87.62% OBO and 0.115 nMAE on UCFRep, and 83.64% OBO and 0.166 nMAE on Countix. OBO counts predictions within one repetition of the reference as correct.
  • Transfer beyond its training dataset: Trained only on RepCount-A, DiffRAC achieves 82.43% OBO on UCFRep and 73.87% OBO on Countix without target-dataset fine-tuning. Its UCFRep nMAE is 0.181, higher than CountLLM’s 0.139; the authors interpret this as fewer but larger misses.
  • The attention relationships matter: In the reported ablation, Q–K cross-frame relations with the period branch achieve 64.25% OBO, compared with 38.82% for hidden-feature self-similarity with that branch.
  • Overlapping-window handling matters: Removing coverage normalization lowers OBO from 74.34% to 32.24% and raises nMAE from 0.143 to 0.372 in the reported ablation.
  • There are important limits: The method can undercount videos with many fast repetitions, miss slow cycles that do not fit within a window, and overcount when long pauses disrupt rate estimates. Its rate integration estimates totals but does not precisely locate individual cycle boundaries.

Methodology in Plain English

DiffRAC processes a video in overlapping windows. For each window, it adds noise to the video’s encoded representation and runs it through the adapted Wan diffusion model. The model’s attention shows which time points are strongly related to one another; the researchers use those relationships as evidence of recurring motion phases.

The counting component looks for recurring intervals in three ways: it checks average relationships at different time separations, analyzes regular spacing in those responses, and compares the relationships with patterns expected for candidate cycle lengths. It combines these signals into a distribution over possible periods. A decoder then estimates whether the window is actively repeating and, if so, how fast. Multiplying those estimates gives a local repetition rate.

Finally, DiffRAC maps the rates from overlapping windows back onto the original timeline. It averages rates where windows overlap, integrates the rate across the video, and calibrates the result into a count. The encoder and counting readout are trained in separate stages: first the diffusion model is adapted using LoRA, then its weights are frozen while the readout is trained on cached attention relationships. The reported implementation uses windows of 121 frames, spaced 60 frames apart, and retains at most eight windows per video.

Why This Matters

A central research contribution is a different source of motion evidence: rather than relying only on similarity between frame features, DiffRAC uses relationships formed inside a video generator that was trained to produce coherent motion. The ablations suggest that these attention relationships, period evidence, and careful handling of overlapping windows all contribute to the counting results.

Potential applications include:

  • Fitness monitoring: Estimating repetitions in exercise videos.
  • Sports analysis: Counting repeated movements in training or performance footage.
  • Rehabilitation assessment: Tracking repeated movements as part of exercise review.
  • Video-based activity analysis: Measuring repeated actions in continuous recordings.

Industry relevance: DiffRAC could inform video analytics tools that estimate movement counts from footage. Its reliance on a 5B-parameter Wan model also creates a practical deployment challenge: each uncached window requires a diffusion-model forward pass, so reducing the computation would matter for real-time or large-scale use.

Future Directions

  • Improve temporal resolution or use adaptive window lengths to better handle both fast, high-count actions and slow cycles that exceed a window.
  • Develop subject-aware spatial pooling so the method can distinguish the movements of multiple people in the same video.
  • Add a per-cycle readout that identifies cycle endings, rather than estimating a rate spread across each window.
  • Distill the diffusion attention signals into a lighter encoder to reduce the cost of processing video windows.

Target Audience

This paper is most useful for computer-vision researchers working on action counting, video representations, diffusion models, or temporal modeling. It may also interest engineers building video-based fitness, sports, rehabilitation, or activity-analysis systems, especially those evaluating the trade-off between counting accuracy and computational cost.

Authors’ abstract

Repetitive action counting (RAC) requires identifying complete cycles in continuous motion, but visual similarity is an unreliable cue for this: a pose can recur within a single cycle, and pauses or static backgrounds produce high similarity without any repetition. We argue that video diffusion models, which must capture how content evolves across frames in order to generate coherent motion, provide a better source of cross-frame relations. We present DiffRAC, which uses a…

The full abstract on arXiv
Read the original paper

Related papers