TL;DR
PromptPath introduces a paradigm shift for In-Context Learning (ICL) by moving from shallow, representation-level prompt conditioning to dynamic, computation-level adaptation. By utilizing a prompt-driven routing mechanism to dynamically compose lightweight, low-rank experts, the framework reconfigures the model's internal computational pathways on the fly, delivering state-of-the-art performance and enhanced interpretability across both 2D and 3D visual tasks.
What Problem Does This Paper Address?
In-context learning (ICL) allows large pre-trained models to execute new tasks simply by conditioning on a few "input-output" examples (prompts) without updating any parameters. However, conventional visual ICL methods suffer from shallow task adaptation. They treat prompts merely as contextual cues injected into early layers, altering the feature representations while leaving the model's underlying computational pathways entirely fixed.
As a result, the task-specific influence of the prompt tends to fade in deeper layers of the network, limiting the model's capacity for deep task specialization and making the internal inference process difficult to interpret or control.
Methods
To overcome this limitation, the authors present PromptPath, a framework that dynamically alters the model's internal routing based on the provided prompt. The architecture leaves the pre-trained backbone completely frozen and introduces two lightweight, trainable components:
- Prompt-Driven Routing (PDR) Module: This module uses a Perceiver-style attention mechanism to extract high-level task semantics from the prompt pairs. It maps these semantics into a sequence of task tokens that act as routing signals.
- Low-Rank Expert Library (LoRE): Instantiated across the decoder's Transformer blocks, this library contains a set of modular, low-rank experts structured similarly to LoRA (Low-Rank Adaptation).
During inference, the task tokens dynamically generate routing weights ($\alpha$) to linearly mix and activate specific experts from the library. This composed expert matrix ($\Delta W$) is then injected directly into the attention projections ($Q/K/V/O$) of the decoder, effectively reshaping the computational pathway for that specific query.
Datasets
The authors evaluated PromptPath across both 3D point cloud and 2D image recognition benchmarks:
- 3D Point Clouds: The ShapeNet In-Context Dataset (derived from ShapeNet and ShapeNetPart), spanning four distinct tasks: reconstruction, denoising, registration, and part segmentation.
- 2D Images: Pascal-5i and COCO-5i (for few-shot and cross-dataset foreground segmentation), Pascal VOC 2012 (for single-object detection), and ImageNet-1K (for image colorization).
Key Insights and Ideas
- Pathway Modulation > Feature Conditioning: Modifying how a model computes rather than just what it represents allows for much stronger task specialization.
- Task-Discriminative Routing: Quantitative analysis of the routing vectors revealed high within-task similarity and low cross-task similarity. This proves that the PDR module genuinely learns to distinguish between different task semantics rather than outputting arbitrary weights.
- The Importance of Negative Activation: Unlike traditional Mixture-of-Experts (MoE) setups that only select the top-k positive experts, PromptPath utilizes a "Dual" activation strategy. Retaining experts with negative routing weights provides essential counter-modulation signals that boost overall performance.
Key Results
PromptPath consistently outperformed state-of-the-art visual ICL baselines in both 3D and 2D domains with minimal computational overhead:
- 3D Vision Tasks: Built on top of the MICAS baseline, PromptPath improved 3D Part Segmentation by up to 2.7 mIoU points and significantly reduced the Chamfer Distance (CD) loss across reconstruction, denoising, and registration tasks.
- 2D Vision Tasks: Built on the Condenser baseline, it boosted foreground segmentation and object detection mIoU by 2.03 and 1.87 points, respectively, while reducing Mean Squared Error (MSE) in colorization.
- Cross-Task Generalization: When trained on reconstruction, denoising, and registration but evaluated on the unseen task of part segmentation, PromptPath-Sep achieved 85.8 mIoU, outperforming MICAS-Sep by 8.3 points, demonstrating robust generalization to entirely unseen task variations.
Limitations and Future Work
While PromptPath demonstrates impressive adaptability, the authors note a few limitations:
- Out-of-Distribution (OOD) Robustness: The framework's resilience against severe real-world data corruptions, extreme noise, or massive domain shifts remains unverified.
- Rank Constraints: Due to computational limits, the rank of the low-rank experts was capped at 32. Exploring larger expert libraries or higher ranks could yield even better performance but requires careful efficiency-performance trade-off analysis.
Summary updated