# DiffRAC: Repetitive Action Counting with Video Diffusion Motion Priors

AI.info

> 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.

**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](https://arxiv.org/abs/2611.41907)

[Read the original paper](https://arxiv.org/abs/2611.41907)

## Related papers

- [CohereWorld: Reinforcing Spatial and Long-Horizon Consistency in Interactive World Models](https://ai.info/paper/cohereworld-reinforcing-spatial-and-long-horizon-consistency-in-2612.02452) 2026-12-01 · cs.CV · Also by Cheng Chen, Jingqi Tian +2
- [One Prior, Two Dynamics: Repurposing Video Diffusion Transformers for Self-Supervised Latent Action Learning](https://ai.info/paper/one-prior-two-dynamics-repurposing-video-diffusion-transformers-for-2611.26617) 2026-11-19 · cs.CV · Key terms of the title in common
- [ViDiHand2: Unifying Video Diffusion Priors and Hand Geometry for 3D Hand Motion Reconstruction in the Wild](https://ai.info/paper/vidihand2-unifying-video-diffusion-priors-and-hand-geometry-for-3d-hand-2611.30597) 2026-11-23 · cs.CV · Key terms of the title in common
- [Test-Time Self-Supervised Learning for Motion Diffusion from Occluded Videos](https://ai.info/paper/test-time-self-supervised-learning-for-motion-diffusion-from-occluded-2612.03722) 2026-12-02 · cs.CV · Key terms of the title in common
- [VideoRSI: Verifiable Self-Improvement for Code-to-Video Generation](https://ai.info/paper/videorsi-verifiable-self-improvement-for-code-to-video-generation-2611.38151) 2026-11-27 · cs.CV · Also by Cheng Chen

---

Canonical: https://ai.info/paper/diffrac-repetitive-action-counting-with-video-diffusion-motion-priors-2611.41907
