Manuscript Offprint

arXiv:2610.13259

Beyond a Single Crop: Contextualized Embeddings for Player Re-Identification

Ge Luo, Changhuo Yang, Weisi Fan, Rui Yang, Shaokai Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Person re-identification is typically addressed by learning identity-discriminative embeddings from individual person crops. However, player re-identification in broadcast sports videos presents a unique challenge: players from the same team often share similar appearances, while video sequences provide repeated observations of the same players under different viewpoints and surrounding contexts. Existing crop-based approaches largely ignore this contextual information, which can be critical for resolving visually similar identities. Here, we propose ContextReID, a contextualized embedding framework that represents a player by jointly considering other players in the same frame and observations from different frames of the broadcast sequence. By incorporating both co-occurring players and cross-frame observations, the model learns identity features relative to the surrounding visual context rather than relying only on isolated appearance cues. We implement this framework with a vision-language model that takes sets of player crops as input and generates context-aware embeddings for individual players. A combined contextual learning and retrieval objective encourages the model to capture cross-frame identity relationships while maintaining discriminative embeddings for player matching. Experiments across three multi-object tracking benchmarks show that ContextReID improves player retrieval over conventional single-crop embedding approaches in both Rank-1 and mAP. These results highlight the utility of spatial and temporal context for reliable player identification in broadcast sports videos.

Introduction

Person re-identification (ReID) is a fundamental retrieval task that aims to match a person of interest across images or cameras (Ye et al. 2022). The mainstream paradigm learns an embedding for each detected person crop and performs identity matching by feature similarity. This simple interface has enabled strong progress through metric learning (Hermans, Beyer, and Leibe 2018), discriminative training tricks such as BNNeck (Luo et al. 2020), global and part-aware CNN architectures (Sun et al. 2018; Wang et al. 2018; Zhou et al. 2019), and transformer-based backbones (He et al. 2021). It has also become the practical representation used by tracking and retrieval systems because gallery features can be computed once and searched efficiently. Nevertheless, the crop-level formulation implicitly assumes that the most useful evidence for identity is contained inside one isolated bounding box. Figure 1 contrasts this conventional formulation with our contextualized representation.

Figure

(a) Conventional ReID

(b) ContextReID

Figure 1: Conventional ReID encodes each detected player crop independently. ContextReID forms a contextualized target embedding by jointly encoding the target with other player crops from the selected context, while preserving a standard retrieval embedding output.

Player re-identification offers richer contextual evidence than this crop-level assumption captures. In broadcast sports, teammates are designed to look alike: uniforms, dominant colors, camera viewpoint, and field context are often shared across many identities. Discriminative cues such as jersey numbers, accessories, body shape, pose, or partial logo patterns may be small, temporarily invisible, or blurred by motion. At the same time, sports video is highly structured. A target player appears with other players in the same frame, recurs across frames, and is observed alongside a changing but meaningful set of teammates, opponents, referees, and background context. The co-occurring players are not incidental clutter; they are the visually similar alternatives against which the target must be distinguished. Existing sports and group-motion datasets make this tension explicit. SportsMOT focuses on multi-sport multi-object tracking under rapid motion and similar appearances (Cui et al. 2023); SoccerNet-v3 introduces soccer player ReID across action and replay views (Cioppa et al. 2022); DeepSportradar includes basketball player re-identification with high-quality sports annotations.

∗^{*}These authors contributed equally.

†^{\dagger}Corresponding author.

(Van Zandycke et al. 2022); SN-GSR extends soccer understanding toward role, team, jersey-number, and game-state identity (Somers et al. 2024); and DanceTrack stresses association when people have uniform appearance and diverse motion (Sun et al. 2022).

Recent vision-language and large vision-language models provide a promising route for richer identity representations. CLIP-style pretraining can inject semantic structure into ReID without manual attributes (Radford et al. 2021; Li, Sun, and Li 2023), and LVLM-ReID shows that an LVLM can be adapted from generative next-token prediction into a discriminative ReID feature extractor (Wang, Li, and Xue 2026). However, simply asking an LVLM to describe or compare every player image is not suitable for large gallery search. ReID requires compact embeddings that can be indexed and compared by similarity. Moreover, existing VLM/LVLM ReID methods still largely summarize one person image at a time. For player ReID, the core ambiguity is relational: the model must decide which target attributes matter in the presence of visually similar players from the same sequence.

We propose contextualized embeddings for player ReID. Instead of representing a target crop independently, our framework presents a vision-language backbone with a sequence of frames, each containing the set of player crops visible in that frame. The model pools one representation per player crop after visual-token and frame-level interactions, so the target embedding can attend to co-occurring players and temporal context while remaining a standard retrieval vector. The same-frame players provide natural hard negatives; repeated identities across frames provide positives; and additional context frames reveal stable identity cues under changing pose, scale, occlusion, and camera motion. In this way, the representation is still compatible with query–gallery matching, but its construction reflects the multi-object structure of the video.

Our current implementation follows a joint contextual and retrieval training scheme. A cross-frame contextual branch packs context frames before an anchor frame, allowing anchor-player embeddings to attend to preceding observations. A retrieval branch packs the same context before a query frame and trains query embeddings against the context-plus-anchor pool. The two losses encourage the model to learn from within-frame negatives and cross-frame identity correspondences while preserving embeddings that can be searched by cosine similarity. This design keeps the efficiency of ReID feature extraction, but changes the information available when each feature is formed.

This paper makes the following contributions:

• We formulate player ReID as contextualized embedding learning over sets of players from multiple frames, shifting the representation from isolated crop encoding to identity inference in a structured sequence context.

• We instantiate the idea with a vision-language model that pools one embedding per player crop from frame-level conversations, enabling target embeddings to attend to other players and temporal context while remaining compatible with query–gallery retrieval.

• We train the model using only identity correspondences from MOT-style annotations, where repeated identities provide positives and co-occurring players provide natural hard negatives.

References (35)

  • Language Models Are Few-Shot Learners
  • Beyond Appearance: A Semantic Controllable Self-Supervised Learning Framework for Human-Centric Visual Tasks
  • SoccerNet-v3: Scaling up SoccerNet with Multi-View Spatial Localization and Re-Identification
  • SportsMOT: A Large Multi-Object Tracking Dataset in Multiple Sports Scenes
  • FastReID: A Pytorch Toolbox for General Instance Re-Identification (opens arXiv in a new tab)
  • TransReID: Transformer-Based Object Re-Identification
  • LoRA: Low-Rank Adaptation of Large Language Models
  • Cross-Modal Implicit Relation Reasoning and Aligning for Text-to-Image Person Retrieval
  • Qwen3-VL-Embedding and Qwen3-VL-Reranker: A Unified Framework for State-of-the-Art Multimodal Retrieval and Ranking (opens arXiv in a new tab)
  • CLIP-ReID: Exploiting Vision-Language Model for Image Re-Identification without Concrete Text Labels
  • Deep-ReID: Deep Filter Pairing Neural Network for Person Re-Identification
  • Diverse Part Discovery: Occluded Person Re-Identification with Part-Aware Transformer
  • Visual Instruction Tuning
  • A Strong Baseline and Batch Normalization Neck for Deep Person Re-Identification
  • Multi-task Learning for Joint Re-identification, Team Affiliation, and Role Classification for Sports Visual Tracking
  • Pose-Guided Feature Alignment for Occluded Person Re-Identification
  • Passage Re-ranking with BERT. arXiv preprint arXiv:1901.04085 (opens arXiv in a new tab)
  • Learning Transferable Visual Models from Natural Language Supervision
  • Sentence-BERT: Sentence Embeddings Using Siamese BERT-Networks
  • Performance Measures and a Data Set for Multi-Target, Multi-Camera Tracking
  • Keypoint Promptable Re-Identification
  • Body Part-Based Representation Learning for Occluded Person Re-Identification
  • SoccerNet Game State Reconstruction: End-to-End Athlete Tracking and Identification on a Minimap
  • DanceTrack: Multi-Object Tracking in
  • Beyond Part Models: Person Retrieval with Refined Part Pooling
  • DeepSportradar-v1: Computer Vision Dataset for Sports Understanding with High Quality Annotations
  • Learning Discriminative Features with Multiple Granularities for Person Re-Identification
  • Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolution
  • When Large Vision-Language Models Meet Person Re-Identification
  • Person Transfer GAN to Bridge Domain Gap for Person Re-Identification
  • Deep Learning for Person Re-Identification: A Survey and Outlook
  • Multi-Camera Multi-Player Tracking with Deep Player Identification in Sports Video
  • Scalable Person Re-Identification: A Benchmark
  • Omni-Scale Feature Learning for Person Re-Identification
  • AAformer: Auto-Aligned Transformer for Person Re-Identification