LLMs are Good Action Recognizers

Haoxuan Qu, Yujun Cai, Jun Liu

TL;DR

The researchers introduce LLM-AR, a framework that repurposes Large Language Models (LLMs) as high-performance human action recognizers. By projecting raw skeleton sequences into "action sentences" that mimic the statistical properties of human language, they leverage the vast implicit knowledge of LLMs to achieve state-of-the-art results across multiple benchmarks, including impressive performance on unseen activity classes.

What Problem Does This Paper Address?

Skeleton-based action recognition—identifying what a person is doing based on a sequence of 3D joint coordinates—is a core challenge in computer vision. While Graph Convolutional Networks (GCNs) and Transformers are effective at capturing spatial-temporal patterns, they often lack the "common sense" or rich world knowledge required to distinguish subtle, semantically complex behaviors.

Large Language Models (LLMs) like LLaMA possess this knowledge, having been trained on massive corpora describing human behavior. However, there is a fundamental modality gap: skeleton data is a continuous numerical signal, while LLMs expect discrete text. Simply fine-tuning an LLM on raw signals often leads to "catastrophic forgetting," where the model loses the very world knowledge that makes it useful. LLM-AR aims to bridge this gap by making skeleton data "look" like language to the LLM.

Methods

The core of the LLM-AR framework is a Linguistic Projection process that transforms skeleton sequences into "action sentences."

  1. Action-based VQ-VAE: The authors use a Vector Quantized Variational Autoencoder (VQ-VAE) to discretize continuous skeleton features into a sequence of discrete tokens.
  2. Hyperbolic Codebook: Recognizing that the human skeleton is inherently tree-like (hierarchical), the researchers implement the VQ-VAE codebook in hyperbolic space (specifically the Poincaré ball model). This geometry is mathematically superior to standard Euclidean space for representing hierarchical structures.
  3. Human Inductive Biases: To ensure the resulting token sequences are "friendly" to the LLM, they regularize the learning process with two linguistic constraints:
  4. Zipf’s Law: They force the token usage frequency to follow the power-law distribution typical of human languages.
  5. Context-Sensitivity: They encourage the model to use correlated pairs of tokens, mimicking the structure of real sentences.
  6. LLM Integration: They use LLaMA-13B as the backbone. To preserve its pre-trained knowledge, they keep the original weights frozen and use Low-Rank Adaptation (LoRA) to teach the model how to interpret the new "action sentences."
Figure 1. Overview of our proposed LLM-AR framework. In our framework, given an input action signal, we first perform a linguistic projection process to acquire the corresponding “action sentence”. We then perform action recognition via the large lan- guage model with its pre-trained weights untouched to keep its pre-learned rich knowledge.

Datasets

The framework was evaluated on four major benchmarks:

  • NTU RGB+D & NTU RGB+D 120: The industry standards for large-scale skeleton-based action recognition.
  • Toyota Smarthome: A dataset focused on real-world daily living activities in a home environment.
  • UAV-Human: A large-scale dataset captured by drones, featuring diverse viewpoints and complex backgrounds.

Key Insights and Ideas

  • Language as a Latent Space: The most striking idea is that human action can be treated as a "foreign language." By forcing skeleton tokens to follow linguistic laws (like Zipf's Law), the model creates a latent space that the LLM can navigate naturally.
  • Geometry Matters: The shift to a hyperbolic codebook (illustrated in Figure 2) highlights that the mathematical "shape" of our data representation should match the physical "shape" of the subject—in this case, the hierarchical human frame.
  • Knowledge Preservation: The paper demonstrates that keeping the LLM's weights frozen is crucial. A "fully tuned" LLM performs significantly worse on unseen actions because it loses its general reasoning capabilities during the tuning process.
Detailed view of the VQ-VAE with the hyperbolic codebook.

Key Results

LLM-AR achieves State-of-the-Art (SOTA) performance across the board:

  • NTU RGB+D 120: Reached 91.5% accuracy on the Cross-Setup (X-Set) protocol, outperforming specialized models like SkeleTR and DSTformer.
  • Toyota Smarthome: Achieved 67.0% on Cross-Subject, a significant jump over previous methods like ML-STGNet (64.6%).
  • Zero-Shot/Unseen Activities: In a test where the model had to recognize actions it was never trained on, LLM-AR achieved 62.4% accuracy, whereas a fully fine-tuned version collapsed to 37.7%. This proves the model is actually "reasoning" using the LLM's internal knowledge.
Table 1. Performance comparison on the NTU RGB+D and NTU RGB+D 120 datasets.

Limitations and Future Work

  • Computational Overhead: Using a 13-billion parameter model for action recognition is computationally expensive compared to lightweight GCNs, potentially limiting real-time applications on edge devices.
  • Inference Speed: The paper does not explicitly discuss the latency of the linguistic projection plus LLM inference pipeline.
  • Future Directions: The authors suggest that this "linguistic projection" approach could be extended to other non-textual modalities, potentially turning LLMs into universal recognizers for various sensor data.

Summary updated

BibTeX
@misc{qu2024llms,
  author = {Haoxuan Qu and Yujun Cai and Jun Liu},
  title = {{LLMs are Good Action Recognizers}},
  year = {2024},
  eprint = {2404.00532},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.00532},
}
Figure