Abstract
Multimodal Large Language Models (MLLMs) have demonstrated remarkable capabilities in general image understanding, yet they frequently struggle with fine-grained tasks such as precise keypoint localization. This paper introduces KptLLM, a unified framework designed to address Semantic Keypoint Comprehension (SKC). By employing a novel "identify-then-detect" (ItD) strategy, KptLLM leverages the reasoning power of a 7B-parameter LLM to bridge the gap between high-level semantic recognition and pixel-level coordinate regression. Evaluated on the MP-100 and AP-10K benchmarks, KptLLM achieves state-of-the-art results in category-agnostic and open-vocabulary keypoint detection, demonstrating the synergy between linguistic reasoning and visual localization.
Introduction
While MLLMs like LLaVA excel at describing complex scenes or answering general queries, they often falter when tasked with identifying fine-grained details. Specifically, they struggle with keypoint comprehension—the ability to simultaneously understand what a specific point on an object represents (e.g., "the lateral aspect of the left ear") and where it is located in the image space.
Existing keypoint detectors are largely "closed-set," restricted to predefined categories like humans or specific animals. While newer category-agnostic models can identify points on novel objects using reference images, they often lack deep semantic understanding. This leads to frequent errors in visually ambiguous scenarios, such as misidentifying symmetric body parts. To address these challenges, we propose the task of Semantic Keypoint Comprehension (SKC) and introduce KptLLM as a solution that treats keypoint detection as a structured reasoning process.
Methodology
The core innovation of KptLLM is the Identify-then-Detect (ItD) strategy, which mimics human cognitive processes: first identifying the semantic identity of a point and then determining its precise spatial coordinates.
Architectural Design
KptLLM is built upon a unified framework consisting of five primary components:
- Visual Encoder: Utilizes a CLIP-ViT-L to extract features from both a "query" image (the target) and a "support" image (the reference).
- Prompt Encoder: Converts 2D coordinates from the support image into embeddings via sine-cosine position encoding and a Multi-Layer Perceptron (MLP).
- Prompt Feature Extractor: A two-layer transformer employing cross-attention. It uses the prompt embedding as a "query" to extract specific visual features from the support image, ensuring the model focuses on the precise area of interest.
- LLM Backbone: A pre-trained Vicuna-7B (based on Llama-2). The model is fine-tuned using LoRA (Low-Rank Adaptation) to preserve general knowledge while specializing in keypoint tasks.
- Output Heads: The model generates text to describe the keypoint and utilizes a specialized
<keypoint>token. The hidden state of this token is passed through a dedicated Feed-Forward Network (FFN) to regress the final 2D coordinates.
Experimental Setup
The model was rigorously evaluated on two primary benchmarks:
- MP-100: A large-scale dataset for category-agnostic pose estimation covering 100 object categories. This was used to assess Keypoint Semantic Understanding and Visual Prompt-based Detection.
- AP-10K: An animal pose dataset featuring 54 species. This benchmark served to evaluate Textual Prompt-based Detection (open-vocabulary), testing the model's ability to generalize to unseen species based solely on textual descriptions.
Results and Analysis
KptLLM established new state-of-the-art (SOTA) benchmarks across multiple tasks:
- Semantic Accuracy: On the MP-100 dataset, KptLLM achieved 83% accuracy in naming keypoints. In contrast, the base LLaVA model (without fine-tuning) achieved only 3%, highlighting the effectiveness of the SKC training.
- Visual Prompt Detection: In 1-shot scenarios, KptLLM achieved a PCK (Probability of Correct Keypoint) of 87.10%, surpassing the previous SOTA, CapeFormer (85.31%).
- Textual Prompt Detection: On the AP-10K dataset, KptLLM demonstrated exceptional generalization. In cross-species testing (training on one animal order and testing on another), it achieved 70.2 AP, a significant improvement over the previous best model, CLAMP, which scored 48.4 AP.
The Role of Semantics in Localization
A key finding of this research is that semantic knowledge directly improves localization. By requiring the LLM to output a text description before coordinates, the model performs a visual "Chain-of-Thought." This process significantly reduces errors on mirror-symmetric parts (e.g., distinguishing left vs. right limbs) by leveraging the LLM's internal anatomical common sense.
Limitations and Future Work
Despite its performance, KptLLM faces certain challenges. As a 7B-parameter model, it possesses higher computational overhead compared to specialized, smaller detectors, making it less suitable for real-time edge applications. Additionally, while the <keypoint> token strategy is effective, regressing numerical values through latent space is an evolving technique; further refinement could improve sub-pixel precision. Future work will focus on scaling the model with even larger, more diverse datasets like UniKPT to further enhance zero-shot capabilities.
Conclusion
KptLLM demonstrates that Large Language Models can be effectively adapted for fine-grained visual tasks. By integrating semantic reasoning with coordinate regression, the model overcomes the limitations of traditional category-agnostic detectors, providing a more robust and generalized approach to keypoint comprehension.
Summary updated