Abstract
Large language models (LLMs) have achieved superior performance on various natural language tasks but remain resource-intensive to fine-tune for new datasets. Soft-prompt tuning offers a parameter-efficient alternative by training a small set of continuous vectors while keeping the pre-trained language model (PLM) weights frozen. However, existing methods often rely on input-independent prompts that fail to capture fine-grained task and contextual nuances. This paper proposes MPrompt, a multi-level prompt tuning method for machine reading comprehension (MRC). MPrompt utilizes task-specific, domain-specific, and context-specific prompts to enhance semantic comprehension at different granularities. We introduce an independence constraint to minimize redundancy among domain prompts and a prompt generator to inject context-related knowledge. Extensive evaluations across 12 benchmarks demonstrate that MPrompt achieves an average improvement of 1.94% over state-of-the-art methods, occasionally outperforming full fine-tuning.
Introduction
Fine-tuning massive PLMs for specific downstream tasks is computationally prohibitive for many researchers. Soft-prompt tuning emerged to address this by prepending a sequence of trainable vectors to the input, effectively "steering" the frozen model. Despite its efficiency, standard prompt tuning typically employs a "one-size-fits-all" approach, assigning identical prompts to every instance in a dataset. This lack of granularity is particularly detrimental in Machine Reading Comprehension (MRC), where the answer is intrinsically linked to the specific semantics of the provided context.
MPrompt addresses these limitations by decomposing the prompting process into three hierarchical levels: task-specific, domain-specific, and context-specific. By capturing information from the general dataset level down to the individual paragraph level, MPrompt provides the model with a sharper focus on relevant semantics.
Methodology
The MPrompt framework integrates three distinct prompt levels into the attention layers of a generative QA model (such as UnifiedQA). While the core model remains frozen, only the prompts and a small Multi-Layer Perceptron (MLP) are updated during training.
Multi-Level Prompt Hierarchy
- Task-specific Prompts: These capture the general nature of the dataset (e.g., extractive vs. multiple-choice QA) and are shared across all inputs within a specific benchmark.
- Domain-specific Prompts: Contexts are grouped into "domains" (e.g., science, politics) using K-means clustering. Each domain is assigned a unique prompt. To prevent these prompts from collapsing into a single generic representation, an independence constraint using Centered Kernel Alignment (CKA) is applied, forcing each domain prompt to focus on unique features.
- Context-specific Prompts: These are the most granular prompts, generated dynamically for each input. A small, frozen PLM (the "Prompt Generator") analyzes the specific context to produce a tailored prompt, ensuring high contextual relevancy.
Experimental Setup
The researchers evaluated MPrompt across 12 diverse MRC benchmarks encompassing various formats:
- Extractive QA: SQuAD2, NewsQA.
- Abstractive QA: NarrativeQA, DROP.
- Multiple-choice QA: MCTest, ARC (Easy & Challenge), OpenBookQA (OBQA), QASC, RACE.
- Yes/No QA: BoolQ, BoolQ-NP.
The models tested ranged from "Base" (220M parameters) to "XL" (3B parameters), using UnifiedQA as the backbone.
Results and Discussion
MPrompt consistently outperformed existing soft-prompting baselines, including Prefix-tuning and XPrompt, across all 12 datasets. As shown in the results table, the method is highly scalable, maintaining performance gains as the model size increases.
Key Findings
- Superiority over SOTA: MPrompt achieved an average improvement of 1.94% over the previous state-of-the-art prompt tuning methods.
- Competitive with Full Fine-Tuning: Notably, MPrompt outperformed full-weight fine-tuning on several datasets at the Base model scale, including SQuAD2 (+0.69%) and NewsQA (+0.63%). This suggests that structured, multi-level prompting can be more effective than global weight updates for certain MRC tasks.
- Ablation Insights: Ablation studies confirmed that each level of the hierarchy contributes to the final performance, with the combination of all three levels (task + domain + context) yielding the best results.
Conclusion
MPrompt demonstrates that multi-level granularity is essential for effective prompt tuning in complex tasks like Machine Reading Comprehension. By combining hierarchical prompts with an independence constraint and a context-aware generator, the framework achieves state-of-the-art performance while remaining parameter-efficient. Future work will explore extending this multi-level approach to other generative tasks such as summarization and translation.
Summary updated