Hyperparameter Sensitivity Analysis and Optimization for General Mammal Pose Estimation with KITPose
Abstract
General mammals pose estimation remains challenging due to high inter-species variability and limited labeled data. While the KITPose framework achieves state-of-the-art performance on benchmarks like AP-10K and AnimalPose, its hyperparameter configuration was empirically fixed and not systematically studied. This paper presents the first comprehensive hyperparameter sensitivity analysis and optimization for KITPose. A two-stage experimental design is adopted: Stage 1 conducts single-variable controlled experiments across six key hyperparameters—transformer depth, attention head count, learning rate, optimizer, scheduler, and augmentation scale—on both AP-10K and AnimalPose. Results reveal that depth, head count, and learning rate are the most influential factors. Stage 2 applies Bayesian optimization via Optuna to jointly optimize these three parameters within empirically grounded ranges. Automated tuning confirms that shallow architectures (depth ≤ 2) with multi-head attention (≥ 2 heads) and moderate learning rates (1e-4–4e-4) consistently outperform deeper or under-parameterized variants. Notably, increasing depth to 4 leads to sharp performance degradation (>10% mAP drop), validating the original KITPose design.
References
- Rao, J., Xu, T., Song, X., Feng, Z. H., & Wu, X. J. (2022). Kitpose: Keypoint-interactive transformer for animal pose estimation., In Chinese Conference on Pattern Recognition and Computer Vision, Springer, (pp. 660–673).
- Xu, T., Rao, J., Song, X., et al. (2025) Learning structure-supporting dependencies via keypoint interactive transformer for general mammal pose estimation. International Journal of Computer Vision, 133: 3858–3876. https: //doi.org/10.1007/s11263-025-02355-0
- Cao, J., Tang, H., Fang, H. S., Shen, X., Lu, C., & Tai, Y. W. (2019). Cross-domain adaptation for animal pose estimation. In Proceedings of the IEEE/CVF international conference on computer vision (pp. 9498-9507).
- Sosa, J, Perry, S, Alty, J et al. (2022) Of Mice and Pose: 2D Mouse Pose Estimation from Unlabelled Video Frames using Synthetic Data. In: CV4Animals: Computer Vision for Animal Behavior Tracking and Modeling, 19 - 24 June 2022, New Orleans, United States.
- Yu, H., Xu, Y., Zhang, J., Zhao, W., Guan, Z., Tao, D. (2021) AP-10K: A benchmark for animal pose estimation in the wild. In: Proceedings of the NeurIPS 2021 Datasets and Benchmarks Track (Round 2). Available at: https: //github.com/AlexTheBad/AP10K
- Liao, L., Li, H., Shang, W., Ma, L. (2022) An empirical study of the impact of hyperparameter tuning and model optimization on the performance properties of deep neural networks. ACM Transactions on Software Engineering and Methodology, 31(3): Article 53, pp. 1–40. https: //doi.org/10.1145/3506695
- Bengio, Y. (2012) Practical recommendations for gradient-based training of deep architectures. arXiv preprint, arXiv: 1206.5533. https: //doi.org/10.48550/arXiv.1206.5533.
- Chen, F., Tsou, J.Y. (2022) Assessing the effects of convolutional neural network architectural factors on model performance for remote sensing image classification: An in-depth investigation. International Journal of Applied Earth Observation and Geoinformation, 112: 102865. https: //doi.org/10.1016/j.jag.2022.102865
- Hrycej, T., Bermeitinger, B., Handschuh, S. (2022) Number of attention heads vs. number of transformer-encoders in computer vision. In: Proceedings of the 14th International Joint Conference on Knowledge Discovery, Knowledge Engineering and Knowledge Management (IC3K 2022) – KDIR. SciTePress, pp. 315–321. https: //doi.org/10.5220/0011578000003335
- Yiqun Yao, Michalis Papakostas, Mihai Burzo, Mohamed Abouelenien, and Rada Mihalcea. 2021. MUSER: MUltimodal Stress Detection using Emotion Recognition as an Auxiliary Task In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 2714–2725, Online. Association for Computational Linguistics. Available at: https: //aclanthology.org/2021.naacl-main.216
- Li. M., Yumer, E., Ramanan, D. (2020) Budgeted training: Rethinking deep neural network training under resource constraints. arXiv preprint, arXiv: 1905.04753. https: //doi.org/10.48550/arXiv.1905.04753
- Wu, Y., Zand, M., Etemad, A., & Greenspan, M. (2022, October). Vote from the center: 6 dof pose estimation in rgb-d images by radial keypoint voting. In European Conference on Computer Vision (pp. 335-352). Cham: Springer Nature Switzerland.
- K. Zhang, R. Cai, C. Zhou and Y. Liu, et. al (2024) Debiased Contrastive Learning for Time-Series Representation Learning and Fault Detection, In: IEEE Transactions on Industrial Informatics, vol. 20, no. 5, pp. 7641-7653, May 2024, doi: 10.1109/TII.2024.3359409.
- Bischi, B., Binder, M., Lang, M., Pielok, T., Richter, J., Coors, S., Thomas, J., Ullmann, T., Becker, M., Boulesteix, A.-L., Deng, D., Lindauer, M. (2023) Hyperparameter optimization: Foundations, algorithms, best practices, and open challenges. WIREs Data Mining and Knowledge Discovery, 13(2): e1484. https: //doi.org/10.1002/widm.1484
- Van Luyen, T., Van Cuong, N. (2024) Metaheuristics-based hyperparameter tuning for convolutional neural networks. In: Thi Dieu Linh, N., Hoang, M.K., Dang, T.H. (Eds.), Ad Hoc Networks. ADHOCNETS 2023. Lecture Notes of the Institute for Computer Sciences, Social Informatics and Telecommunications Engineering, vol. 558. Springer, Cham. https: //doi.org/10.1007/978-3-031-55993-8_4