The MABe22 Benchmarks for Representation Learning of Multi-Agent Behavior

Jennifer J. Sun, Andrew Ulmer, Dipam Chakraborty, Brian Geuther, Edward Hayes, Heng Jia, Vivek Kumar, Zachary Partridge, Alice Robie, Catherine E. Schretter, Chao Sun, Keith Sheppard, Param Uttarwar, Pietro Perona, Yisong Yue, Kristin Branson, Ann Kennedy

Abstract

We introduce MABe22, a large-scale, multi-agent video and trajectory benchmark to assess the quality of learned behavior representations. This dataset is collected from a variety of biology experiments and includes triplets of interacting mice (4.7 million frames video+pose tracking data, 10 million frames pose only), symbiotic beetle-ant interactions (10 million frames video data), and groups of interacting flies (4.4 million frames of pose tracking data). Accompanying these data, we introduce a panel of real-life downstream analysis tasks to assess the quality of learned representations by evaluating how well they preserve information about the experimental conditions (e.g., strain, time of day, optogenetic stimulation) and animal behavior. We test multiple state-of-the-art self-supervised video and trajectory representation learning methods to demonstrate the use of our benchmark, revealing that methods developed using human action datasets do not fully translate to animal datasets. We hope that our benchmark and dataset encourage a broader exploration of behavior representation learning methods across species and settings.

Introduction: The Challenge of Animal Behavior Analysis

In biology and neuroscience, analyzing animal behavior is a significant bottleneck. Traditionally, this process relies on "expert-annotated" labels—a labor-intensive task where humans spend hours marking specific behaviors, such as a mouse sniffing a peer or a fly chasing a mate. This manual approach is slow, subjective, and fails to scale with the massive amounts of data generated by modern high-throughput experiments.

While self-supervised learning (SSL) has revolutionized fields like computer vision and natural language processing by learning from unlabeled data, behavior analysis has lacked a unified benchmark to test these methods. Most existing datasets focus on a single species or a single task, such as simple action recognition. Furthermore, models optimized for human action datasets—like people dancing or cooking—often fail to capture the subtle, high-frequency dynamics of interacting animals.

Comparison of human action recognition (e.g., shaking hands) vs. animal action recognition (e.g., eating).

MABe22 addresses these gaps by providing a multi-species, multi-task framework designed to measure how well learned representations preserve essential information about experimental conditions and complex social interactions.

The MABe22 Benchmark

The MABe22 benchmark is significantly larger and more diverse than its predecessors, encompassing millions of frames across three distinct biological systems:

  • Mouse Triplets: This dataset includes 4.7 million frames of video with pose tracking and 10 million frames of pose-only data. Tasks involve identifying mouse strain, light cycles, and expert-annotated social behaviors like huddling and sniffing.
  • Beetle-Ant Interactions: 10 million frames of video depicting symbiotic interactions between rove beetles and ants, offering a unique look at inter-species behavior.
  • Fruit Fly Groups: 4.4 million frames of trajectory data for groups of 8–11 flies. Tasks here focus on identifying responses to optogenetic and thermogenetic neural stimulation.
Overview of the MABe22 benchmark, including species, data types, and downstream task categories.

Unlike human datasets like Kinetics400, MABe22 includes 56 downstream tasks derived directly from real scientific experiments, providing a rigorous test for representation quality.

Methods and Evaluation

The authors evaluate two primary types of representation learning:

  1. Self-supervised Video Learning: State-of-the-art models including Masked Autoencoders (MAE), MaskFeat, and $\rho$BYOL were tested. These models learn by predicting missing parts of a video or by matching different "views" of the same clip.
  2. Trajectory-based Learning: For data where animals are represented as 2D coordinates (keypoints), community-contributed models like T-BERT, T-GPT, and T-PointNet were evaluated.

The core evaluation strategy is the "Linear Probe": learned representations are frozen, and a simple linear model is trained on top of them to predict "hidden" labels. If a simple linear model can accurately predict a complex variable—such as the genetic strain of a mouse—from the representation, it demonstrates that the representation has successfully captured that underlying biological information.

Key Results and Insights

The benchmark revealed several critical insights into behavior representation:

  • Human Models Don't Always Translate: Methods that dominate human action recognition benchmarks do not necessarily perform best on animal data. Animal videos often feature static, neutral backgrounds, forcing models to focus entirely on the temporal dynamics of the agents rather than "cheating" by using environmental cues.
  • Species-Specific Masking: In MAE models, the optimal masking strategy varies by organism. For mice, temporal "tube" masking was most effective, while for beetles, spatio-temporal "cube" masking performed better, suggesting that "information density" in behavior is species-dependent.
  • Objective vs. Subjective Labels: The benchmark's inclusion of "hidden" experimental variables (e.g., time of day, genetic mutation) provides a more objective measure of representation quality than human-annotated labels, which can be inconsistent across experts.
  • MAE as a Strong Baseline: The Masked Autoencoder (ViT-B) generally performed best across most downstream tasks, particularly for capturing experimental context. However, for manual behavior labels (like "chase"), a pre-trained $\rho$BYOL model achieved the highest F1 scores, suggesting some motion features do transfer from human datasets.

Conclusion and Future Directions

MABe22 highlights that while video-based models generally outperform trajectory-only models—likely because raw pixels capture subtle cues like body posture or fur ruffling—there is still significant room for improvement. Future work should expand the benchmark to more diverse species (e.g., birds, fish, or primates) and move beyond controlled laboratory settings to "in-the-wild" data. Additionally, developing architectures that natively fuse video and trajectory data remains a key frontier for the field.

Summary updated

BibTeX
@inproceedings{sun2023mabe,
  author = {Jennifer J. Sun and Andrew Ulmer and Dipam Chakraborty and Brian Geuther and Edward Hayes and Heng Jia and Vivek Kumar and Zachary Partridge and Alice Robie and Catherine E. Schretter and Chao Sun and Keith Sheppard and Param Uttarwar and Pietro Perona and Yisong Yue and Kristin Branson and Ann Kennedy},
  title = {{The MABe22 Benchmarks for Representation Learning of Multi-Agent Behavior}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=Asrg2we3dP},
}
Figure