potentialpaper

Learning When Visual Context Matters for Mouse Behavior Analysis

Weihan Li, Jingyang Ke, Qinheng Pu, Yule Wang, Chengrui Li, Anqi Wu

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. A pose model's own quantization residual marks the frames where mouse behavior needs visual context: adding video only on these frames beats uniform frame selection and often matches or exceeds processing every frame.

Abstract. Understanding mouse behavior at scale is a foundational problem in neuroscience, with two core tasks: classifying frames into known behaviors and segmenting recordings into recurring patterns without labels. Pose-based methods are the standard approach but face fundamental limitations: pose coordinates capture only skeletal information, discard environmental context, and degrade under frequent occlusions in social scenarios. Mouse videos can provide the visual context that pose lacks, yet not all frames benefit equally, and adding visual features uniformly to every frame is suboptimal. We find that a pose-based motion encoder, trained with auxiliary supervision from videos, can identify where it struggles: with a discrete representation, the encoder learns a codebook of recurring patterns, and frames whose motion does not fit this codebook produce large quantization residuals. We show that these high-residual frames are where visual context tends to help most: residual-guided frame selection consistently outperforms uniform selection across budgets, and matches or exceeds dense visual processing in most settings. We therefore propose ResiFuse, a framework that pretrains a motion encoder on pose with an auxiliary cross-modal loss and integrates vision context only on high-residual frames at fine-tuning time. We evaluate on three mouse behavior datasets and show improvements over pose- and video-based baselines on most tasks, with the largest gains on the most socially complex dataset. Code is available at \url{https://github.com/BRAINML-GT/ResiFuse}.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
30 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:46 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper presents a multimodal framework for mouse behavior analysis that uses residual vector quantization to identify frames where pose representations are insufficient and selectively incorporates visual context, with evaluation across multiple supervised and unsupervised behavioral datasets. The reviewers find the selective fusion idea intuitive and potentially useful, but raise substantial concerns about baseline validity, computational benefits, methodological clarity, and whether the modest empirical gains justify the added complexity.

  • Potentially weak or inconsistent pose and BEAST baselines, including substantial discrepancies from previously reported results
  • Limited evidence that selective frame processing reduces training or inference cost, particularly when visual features may still need to be extracted for all frames
  • Insufficient analysis of when visual context is selected, why partial visual budgets outperform full vision, and how residuals relate to pose errors or reconstruction errors
  • Unclear temporal fusion, codebook-size trade-offs, clustering confounds, statistical significance, and practical justification for the relatively modest improvements
Final justification

The rebuttal substantially addresses the concerns in my initial meta-review. Most importantly, the authors strengthened the pose baselines with literature-level featurized approaches, investigated the BEAST discrepancy under both the unified and native downstream protocols, and clarified the remaining protocol differences. They also provided a detailed computational analysis showing that residual-based selection can avoid retrieval and visual encoding of unselected frames and that the dominant vision-processing cost scales approximately linearly with the selected-frame budget. Additional experiments clarify when visual context is selected, demonstrate sensitivity of the residual to pose-estimation errors, quantify its relationship to reconstruction error, analyze codebook-size considerations, and show that the clustering results organize primarily by behavior rather than simply by whether visual context was supplied. The authors also appropriately narrowed the claim that partial visual budgets outperform dense vision: the advantage is statistically significant on Mouse Triplet, while elsewhere selective processing can match strong performance with reduced visual computation.

The post-rebuttal reviewer discussion supports this revised assessment. Taken together, the main concerns, especially baseline validity, computational justification, and insufficient analysis of the residual-guided selection mechanism, have been satisfactorily addressed. Some limitations remain, including dataset-dependent gains and imperfect comparability with specialized baselines such as MARS and BEAST under their native settings.

Area Chair 7iXN · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

This paper presents a multimodal framework for mouse behavior analysis that uses residual vector quantization to identify frames where pose representations are insufficient and selectively incorporates visual context, with evaluation across multiple supervised and unsupervised behavioral datasets. The reviewers find the selective fusion idea intuitive and potentially useful, but raise substantial concerns about baseline validity, computational benefits, methodological clarity, and whether the modest empirical gains justify the added complexity.

  • Potentially weak or inconsistent pose and BEAST baselines, including substantial discrepancies from previously reported results
  • Limited evidence that selective frame processing reduces training or inference cost, particularly when visual features may still need to be extracted for all frames
  • Insufficient analysis of when visual context is selected, why partial visual budgets outperform full vision, and how residuals relate to pose errors or reconstruction errors
  • Unclear temporal fusion, codebook-size trade-offs, clustering confounds, statistical significance, and practical justification for the relatively modest improvements
Final justification

The rebuttal substantially addresses the concerns in my initial meta-review. Most importantly, the authors strengthened the pose baselines with literature-level featurized approaches, investigated the BEAST discrepancy under both the unified and native downstream protocols, and clarified the remaining protocol differences. They also provided a detailed computational analysis showing that residual-based selection can avoid retrieval and visual encoding of unselected frames and that the dominant vision-processing cost scales approximately linearly with the selected-frame budget. Additional experiments clarify when visual context is selected, demonstrate sensitivity of the residual to pose-estimation errors, quantify its relationship to reconstruction error, analyze codebook-size considerations, and show that the clustering results organize primarily by behavior rather than simply by whether visual context was supplied. The authors also appropriately narrowed the claim that partial visual budgets outperform dense vision: the advantage is statistically significant on Mouse Triplet, while elsewhere selective processing can match strong performance with reduced visual computation.

The post-rebuttal reviewer discussion supports this revised assessment. Taken together, the main concerns, especially baseline validity, computational justification, and insufficient analysis of the residual-guided selection mechanism, have been satisfactorily addressed. Some limitations remain, including dataset-dependent gains and imperfect comparability with specialized baselines such as MARS and BEAST under their native settings.

1 comment
Authors · CommentOpenReview ↗

We thank the Area Chair for the summary and the three reviewers for their detailed and constructive comments. Every point in the meta-review is answered in the individual threads, and we summarize the outcomes below.

To restate the paper's claim under discussion: a pose encoder trained with auxiliary supervision from video can identify, through its quantization residual, the frames where visual context helps most.

Pose and BEAST baselines. We added featurized pose baselines on all three datasets, which reproduce literature-level pose performance. For BEAST, the discrepancy comes from our unified downstream protocol, which we apply identically to every method including our own: running BEAST with its own segmentation setting recovers most of the gap, and we report the remaining protocol differences openly. (z7w6, ZgJn)

Computational cost. Visual features do not need to be extracted for all frames: selection is done offline from pose alone, before any frame is decoded, and the vision encoder processes each frame independently, with FLOPs linear in the number of frames encoded. Unselected frames are therefore never retrieved or processed. We measured where the saving falls: training time is budget-independent, while retrieval and processing, which dominate the cost, scale with the budget. (z7w6, ZgJn, 6C2Y)

When vision is selected, why partial budgets outperform full vision, and how the residual relates to errors. On when, Appendix D.3 characterizes the selected frames directly, showing they concentrate on occlusion, rapid motion, and behavior transitions. On why, we traced the difference between partial and full budgets to a single behavior class, where the full budget displaces a subset of frames across a class boundary in the learned representation. On the residual, we measured its relationship to input-space reconstruction error and to injected pose estimation errors. (z7w6, ZgJn, 6C2Y)

Temporal fusion, codebook size, clustering, significance, and the gains. We clarified where temporal context enters for frame-based encoders and how the codebook size trades off against the selection signal; analyzed the behavior composition of every cluster, which is organized by behavior rather than by frame type; and re-ran the supervised budget comparison with 10 seeds, where the partial-budget advantage is statistically significant on Mouse Triplet but not on the other datasets, and the claim stated above is unaffected. On whether the gains justify the complexity, we exceed the strongest baseline on Open Field and Mouse Triplet while encoding a quarter and a half of the frames respectively, and the per-behavior breakdown shows gains that macro-F1 averages away. (z7w6, ZgJn, 6C2Y)

We hope the responses resolve the concerns in the meta-review; all new results will be in the revised paper. If anything remains unclear, we would be glad to take it up during the discussion.

Reviewer ZgJnOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper presents a framework for mouse behavior analysis in neuroscience research. The key observation is that pose tracking of animal body parts provides strong information about behavior in most cases, but can be unreliable in certain frames where key body parts are occluded or when additional environmental context from high-resolution visual information is required. To address this challenge, the proposed framework uses a pretrained pose-based motion encoder to identify such informative frames and selectively incorporates visual context for further analysis. The authors demonstrate the effectiveness of the approach through multiple experimental settings, showing consistent performance improvements over baseline methods.

Strengths and weaknesses
  • Strength:The proposed approach is intuitive and well motivated. It effectively combines the efficiency and compactness of pose-based representations with the richer contextual information available in raw video frames, leveraging the strengths of both modalities.

  • Weakness: The implementation of the baselines is somewhat questionable. Furthermore, one potential advantage of the proposed frame-selection strategy is reduced computational cost, since visual features are extracted only for a subset of frames. A more thorough discussion and quantitative analysis of the computational efficiency and resource savings provided by this design choice would strengthen the paper.

Questions
  • For the results on CalMS21, the performance reported for BEAST differs substantially from that reported in the original BEAST paper (0.473 vs. 0.84). Could the authors clarify the reason for this discrepancy? A similar concern applies to the BEAST results on the other two datasets, where the reported performance also appears to differ significantly from previously published numbers.

  • When incorporating visual features from raw frames, how is temporal context integrated into the model? This is particularly important for frame-based encoders such as Qwen, DINOv3, and CLIP, which primarily operate on individual images. Additional details on how temporal information is represented and fused would help clarify the methodology.

  • Across datasets, the results suggest that ResiFuse achieves its best performance when visual features are incorporated from only a subset of frames rather than from all frames. This finding is somewhat counterintuitive, as one might expect additional visual context to be beneficial. Could the authors discuss whether this effect arises from the frame-selection strategy itself, or from limitations in data scale and supervision? For example, is the model less able to effectively learn from dense visual inputs due to the limited amount of labeled training data?

  • For the unsupervised clustering experiments, how do the authors account for the potential distribution shift between frames that incorporate visual context and those that rely solely on pose information? Specifically, is there a risk that the learned clusters primarily separate these two frame types rather than reflecting meaningful behavioral structure? Additional analysis would help clarify whether the clustering results are robust to this potential confound.

Limitations

Mostly yes. One potential benefit of the frame-selection strategy is reduced computational cost, since visual features are extracted only for a subset of frames. A discussion of the resulting efficiency gains would further strengthen the paper.

Final justification

The rebuttal substantially addressed my concerns through additional experiments and clearer methodological explanations. In particular, the native BEAST evaluation, efficiency analysis, temporal-context clarification, and controlled frame-selection and clustering analyses strengthen the empirical claims. Some uncertainty remains regarding baseline comparability, including the performance gap under BEAST’s native protocol and incomplete hyperparameter tuning. Nevertheless, the new evidence improves my overall assessment, and I raise my score to borderline accept.

Formatting concerns

None

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We are grateful to Reviewer ZgJn for four precise questions. Each pointed at something we could measure rather than argue, and we report those measurements below.


W1 Q1 The baseline implementations are somewhat questionable. On CalMS21, BEAST differs substantially from its original paper (0.473 vs. 0.84). Could the authors clarify? A similar concern applies to the other two datasets.

We appreciate this and investigated it directly. On the reference value first: the 0.84 is a five-seed logit ensemble, whereas we report single-model averages over five runs for every method in the paper, so the comparable published number is BEAST's single-model 0.81 ± 0.01 in their Table 2.

Our 0.473 comes from the unified protocol we apply to every method in our comparison: we mean-pool the patch embeddings and pass them to the same BiGRU-MLP classifier. This is not BEAST's own segmentation protocol, which aggregates patch embeddings with a learnable multi-head attention-pooling layer followed by a dilated TCN classifier. A plain spatial mean-pooling discards exactly the selectivity that a learned pooling layer is designed to exploit. BEAST's own single-vector readouts land in the same regime: their CLS-token linear probe reaches 0.53 in their Table 15.

To verify this, we re-ran BEAST with its native protocol, keeping everything else the same: macro-F1 rises to 0.711 ± 0.010, an improvement of 0.24. The low number therefore reflects the downstream protocol, not from how we ran the model.

The remaining gap to 0.81 mainly comes from the shorter downstream window length. First, at fine-tuning on CalMS21 all methods in our benchmark use 64-frame windows at 4x temporal downsampling, covering 256 raw frames, against BEAST's 500-frame full-rate windows: roughly half the temporal span at a quarter of the resolution. Second, their paper does not report the final TCN hyperparameters, so we selected a plausible configuration from the candidate values they list rather than running a per-dataset search, which we will complete for the revision.

We will also cite BEAST's published 0.81 alongside our measured value in the revision, together with these protocol differences, so that readers can see both.

On the other two datasets, BEAST does not report action-segmentation results in their paper, so there is no published number to compare against. With their native segmentation protocol, F1 rises from 0.669 to 0.727 ± 0.006 on Open Field and from 0.514 to 0.553 ± 0.023 on Mouse Triplet. On Open Field this now places BEAST above the strongest pose-only baseline. On Mouse Triplet it remains lower, which we think is expected for a video-only method: three visually similar animals in a single top-down view are hard to resolve from pixels alone, and this is precisely where pose input carries the identity information. ResiFuse remains ahead on all three datasets, as one would expect of a method with access to both modalities. We will also update these numbers in the revision.


W1 Extracting visual features for only a subset of frames should reduce computational cost. A quantitative analysis of the efficiency and resource savings this brings would strengthen the paper.

We thank the reviewer for this suggestion and have quantified it. The frame selection does not affect pretraining, which always uses all frames by design, and it does not affect the model forward pass at fine-tuning, where the vision pathway runs at full length with unselected frames masked, so the forward time is identical at every budget. Nor does it affect the cost of computing the residuals, which come from a single pass of the frozen pose-only encoder after pretraining.

What it does change is retrieval (seeking and decoding the selected frames from the video files), and processing (the vision encoder forward pass on those frames). Both are required once before fine-tuning and again whenever the model is run on new video. We reported cost per 6.67 s window (7.5 fps) on an A40:

Budget Retrieval Processing Model Total
25% 89 ms 212 ms 4 ms 305 ms
50% 87 ms 424 ms 4 ms 515 ms
75% 92 ms 636 ms 4 ms 732 ms
100% 105 ms 848 ms 4 ms 957 ms

Processing is by far the largest term, between 70% and 89% of the total depending on the budget, and it is the one that scales linearly. In FLOPs this linearity is exact: from 1 to 16 input frames the cost per frame stays at 0.1897 TFLOPs and varies by under 0.05%. Retrieval and processing are also the terms that matter in practice: pretraining is a one-off over a fixed dataset, whereas at inference this cost is paid again for every new recording, so they dominate the lifetime cost.


Q2 How is temporal context integrated into the model? This matters for frame-based encoders such as Qwen, DINOv3 and CLIP, which operate on individual images.

We thank the reviewer for raising this. Every encoder produces one feature vector per frame, which is fused with the motion representation and passed to a shared BiGRU spanning the whole window. This is where CLIP, DINOv3 and Qwen obtain all of their temporal context. The motion branch also carries temporal structure before fusion: its tokenizer combines stride-1 temporal convolutions with a self-attention layer over the window, so each pose latent is already contextualized when the visual features meet it.

VideoPrism differs in one respect and we should have stated it. Its spatial encoder processes each frame independently, but a lightweight 4-layer temporal encoder couples frames within each 8-frame clip, so its per-frame features carry local temporal context among the frames in that clip. Longer-range structure still comes from the downstream BiGRU, since clips do not attend across their boundaries. We will make both points explicit in the revision.


Q3 Why partial visual budget (75%) outperforms full vision budget? Does this arise from the frame-selection strategy itself, or from limitations in data scale and supervision?

We appreciate this and examined both. On the premise first: with 10 seeds the effect is not uniform across datasets. On Mouse Triplet the 75% budget exceeds the 100% baseline by 0.0097, 95% CI [0.0068, 0.0127], paired p < 0.0001, and 75% is higher in all 10 seeds. On Open Field the mean is higher at 75% by 0.0149 but not statistically meaningful, 95% CI [−0.0188, +0.0487], p = 0.34, with 75% higher in only 5 of the 10 seeds. On CalMS21 the full budget is best.

On Mouse Triplet, the loss at 100% relative to 75% comes largely from one class: oral contact drops 0.032, recall falling 0.94 to 0.83, with false positives on the visually similar oral-genital contact rising 243 to 277. A linear probe separates the two behaviors equally well at both budgets, but at 100% more oral contact frames lie closer to the oral-genital centroid than to their own: 6.9% of them against 5.0% at 75%, in all ten seeds (p < 1e-6). So, the full budget does not degrade the representation globally; however, it displaces a subset of oral contact frames across the boundary.

The reviewer also asks whether limited data or supervision could be the cause instead. To separate the two, we held the amount of vision fixed at 25% and varied only which frames receive it.

Case F1 vs. no vision
no vision 0.6538 ± 0.0051 —
uniform 25% 0.6659 ± 0.0055 +0.0121, p = 0.050
top-residual 25% 0.6801 ± 0.0015 +0.0263, p = 0.008
bottom-residual 25% 0.6350 ± 0.0028 −0.0188, p = 0.013

The outcome ranges from +0.0263 to −0.0188 with the same amount of vision and the same labels throughout, so neither data scale nor supervision can explain the spread. What varies is only which frames receive visual context, which points to the selection strategy as the operative factor.


Q4 For the unsupervised clustering, is there a risk that the learned clusters primarily separate frames with visual context from pose-only frames, rather than reflecting behavioral structure?

We thank the reviewer for this question and looked at the behavior composition of every non-empty cluster on Mouse Triplet. The short answer to reviewer's question is no.

Dominant behavior clusters frames with visual context purity
huddles 10 47% 0.81
chases 3 99% 0.59
oral contact 3 87% 0.49
oral-genital contact 1 24% 0.43

Purity is the share of frames in a cluster that carry its dominant behavior. The clusters are dominated by different behaviors: some are huddle clusters, others chase clusters, others oral (-genital) contact clusters. They are not organized by frame type: the huddle clusters draw 47% of their frames from frames with visual context and the rest from pose-only frames, so the same behavior stays in one cluster whether or not the frame received vision.

Chases sit at the other extreme, with clusters that are 99% frames with visual context. This is not the clustering separating frame types, but the selection working as intended: chase frames carry the highest quantization residuals, so at this budget nearly all of them receive visual context and few pose-only chase frames remain for a cluster to hold.

The oral-genital cluster shows the same at the other end of the range: only 24% of its frames carry visual context and the rest are pose-only, yet they group together by behavior. Across the four behaviors the visual-context share of a cluster ranges from 24% to 99% without the clusters splitting along that line.


We thank the reviewer ZgJn again for the constructive feedback. All new results and clarifications above will be included in the revised paper, and we are happy to expand on any point during the discussion period.

Authors · CommentOpenReview ↗

We would like to thank the reviewer again for the detailed questions, which prompted several new analyses on our side. We wanted to check whether these analyses addressed the reviewer's concerns, in particular the BEAST discrepancy and the computational cost analysis. We would be very glad to clarify anything further before the discussion period closes.

Reviewer z7w6OpenReview ↗
Rating
4/6
Confidence
4/5
Quality
2/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The authors present ResiFuse, a self-supervised model for extracting structure from both keypoint- and frame-based behavioral information. The model uses a quantized latent representation in the pose branch of the model, and quantization errors are used to select frames where the model should rely on video frame embeddings rather than pose embeddings. The authors demonstrate the efficacy of their method on three mouse behavior datasets (spanning single, pair, and triplet experiments) using both supervised classification and unsupervised clustering as downstream tasks. They demonstrate that mixing keypoint and frame information can often perform better than either modality individually.

Strengths and weaknesses

strengths

The motivation for this approach is highly relevant - many behavioral analysis tools are based on pose estimation, but keypoint representations are suboptimal due to tracking difficulties (e.g. occlusions) and the fact that many features of the animal are not captured by pose alone. Purely video-based models can be expensive to train and run inference on. Fusing these two modalities, and only using expensive frame processing when keypoints alone are insufficient, is a cool idea.

The authors evaluate their approach on three different datasets, and one of the more interesting conclusions is that the keypoint/frame fusion model works best on the mouse triplet dataset, which contains more complex social interactions and is also more challenging for pose estimation (as evidenced by the need for the authors to rerun pose estimation themselves). As social experiments move beyond pairs of individuals the need for methods that perform well with an arbitrary number of animals increases.

weaknesses

The main weakness of this paper is the unconvincing baselines. For example, for CalMS21, the reported "raw pose" F1 score is 0.593, but pose-based models can perform much better than this - the CalMS21 paper itself shows simple pose-based baseline models with F1 scores near 0.8. If "raw pose" actually means untransformed (x, y) coordinates then this is not a fair representation of pose models, and it may skew the conclusions of this paper towards overstating the need for video frames.

Another weakness is occasional lack of clarity or overstating results in the writing; I have flagged some specific examples of this below.


minor comments:

L27: "a common pipeline in modern machine learning and computational neuroscience adopts a two-stage framework for behavior analysis": this omits the very real and complex first step of effective pose estimation, which should be clarified (with relevant citations)

L106: what are "normalized" joint coordinates? are these just z-scored? egocentrically aligned? both or neither?

L107: can the authors provide a very brief description of the tokenizer? is it just a linear layer?

L111: the main text should provide a bit more information on the architecture of the VQs

L115: where is the temporal information in r_t? at this stage z_e (and therefore z_q) seems to be only encoding static pose information at time t, as the authors mention in L121. this sentence should be revised to include more details about how temporal information is encoded in r_t

L116: "This residual is related to but mechanistically different from input-space reconstruction error in other domains" the authors should explore this in more detail, given the existing literature on input-space reconstruction error. what is the correlation in each dataset between the quantization residual and the reconstruction error? for any outliers in the correlation plot (if any), what does it mean for the quantization error to be large but reconstruction error to be small, and vice-versa? surely these are interesting frames (or poorly tracked with pose estimation)

L128: does L_mask require the model to reconstruct "original joint coordinates", as in the text, or the normalized inputs?

L140: the name of this loss, "Motion reconstruction", is a misnomer - the model isn't reconstructing motion (changes in pose) but rather the static pose itself. "Motion reconstruction" would make sense if z_{e,t} needed to predict z_{e,t+1}, for example

L143: add ref for RVQ loss

L150: "If a frame’s visual content cannot be predicted from a typical codebook entry, the loss pushes that frame’s latent away from the entry, producing a large residual." -> is this correct? Is the loss actually pushing the frame's latent away from the entry? or is it just registering this fact?

L214: the Sturman dataset has three annotated behaviors: grooming, supported rearing, and unsupported rearing. did the authors collapse the two rearing classes into a single class? if so, why? supported vs unsupported rearing is difficult to disambiguate with keypoints alone, I would assume that adding video data could be very beneficial in this case.

L235: does "Raw pose coordinates" actually mean raw x,y coordinates? If so this is not a fair baseline, as all standard supervised and unsupervised methods use some form of featurization, such as egocentrically aligned coordinates (VAME, KPMS) or social features (SimBA, MARS). The authors state that "unlocking the complementary value of pose requires more than naive concatenation" - but it also requires more than naive input handling. Blau et al 2024 (A study of animal action segmentation algorithms...) even showed that simply concatenating poses with their pre-computed velocities could greatly improve supervised behavioral segmentation. It is of course true that these hand-engineered features do not scale well past two animals, so I am sympathetic to the need for learned representations, but those representations should be benchmarked against strong baselines.

"Raw vision" is not an accurate title for this baseline, as it is actually video frames processed through VideoPrism; "raw" would better describe non-featurized pixel values.

For the ResiFuse CalMS21 results, the best budget is r=100% of frames, so this should be equivalent to Raw Vision. What leads to the discrepancy here?

L263: "with only 7 tracked keypoints, pose carries little information [for CalMS21]" - this statement is not at all true, numerous papers have shown F1 scores >0.8 using keypoints alone on CalMS21 (for example the original CalMS21 paper). this reinforces my suspicion raised above that the keypoint-only baselines are not handled properly.

I'm not convinced that the ResiFuse models with intermediate vision budgets are actually worse than the full vision models. This is not the case for CalMS21; for Open Field, the difference between 75% and 100% is not large, and it's not clear if this difference is statistically meaningful. The same goes for Mouse Triplet.

L287: these observations on exceptions to the patterns should be backed up by more quantitative arguments. for example, the argument that for CLIP "100% baseline is higher than residual at 75%" relies on the fact that it is part of a vision-language model - is this not true of Qwen3.5 as well?

Fig 6, right: legend is missing colored markers

L361: the difference between models w/ and w/o vision pretraining is overstated - w/ vision pretraining is slightly (and likely significantly) better, but the absolute magnitude of this performance increase is not large relative to, for example, changing the frame budget.

References of interest:

  • L33/379: B-SOiD (Hsu et al 2021) should be added to this list
  • L75: the Lightning Pose paper (Biderman et al 2024) also has an interesting example of using reconstruction error (from a low-d pca subspace) as an anomaly signal for animal keypoints
  • L386: SimBA (Goodwin et al 2024) should be added to this list
Questions
  1. What do baseline results look like when keypoints have been featurized in a more standard way? For the Open Field dataset, the paper describes the keypoint features used for classification - how does this compare to the current "Raw pose" results? For the CalMS21 dataset, how do standard mouse social behavior featurizations (like from MARS or SimBA) compare to "Raw pose" results? Presenting these stronger baselines will be required for me to increase my score to an acceptance level.

  2. How much compute does pretraining/finetuning require, especially for different frame budgets? Processing frames is expensive, both in frame retrieval (unless all frames are pre-exported as jpgs/pngs) and frame processing (VideoPrism is large). Concretely, how long does it take to pretrain and finetune ResiFuse on each dataset? How fast is inference in the final fine-tuned model (in frames per second, for instance). Related, do reduced frame budgets actually reduce compute? My understanding is that VideoPrism requires all frames to be processed simultaneously, even if only 25% of those frames are selected instead of poses. If this is true it severely restricts the advantages of such a fusion model.

  3. The authors state there are two complementary types of frames that produce a large residual, but this argument assumes that pose estimation is perfect when body parts are fully visible, which is not always the case even in these particular datasets. A third type of frame is one where there is a pose estimation error, not even necessarily because a body part is occluded or the mice are near each other. for example, sometimes in CalMS21 the white mouse is hard to see and a piece of bedding gets mistaken for a part of the mouse, etc. These are inconvenient but very real errors. Have the authors thought about exploring these types of frames? One approach would be to inject a variable amount of noise into the keypoints at random timepoints, and see how the quantization residual (and thus the probability of being selected for frame-based processing) changes as a result.

  4. There is a fundemental tension introduced by using quantization residual as a frame selection signal. By increasing the size of the codebook, the keypoint-based model is presumably better (up to a point) on the classification task, with lower quantization errors. Decreasing the size of the codebook will lead to larger (and potentially more meaningful) quantization errors but worse keypoint-based predictions. How do the authors see these tradeoffs, and how is the size of the codebook chosen?

Limitations

see weaknesses and questions

Final justification

I again thank the authors for the time and effort they put into the review process. I believe the submission is stronger as a result. I have increased my score from 3 to 4.

Formatting concerns

None

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank Reviewer z7w6 for a close, line-by-line reading whose suggestions shaped several of the new results below. We answer each point in turn.


L106 L235 Q1 Why is Raw pose only 0.593? What does normalized Raw pose mean? Featurization?

We appreciate this feedback. Normalized "Raw pose" is x,y coordinates divided by frame dimensions, and its F1 is included as a reference point for untransformed input. We agree it should not stand in for what pose can reach, and have added featurized results:

Dataset Raw pose Featurized Ours
CalMS21 0.593±0.009 Pose&Vel 0.744±0.005; TREBA 0.793±0.005; MARS 0.878±0.001 0.859±0.001
Open Field 0.663±0.005 Sturman&Vel 0.709±0.007 0.796±0.009
Mouse Triplet 0.583±0.006 Hand-Crafted 0.684±0.012 0.784±0.002

These reproduce literature-level pose results. Over Raw pose, velocity helps (Blau et al.); TREBA, a learned trajectory embedding and the closest of these to a general method, is stronger than both; MARS, hand-engineered for this two-mouse assay, is strongest of the four. On Open Field, the feature set described in the dataset paper adds little over Raw pose, since this is a single-mouse dataset and those coordinates are already egocentric. On Mouse Triplet, the hand-crafted features from MABe2022 score above hBehaveMAE, the best pose representation baseline. ResiFuse exceeds every featurization except MARS, which wins by a small margin but doesn't scale past two mice. We will remove the L263 claim that pose carries little information on CalMS21.


Comment I'm not convinced intermediate budgets are actually worse than full vision.

We thank the reviewer for pressing on this; we read the comment as questioning whether intermediate budgets are genuinely better than full vision, and agree this needed to be established properly. We re-ran the comparison with 10 seeds:

Dataset 75% − 100% 95% CI p seeds favoring 75%
Mouse Triplet +0.0097 [+0.0068, +0.0127] <0.0001 10/10
Open Field +0.0149 [−0.0188, +0.0487] 0.34 5/10

On Mouse Triplet 75% is higher and the difference is significant. On Open Field the mean is higher at 75% but the difference is not statistically meaningful. On CalMS21 the full budget is best. We have narrowed the claim: frame selection exceeds dense vision on Mouse Triplet and matches it elsewhere at a fraction of the vision cost.

As for why 75% is higher, the difference is mainly from a single class on Mouse Triplet. At the full budget some oral contact frames move across the boundary with oral-genital contact: oral contact loses 0.032, its recall dropping 0.94 to 0.83, while false positives on oral-genital contact rise from 243 to 277.


L116 correlation between quantization residual and reconstruction error? for outliers (residual large, recon small and vice versa), interesting or poorly-tracked frames?

We appreciate this and have added the analysis. Across frames, the quantization residual and the reconstruction error are positively but only moderately correlated (Pearson: Mouse Triplet 0.39, CalMS21 0.36, Open Field 0.49). This is structural: both are computed from the same quantized code, so a frame the codebook fits poorly raises both at once. The outliers the reviewer asks about are the off-diagonal frames (analyzed on Mouse Triplet):

  • High residual, low reconstruction error: occlusion / tracking-failure frames. Their residual is well above average (median 1.84 vs 1.39 overall), yet their reconstruction error is no higher than ordinary frames (median 0.0031 vs 0.0034 overall). Reconstruction error only measures whether the decoder can reproduce the pose it was given, not whether that pose describes the animal, so it stays low on these frames while the residual flags them. This matches Appendix D.3, which independently shows selected frames have lower keypoint validity. The reviewer's intuition is correct: these frames are largely poorly-tracked ones.
  • Low residual, high reconstruction error: nearly empty; high reconstruction error always coincides with elevated residual.

On whether these are "interesting frames": Appendix D.3 identifies three regimes (rapid motion, behavior transitions, occlusion) driving high residuals, and we located each on the residual–reconstruction plane. Rapid motion raises both together (~31% of these frames fall in the "both high" region, the source of the correlation); behavior transitions sit near both medians; occlusion is the only regime producing the outliers above, and makes up ~64% of them. The two measures thus agree when the pose is still usable, and diverge only once tracking has failed.


L214 why collapsing the two rearing classes

We appreciate this question. The two are distinguished by proximity to the arena wall, which is not recoverable from the egocentric coordinates all methods receive but is visible in the video, so keeping the distinction would have advantaged our method through video access alone.

We ran the three-way task as suggested, confirming the reviewer's expectation: vision raises unsupported rearing from 0.375 ± 0.025 to 0.840 ± 0.008 and supported rearing from 0.679 ± 0.014 to 0.930 ± 0.002. Our three-class macro-F1 of 0.837±0.010 also exceeds our two-class result, so merging worked against us. Since the Sturman features we now add encode distance-to-wall explicitly, the reason for merging no longer holds, and we will adopt the three-class protocol in the revision.


Q2 compute cost

We appreciate these concerns and will answer them in turn.

VideoPrism requires all frames to be processed simultaneously

This is not the case for VideoPrism. It uses a factorized encoder (ViViT Model-2): the spatial encoder processes each frame independently, and only a small temporal module operates across frames. XLA cost analysis confirms this: the per-frame cost stays at 0.1897 TFLOPs ±0.05% from 1 to 16 input frames, so total FLOPs scale linearly with the number of frames encoded.

Do reduced frame budgets actually reduce compute?

Yes. Frame selection is done once, offline, by the pose-only encoder after pretraining, so unselected frames are never retrieved or processed.

How much compute does pretraining/finetuning require at different frame budgets? How fast is inference?

Neither stage depends on the budget: pretraining always uses all frames by design, and at fine-tuning the vision pathway runs at full length with unselected frames masked, so the model forward time is identical at every budget. Times for pretraining and fine-tuning on A40:

Dataset Pretrain (h) Finetune (min) Inference (ms/window)
Mouse Triplet 8.3 6.9 4.3
Open Field 0.93 3.0 5.3
CalMS21 0.21 4.6 3.4

The only budget-dependent cost is the one-time frame retrieval and encoding, which also dominates compute cost. Cost per 6.67 s window:

Budget Retrieval (ms) Processing (ms)
25% 89 212
50% 87 424
75% 92 636
100% 105 848

Q3 inject keypoint noise and see how the residual changes

We appreciate this suggestion and ran the experiment on CalMS21, injecting pose noise into a random 5% of frames whose selection rate was 25% before injection. Injection raises their residual and selection rate: 27% for small displacements, rising to 51% when the whole mouse's pose is displaced off the mouse onto the bedding, the case the reviewer describes. The residual therefore does respond to this type of pose estimation error, and increasingly so with its severity.


Q4 how do you see these tradeoffs? how is codebook size chosen?

We appreciate these questions. The tradeoff is real in principle, but weak once the codebook is large enough not to be the bottleneck: selection then uses only the ranking of residuals under a fixed budget, not their magnitude, so it is insensitive to the overall scale of quantization error set by the codebook size. The size itself was not tuned on accuracy: we set it a priori from the number of animals per dataset, then read the per-epoch codebook usage logs to confirm this condition holds.


Comment Raw vision

ResiFuse at r=100% is not equivalent to Raw Vision: Raw Vision uses visual features alone, while r=100% is a fusion model that also carries the pose branch. We agree "Raw vision" is an inaccurate name and will rename it.


L107 L115 tokenizer

The tokenizer is not a linear layer: three stride-1 temporal convolutions, a projection, and one self-attention layer. Each latent thus has a receptive field of ~9 tokens plus global context across the window, so the residual reflects temporal structure rather than static pose. We will correct L121, which understates this.


L150 push or register?

The loss does move the latent, rather than registering a mismatch: to predict the visual features it pulls the latent toward a position that no typical codebook entry sits near, which is what enlarges the residual.


L128 L_mask

The model reconstructs the normalized x,y it receives and only at masked frames.


L287 CLIP vs. Qwen 3.5

We appreciate this question. Our argument concerns CLIP's whole-image contrastive objective, not language supervision: it compresses a frame into one scene-level vector, whereas Qwen's encoder keeps token-level detail. We will support this quantitatively in the revision.


References

We will add these suggested references to the revision.


L27 L111 L140 L143 L361 Fig 6

We agree with these points and will address each in the revision: the wording corrections, the requested descriptions and clarifications, and the missing legend.


We thank the reviewer z7w6 again for the detailed review. All new results and clarifications will be included in the revision, and we are happy to expand on any point during the discussion period.

Reviewer z7w6 · CommentOpenReview ↗

I thank the authors for their thorough response to my feedback. The improvments to the baselines (including the updated BEAST results requested by another reviewer) significantly strengthen the performance claims of the paper. I am inclined to raise my score to a 4 as a result during Phase 3.

Authors · CommentOpenReview ↗

We sincerely thank the reviewer for the constructive feedback throughout, and for the possible raise to 4. We are glad our clarifications and new results address the concerns, and all of them will be included in the revised paper.

Reviewer 6C2YOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper presents ResiFuse, a framework that combines pose representations and visual context for downstream mouse behavior classification. The authors demonstrate that naively incorporating visual information is not always beneficial and propose a residual-guided frame selection approach based on Residual Vector Quantization (RVQ) to determine when visual context should be added during fine-tuning. The method is evaluated across multiple mouse behavior datasets and compared against pose-only and vision-based baselines.

Strengths and weaknesses

Strengths:

  • Presents an interesting and well-motivated approach for combining pose and visual information, while explicitly showing that additional visual context is not universally beneficial.
  • Provides a strong discussion of the relative strengths and weaknesses of pose-based and video-context-based behavior analysis methods.
  • Evaluates the approach across multiple datasets, thereby improving confidence in the method's generality.
  • Demonstrates a strong understanding of the practical challenges of mouse behavior annotation and behavioral ambiguity.
  • The residual-guided selection mechanism is conceptually simple and easy to integrate into existing pipelines.

Weaknesses:

  • The paper does not sufficiently quantify how frequently visual context is required across the evaluated datasets. A more fine-grained analysis of the selected visual-context budget for each dataset and encoder pair would provide additional insight into the complexity of the underlying behaviors and help characterize the relative importance of visual information in different settings.
  • There is limited analysis of the computational cost of incorporating visual context. Since one of the motivations is to selectively apply expensive visual encoders, reporting inference cost, latency, or FLOPs would help characterize the trade-off between performance gains and computational overhead.
  • The empirical gains, while generally consistent, appear relatively modest.

Overall, the paper is well written and clear.

Questions

How were the vision encoders selected? Are there others you could add to make the comparison more complete? One additional encoder that comes to mind is a hierarchical transformer (e.g., Swin), because local spatial structure matters for behavior classification.

Collecting and analyzing mouse behavior data at scale is often computationally expensive, making inference efficiency an important practical consideration. Since the proposed method selectively incorporates visual context, it would be valuable to quantify any resulting computational savings at inference time (e.g., FLOPs, latency, or throughput). In particular, an analysis of the trade-off between computational budget and performance, including whether the method can sustain real-time processing rates, would significantly strengthen the paper's practical contribution.

Limitations

The improvements over strong baselines are relatively small, making it somewhat difficult to assess whether the method's added complexity is justified in practice. A deeper analysis of when and why visual context is beneficial, along with a more thorough characterization of computational savings, would strengthen the practical significance of the work.

Final justification

The reformatting of the results and the additional details the authors provided in their rebuttal help highlight the contributions of their work. I believe this is a strong application paper with quality evaluations.

Formatting concerns

This is minor, but the practice of bolding the first sentence of most paragraphs is unconventional and somewhat disrupts the flow of the paper.

4 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank Reviewer 6C2Y for a constructive review that focuses on the practical side of the method: how much visual context it needs, what it costs, and whether the gains justify it. We address each point below.


W1 The paper does not sufficiently quantify how frequently visual context is required across the evaluated datasets. A more fine-grained analysis of the selected visual-context budget for each dataset and encoder pair would provide additional insight into the complexity of the underlying behaviors.

We appreciate this suggestion. Table 1 reports the best frame budget for each dataset, and Section 3.2.2 sweeps the budget for every encoder on Mouse Triplet in Figure 4. What we did not do is draw out what these numbers say about the datasets themselves, which is what the reviewer is asking for. We do that here.

Across datasets, using VideoPrism, the 75% frame budget is best on Mouse Triplet (95% CI [+0.0068, +0.0127], p < 0.0001), while on Open Field the mean favours 75% but the difference is not significant (95% CI [−0.0188, +0.0487], p = 0.34) and on CalMS21 the full frame budget is best. The optimal frame budget is therefore dataset-dependent.

The frame budget also aggregates a strongly uneven distribution across behaviors.

On Mouse Triplet, comparing our model with and without vision, the gain ranges from +0.033 on huddles, where animals are stationary and the coordinates already describe the behavior, to +0.240 on oral contact and +0.200 on chases, which involve fine-grained contact and rapid motion.

On Open Field, the same comparison gives +0.251 and +0.465 on supported and unsupported rearing, a distinction defined by proximity to the arena wall that egocentric coordinates cannot represent.

On CalMS21, every class gains substantially, from +0.214 on investigation to +0.617 on attack. Visual context is thus not uniformly useful across behaviors, and datasets differ in how concentrated that dependence is.

The budget also depends on the encoder. On Mouse Triplet, Figure 4 reads as follows:

Encoder 0% 25% 50% 75% 100%
VideoPrism 0.654 0.680 0.744 0.784 0.777
VideoMAE 0.627 0.629 0.718 0.745 0.768
DINOv3 0.640 0.687 0.743 0.746 0.737
CLIP 0.618 0.665 0.698 0.719 0.738
Qwen 0.629 0.674 0.681 0.707 0.686

VideoPrism, DINOv3 and Qwen peak at 75% and lose accuracy at 100%, whereas VideoMAE and CLIP continue improving to 100%. Independently of where the peak sits, a 50% budget already captures 65% to 97% of each encoder's total gain, and going beyond 75% adds nothing for three of the five encoders. The gain is therefore concentrated in a subset of frames, and the residual is what orders them.

The full encoder sweep is currently available only on Mouse Triplet, since each encoder requires its own feature extraction and pretraining run. We will extend this analysis in the revision.


W2 Q2 Reporting inference cost, latency, or FLOPs would help characterize the trade-off between performance gains and computational overhead. In particular, an analysis of the trade-off between computational budget and performance, including whether the method can sustain real-time processing rates.

We appreciate this and have measured it. Training compute is frame-budget-independent on both stages: pretraining always uses all frames by design, and at fine-tuning the vision pathway runs at full length with unselected frames masked, so the model forward time is identical at every frame budget.

The saving is at the vision preprocessing stage, which is required once before fine-tuning and again whenever the model is run on new video, and which dominates the cost in both cases. The vision encoder's cost is linear in the number of frames processed: as the input goes from 1 to 16 frames, the average cost per frame stays at 0.1897 TFLOPs and varies by under 0.05%. Unselected frames are never retrieved or processed.

We report cost per 6.67 s window (7.5 fps) on an A40, split into retrieval (reading frames from the compressed video), processing (the vision encoder forward pass), and the fusion model, together with macro-F1 on Mouse Triplet.

Frame budget Retrieval Processing (ms / TFLOPs) Model F1
25% 89 ms 212 / 7.1 4 ms 0.680
50% 87 ms 424 / 14.2 4 ms 0.744
75% 92 ms 636 / 21.3 4 ms 0.784
100% 105 ms 848 / 28.5 4 ms 0.777

The trade-off is favourable at the operating point: 75% reaches the best accuracy at 76% of the full-frame-budget cost, and 50% retains two thirds of the total gain at 54% of the cost. Processing scales linearly with the frame budget; retrieval saves sublinearly, since scattered frames still require seeking.

On real-time processing: a window covers 6.67 s of video and is processed end-to-end in 0.3 to 1.0 s depending on the frame budget, that is 7 to 22 times faster than the video plays, on a single A40. We will add these measurements to the revision.


W3 The empirical gains, while generally consistent, appear relatively modest, making it difficult to assess whether the method's added complexity is justified.

We appreciate this comment. Pretraining followed by fine-tuning is the standard recipe for representation learning in this literature, and every self-supervised baseline does it; what we add on top is the selective fusion. In exchange, our method exceeds the strongest baseline in Table 1 while using only part of the frames at fine-tuning and inference:

Dataset Table 1 baseline Frame budget our method needed to exceed it Score there
Open Field 0.732 25% 0.779
Mouse Triplet 0.729 50% 0.744
CalMS21 0.849 100% 0.859

A quarter of the frames is enough on Open Field and half on Mouse Triplet. On CalMS21 the full budget is needed, which is consistent with our finding above that every class there benefits substantially from vision. Our numbers rely on full-frame pretraining, but that cost is paid once per dataset, whereas the saving recurs at fine-tuning and for every new video.

The per-class gains are also not small: they reach +0.082 on grooming and +0.078 on oral contact, while behaviors already near ceiling, such as rearing and huddles where both score ~0.9, contribute almost nothing. Macro-F1 averages the two together and hides the difference.


Limitation A deeper analysis of when and why visual context is beneficial would strengthen the practical significance.

We thank the reviewer for this feedback. On when, Appendix D.3 answers this empirically on Mouse Triplet. We take the frames the residual selects and compare them against the unselected ones on three measurable properties: pose validity, motion speed, and proximity to a behavior boundary. Selected frames have a lower pose validity rate, meaning a larger share of their keypoints are missing or detected with low confidence, which is the signature of occlusion or tracking failure. Selected frames also occur during motion 2.5 to 3.1 times faster than the dataset average. And they concentrate at the moments where one behavior transitions into another.

On why, vision helps exactly where the pose input does not determine the behavior label, which happens for two distinct reasons. The pose can be correct but ambiguous: the same posture occurs in different behaviors, and what disambiguates it lies outside the pose, such as what the animal is in contact with or where it is in the arena. Or the pose can be wrong: under occlusion or tracking failure the pose no longer describes the animal, while the pixels still do. In both cases the codebook cannot explain the frame, which is why the residual is large, and the vision encoder supplies what the pose is missing.

The per-behavior gains show the same pattern: on Mouse Triplet vision is worth +0.240 on oral contact, which involves close interaction and partial occlusion, against +0.033 on huddles, where the animals are stationary and the pose already determines the label.


Q1 How were the vision encoders selected? Are there others you could add to make the comparison more complete? One additional encoder that comes to mind is a hierarchical transformer (e.g., Swin).

We thank the reviewer for this question. We selected encoders to span the pretraining objectives currently used for visual representation learning rather than to cover architectures exhaustively: video pretraining that distills semantics from video-text pairs on top of masked modelling (VideoPrism), purely self-supervised masked video reconstruction (VideoMAE), image-text contrastive pretraining producing a global scene-level embedding (CLIP), the vision encoder of a vision-language model, which produces token-level features for fine-grained grounding (Qwen 3.5), and image self-supervision producing dense spatial features (DINOv3). The aim was to test whether residual-guided selection holds regardless of how the visual features were learned, which it does across all five.

On what else could be added, a hierarchical encoder is a good suggestion. Our five encoders already differ architecturally, for instance VideoPrism uses a factorized space-time design while the image encoders are flat, though none builds a multi-scale feature pyramid. We will add one such as Swin in the revision and report it alongside the existing five.


Formatting bolding the first sentence of most paragraphs is unconventional

We thank the reviewer for pointing this out. We will remove the bolding from the first sentence of each paragraph.


We thank the reviewer 6C2Y again for the thoughtful review. All new results and clarifications above will be included in the revised paper, and we are happy to expand on any point during the discussion period.

Authors · CommentOpenReview ↗

We would like to thank the reviewer again for the constructive suggestions, which shaped several of the additional analyses we ran. We wanted to check whether these analyses addressed the reviewer's concerns, and are happy to clarify anything further before the discussion period closes.

Reviewer 6C2Y · CommentOpenReview ↗

Thank you for taking the time for a detailed rebuttal. The reformatting of the results and additional details above highlight the contributions of your work. I believe this is a strong application paper and well-suited for acceptance into NeurIPS in the area of AI for health and biotechnology.

Authors · CommentOpenReview ↗

We sincerely thank the reviewer for the constructive feedback and for the encouraging view that the work is well-suited for acceptance. The suggestions on budget characterization and computational analysis shaped a substantial part of what we added, and all of these results will be included in the revised paper.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…