Action-JointsLLM: A Novel Transformer-Based Framework for Efficient Fine-Grained Action Detection
Abstract
1. Introduction
- We introduce Action-JointsLLM, a novel framework that applies pre-trained Transformer-based LLMs to visual-domain motion analysis, marking a new paradigm for fine-grained action detection.
- We design a Joint2Text module that converts joint sequences into natural language descriptions, thereby enabling LLMs to perform fine-grained action reasoning on cross-modal visual data.
- We incorporate an attn-pooling mechanism to dynamically weight the importance of different joints and frames within a sequence, enabling the framework to generate a unified representation that comprehensively reflects each joint and frame’s contribution for more effective perception of overall motion.
- Extensive experiments on a Parkinson’s disease benchmark (PD-WALK) demonstrate the effectiveness of our approach, achieving state-of-the-art performance and further show strong robustness across multiple LLM backbones.
2. Related Work
2.1. Large Language Models (LLMs)
2.2. Feature Processing in Transformer
2.3. Transformer-Based Action Detection
3. Research Scenario and Dataset
3.1. Research Scenario in Action-JointsLLM
3.2. Dataset in Action-JointsLLM
4. Method
4.1. Joint2Text
4.1.1. Sliding Sampling
4.1.2. Optimization
4.1.3. Reconstruction
4.1.4. Design Principles
- Joint Selection: We specifically excluded five head-related keypoints (eyes, ears, and nose) to eliminate high-frequency jitter often introduced by pose estimators. This directs the model’s focus to core body joints, which possess the most significant diagnostic value for identifying PD-related motor symptoms.
- Normalization: The normalization strategy aims to decouple action semantics from the camera viewpoint. By enforcing zero mean and unit variance per frame, the LLMs process relative motion patterns rather than absolute pixel coordinates, avoiding errors arising from changes in camera perspective.
- Textual Format Encoding: The encoding method used in reconstruction binds each joint coordinate with a corresponding joint name. This aligns numerical motion data with the LLM’s pre-trained knowledge of human anatomy, facilitating a more efficient reasoning process compared to processing raw numerical sequences.
4.2. Action-JointsLLM
4.2.1. Fine-Tuning LLMs
4.2.2. Classifier and Feature Processing
4.2.3. Attn-Pooling
5. Experimental Results and Discussion
5.1. Sliding Size (N) and Stride in Joint2Text
5.2. Ablation for Textual Prompt
5.3. Ablation for Attn-Pooling
5.4. Comparison with Prior Works
- The powerful comprehension and reasoning capabilities of LLMs enable a deeper interpretation of joint dynamics through textual descriptions.
- The introduction of attn-pooling allows the model to account for the varying importance of different joints over time.
5.5. Generalizability Analysis
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| PD | Parkinson’s Disease |
| CNN | Convolutional Neural Network |
| VisonT | Transformer-based visual models |
| ViT | Vision Transformer |
| ST-GCNs | Spatio-Temporal Graph Convolutional Networks |
| LLMs | Large language models |
| LoRA | Low-Rank Adaptation |
Appendix A. Experiments for VisionT
Appendix A.1. Experimental Setup
Appendix A.2. Experimental Results and Discussion
| Method | F1-Score | Accuracy (%) |
|---|---|---|
| vivit-b-16x2 | ||
| vivit-b-16x2-kinetics400 | ||
| vivit-b-16x2 + XATTN | ||
| vivit-b-16x2-kinetics400 + XATTN | ||
| vivit-b-16x2 + XATTN + unseen | ||
| vivit-b-16x2-kinetics400 + Xattn + unseen | ||
| Qwen2.5-VL + 3 layers ATTN |
References
- Karpathy, A.; Toderici, G.; Shetty, S.; Leung, T.; Sukthankar, R.; Li, F.-F. Large-scale video classification with convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2014; pp. 1725–1732. [Google Scholar]
- Yue-Hei Ng, J.; Hausknecht, M.; Vijayanarasimhan, S.; Vinyals, O.; Monga, R.; Toderici, G. Beyond short snippets: Deep networks for video classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2015; pp. 4694–4702. [Google Scholar]
- Simonyan, K.; Zisserman, A. Two-stream convolutional networks for action recognition in videos. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2014; Volume 27. [Google Scholar]
- Feichtenhofer, C.; Pinz, A.; Zisserman, A. Convolutional two-stream network fusion for video action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2016; pp. 1933–1941. [Google Scholar]
- Tran, D.; Bourdev, L.; Fergus, R.; Torresani, L.; Paluri, M. Learning spatiotemporal features with 3d convolutional networks. In Proceedings of the IEEE International Conference on Computer Vision; IEEE: New York, NY, USA, 2015; pp. 4489–4497. [Google Scholar]
- Carreira, J.; Zisserman, A. Quo vadis, action recognition? a new model and the kinetics dataset. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2017; pp. 6299–6308. [Google Scholar]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2017; Volume 30. [Google Scholar]
- Dosovitskiy, A.; Beyer, L.; Kolesnikov, A.; Weissenborn, D.; Zhai, X.; Unterthiner, T.; Dehghani, M.; Minderer, M.; Heigold, G.; Gelly, S.; et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv 2020, arXiv:2010.11929. [Google Scholar]
- Arnab, A.; Dehghani, M.; Heigold, G.; Sun, C.; Lučić, M.; Schmid, C. Vivit: A video vision transformer. In Proceedings of the IEEE/CVF International Conference on Computer Vision; IEEE: New York, NY, USA, 2021; pp. 6836–6846. [Google Scholar]
- Liu, H.; Li, C.; Wu, Q.; Lee, Y.J. Visual instruction tuning. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2023; Volume 36, pp. 34892–34916. [Google Scholar]
- Bordes, F.; Pang, R.Y.; Ajay, A.; Li, A.C.; Bardes, A.; Petryk, S.; Mañas, O.; Lin, Z.; Mahmoud, A.; Jayaraman, B.; et al. An introduction to vision-language modeling. arXiv 2024, arXiv:2405.17247. [Google Scholar] [CrossRef] [Scilit]
- Bai, J.; Bai, S.; Yang, S.; Wang, S.; Tan, S.; Wang, P.; Lin, J.; Zhou, C.; Zhou, J. Qwen-VL: A Versatile Vision-Language Model for Understanding, Localization, Text Reading, and Beyond. arXiv 2023, arXiv:2308.12966. [Google Scholar]
- Bai, S.; Chen, K.; Liu, X.; Wang, J.; Ge, W.; Song, S.; Dang, K.; Wang, P.; Wang, S.; Tang, J.; et al. Qwen2.5-vl technical report. arXiv 2025, arXiv:2502.13923. [Google Scholar] [CrossRef] [Scilit]
- Yan, S.; Xiong, Y.; Lin, D. Spatial temporal graph convolutional networks for skeleton-based action recognition. In Proceedings of the AAAI Conference on Artificial Intelligence; AAAI Press: Washington, DC, USA, 2018; Volume 32. [Google Scholar]
- He, Y.; Yang, T.; Yang, C.; Zhou, H. Integrated Equipment for Parkinson’s Disease Early Detection Using Graph Convolution Network. Electronics 2022, 11, 1154. [Google Scholar] [CrossRef] [Scilit]
- Li, M.; Chen, S.; Chen, X.; Zhang, Y.; Wang, Y.; Tian, Q. Actional-structural graph convolutional networks for skeleton-based action recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2019; pp. 3595–3603. [Google Scholar]
- Cao, Z.; Simon, T.; Wei, S.E.; Sheikh, Y. Realtime multi-person 2d pose estimation using part affinity fields. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2017; pp. 7291–7299. [Google Scholar]
- Sun, K.; Xiao, B.; Liu, D.; Wang, J. Deep high-resolution representation learning for human pose estimation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2019; pp. 5693–5703. [Google Scholar]
- Brown, T.; Mann, B.; Ryder, N.; Subbiah, M.; Kaplan, J.D.; Dhariwal, P.; Neelakantan, A.; Shyam, P.; Sastry, G.; Askell, A.; et al. Language models are few-shot learners. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2020; Volume 33, pp. 1877–1901. [Google Scholar]
- Achiam, J.; Adler, S.; Agarwal, S.; Ahmad, L.; Akkaya, I.; Aleman, F.L.; Almeida, D.; Altenschmidt, J.; Altman, S.; Anadkat, S.; et al. Gpt-4 technical report. arXiv 2023, arXiv:2303.08774. [Google Scholar] [CrossRef] [Scilit]
- Touvron, H.; Lavril, T.; Izacard, G.; Martinet, X.; Lachaux, M.A.; Lacroix, T.; Rozière, B.; Goyal, N.; Hambro, E.; Azhar, F.; et al. Llama: Open and efficient foundation language models. arXiv 2023, arXiv:2302.13971. [Google Scholar] [CrossRef] [Scilit]
- Bai, J.; Bai, S.; Chu, Y.; Cui, Z.; Dang, K.; Deng, X.; Fan, Y.; Ge, W.; Han, Y.; Huang, F.; et al. Qwen technical report. arXiv 2023, arXiv:2309.16609. [Google Scholar] [CrossRef] [Scilit]
- Touvron, H.; Martin, L.; Stone, K.; Albert, P.; Almahairi, A.; Babaei, Y.; Bashlykov, N.; Batra, S.; Bhargava, P.; Bhosale, S.; et al. Llama 2: Open foundation and fine-tuned chat models. arXiv 2023, arXiv:2307.09288. [Google Scholar] [CrossRef] [Scilit]
- Grattafiori, A.; Dubey, A.; Jauhri, A.; Pandey, A.; Kadian, A.; Al-Dahle, A.; Letman, A.; Mathur, A.; Schelten, A.; Vaughan, A.; et al. The llama 3 herd of models. arXiv 2024, arXiv:2407.21783. [Google Scholar] [CrossRef] [Scilit]
- Team, Q. Qwen2 technical report. arXiv 2024, arXiv:2412.15115. [Google Scholar]
- Meta, A. The Llama 4 Herd: The Beginning of a New Era of Natively Multimodal AI Innovation. 2025. Available online: https://ai.meta.com/blog/llama-4-multimodal-intelligence/ (accessed on 8 January 2026).
- Yang, A.; Li, A.; Yang, B.; Zhang, B.; Hui, B.; Zheng, B.; Yu, B.; Gao, C.; Huang, C.; Lv, C.; et al. Qwen3 technical report. arXiv 2025, arXiv:2505.09388. [Google Scholar] [CrossRef] [Scilit]
- Toma, A.; Lawler, P.R.; Ba, J.; Krishnan, R.G.; Rubin, B.B.; Wang, B. Clinical camel: An open-source expert-level medical language model with dialogue-based knowledge encoding. arXiv 2023, arXiv:2305.12031. [Google Scholar]
- Wang, G.; Yang, G.; Du, Z.; Fan, L.; Li, X. ClinicalGPT: Large language models finetuned with diverse medical data and comprehensive evaluation. arXiv 2023, arXiv:2306.09968. [Google Scholar] [CrossRef] [Scilit]
- Yu, H.; Cheng, T.; Cheng, Y.; Feng, R. Finemedlm-o1: Enhancing the medical reasoning ability of llm from supervised fine-tuning to test-time training. arXiv 2025, arXiv:2501.09213. [Google Scholar]
- Tu, T.; Schaekermann, M.; Palepu, A.; Saab, K.; Freyberg, J.; Tanno, R.; Wang, A.; Li, B.; Amin, M.; Cheng, Y.; et al. Towards conversational diagnostic artificial intelligence. Nature 2025, 642, 442–450. [Google Scholar] [CrossRef] [Scilit]
- Xia, H.; Yang, Z.; Wang, Y.; Tracy, R.; Zhao, Y.; Huang, D.; Chen, Z.; Zhu, Y.; Wang, Y.f.; Shen, W. Sportqa: A benchmark for sports understanding in large language models. arXiv 2024, arXiv:2402.15862. [Google Scholar] [CrossRef] [Scilit]
- Tang, Y.; Bi, J.; Xu, S.; Song, L.; Liang, S.; Wang, T.; Zhang, D.; An, J.; Lin, J.; Zhu, R.; et al. Video understanding with large language models: A survey. IEEE Trans. Circuits Syst. Video Technol. 2025. early access. [Google Scholar] [CrossRef] [Scilit]
- Xiao, G.; Tian, Y.; Chen, B.; Han, S.; Lewis, M. Efficient streaming language models with attention sinks. arXiv 2023, arXiv:2309.17453. [Google Scholar]
- Xiao, G.; Lin, J.; Seznec, M.; Wu, H.; Demouth, J.; Han, S. SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models. In Proceedings of the 40th International Conference on Machine Learning; JMLR.org: Norfolk, MA, USA, 2023. [Google Scholar]
- Devlin, J.; Chang, M.W.; Lee, K.; Toutanova, K. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers); Association for Computational Linguistics: Stroudsburg, PA, USA, 2019; pp. 4171–4186. [Google Scholar]
- Reimers, N.; Gurevych, I. Sentence-bert: Sentence embeddings using siamese bert-networks. arXiv 2019, arXiv:1908.10084. [Google Scholar] [CrossRef] [Scilit]
- Wang, M.; Xing, J.; Liu, Y. Actionclip: A new paradigm for video action recognition. arXiv 2021, arXiv:2109.08472. [Google Scholar] [CrossRef] [Scilit]
- Zhang, H.; Li, X.; Bing, L. Video-llama: An instruction-tuned audio–visual language model for video understanding. arXiv 2023, arXiv:2306.02858. [Google Scholar]
- Cheng, Z.; Leng, S.; Zhang, H.; Xin, Y.; Li, X.; Chen, G.; Zhu, Y.; Zhang, W.; Luo, Z.; Zhao, D.; et al. Videollama 2: Advancing spatial-temporal modeling and audio understanding in video-llms. arXiv 2024, arXiv:2406.07476. [Google Scholar]
- Zhu, W.; Ma, X.; Liu, Z.; Liu, L.; Wu, W.; Wang, Y. MotionBERT: A Unified Perspective on Learning Human Motion Representations. In Proceedings of the IEEE/CVF International Conference on Computer Vision; IEEE: New York, NY, USA, 2023. [Google Scholar]
- World Health Organization. Parkinson disease: A public health approach. Technical Brief; World Health Organization: Geneva, Switzerland, 2022.
- Lin, T.Y.; Maire, M.; Belongie, S.; Hays, J.; Perona, P.; Ramanan, D.; Dollár, P.; Zitnick, C.L. Microsoft COCO: Common objects in context. In Proceedings of the Computer Vision–ECCV 2014: 13th European Conference, Zurich, Switzerland, 6–12 September 2014; Proceedings, Part V 13; Springer: Cham, Switzerland, 2014; pp. 740–755. [Google Scholar]
- Hu, E.J.; Shen, Y.; Wallis, P.; Allen-Zhu, Z.; Li, Y.; Wang, S.; Wang, L.; Chen, W. LoRA: Low-Rank Adaptation of Large Language Models. In Proceedings of the International Conference on Learning Representations, Virtual, 25–29 April 2022. [Google Scholar]
- Chen, F.; Datta, G.; Kundu, S.; Beerel, P.A. Self-Attentive Pooling for Efficient Deep Learning. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV); IEEE: New York, NY, USA, 2023; pp. 3974–3983. [Google Scholar]
- Shahroudy, A.; Liu, J.; Ng, T.T.; Wang, G. NTU RGB+D: A large scale dataset for 3D human activity analysis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2016; pp. 1010–1019. [Google Scholar]
- Bolya, D.; Fu, C.Y.; Dai, X.; Zhang, P.; Feichtenhofer, C.; Hoffman, J. Token Merging: Your ViT But Faster. arXiv 2023, arXiv:2210.09461. [Google Scholar] [CrossRef] [Scilit]
- Girdhar, R.; Ramanan, D. Attentional pooling for action recognition. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2017; Volume 30. [Google Scholar]
- Ryoo, M.; Piergiovanni, A.; Arnab, A.; Dehghani, M.; Angelova, A. Tokenlearner: Adaptive space-time tokenization for videos. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2021; Volume 34, pp. 12786–12797. [Google Scholar]
- Rao, Y.; Zhao, W.; Liu, B.; Lu, J.; Zhou, J.; Hsieh, C.J. Dynamicvit: Efficient vision transformers with dynamic token sparsification. In Advances in Neural Information Processing Systems; Curran Associates, Inc.: Red Hook, NY, USA, 2021; Volume 34, pp. 13937–13949. [Google Scholar]
- Kim, K.; Lyu, S.; Mantri, S.; Dunn, T.W. TULIP: Multi-camera 3D Precision Assessment of Parkinson’s Disease. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 16–22 June 2024; IEEE: New York, NY, USA; pp. 22551–22562.
- Kay, W.; Carreira, J.; Simonyan, K.; Zhang, B.; Hillier, C.; Vijayanarasimhan, S.; Viola, F.; Green, T.; Back, T.; Natsev, P.; et al. The kinetics human action video dataset. arXiv 2017, arXiv:1705.06950. [Google Scholar] [CrossRef] [Scilit]






| Paradigm | Method | Fine-Grained Recognition | Semantic Understanding |
|---|---|---|---|
| CNN-based | ST-GCNs [14] | ✓ | ✗ |
| Transformer-based | ActionCLIP [38] | ✗ | ✓ |
| MotionBERT [41] | ✓ | ✗ | |
| Action-JointsLLM (Ours) | ✓ | ✓ |
| Backbone | Total Params | Trainable Params | Ratio (%) |
|---|---|---|---|
| Llama2-7B | B | M | |
| Llama3-8B | B | M | |
| Qwen2-7B | B | M | |
| Qwen3-8B | B | M |
| Backbone | N | Stride | F1-Score | Accuracy (%) |
|---|---|---|---|---|
| Llama2-7B | 24 | ✗ | ||
| N/2 | ||||
| 18 | ✗ | |||
| N/2 | ||||
| Llama3-8B | 24 | ✗ | ||
| N/2 | ||||
| 18 | ✗ | |||
| N/2 | ||||
| Qwen2-7B | 24 | ✗ | ||
| N/2 | ||||
| 18 | ✗ | |||
| N/2 | ||||
| Qwen3-8B | 24 | ✗ | ||
| N/2 | ||||
| 18 | ✗ | |||
| N/2 |
| Backbone | N | Stride | F1-Score | Accuracy (%) |
|---|---|---|---|---|
| Llama2-7B | 72 | ✗ | ||
| Llama3-8B | 72 | ✗ | ||
| Qwen2-7B | 72 | ✗ | ||
| Qwen3-8B | 72 | ✗ | ||
| Llama2-7B | 24 | ✗ | ||
| Llama3-8B | 24 | ✗ | ||
| Qwen2-7B | 24 | ✗ | ||
| Qwen3-8B | 24 | ✗ |
| Backbone | Attn-Pooling | N (Stride) | F1-Score | Accuracy (%) |
|---|---|---|---|---|
| Llama2-7B | ✗ (mean) | 24 (✗) | ||
| 18 (✗) | ||||
| ✓ | 24 (✗) | |||
| 18 (✗) | ||||
| Llama3-8B | ✗ (mean) | 24 (✗) | ||
| 18 (✗) | ||||
| ✓ | 24 (✗) | |||
| 18 (✗) |
| Name | Network and Method | F1-Score | Accuracy (%) |
|---|---|---|---|
| STGCN [14] | st-gcn | ||
| PD-WALK [15] | st-gcn + 2 connection branches | ||
| Llama2-7B + 18/stride + attn-pooling | |||
| Llama3-8B + 18/stride + attn-pooling | |||
| Action-JointsLLM (ours) | Qwen2-7B + 18/stride + attn-pooling | ||
| Qwen3-8B + 24/stride + attn-pooling |
| Network and Method | Dataset | F1-Score | Accuracy (%) |
|---|---|---|---|
| Llama3-8B + 18/stride + attn-pooling | PD-WALK | ||
| Llama3-8B + 18/stride + attn-pooling | NTU RGB+D (10-class) |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Qiu, Y.; Song, C.; Zhou, H.; Ying, Y. Action-JointsLLM: A Novel Transformer-Based Framework for Efficient Fine-Grained Action Detection. Appl. Sci. 2026, 16, 802. https://doi.org/10.3390/app16020802
Qiu Y, Song C, Zhou H, Ying Y. Action-JointsLLM: A Novel Transformer-Based Framework for Efficient Fine-Grained Action Detection. Applied Sciences. 2026; 16(2):802. https://doi.org/10.3390/app16020802
Chicago/Turabian StyleQiu, Yuke, Chenyu Song, Hong Zhou, and Yangwei Ying. 2026. "Action-JointsLLM: A Novel Transformer-Based Framework for Efficient Fine-Grained Action Detection" Applied Sciences 16, no. 2: 802. https://doi.org/10.3390/app16020802
APA StyleQiu, Y., Song, C., Zhou, H., & Ying, Y. (2026). Action-JointsLLM: A Novel Transformer-Based Framework for Efficient Fine-Grained Action Detection. Applied Sciences, 16(2), 802. https://doi.org/10.3390/app16020802

