Abstract
Skeleton-in-Context (SiC) is the first framework to introduce In-Context Learning (ICL) to 3D human skeleton sequence modeling. By leveraging a novel prompting strategy, a single model can perform diverse tasks—such as motion prediction, pose estimation, and joint completion—without task-specific heads or fine-tuning. SiC addresses the challenge of temporal redundancy in skeleton data through a prompt-based analogy system and a Task-Unified Prompt (TUP) module, enabling robust generalization to unseen tasks like "motion-in-between."
Introduction: The Challenge of Skeleton ICL
In-context learning has transformed fields like NLP and 2D computer vision, enabling models to "figure out" tasks from a few examples. However, applying this to 3D skeleton sequences is difficult due to inter-frame similarity. In human motion data, adjacent frames are highly redundant. Standard "Masked Modeling" approaches often fail because the model learns to simply interpolate between nearby frames rather than understanding the underlying task geometry or physics. This leads to the "shrinking" skeleton problem or static, lifeless predictions during inference.
Methods: Skeleton-in-Context (SiC) Framework
The SiC framework moves away from simple masking toward a prompt-based analogy system that uses a unified $(F, J, 3)$ tensor format for all tasks.
1. Task-Guided Prompt (TGP)
The model is provided with an example input-target pair (e.g., a 2D pose and its corresponding 3D ground truth). This acts as a visual "instruction," telling the model to apply the demonstrated transformation to the query input.
2. Task-Unified Prompt (TUP)
To prevent the model from falling into the "interpolation trap," the authors introduced TUP, a task-agnostic module providing a global spatial reference:
- Static TUP: Uses a learned "mean pose" from the entire training set.
- Dynamic TUP: Adaptively learns a "pseudo-pose" that helps the model distinguish between different task distributions (e.g., future prediction vs. joint completion).
3. Unified Architecture
A two-stream Transformer processes the prompt and the query in parallel. It aggregates information through an attention-based mechanism to ensure the query "perceives" the task context demonstrated in the prompt.
Datasets and Benchmarking
The authors established a new 3D human in-context learning benchmark using three primary datasets:
- Human3.6M (H3.6M): For 3D pose estimation and a newly proposed "future pose estimation" task.
- AMASS: A large-scale motion capture dataset used for motion prediction.
- 3DPW (3D Pose in the Wild): Used for evaluating joint completion.
Key Insights and Results
- Analogy is Better than Masking: For sequential data with high temporal redundancy, showing the model a complete "before and after" example (TGP) is significantly more effective than asking it to fill in blanks.
- Mitigating the "Shrinking" Problem: The TUP module effectively provides a stable spatial reference, preventing the model from producing increasingly smaller skeletons over time—a common failure mode in skeleton ICL.
- State-of-the-Art Multi-Tasking: SiC outperforms existing multi-task models like MotionBERT and UniHCP. In motion prediction on the AMASS dataset, SiC achieved an average MPJPE (Mean Per Joint Position Error) of 24.4mm, compared to 28.4mm for a multi-task version of MotionBERT.
- Zero-Shot Generalization: Because the model learns the relationship between input and output in the prompt, it can perform tasks it never saw during training, such as "motion-in-between," by following the prompt's logic.
Limitations and Future Work
Performance is currently dependent on prompt selection; "Prompt Engineering" for skeletons remains an open research question. Additionally, the two-stream architecture increases computational overhead compared to single-sequence models. Future work aims to expand this framework to complex human-object interactions and multi-person scenarios.
Summary updated