DiffRAC: Repetitive Action Counting with Video Diffusion Motion Priors
Junyuan Xiao, Guangmo Yi, Jingqi Tian, Cheng Chen, Lionel Z. Wang, Wenming Yang, Xinjie Li
Tsinghua University · Xiaohongshu · Hong Kong Polytechnic University · Pennsylvania State University
Published November 30, 2026 · on the feed December 2, 2026 · ▲ 19 · arXiv 2611.41907
The 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 Wan video diffusion transformer, adapted with LoRA and then frozen, as the motion encoder of a counting model. For each video window, DiffRAC reads the query--key attention affinities between time steps of the input clip from several denoiser layers and averages them along temporal lags. Regularly spaced lag responses, summarized by learned lag features, a periodogram, and period templates, yield a posterior over the cycle length. Conditioned on this posterior, a query-based decoder predicts whether the window is repeating (activity) and how fast it repeats (frequency); their product is a local counting rate. Rates from overlapping windows are averaged on the original timeline by coverage normalization, integrated into a count, and calibrated, and an optional evidence-gated refinement step can further update the count. DiffRAC reaches 74.3% off-by-one accuracy (OBO) on RepCount-A and 87.6% on UCFRep. Trained only on RepCount-A, it transfers to UCFRep and Countix with 82.4% and 73.9% OBO.
The Brief
2:30A short podcast summary of the paper. Written and voiced by AI.
Transcript
DiffRAC. Repetitive Action Counting with Video Diffusion Motion Priors. By Junyuan Xiao and six others, from Tsinghua University, Xiaohongshu, and two other institutions. Published on the thirtieth of November.
Counting repetitive actions means finding complete cycles inside continuous motion. Think of counting squats or jumping jacks in a video. The usual cue is visual similarity between frames, and the authors argue it is unreliable for two reasons. A pose can recur inside a single cycle, so similarity fires twice where there is only one repetition. And pauses or static backgrounds produce high similarity with no repetition at all.
The proposal is to borrow cross-frame relations from a model that has to understand motion to do its job. A video diffusion model must capture how content evolves across frames in order to generate coherent movement, and the authors argue that makes it a better source of those relations. DiffRAC uses a Wan video diffusion transformer, adapted with LoRA and then frozen, as the motion encoder of a counting model.
The video is processed in windows. For each one, DiffRAC reads the query-key attention affinities between time steps of the input clip, taken from several denoiser layers, and averages them along temporal lags. If the motion repeats, the responses at different lags come back at regular spacing. Those regular lag responses are summarized three ways: learned lag features, a periodogram, and period templates. Together they yield a posterior over the cycle length.
Conditioned on that posterior, a query-based decoder makes two predictions for the window. Whether it is repeating at all, called activity, and how fast it repeats, called frequency. Their product is a local counting rate. Windows overlap, so the rates are averaged back on the original timeline using coverage normalization, integrated into a count, and calibrated. An optional evidence-gated refinement step can update that count further.
Results are reported as off-by-one accuracy. DiffRAC reaches seventy-four point three percent on RepCount-A, and eighty-seven point six percent on UCFRep. A transfer test trains only on RepCount-A. Applied to UCFRep without further training, it scores eighty-two point four percent. On Countix, it scores seventy-three point nine percent.
The core move is a change in what counts as evidence of repetition. Rather than asking whether two frames look alike, DiffRAC asks how a generative video model relates time steps to one another, and reads periodicity out of that. Appearance can fool a similarity measure. The bet here is that a model trained to produce coherent motion has already learned which relations across time actually matter.
More with an account
Listen to every day’s papers
Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.
Join free