Manuscript Offprint
arXiv:2610.38482Geometry-Aware Trajectory State Modeling for Few-Shot Action Recognition
Abstract
Few-shot action recognition (FSAR) requires representations that expose discriminative motion dynamics from only a few labeled videos. Recent trajectory-based methods leverage long-term point tracks for explicit temporal correspondence, but often treat trajectories as carriers of sampled visual features or summarize their motion with compact 2D displacement-based descriptors. We instead view an action as the ordered evolution of 2.5D trajectory states and their local geometric interactions. Based on this view, we introduce GeoTRAM, a geometry-aware trajectory state modeling framework for FSAR. GeoTRAM lifts sparse tracks into 2.5D trajectories, where StateMotion models ordered intra-trajectory state evolution and RelMotion captures state-conditioned local interactions through time-varying relative geometry and motion. Quality-filtered spectral sampling provides more reliable trajectory initialization; complementary semantic, motion, and depth cues are separately refined and preserved for joint spatio-temporal modeling; action-guided reweighting and top- trajectory selection support complementary frame- and trajectory-level matching. Experiments on five FSAR benchmarks demonstrate strong gains on the motion-centric Something-Something benchmarks while maintaining competitive performance on more appearance-driven benchmarks and a favorable accuracy–efficiency trade-off. Our code is publicly available.¹
1. Introduction
Recognizing an action requires more than identifying what appears in a video; it requires understanding how objects and body parts move, interact, and evolve over time. This distinction becomes particularly important in few-shot action recognition (FSAR), where a model needs to recognize novel action categories from only a few labeled videos.
Existing FSAR methods have made substantial progress by comparing support and query videos through temporal alignment, set matching, or learned similarity functions [1, 17, 22, 34, 35, 46]. However, limited supervision makes it difficult to infer discriminative motion patterns purely from appearance representations. Consequently, an effective FSAR representation should retain semantic appearance while exposing temporal dynamics in a form that can be reliably compared from few examples.
Recent progress in long-term point tracking provides a promising paradigm for this purpose [4, 11, 12, 41]. Unlike short-term frame differences or pairwise optical flow, tracked points maintain explicit correspondences over time and provide a compact way to describe how local image regions move through a video. Building on this property, trajectory-based FSAR methods [14, 15] associate tracked points with self-supervised visual features [20], showing that sparse trajectories can provide useful motion-aware evidence for few-shot recognition. However, the availability of reliable tracks raises a more fundamental representation question: what information should a trajectory encode in order to describe an action?
We argue that a trajectory should not be treated only as a carrier of sampled visual features or summarized only with compact 2D displacement-based motion descriptors. An action is inherently a temporally ordered dynamical process. The same overall displacement patterns may arise from different state evolutions, while reversing or altering the order of local motion can correspond to a different action. What matters is therefore not only where a point moves, but also how its motion state evolves over time and how this evolution relates to nearby trajectories. This motivates a trajectory-state view of action representation: each trajectory is described as an ordered sequence of explicit kinematic states, and action dynamics are modeled through both the evolution of individual states and their local interactions.
This view naturally leads to two complementary levels of trajectory dynamics. At the intra-trajectory level, an action should preserve how the motion state of each tracked
¹Code: https://github.com/MiaoMeow98/GeoTRAM point evolves over time, rather than representing trajectory dynamics primarily through displacement-derived descriptors. We first augment image-plane coordinates with relative monocular depth to construct the 2.5D trajectory, exposing depth-axis variation that is unavailable in 2D. At each time step, we then explicitly describe its motion state using interpretable attributes including position, velocity, acceleration, depth variation, and visibility, and preserve the ordered state sequence for lightweight temporal encoding. At the inter-trajectory level, many actions are characterized by local interactions among moving parts or objects. Rather than modeling all trajectory pairs, we restrict interaction modeling to spatially nearby trajectories and describe their time-varying relative geometry and motion. Because proximity alone does not imply equal relevance, neighbor relations are further weighted by attention conditioned on both the current intra-trajectory state and their pairwise relation. In this way, geometric proximity determines which interactions are plausible, while state-conditioned attention determines which interactions are relevant. Together, these two levels capture both the temporal evolution of individual trajectories and their evolving local interactions.
Effective trajectory-state modeling further depends on where trajectories originate, how heterogeneous evidence enters spatio-temporal modeling, and which trajectories ultimately support recognition. First, uniform or semantic-aware sampling may allocate a limited tracking budget to background, fragmented, or temporally unstable regions, weakening the evidence extracted along the resulting tracks. Second, semantic, depth, and motion cues encode complementary but heterogeneous information, and prematurely collapsing them through element-wise addition may obscure cue-specific information for joint spatio-temporal modeling. Finally, even reliably tracked trajectories may not be equally informative for the target action. This motivates three complementary designs: combining spectral clustering, quality filtering, and budgeted seed allocation to improve trajectory initialization; refining cue-specific information in dedicated subspaces followed by concatenation to preserve heterogeneous cues for joint spatio-temporal modeling; and leveraging class-token guidance to prioritize action-relevant trajectories.
Based on these principles, we propose GeoTRAM, a geometry-aware trajectory state modeling framework for few-shot action recognition. GeoTRAM first obtains reliable tracking seeds through quality-filtered spectral sampling and augments the resulting image-plane tracks with relative monocular depth to construct 2.5D trajectories. It then models their dynamics at two complementary levels: StateMotion encodes the ordered evolution of explicit intra-trajectory kinematic states, while RelMotion captures state-conditioned local interactions through time-varying relative geometry and motion. The resulting semantic, depth, and motion cues are temporally refined in dedicated subspaces, concatenated, and jointly processed by a divided space-time Transformer. Finally, DINOv2 [20] semantic and video-level class tokens jointly guide trajectory relevance estimation and reweighting, with top- trajectory selection supporting trajectory-level instance matching alongside complementary frame-level prototype matching. Extensive experiments on five FSAR benchmarks demonstrate strong performance of GeoTRAM on the motion-centric Something-Something benchmarks while remaining competitive on more appearance-driven benchmarks, with a favorable accuracy–efficiency trade-off.
Trajectory Representations for Action Understanding. Motion trajectories have long provided explicit structure for action understanding. Classical methods characterize tracked motion through trajectory shape, displacement statistics, optical flow descriptors, and local spatio-temporal features [16, 23, 32, 33]. These methods often summarize motion using compact displacement- or histogram-based descriptors [6]. More recent approaches leverage 3D human pose and tracklets for action recognition [27], model absolute and relative body-point motion [10], or organize video representations into temporally coherent trajectory tokens [48, 49]. Meanwhile, modern point trackers enable reliable long-range correspondences [3, 4, 11, 12, 51], while 3D-aware tracking extends trajectories beyond the image plane [41, 42]. These advances improve the reliability and geometric richness of tracked trajectories. GeoTRAM focuses on how sparse trajectories can encode action dynamics for FSAR, explicitly representing each as an ordered 2.5D motion-state sequence and modeling time-varying, state conditioned local interactions among neighboring trajectories.
Trajectory-Based FSAR. Trajectory-based FSAR has re-cently emerged as a promising paradigm for exposing long-term motion under limited supervision. TATs [14] uses point trajectories [11] as temporal anchors for aligning self-supervised visual features [20] and constructs trajectory-aligned representations that are subsequently processed by spatio-temporal encoding. Trokens [15] further introduces semantic-aware trajectory initialization together with explicit intra- and inter-trajectory motion descriptors, including histogram-based modeling of intra-trajectory displacement and full relational modeling between trajectories. These methods establish sparse trajectories as effective motion carriers for FSAR, but trajectory dynamics are still represented either implicitly through aligned visual features or explicitly through histogram-based 2D displacement descriptors and all-pair inter-trajectory relations. GeoTRAM instead adopts a trajectory-state perspective, representing each relative 2.5D trajectory as an ordered sequence of explicit motion states while modeling local interactions through state-conditioned neighbor relations, with other components together supporting the GeoTRAM.
3. Methodology
We propose GeoTRAM, a geometry-aware trajectory state modeling framework for FSAR. Given an input video, GeoTRAM first obtains reliable tracking seeds through quality-filtered spectral sampling over DINOv2 patch features [20], and CoTracker [11] tracks them across frames. Monocular relative depth then augments the image-plane coordinates to construct 2.5D trajectories. GeoTRAM models their dynamics at two complementary levels: StateMotion encodes the ordered evolution of explicit intra-trajectory motion states, while RelMotion captures time-varying local interactions through relative geometry and state-conditioned neighbor aggregation. Semantic, depth, and motion cues are temporally refined in dedicated low-dimensional subspaces and concatenated to form multi-cue trajectory tokens, which are then processed by a divided space-time Transformer for joint spatio-temporal modeling. Finally, dual-CLS-guided trajectory relevance estimation supports reweighting and top- selection, followed by complementary frame-level prototype and trajectory-level instance matching for few-shot classification. Figure 1 presents the overall framework.
Problem Definition. Few-shot action recognition aims to recognize novel action classes from only a few labeled videos. We consider the standard few shot setting with disjoint meta-training and meta-testing action classes. Let and denote the meta-training and meta-testing sets, where . Each episode defines an N-way K-shot task, containing a support set S with K labeled videos from each of N classes and a query set Q whose videos are classified among the same N episode classes.
3.1. Quality-filtered Spectral Point Sampling
We construct reliable tracking seeds through quality-filtered spectral point sampling, which combines spectral clustering, cluster-quality filtering, and budgeted point allocation. Given DINOv2 [20] patch features , we perform per-frame spectral clustering using a kNN affinity graph and its normalized graph Laplacian. The resulting cluster centroids are associated across time to form video-level semantic prototypes and assign temporally consistent patch labels. For each semantic cluster, we select its peak frame, defined as the frame in which the cluster occupies the largest number of patches, and initialize its tracking seeds only in that frame. We suppress temporally unstable, isolated, and fragmented regions, while allocating more seeds to spatially compact clusters. Further details are provided in Supp.Sec. A. The resulting tracking seeds are , where is the image-plane coordinate of the -th seed and is its initialization frame. Given the input video , we track these seeds using CoTracker [11] , where denotes the predicted point trajectories and denotes their visibility masks. Each trajectory records the image-plane location of the -th point across frames.
3.2. Depth-aware 2.5D Trajectory Motion Modeling
2.5D Trajectory Construction. The raw trajectories contain only 2D image-plane coordinates and therefore omit depth-axis variation. For each frame, we estimate the monocular depth map using a frozen DPT-based depth-estimation head [28] trained on top of intermediate DINOv2 features [20]. We sample the estimated depth at each tracked location: . The sampled depths are min-max normalized per video to the same range as the normalized image coordinates, producing the depth-aware 2.5D trajectories:
StateMotion: intra-trajectory state modeling. We first model the motion state evolution of each individual trajectory. Let denote the visibility of trajectory at time . We compute visibility-aware differences for each lifted trajectory (Eq. 1):
The acceleration is computed by applying the same mechanism to the velocity. For each trajectory at each timestep, we construct a 13-dim motion state vector:
(3)

Figure 1. Overview of GeoTRAM. Reliable tracking seeds are obtained through quality-filtered spectral sampling over DINOv2 [20] patch features and tracked across frames by CoTracker [11]. Relative monocular depth augments the image-plane tracks into 2.5D trajectories, on which StateMotion models the ordered evolution of explicit 2.5D intra-trajectory motion states, while RelMotion captures state-conditioned local interactions among neighboring trajectories. Semantic, depth, and motion cues undergo cue-specific temporal refinement before concatenation and joint spatio-temporal modeling. Finally, dual-CLS-guided reweighting suppresses less action-relevant trajectories, followed by the complementary frame-level prototype matching and top- trajectory-level instance matching.
This vector consists of 2.5D position , velocity , acceleration , 2D/2.5D speed, depth-axis velocity, and visibility, where denotes the image-plane component of and denotes its depth component. These components provide complementary cues: position encodes the trajectory's instantaneous 2.5D location, velocity and acceleration characterize first- and second-order dynamics, 2D/2.5D speeds encode motion magnitude, explicitly highlights motion along the depth axis, and visibility distinguishes valid observations from occluded or unreliable ones.
We feed each trajectory-level motion state sequence into a lightweight temporal encoder , which consists of a two-layer temporal 1D convolutional block:
where the encoder is shared across all trajectories. The intra-trajectory motion features are then collected as
Thus, StateMotion preserves the ordered sequence of explicit motion states and encodes their depth-aware temporal evolution along each trajectory.
RelMotion: local motion relation modeling. RelMotion further models local interactions among neighboring trajectories. Instead of relating each trajectory to all others, we construct a local trajectory graph that restricts relation modeling to spatially nearby trajectories. For each lifted trajectory (Eq.1), we compute its visibility-weighted temporal 2.5D center by averaging valid trajectory positions over time. We then select its nearest neighbors based on Euclidean distance between these centers. The neighborhood graph is constructed once for each video, while relation modeling is performed at every frame.
For each center trajectory and neighbor , we construct a 12-dim relation state vector at each frame:
(6)
Here, and denote relative 2.5D position and velocity, where ; the terms and measure pairwise 2D and 2.5D distances, while captures whether the trajectories approach or separate; and its sign encode relative depth and depth ordering, and indicates joint visibility. Together, these cues describe local geometric configuration and relative motion between neighboring trajectories.
Next, since not all neighboring relations are equally informative for action recognition, and their importance should be conditioned on the current motion state of the center trajectory, we encode the relation state vector with an MLP and compute a center-conditioned neighbor attention score using the intra-trajectory motion feature produced by StateMotion:
where (Eqs. 4 and 5) denotes the intra-trajectory motion feature of trajectory at frame , and is a lightweight attention scoring network.
Invalid relations with are masked, and the remaining scores are normalized over with softmax to obtain the attention weights . If no valid neighbor exists at a frame, aggregated relation feature is set to zero.
The relation feature is then obtained by attentive aggregation over valid neighbor relations:
The shared projection head maps each to the motion dimension, and the projected features are collected as
Thus, RelMotion captures state-conditioned local interaction dynamics by explicitly modeling the relative motion, proximity changes, and depth relations of neighboring trajectories in the 2.5D trajectory space.
3.3. Multi-cue Spatio-Temporal Modeling
For each tracked point at frame , we construct a multi-cue trajectory token from semantic, depth, intra-motion, and inter-motion features. The RGB semantic feature map is aligned with the 2D trajectories via nearest-neighbor sampling [14] and projected to dimensions:
Then, the depth map in frame is sampled bilinearly with the local sampling grid centered on , producing . It is further mapped into -dim depth feature using a lightweight depth encoder:
In total, we obtain four cue-specific representations: , , , and . Each cue is processed by temporal self-attention and a feed-forward network, and the resulting features are concatenated along the channel dimension to form , where , preserving cue-specific information before joint spatio-temporal modeling.
The resulting multi-cue trajectory tokens are then processed by a one-block divided space-time Transformer with a learnable class token, following [14]. The visibility masks from CoTracker exclude invalid trajectory observations from attention. The Transformer outputs a global representation and trajectory embeddings
which are subsequently used for few-shot classification.
3.4. Action-guided Dual-Branch Matching
Dual-CLS-guided trajectory relevance. Beyond its use for auxiliary global supervision, the video-level class token is used as a global action representation to estimate trajectory relevance. The video-level class token summarizes global action context from the fused trajectory representation, while the DINOv2 CLS token representation provides complementary semantic appearance context. Since sparse point sampling may still retain background or less informative tracks, we fuse these two global representations to construct an action-semantic anchor for trajectory reweighting. Specifically, is obtained by temporally averaging the frame-wise DINOv2 CLS tokens. Together with the video-level class token from Sec. 3.3, we compute
where and are learnable projections into a shared C-dimensional space, and controls their relative contribution. The relevance of trajectory m is measured by
where is the visibility-weighted temporal average of the tokens for trajectory , producing . We convert into a soft relevance weight , where is a temperature parameter, and reweight each trajectory token as . The resulting representations form for subsequent dual-branch few-shot classification.
Frame-level prototype classification. Given , we adopt a dual-branch few-shot classifier. The frame-level branch first averages the reweighted trajectory tokens over trajectories to obtain . For each class, the frame representations of its support videos are further averaged to form a class prototype sequence. A query is then matched to each class prototype using the bidirectional set-matching metric introduced in prior works [34, 37] and widely adopted in subsequent FSAR methods [14, 15, 34, 35, 37], producing the frame-level logits .
Trajectory-native instance classification. The complementary trajectory branch preserves trajectory-level structure. For each video, we retain the top- fraction of trajectories ranked by , selecting trajectories. The selected trajectories are retained across all T frames. For a selected query trajectory and support trajectory , we compute a time-averaged trajectory similarity:
Bidirectional max-mean matching over the two trajectory sets then gives the instance score , where , and is defined symmetrically, with the sums and maxima taken over the selected trajectories. Class logits are obtained by class-wise score averaging. Finally, the two complementary branches are combined as
Training objective. Following prior FSAR methods [14, 15, 34, 35, 37], we apply an auxiliary meta-class classifier to the Transformer class token, . The model is trained using the sum of the auxiliary classification loss and the episodic classification loss:
4. Experiments
4.1. Datasets and few-shot setup
We evaluate our approach on standard FSAR benchmarks with few-shot splits: SSv2 (Something-Something) [7], Kinetics [2], UCF-101 [29], and HMDB-51 [13]. For SSv2, we follow the standard 64/12/24 class split for meta-training/validation/testing [1, 52]; SSv2-Small contains 100 videos per class, whereas SSv2-Full uses all available videos per class. We use the Kinetics splits from [9] and the UCF-101 and HMDB-51 splits from [39, 46], following prior FSAR protocols [14, 15, 35].
4.2. Implementation details
The DINOv2 ViT-B/14 backbone [20], its DPT-based [28] pretrained depth-estimation head, and CoTracker [11] are kept frozen, while the single-block space-time Transformer and remaining modules are optimized using Eq. 17. Point trajectories are precomputed offline with CoTracker, following baseline methods [14, 15], whereas depth maps are estimated online during training and evaluation. Following recent FSAR protocols [14, 15, 35], we uniformly sample frames and track points per video, train for 50 epochs using episodic meta-learning, and evaluate over 10,000 test episodes. We set the RelMotion neighborhood size , local depth patch size , CLS fusion coefficient , and trajectory retention ratio . To match the baseline works [14, 15] and the ViT-B/14 embedding dimension, we set , with , , and . We also introduce GeoTRAM-S, a compact variant designed for lower computational budget, with . All experiments are conducted on a single NVIDIA A100-40GB GPU. More implementation details are provided in Supp.Sec. C.1.
4.3. Comparison with State-of-the-Art Methods
As shown in Tabs. 1 and 2, GeoTRAM achieves its largest gains over the closest competitor, Trokens [15], on the motion-centric Something-Something benchmarks. It improves SSv2-Full by 5.6–7.4% across the 1/3/5-shot settings and SSv2-Small by 4.3/5.1/5.2%. Beyond Trokens, GeoTRAM also surpasses all other compared methods across every reported setting on both benchmarks, by 7.7–11.3% on SSv2-Full and 9.7–10.4% on SSv2-Small over the strongest non-Trokens results. Since Something-Something actions are largely distinguished by temporally ordered motion and hand-object interactions, these gains support the effectiveness of our geometry-aware trajectory state modeling framework for motion-sensitive few-shot recognition. Class-wise analysis in Supp.Sec. B.3 further shows that many of the largest gains occur for actions involving structured object motion and relative spatial relations.
GeoTRAM remains competitive on more appearance-driven benchmarks. It outperforms competitor Trokens in four of the five Kinetics settings, under the 3-/5-shot settings on UCF-101, and across all evaluated settings on HMDB-51. Under the challenging N-way protocol in Tab. 3, GeoTRAM consistently improves over Trokens on SSv2-Full from 5-way to 10-way, with gains of 4.4–7.4%. On Kinetics, it outperforms Trokens at 5- and 6-way but falls below it from 7-way onward, indicating that these gains do not persist as the number of classes increases. Overall, GeoTRAM is particularly effective for motion-centric and interaction-heavy action recognition while maintaining competitive performance on appearance-driven datasets.
4.4. Ablation studies
Note that we regard TATs [14] as a clean ablation baseline and Trokens [15] as the closest competitor for direct comparison. GFLOPs exclude the frozen backbone and offline
Table 1. Comparison of few-shot action accuracy (%) under 1–5 shot settings on SSv2-Full and Kinetics. Best results are in bold, second-best results are underlined. A more comprehensive version of the table is shown in the supplementary material (Supp.Sec.C.2).
| Method | Venue | SSv2-Full | Kinetics | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1-shot | 2-shot | 3-shot | 4-shot | 5-shot | 1-shot | 2-shot | 3-shot | 4-shot | 5-shot | ||
| OTAM [1] | CVPR'20 | 42.8 | 49.1 | 51.5 | 52.0 | 52.3 | 72.2 | 75.9 | 78.7 | 81.9 | 84.2 |
| TRX [22] | CVPR'21 | 42.0 | 53.1 | 57.6 | 61.1 | 64.6 | 63.6 | 76.2 | 81.8 | 83.4 | 85.2 |
| STRM [31] | CVPR'22 | 43.1 | 53.3 | 59.1 | 61.7 | 68.1 | 62.9 | 76.4 | 81.1 | 83.8 | 86.7 |
| HyRSM [34] | CVPR'22 | 54.3 | 62.2 | 65.1 | 67.9 | 69.0 | 73.7 | 80.0 | 83.5 | 84.6 | 86.1 |
| MoLo [35] | CVPR'23 | 56.6 | 62.3 | 67.0 | 68.5 | 70.6 | 74.0 | 80.4 | 83.7 | 84.7 | 85.6 |
| RFPL [40] | ICCV'23 | 47.0 | 54.6 | 58.3 | 60.3 | 61.0 | 74.6 | 80.0 | 82.1 | 84.1 | 86.8 |
| HyRSM++ [37] | PR'24 | 55.0 | 63.5 | 66.0 | 68.8 | 69.8 | 74.0 | 80.8 | 83.9 | 85.3 | 86.4 |
| TATs [14] | ECCV'24 | 57.7 | 67.1 | 70.0 | 70.6 | 74.6 | 81.9 | 86.5 | 89.9 | 90.6 | 91.1 |
| TEAM [17] | CVPR'25 | – | – | – | – | – | 83.3 | – | – | – | 92.9 |
| Trokens [15] | ICCV'25 | 61.5 | 69.9 | 73.8 | 75.9 | 76.7 | 82.9 | 87.7 | 89.9 | 90.8 | 91.2 |
| GeoTRAM | - | 68.9 | 76.5 | 79.9 | 81.9 | 82.3 | 83.1 | 87.2 | 90.2 | 91.0 | 91.8 |
Table 2. Comparison of few-shot action accuracy (%) under 1-, 3-, and 5-shot settings on SSv2-Small, UCF-101, and HMDB-51. Best results are in bold, second-best results are underlined. A more comprehensive version of the table is shown in the Supp.Sec.C.2.
| Method | Venue | SSv2-Small | UCF-101 | HMDB-51 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 1-shot | 3-shot | 5-shot | 1-shot | 3-shot | 5-shot | 1-shot | 3-shot | 5-shot | ||
| OTAM [1] | CVPR'20 | 36.4 | 45.9 | 48.0 | 79.9 | 87.0 | 88.9 | 54.5 | 65.7 | 68.0 |
| TRX [22] | CVPR'21 | 36.0 | 51.9 | 56.7 | 78.2 | 92.4 | 96.1 | 53.1 | 66.8 | 75.6 |
| STRM [31] | CVPR'22 | 37.1 | 49.2 | 55.3 | 80.5 | 92.7 | 96.9 | 52.3 | 67.4 | 77.3 |
| HyRSM [34] | CVPR'22 | 40.6 | 52.3 | 56.1 | 83.9 | 93.0 | 94.7 | 60.3 | 71.7 | 76.0 |
| MoLo [35] | CVPR'23 | 42.7 | 52.9 | 56.4 | 86.0 | 93.5 | 95.5 | 60.8 | 72.0 | 77.4 |
| HyRSM++ [37] | PR'24 | 42.8 | 52.4 | 58.0 | 85.8 | 93.5 | 95.9 | 61.5 | 72.7 | 76.4 |
| TATs [14] | ECCV'24 | 47.9 | 60.0 | 64.4 | 92.0 | 96.8 | 95.5 | 60.0 | 71.8 | 77.0 |
| TEAM [17] | CVPR'25 | 47.2 | – | 63.1 | 94.5 | – | 98.8 | 70.9 | – | 85.5 |
| Trokens [15] | ICCV'25 | 53.4 | 65.3 | 68.9 | 94.0 | 97.3 | 97.9 | 69.8 | 80.0 | 82.3 |
| GeoTRAM | - | 57.7 | 70.4 | 74.1 | 93.5 | 97.5 | 98.2 | 71.2 | 81.0 | 83.9 |
Table 3. Comparison of N-way 1-shot classification accuracy (N=5–10) on SSv2-Full and Kinetics datasets with recent representative FSAR methods. Best and second-best results are in bold and underlined, respectively.
| Method | SSv2-Full | Kinetics | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 5-way | 6-way | 7-way | 8-way | 9-way | 10-way | 5-way | 6-way | 7-way | 8-way | 9-way | 10-way | |
| OTAM [1] | 42.8 | 38.6 | 35.1 | 32.3 | 30.0 | 28.2 | 72.2 | 68.7 | 66.0 | 63.0 | 61.9 | 59.0 |
| TRX [22] | 42.0 | 41.5 | 36.1 | 33.6 | 32.0 | 30.3 | 63.6 | 59.4 | 56.7 | 54.6 | 53.2 | 51.1 |
| HyRSM [34] | 54.3 | 50.1 | 45.8 | 44.3 | 42.1 | 40.0 | 73.7 | 69.5 | 66.6 | 65.5 | 63.4 | 61.0 |
| MoLo [35] | 56.6 | 51.6 | 48.1 | 44.8 | 42.5 | 40.3 | 74.0 | 69.7 | 67.4 | 65.8 | 63.5 | 61.3 |
| TATs [14] | 57.7 | 55.7 | 52.5 | 50.0 | 47.0 | 45.8 | 81.9 | 79.0 | 76.1 | 75.2 | 72.2 | 72.0 |
| Trokens [15] | 61.5 | 59.1 | 56.5 | 54.6 | 51.4 | 49.1 | 82.9 | 80.2 | 78.5 | 76.8 | 75.5 | 73.3 |
| GeoTRAM | 68.9 | 65.0 | 61.3 | 59.4 | 55.8 | 54.1 | 83.1 | 80.5 | 77.5 | 75.9 | 74.3 | 71.8 |
point initialization and tracking, consistent with these two works, while including our online depth estimation. More experimental analyses are provided in the Supp.Sec.B.
Component ablations. Tab. 4 evaluates the GeoTRAM components on SSv2-Small and SSv2-Full, starting from the reproduced TATs with uniform sampling and appearance-only spatio-temporal modeling. Semantic-aware sampling improves several settings over uniform sampling but shows inconsistent gains, whereas our quality-filtered spectral sampling consistently improves all four settings by 2.61/1.97% on SSv2-Small and 1.64/0.93% on SSv2-Full, supporting more reliable trajectory initialization. StateMotion further provides gains of 2.84/2.34% and 2.93/1.87 %, while RelMotion adds another 0.84/0.93% and 1.51/0.92%, respectively, supporting the complementary roles of ordered intra-trajectory state evolution and local inter-trajectory interactions. Multi-cue spatio-temporal modeling (STM) produces additional improvements of 1.95/2.61% and 2.45/2.08%, demonstrating the benefit of preserving heterogeneous cues for joint spatio-temporal modeling. Finally, Dual-CLS-guided trajectory reweighting and dual-branch matching provide consistent further gains across both datasets. Overall, these results demonstrate the complementary contributions of the proposed components.
Motion-fusion interaction. Table 5 examines the interaction between GeoTRAM (StateMotion+RelMotion) mo-
Table 4. Component ablation of GeoTRAM on SSV2-Small and SSV2-Full. Starting from the reproduced TATs baseline (first row), we compare semantic-aware and spectral sampling before progressively adding the remaining GeoTRAM components.
| Semantic Sampling | Spectral Sampling | Motion State. | Modeling Rel. | MultiCue STM | Dual-CLS Reweight | Dual-branch Matching | SSv2-Small 1-shot | SSv2-Small 5-shot | SSv2-Full 1-shot | SSv2-Full 5-shot |
|---|---|---|---|---|---|---|---|---|---|---|
| x | x | x | x | x | x | x | 47.91 | 64.42 | 57.78 | 74.65 |
| ✓ | x | x | x | x | x | x | 49.93 | 65.71 | 58.62 | 74.26 |
| x | ✓ | x | x | x | x | x | 50.52 | 66.39 | 59.42 | 75.58 |
| x | ✓ | ✓ | x | x | x | x | 53.36 | 68.73 | 62.35 | 77.45 |
| x | ✓ | ✓ | ✓ | x | x | x | 54.20 | 69.66 | 63.86 | 78.37 |
| x | ✓ | ✓ | ✓ | ✓ | x | x | 56.15 | 72.27 | 66.31 | 80.45 |
| x | ✓ | ✓ | ✓ | ✓ | ✓ | x | 56.86 | 73.14 | 67.65 | 81.40 |
| x | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | 57.71 | 74.07 | 68.85 | 82.30 |
Table 5. Motion-fusion interaction on SSV2-Small. Only motion modeling and fusion strategy vary within the same GeoTRAM configuration. GeoTRAM-motion (State.+Rel.) produces modest gains under addition but larger gains with multi-cue fusion.
| Motion Modeling | Fusion | GFLOPs | 1-shot | 3-shot | 5-shot |
|---|---|---|---|---|---|
| Trokens-motion | Addition | 38 | 54.58 | 66.67 | 70.22 |
| GeoTRAM-motion | Addition | 26 | 55.42 | 67.82 | 71.50 |
| Trokens-motion | Multi-cue fusion | 42 | 56.31 | 68.70 | 72.58 |
| GeoTRAM-motion | Multi-cue fusion | 28 | 57.71 | 70.36 | 74.07 |
Table 6. Efficiency-accuracy comparison. We report 5-way accuracy (%). Param. refers to trainable parameters. GeoTRAM achieves a favorable accuracy-efficiency trade-off over prior trajectory-based FSAR methods.
| Method | Param. | GFLOPs | SSv2-Small | SSv2-Full | ||||
|---|---|---|---|---|---|---|---|---|
| 1-shot | 3-shot | 5-shot | 1-shot | 3-shot | 5-shot | |||
| TATs [14] | 11M | 21 | 47.90 | 60.00 | 64.40 | 57.70 | 70.00 | 74.60 |
| Trokens [15] | 17M | 35 | 53.40 | 65.30 | 68.90 | 61.50 | 73.80 | 76.70 |
| GeoTRAM | 13M | 28 | 57.71 | 70.36 | 74.07 | 68.85 | 79.89 | 82.30 |
| GeoTRAM-S | 8M | 17 | 57.04 | 68.40 | 72.78 | 68.75 | 79.26 | 83.01 |
tion modeling and feature fusion on SSV2-Small, with all other components fixed. Under addition, GeoTRAM-motion improves over Trokens-motion by 0.84/1.15/1.28% in the 1/3/5-shot settings, while the gains increase to 1.40/1.66/1.49% under multi-cue fusion. Conversely, multi-cue fusion consistently provides larger improvements with GeoTRAM-motion than with Trokens-motion. These results support the complementarity between trajectory-state motion modeling and cue-preserving fusion, with their combination performing best at low computational cost.
Efficiency-accuracy trade-off. Table 6 demonstrates a favorable accuracy-efficiency trade-off among trajectory-based methods. Compared with Trokens, GeoTRAM reduces trainable parameters from 17M to 13M and computation from 35 to 28 GFLOPs, while improving accuracy across all shot settings on both datasets. The compact GeoTRAM-S requires only 8M parameters and 17 GFLOPs, outperforms TATs and Trokens across all settings, and even remains close to the full model.
Qualitative analysis of point sampling. Figure 2 compares our sampling strategy with the semantic-aware baseline. Filtering temporally unstable and spatially fragmented regions while allocating more seeds to compact clusters

Figure 2. Qualitative comparison of Trokens' (left) and our (right) sampling. Ours reduces scattered background trajectories and concentrates on more spatially coherent action regions.
Table 7. Contribution of relative depth to GeoTRAM. "2D" removes all depth-related parts, while "2.5D" denotes the full model.
| Representation | GFLOPs | SSv2-Small | ||
|---|---|---|---|---|
| 1-shot | 3-shot | 5-shot | ||
| GeoTRAM-2D | 27 | 56.86 | 69.12 | 72.75 |
| GeoTRAM-2.5D | 28 | 57.71 | 70.36 | 74.07 |
produces fewer scattered background trajectories and more spatially coherent trajectory groups. Additional comparisons are provided in Supp.Sec. B.1.
Effect of relative depth. Table 7 compares GeoTRAM with a 2D variant that removes all depth-related cues. Introducing relative depth improves 1/3/5-shot accuracy by 0.85/1.24/1.32% with only 1 additional GFLOP. These gains show that depth-axis variation provides complementary geometric information beyond image-plane motion. Notably, even the 2D variant still outperforms Trokens by 3.46/3.82/3.85%, indicating that GeoTRAM's improvements do not rely solely on the additional depth cue.
5. Conclusion
We introduced GeoTRAM, a geometry-aware trajectory state modeling framework for few-shot action recognition. GeoTRAM constructs relatively reliable 2.5D trajectories and models ordered intra-trajectory state evolution and state-conditioned local relations, while preserving complementary semantic, depth, and motion cues in dedicated subspaces before joint spatio-temporal reasoning. Dual-CLS-guided trajectory reweighting reduces action-irrelevant trajectories and guides selection, while complementary frame-level prototype and trajectory-native instance matching exploit aggregated frame-level evidence and fine-grained trajectory structure for few-shot classification. Experiments on five FSAR benchmarks show strong performance on motion-centric SSV2 datasets, competitive results on appearance-driven benchmarks, and a favorable accuracy-efficiency trade-off, supporting structured geometric trajectory-state modeling for FSAR.
References
[1] Kaidi Cao, Jingwei Ji, Zhangjie Cao, Chien-Yi Chang, and Juan Carlos Niebles. Few-shot video classification via temporal alignment. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 10618–10627, 2020. 1, 2, 6, 7, 16
[2] João Carreira and Andrew Zisserman. Quo vadis, action recognition? a new model and the kinetics dataset. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 6299–6308, 2017. 6, 14
[3] Seokju Cho, Jiahui Huang, Jisu Nam, Honggyu An, Seungryong Kim, and Joon-Young Lee. Local all-pair correspondence for point tracking. In European Conference on Computer Vision (ECCV), pages 306–325. Springer, 2024. 2
[4] Carl Doersch, Yi Yang, Mel Vecerik, Dilara Gokay, Ankush Gupta, Yusuf Aytar, Joao Carreira, and Andrew Zisserman. Tapir: Tracking any point with per-frame initialization and temporal refinement. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 10061–10072. IEEE, 2023. 1, 2
[5] Yuqian Fu, Li Zhang, Junke Wang, Yanwei Fu, and Yu-Gang Jiang. Depth guided adaptive meta-fusion network for few-shot video recognition. In Proceedings of the 28th ACM International Conference on Multimedia, pages 1142–1151, 2020. 2
[6] Mohammad Abdelaziz Gowayyed, Marwan Torki, Mohamed Elsayed Hussein, and Motaz El-Saban. Histogram of oriented displacements (hod): Describing trajectories of human joints for action recognition. In Proceedings of the 23rd International Joint Conference on Artificial Intelligence (IJCAI), pages 1351–1357, 2013. 2
[7] Raghav Goyal, Samira Ebrahimi Kahou, Vincent Michalski, Joanna Materzyńska, Susanne Westphal, Heuna Kim, Valentin Haenel, Ingo Freund, Peter Yianilos, Moritz Mueller-Freitag, Florian Hoppe, Christian Thurau, Ingo Bax, and Roland Memisevic. The “something something” video database for learning and evaluating visual common sense. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 5842–5850, 2017. 6, 14
[8] Wenbo Huang, Jinghui Zhang, Guang Li, Lei Zhang, Shuoyuan Wang, Fang Dong, Jiahui Jin, Takahiro Ogawa, and Miki Haseyama. Manta: Enhancing mamba for few-shot action recognition of long sub-sequence. In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), pages 3751–3759, 2025. 2
[9] Yifei Huang, Lijin Yang, and Yoichi Sato. Compound prototype matching for few-shot action recognition. In European Conference on Computer Vision (ECCV), pages 351–368. Springer, 2022. 6, 16
[10] Zhanbo Huang, Xiaoming Liu, and Yu Kong. H-more: Learning human-centric motion representation for action analysis. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 22702–22713. IEEE, 2025. 2
[11] Nikita Karaev, Ignacio Rocco, Benjamin Graham, Natalia Neverova, Andrea Vedaldi, and Christian Rupprecht. Co-tracker: It is better to track together. In European Conference
on Computer Vision (ECCV), pages 18–35. Springer, 2024. 1, 2, 3, 4, 6, 13, 15
[12] Nikita Karaev, Yuri Makarov, Jianyuan Wang, Natalia Neverova, Andrea Vedaldi, and Christian Rupprecht. Co-tracker3: Simpler and better point tracking by pseudo-labelling real videos. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 6013–6022. IEEE, 2025. 1, 2
[13] Hildegard Kuehne, Hueihan Jhuang, Estibaliz Garrote, Tomaso Poggio, and Thomas Serre. Hmdb: a large video database for human motion recognition. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 2556–2563. IEEE, 2011. 6, 14
[14] Pulkit Kumar, Namitha Padmanabhan, Luke Luo, Sai Saketh Rambhatla, and Abhinav Shrivastava. Trajectory-aligned space-time tokens for few-shot action recognition. In European Conference on Computer Vision (ECCV), pages 474–493. Springer, 2024. 1, 3, 5, 6, 7, 8, 14, 15, 16
[15] Pulkit Kumar, Shuaiyi Huang, Matthew Walmer, Sai Saketh Rambhatla, and Abhinav Shrivastava. Trokens: Semantic-aware relational trajectory tokens for few-shot action recognition. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 13544–13556. IEEE, 2025. 1, 3, 6, 7, 8, 13, 14, 15, 16
[16] Ivan Laptev, Marcin Marszalek, Cordelia Schmid, and Benjamin Rozenfeld. Learning realistic human actions from movies. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 1–8. IEEE, 2008. 2
[17] SuBeen Lee, WonJun Moon, Hyun Seok Seong, and Jae-Pil Heo. Temporal alignment-free video matching for few-shot action recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 5412–5421, 2025. 1, 2, 7, 16
[18] Xin Liu, Huanle Zhang, Hamed Pirsiavash, and Xin Liu. Mastaf: A model-agnostic spatio-temporal attention fusion network for few-shot video classification. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 2508–2517, 2023. 2
[19] Khoi D. Nguyen, Quoc-Huy Tran, Khoi Nguyen, Binh-Son Hua, and Rang Nguyen. Inductive and transductive few-shot video classification via appearance and temporal alignments. In European Conference on Computer Vision (ECCV), pages 471–487. Springer, 2022. 16
[20] Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy V. Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, Mahmoud Assran, Nicolas Ballas, Wojciech Galuba, Russell Howes, Po-Yao Huang, Shang-Wen Li, Ishan Misra, Michael Rabbat, Vasu Sharma, Gabriel Synnaeve, Hu Xu, Hervé Jégou, Julien Mairal, Patrick Labatut, Armand Joulin, and Piotr Bojanowski. DINOv2: Learning robust visual features without supervision. Transactions on Machine Learning Research, 2024. 1, 2, 3, 4, 6, 12, 13, 15
[21] Wenjie Pei, Qizhong Tan, Guangming Lu, Jiandong Tian, and Jun Yu. D2st-adapter: Disentangled-and-deformable spatio-temporal adapter for few-shot action recognition. In
Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 11317–11326, 2025. 2
[22] Toby Perrett, Alessandro Masullo, Tilo Burghardt, Majid Mirmehdi, and Dima Damen. Temporal-relational crosstransformers for few-shot action recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 475–484, 2021. 1, 2, 7, 16
[23] Janez Perš, Vildana Sulić, Matej Kristan, Matej Peršē, Klemen Polanec, and Stanislav Kovačič. Histograms of optical flow for efficient representation of body motion. Pattern Recognition Letters, 31(11):1369–1376, 2010. 2
[24] Thinesh Thiyakesan Ponbagavathi, Constantin Seibold, and Alina Roitberg. Frame2freq: Spectral adapters for fine-grained video understanding. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 24073–24083, 2026. 2
[25] Hantao Qi, Yan Yan, Junlong Gao, and Hanzi Wang. Protect to adapt: Orthogonal subspace control with ranked negative-prompt curriculum for few-shot action recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 20160–20169, 2026.
[26] Zefeng Qian, Xincheng Yao, Yifei Huang, Chongyang Zhang, Jiangyong Ying, and Hong Sun. Beyond label semantics: Language-guided action anatomy for few-shot action recognition. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 10421–10431, 2025. 2
[27] Jathushan Rajasegaran, Georgios Pavlakos, Angjoo Kanazawa, Christoph Feichtenhofer, and Jitendra Malik. On the benefits of 3D pose and tracking for human action recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 640–649, 2023. 2
[28] René Ranftl, Alexey Bochkovskiy, and Vladlen Koltun. Vision transformers for dense prediction. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 12179–12188. IEEE, 2021. 3, 6, 15
[29] Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. Ucf101: A dataset of 101 human actions classes from videos in the wild. arXiv preprint arXiv:1212.0402, 2012. 6, 14
[30] Yutao Tang, Benjamin Béjar, and René Vidal. Semantic-aware video representation for few-shot action recognition. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 6458–6468, 2024. 2
[31] Anirudh Thatipelli, Sanath Narayan, Salman Khan, Rao Muhammad Anwer, Fahad Shahbaz Khan, and Bernard Ghanem. Spatio-temporal relation modeling for few-shot action recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 19958–19967, 2022. 2, 7, 16
[32] Heng Wang and Cordelia Schmid. Action recognition with improved trajectories. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), pages 3551–3558, 2013. 2
[33] Limin Wang, Yu Qiao, and Xiaoou Tang. Action recognition with trajectory-pooled deep-convolutional descriptors. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 4305–4314, 2015. 2
[34] Xiang Wang, Shiwei Zhang, Zhiwu Qing, Mingqian Tang, Zhengrong Zuo, Changxin Gao, Rong Jin, and Nong Sang. Hybrid relation guided set matching for few-shot action recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 19948–19957, 2022. 1, 2, 6, 7, 16
[35] Xiang Wang, Shiwei Zhang, Zhiwu Qing, Changxin Gao, Yingya Zhang, Deli Zhao, and Nong Sang. Molo: Motion-augmented long-short contrastive learning for few-shot action recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 18011–18021, 2023. 1, 2, 6, 7, 16
[36] Xiao Wang, Yan Yan, Hai-Miao Hu, Bo Li, and Hanzi Wang. Cross-modal contrastive learning network for few-shot action recognition. IEEE Transactions on Image Processing, 33:1257–1271, 2024. 16
[37] Xiang Wang, Shiwei Zhang, Zhiwu Qing, Zhengrong Zuo, Changxin Gao, Rong Jin, and Nong Sang. Hyrsm++: Hybrid relation guided temporal set matching for few-shot action recognition. Pattern Recognition, 147:110110, 2024. 2, 6, 7, 16
[38] Yuyang Wanyan, Xiaoshan Yang, Chaofan Chen, and Changsheng Xu. Active exploration of multimodal complementarity for few-shot action recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 6492–6502, 2023. 2
[39] Jiamin Wu, Tianzhu Zhang, Zhe Zhang, Feng Wu, and Yong-dong Zhang. Motion-modulated temporal fragment alignment network for few-shot action recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 9151–9160, 2022. 6, 16
[40] Haifeng Xia, Kai Li, Martin Renqiang Min, and Zhengming Ding. Few-shot video classification via representation fusion and promotion learning. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 19311–19320. IEEE, 2023. 7, 16
[41] Yuxi Xiao, Qianqian Wang, Shangzhan Zhang, Nan Xue, Sida Peng, Yujun Shen, and Xiaowei Zhou. Spatialtracker: Tracking any 2d pixels in 3d space. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 20406–20417. IEEE, 2024. 1, 2
[42] Yuxi Xiao, Jianyuan Wang, Nan Xue, Nikita Karaev, Yuri Makarov, Bingyi Kang, Xing Zhu, Hujun Bao, Yujun Shen, and Xiaowei Zhou. SpatialTrackerV2: Advancing 3D point tracking with explicit camera motion. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 6726–6737, 2025. 2
[43] Jiazheng Xing, Mengmeng Wang, Yong Liu, and Boyu Mu. Revisiting the spatial and temporal modeling for few-shot action recognition. In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), pages 3001–3009, 2023. 2, 16
[44] Jiazheng Xing, Mengmeng Wang, Yudi Ruan, Bofan Chen, Yaowei Guo, Boyu Mu, Guang Dai, Jingdong Wang, and
Yong Liu. Boosting few-shot action recognition with graph-guided hybrid matching. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 1740–1750, 2023. 2, 16
[45] Feng Yang, Jie Zhao, Fulin Luo, Anyong Qin, Tiecheng Song, Yue Zhao, Chenqiang Gao, and Junwei Han. Mpl: Match-guided prototype learning for few-shot action recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 34439–34448, 2026. 2
[46] Hongguang Zhang, Li Zhang, Xiaojuan Qi, Hongdong Li, Philip HS Torr, and Piotr Koniusz. Few-shot action recognition with permutation-invariant attention. In European Conference on Computer Vision (ECCV), pages 525–542. Springer, 2020. 1, 6
[47] Songyang Zhang, Jiale Zhou, and Xuming He. Learning implicit temporal alignment for few-shot video classification. In Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence (IJCAI), pages 1309–1315, 2021. 2
[48] Chenhao Zheng, Jieyu Zhang, Mohammadreza Salehi, Ziqi Gao, Vishnu Iyengar, Norimasa Kobori, Quan Kong, and Ranjay Krishna. One trajectory, one token: Grounded video tokenization via panoptic sub-object trajectory. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 23156–23166. IEEE, 2025. 2
[49] Chenhao Zheng, Jieyu Zhang, Jianing Zhang, Weikai Huang, Ashutosh Kumar, Quan Kong, Oncel Tuzel, Chun-Liang Li, and Ranjay Krishna. Trajtok: Learning trajectory tokens enhances video understanding. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 31207–31218, 2026. 2
[50] Sipeng Zheng, Shizhe Chen, and Qin Jin. Few-shot action recognition with hierarchical matching and contrastive learning. In European Conference on Computer Vision (ECCV), pages 297–313. Springer, 2022. 16
[51] Artem Zholus, Carl Doersch, Yi Yang, Skanda Koppula, Viorica Patraucean, Xu Owen He, Ignacio Rocco, Mehdi SM Sajjadi, Sarath Chandar, and Ross Goroshin. Tapnext: Tracking any point (tap) as next token prediction. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 9693–9703, 2025. 2
[52] Linchao Zhu and Yi Yang. Compound memory networks for few-shot video classification. In European Conference on Computer Vision (ECCV), pages 751–766, 2018. 2, 6
Geometry-Aware Trajectory State Modeling for Few-Shot Action Recognition
Supplementary Material
This document provides supplementary material for the main manuscript and is organized as follows. Section A details the quality-filtered spectral point-sampling procedure. Section B presents additional analyses, ablations, and visualizations. Section C provides further implementation and experimental details.
A. Quality-Filtered Spectral Point Sampling
This section provides the implementation details of our quality-filtered spectral point-sampling method. Given DINOv2 [20] patch features, we perform per-frame spectral partitioning, associate the resulting clusters across time through a video-level prototype bank, apply temporal and spatial quality filtering, select a peak frame for each retained cluster, and allocate the point budget for seed extraction. These steps together favor more semantically coherent, temporally stable, and spatially well-structured regions while reducing point initialization on unstable, fragmented, or isolated patches. The resulting point seeds are then used to initialize point tracking.
A.1. Spectral Semantic Partitioning
The goal of this stage is to partition each sampled frame into coherent semantic regions without imposing a fixed number of clusters across frames. Given a video, we uniformly select frames and extract dense DINOv2 features
where , indexes a patch on the grid, , and is the feature dimension. Let denote the -normalized descriptor of patch in frame .
For each frame, we construct a symmetric -nearest-neighbor graph in feature space. An undirected edge is retained if either patch is among the nearest neighbors of the other, with affinity
where . We then perform spectral clustering using the symmetric normalized graph Laplacian.
To adapt the partition to frame content, the number of clusters is selected independently for each frame using the eigengap criterion. Given the smallest eigenvalues , we set
Let contain the eigenvectors associated with the smallest eigenvalues. K-means is applied to its row-wise spectral embeddings to obtain the per-frame patch partition. Each resulting region is represented by the mean of its normalized DINOv2 patch descriptors. In this way, the semantic partition adapts its number of regions to the content of each frame rather than using a fixed cluster count.
A.2. Temporal Prototype Association
Because spectral clustering is performed independently in each frame, its cluster indices are not temporally aligned. We therefore construct a video-level prototype bank that associates semantically similar per-frame regions and provides consistent labels across the sampled frames.
The centroids from the first frame initialize the prototype bank. For a centroid from a subsequent frame, we associate it with the most similar existing prototype; a new prototype is introduced only when it is sufficiently different from all existing prototypes:
where denotes the current prototype bank. After the bank is constructed, every patch is assigned to its most similar video-level prototype by cosine similarity, yielding temporally aligned semantic labels .
A.3. Quality Filtering and Budget Allocation
Semantic consistency alone does not guarantee that a region provides reliable tracking seeds. We therefore apply temporal and spatial quality control before allocating the point budget. Temporal filtering is first performed across the sampled frames. For each surviving cluster, we then select a peak frame from its original temporally aligned support and apply spatial filtering to the corresponding peak-frame mask.
- Temporal filtering. We first remove temporally unstable regions and suppress isolated label changes.
- Temporal flicker. For cluster , let indicate its presence in frame . We discard the cluster if
- Isolated label flips. A solo flip occurs when the semantic label at the same patch-grid location changes between two consecutive sampled frames while none of its four spatial neighbors changes. Patch-grid locations accumulating more than such events are excluded from the corresponding peak-frame masks.
- Peak-frame initialization. Each surviving video-level cluster is initialized only in the frame where its semantic support is largest:
This avoids redundant initialization across time and places tracking seeds where the corresponding region has its largest spatial support.
- Spatial filtering. Spatial quality control is then applied to the selected peak-frame mask.
-
Small components and isolated islands. We reject clusters with fewer than patches in their selected peak frame. Using four-connectivity, we further reject a mask whose largest component contains fewer than two patches and remove singleton components whose minimum Euclidean patch-grid distance to the largest component exceeds .
-
Spatial compactness. For cluster support , we measure its occupancy relative to its bounding box:
A cluster is marked as compact if , and as scattered otherwise.
- Reliability-aware budget allocation. We guarantee each retained cluster a base allocation and assign the remaining point budget preferentially to spatially compact regions. Let denote the target video-level budget, the base allocation, and and the numbers of compact and scattered clusters, respectively. When , scattered clusters receive points, whereas compact clusters receive
Thus, the remaining capacity is assigned to the more spatially coherent regions. If the base allocation exceeds , both allocations are reduced by a common factor while retaining at least one point per cluster. Any residual budget after integer allocation is distributed among the retained clusters, ensuring exactly tracking seeds.
A.4. Seed Extraction
For each retained cluster, we upsample the filtered peak-frame mask to image resolution using nearest-neighbor interpolation and perform coordinate K-means over the pixels inside the mask. The nearest valid mask pixel to each centroid is selected as a tracking seed, ensuring spatial coverage while keeping all queries within the semantic region.
If fewer valid mask pixels than allocated seeds are available, sampling with replacement is used to meet the assigned allocation. We uniformly sample frames for the quality-filtered seed-initialization stage and extract DINOv2 [20] ViT-B/14 patch tokens from inputs (). The denser temporal sampling is used only for offline point initialization, providing broader temporal coverage for prototype association, temporal quality filtering, and peak-frame selection; the downstream GeoTRAM representation uses frames per video. We use , , , and . We set , , , patch units, and . The target point budget is seeds per video with base allocation . Each seed's initialization frame is mapped from the sampled clustering frames to the full-video timeline, and the resulting queries are passed to CoTracker [11] for bidirectional tracking.

Figure 3. Qualitative comparison between Trokens' semantic-aware point sampling and our quality-filtered spectral point sampling strategies. For each video, the semantic clusters and sampled point locations are visualized on the frame. Semantic-aware sampling often produces fragmented or redundant samples across multiple semantic regions, whereas our quality-filtered spectral sampling suppresses isolated and scattered regions and allocates more seeds to spatially coherent hand–object interaction regions.
B. Additional Analyses and Ablations
B.1. Point-Sampling Comparison with Baselines.
Figure 3 qualitatively compares the semantic-aware sampling of Trokens [15] with our quality-filtered spectral sampling strategy. For context, uniform sampling distributes


Figure 4. Accuracy–efficiency comparison on SSw2-Small and SSw2-Full under the 5-way 1-shot setting with different trajectory point counts. Bubble size denotes the number of tracked points. GeoTRAM consistently outperforms Trokens and TATs across the evaluated point counts, and its 32-point configuration already surpasses 256-point Trokens while reducing GFLOPs by 89%.

Figure 5. Class-wise accuracy comparison between Trokens and GeoTRAM on SSw2-Small. The top-10 gains (left) and three largest drops (right) are shown. Many of the largest gains occur for actions involving structured object motion and relative spatial relations.
points evenly over the entire frame and can therefore place many tracking seeds on static or action-irrelevant background regions. Semantic-aware sampling provides semantically informed initialization, but can still produce fragmented or redundant samples across multiple regions and retain seeds in spatially scattered areas. Our method instead applies explicit temporal and spatial quality filtering and allocates more seeds to spatially coherent hand–object interaction regions. As a result, the selected tracking points provide a more reliable foundation for constructing the trajectory evidence used throughout GeoTRAM, benefiting subsequent geometric motion modeling, multi-cue representation, and few-shot matching.
B.2. Effect of Trajectory Point Count
Figure 4 compares the accuracy–efficiency trade-off of GeoTRAM, Trokens [15], and TATs [14] under the 5-way 1-shot setting with different trajectory point counts. Across both SSw2-Small and SSw2-Full, GeoTRAM achieves the highest accuracy at every evaluated point count while maintaining a favorable accuracy–efficiency trade-off. Notably, with only 32 points, GeoTRAM achieves 55.17% and 66.95% accuracy on SSw2-Small and SSw2-Full, respectively, outperforming 256-point Trokens by 1.77 and 5.45% points while reducing GFLOPs from 35 to 3.8, correspond-
Table 8. Stability of GeoTRAM across three independently trained runs with different random seeds. Accuracy (%) is reported as mean ± standard deviation across runs.
| Datasets | 5-way 1-shot | 5-way 3-shot | 5-way 5-shot |
|---|---|---|---|
| SSv2-Full [7] | |||
| SSv2-Small [7] | |||
| Kinetics [2] | |||
| UCF-101 [29] | |||
| HMDB-51 [13] |
ing to an 89% reduction. These results show that GeoTRAM retains strong discriminative performance even under a substantially reduced trajectory budget, producing a markedly better accuracy–efficiency trade-off.
B.3. Class-wise analysis
Figure 5 shows that many of the largest gains occur for actions characterized by structured object motion and relative spatial relations, such as “Dropping something behind something” and “Holding something in front of something.” Smaller reductions are observed for a few classes, including “Approaching something with your camera” and “Closing something,” indicating that the improvements are not uniform across all action categories. This pattern is consistent with GeoTRAM’s design goal of modeling ordered motion dynamics and relative geometry for fine-grained action discrimination.
B.4. Variance over multiple training runs
Table 8 reports the performance of GeoTRAM across three independently trained runs with different random seeds. The results show relatively low running variation across all five dataset configurations and shot settings, with standard deviations ranging from 0.16 to 0.31%. These results indicate that the performance of GeoTRAM is stable across different training runs and is not too sensitive to a particular random seed.
C. Experiments
C.1. Additional training and evaluation details
For consistency with prior trajectory-based FSAR methods [14, 15], we largely follow their training protocol for optimization and episodic-training hyperparameters. We optimize all trainable modules with AdamW for 50 epochs on a single NVIDIA A100-40GB GPU using mixed precision. The learning rate is linearly warmed up from to the base learning rate over the first 5 epochs and is then decayed by a factor of 0.1 at epochs 20 and 40. The weight decay is 0.5. Random spatial cropping is the only data augmentation used during training.
For the default configuration, we uniformly sample frames per video and resize/crop them to , followed by ImageNet mean and standard-deviation normalization. We use tracking seeds per video. The seeds are mapped to the original video timeline and tracked offline with CoTracker [11]; the resulting trajectories are reused across episodes. Depth maps are estimated online using the frozen DPT-based depth-estimation head [28] applied to intermediate DINOv2 [20] features. A local depth patch with is sampled around each tracked point. DINOv2 ViT-B/14 [20], the DPT-based depth head, and CoTracker [11] remain frozen.
StateMotion uses a two-layer temporal 1D-convolutional encoder. Before multi-cue fusion, each of the four cue branches—semantic, intra-motion, inter-motion, and depth—is independently refined by a temporal self-attention block with 4 heads, an FFN with hidden size 512, and sinusoidal temporal positional encodings before concatenation. The fused tokens are processed by a single divided space-time Transformer block following the design of TATs [14]. StateMotion and RelMotion use an internal hidden size of 128 and dropout 0.1, and RelMotion uses nearest neighbors. Dual-CLS fusion uses . The dual branch classifier combines the frame-level prototype branch and the trajectory-level instance branch, with top- trajectory selection () applied only to the trajectory-level branch. We use for GeoTRAM and for the compact GeoTRAM-S variant, where .
Following standard FSAR protocols, both training and evaluation use 5-way episodic sampling. Each training episode contains support videos and 6 query videos per class, corresponding to videos in total. At evaluation, each episode contains support videos and one query video per class, corresponding to videos. We report 5-way -shot accuracy averaged over 10,000 test episodes. Unless otherwise stated, fixed random seeds are used for reproducibility, and the last-epoch checkpoint is used for evaluation.
C.2. Extended Comparison with Prior Work
Due to the page limit, the main paper reports comparisons with a representative subset of prior FSAR methods. Tables 9 and 10 extend the comparison to a broader set of representative FSAR approaches following standard benchmark splits and episodic evaluation protocols. We include both classical and recent methods to provide broader context, while TATs [14] and Trokens [15] are the most directly related trajectory-based competitors. The extended results remain consistent with the conclusions of the main paper.
Table 9. A more comprehensive comparison of few-shot action recognition accuracy (%) under 1–5 shot settings on SSV2-Full and Kinetics. Best results are in bold, second-best results are underlined.
| Method | Venue | SSv2-Full | Kinetics | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1-shot | 2-shot | 3-shot | 4-shot | 5-shot | 1-shot | 2-shot | 3-shot | 4-shot | 5-shot | ||
| OTAM [1] | CVPR'20 | 42.8 | 49.1 | 51.5 | 52.0 | 52.3 | 72.2 | 75.9 | 78.7 | 81.9 | 84.2 |
| TRX [22] | CVPR'21 | 42.0 | 53.1 | 57.6 | 61.1 | 64.6 | 63.6 | 76.2 | 81.8 | 83.4 | 85.2 |
| STRM [31] | CVPR'22 | 43.1 | 53.3 | 59.1 | 61.7 | 68.1 | 62.9 | 76.4 | 81.1 | 83.8 | 86.7 |
| MTFAN [39] | CVPR'22 | 45.7 | — | — | — | 60.4 | 74.6 | — | — | — | 87.4 |
| HyRSM [34] | CVPR'22 | 54.3 | 62.2 | 65.1 | 67.9 | 69.0 | 73.7 | 80.0 | 83.5 | 84.6 | 86.1 |
| HCL [50] | ECCV'22 | 47.3 | 54.5 | 59.0 | 62.4 | 64.9 | 73.7 | 79.1 | 82.4 | 84.0 | 85.8 |
| Nguyen et al. [19] | ECCV'22 | 43.8 | — | — | — | 61.1 | 74.3 | — | — | — | 87.4 |
| Huang et al. [9] | ECCV'22 | 49.3 | — | — | — | 66.7 | 73.3 | — | — | — | 86.4 |
| MoLo [35] | CVPR'23 | 56.6 | 62.3 | 67.0 | 68.5 | 70.6 | 74.0 | 80.4 | 83.7 | 84.7 | 85.6 |
| SloshNet[43] | AAAI'23 | 46.5 | — | — | — | 68.3 | 70.4 | — | — | — | 87.0 |
| GgHM [44] | ICCV'23 | 54.5 | — | — | — | 69.2 | 74.9 | — | — | — | 87.4 |
| RFPL [40] | ICCV'23 | 47.0 | 54.6 | 58.3 | 60.3 | 61.0 | 74.6 | 80.0 | 82.1 | 84.1 | 86.8 |
| CCLN [36] | TIP'24 | 46.0 | — | — | — | 61.3 | 75.8 | 82.1 | 85.0 | 86.1 | 87.5 |
| HyRSM++ [37] | PR'24 | 55.0 | 63.5 | 66.0 | 68.8 | 69.8 | 74.0 | 80.8 | 83.9 | 85.3 | 86.4 |
| TATs [14] | ECCV'24 | 57.7 | 67.1 | 70.0 | 70.6 | 74.6 | 81.9 | 86.5 | 89.9 | 90.6 | 91.1 |
| TEAM [17] | CVPR'25 | — | — | — | — | — | 83.3 | — | — | — | 92.9 |
| Trokens [15] | ICCV'25 | 61.5 | 69.9 | 73.8 | 75.9 | 76.7 | 82.9 | 87.7 | 89.9 | 90.8 | 91.2 |
| GeoTRAM | WACV'27 | 68.9 | 76.5 | 79.9 | 81.9 | 82.3 | 83.1 | 87.2 | 90.2 | 91.0 | 91.8 |
Table 10. A more comprehensive comparison of few-shot action recognition accuracy (%) under 1-, 3-, and 5-shot settings on SSV2-Small, UCF-101, and HMDB-51. Best results are in bold, second-best results are underlined.
| Method | Venue | SSv2-Small | UCF-101 | HMDB-51 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 1-shot | 3-shot | 5-shot | 1-shot | 3-shot | 5-shot | 1-shot | 3-shot | 5-shot | ||
| OTAM [1] | CVPR'20 | 36.4 | 45.9 | 48.0 | 79.9 | 87.0 | 88.9 | 54.5 | 65.7 | 68.0 |
| TRX [22] | CVPR'21 | 36.0 | 51.9 | 56.7 | 78.2 | 92.4 | 96.1 | 53.1 | 66.8 | 75.6 |
| STRM [31] | CVPR'22 | 37.1 | 49.2 | 55.3 | 80.5 | 92.7 | 96.9 | 52.3 | 67.4 | 77.3 |
| MTFAN [39] | CVPR'22 | — | — | — | 84.8 | — | 95.1 | — | — | — |
| HyRSM [34] | CVPR'22 | 40.6 | 52.3 | 56.1 | 83.9 | 93.0 | 94.7 | 60.3 | 71.7 | 76.0 |
| HCL [50] | ECCV'22 | 38.7 | 49.1 | 55.4 | 82.5 | 91.0 | 93.9 | 59.1 | 71.2 | 76.3 |
| Nguyen et al. [19] | ECCV'22 | — | — | — | — | — | — | 59.6 | — | 76.9 |
| Huang et al. [9] | ECCV'22 | 38.9 | — | 61.6 | 71.4 | — | 91.0 | 60.1 | — | 77.0 |
| MoLo [35] | CVPR'23 | 42.7 | 52.9 | 56.4 | 86.0 | 93.5 | 95.5 | 60.8 | 72.0 | 77.4 |
| GgHM [44] | ICCV'23 | — | — | — | 85.2 | — | 96.3 | 61.2 | — | 76.9 |
| RFPL [40] | ICCV'23 | — | — | — | 82.5 | 94.1 | 96.3 | — | — | — |
| CCLN [36] | TIP'24 | — | — | — | 86.9 | 94.2 | 96.1 | 65.1 | 76.2 | 78.8 |
| HyRSM++ [37] | PR'24 | 42.8 | 52.4 | 58.0 | 85.8 | 93.5 | 95.9 | 61.5 | 72.7 | 76.4 |
| TATs [14] | ECCV'24 | 47.9 | 60.0 | 64.4 | 92.0 | 96.8 | 95.5 | 60.0 | 71.8 | 77.0 |
| TEAM [17] | CVPR'25 | 47.2 | — | 63.1 | 94.5 | — | 98.8 | 70.9 | — | 85.5 |
| Trokens [15] | ICCV'25 | 53.4 | 65.3 | 68.9 | 94.0 | 97.3 | 97.9 | 69.8 | 80.0 | 82.3 |
| GeoTRAM | WACV'27 | 57.7 | 70.4 | 74.1 | 93.5 | 97.5 | 98.2 | 71.2 | 81.0 | 83.9 |