Probe Before You Learn: Allocating Prompts from Initial Gradients under Label Noise

Jiazhe Zhang, Zibin Geng, Qiang Ma, Xuefeng Jiang, Yijun Lin, Jingyi Wang, Yu Yan, Xingzhou Zhang, Min Liu, Yuwei Wang, Sheng SunarXiv 2026

It’s late, you’ve had a long day, and the last thing you want to think about is "spectral concentration of joint gradient profiles." But bear with me, because this paper tackles a beautifully intuitive problem: when you’re teaching a machine to see and talk at the same time, where should you put your effort?

TL;DR

When fine-tuning AI models on messy, "noisy" data, the balance between text and visual instructions matters just as much as the instructions themselves. GPrompt is a "training-free" method that analyzes a model's initial reactions to a task to find the perfect ratio of text-to-visual prompts in seconds, boosting accuracy by up to 7.75% while being 99.9% faster than trial-and-error.

What Problem Does This Paper Address?

We are currently in the era of Vision-Language Models (VLMs) like CLIP. These models are pre-trained on the entire internet to understand how images and text relate. To make them work for a specific task—say, identifying rare flowers—we use prompt learning. Instead of retraining the whole massive model, we just learn a few small "prompt" vectors that act as specialized instructions for the text and image encoders.

The catch? Real-world data is "noisy." Labels are often wrong (e.g., a picture of a daisy labeled as a rose). These errors create "garbage" gradients during training, which corrupt the prompts and ruin the model's performance.

Most researchers try to fix this by changing the math of the training (robust loss functions). This paper asks a different question: Does it matter how many "knobs" we give to the text side versus the visual side? If the visual side is more sensitive to noise for a specific task, maybe we should give it fewer parameters to mess up. But finding that "Goldilocks" ratio usually requires training dozens of different configurations—a process that is painfully slow and expensive.

Methods

The authors introduce GPrompt, a way to "probe" the model before the actual learning begins.

Figure 2: Overview of GPrompt. (1) Gradient probing at initialization with pseudo-labels, without parameter updates. (2) Gradi- ent geometry: effective dimensions 𝑑𝑡, 𝑑𝑣and overlap 𝜅. (3) Closed-form budget allocation: the optimal text parameter fraction 𝜌∗is mapped to feasible prompt counts ( ̂𝑛𝑡, ̂𝑛𝑣). (4) Training of the selected prompts with the DSPT loss on noisy labels.

The process happens in four elegant steps:

  1. The Probe: Before training, GPrompt takes a tiny sample of images and asks the model for its best guess (pseudo-labels). It then calculates the "gradients"—the direction the model thinks it should move to improve.
  2. Gradient Geometry: It looks at the "Gram Matrix" of these gradients. Think of this as checking the "harmony" of the model's thoughts. If all the gradients point in the same few directions (concentration), the model is likely to overfit to noise. If the text and visual gradients are too similar (overlap), they are redundant.
  3. Analytic Allocation: Using a closed-form mathematical formula, GPrompt calculates the optimal ratio of text-to-visual parameters that minimizes this concentration. It’s like finding the most diverse set of "tuning directions" possible.
  4. Projection: It maps that ideal ratio to actual whole numbers of prompt tokens (e.g., "Use 7 text prompts and 3 visual prompts") that fit within a fixed parameter budget.

Datasets

The researchers put GPrompt through the wringer across eleven datasets:

  • Synthetic Noise: Nine classic benchmarks (like Caltech101, OxfordFlowers, and StanfordCars) where they intentionally corrupted labels by 20% to 80% to see how the model held up.
  • Natural Noise: Two massive, real-world "messy" datasets: Clothing1M and WebVision-50, which contain actual errors from web-scraped data.

Key Insights and Ideas

  • No "One Size Fits All": The optimal ratio changes wildly between tasks. For Oxford Flowers, the model performs best with a 4:6 text-to-visual ratio. For UCF101 (action recognition), it needs 7:3. Using a fixed "standard" ratio is leaving performance on the table.
  • Noise is Geometric: The authors realized that label noise isn't just "wrong data"—it manifests as a specific type of distortion in the gradient space. By balancing the budget, you can effectively "dilute" the impact of that noise.
  • The "Aha" Moment: You don't actually need to train the model to know which configuration will work. The "geometry" of the gradients at the very first step (initialization) is a highly accurate predictor of how robust the model will be after 50 epochs of training.

Key Results

  • Accuracy: GPrompt consistently beat the strongest baselines, with improvements as high as 7.75% on the EuroSAT dataset under heavy noise.
  • Efficiency: This is the big one. Exhaustive search (trying every combo) takes hours. GPrompt’s probe takes about 40 to 70 seconds. That is a 99.9% reduction in assessment time.
  • Near-Oracle Performance: GPrompt’s "blind" guess was almost as good as the "Oracle"—the absolute best possible ratio found by brute-force training every single combination.
Figure 1: Prompt allocation before training. Traditional methods use a preset allocation between text and visual prompts (left); GPrompt selects the allocation from paired gradients at initialization before prompt training (right). Both configurations use the same prompt parameter budget, with cubes indicating the budget assigned to each modality. Both encoders remain frozen, and observed noisy labels are used to supervise prompt training.

Limitations and Future Work

  • Fixed Total Budget: GPrompt tells you how to split a budget, but it doesn't tell you how big the total budget should be in the first place.
  • Frozen Backbones: The method assumes the underlying VLM (like CLIP) stays frozen. If you were fine-tuning the whole model, the gradient geometry would likely become much more complex.
  • Pseudo-label Reliance: The probe relies on the model's initial "zero-shot" ability to generate decent pseudo-labels. If the model is completely clueless about a task at the start, the probe might provide a less reliable map.

In short, GPrompt suggests that before you start the long marathon of training, it pays to take a few seconds to check your compass. It turns out, where you learn is just as important as what you learn.

Summary updated

BibTeX
@misc{zhang2026probe,
  author = {Jiazhe Zhang and Zibin Geng and Qiang Ma and Xuefeng Jiang and Yijun Lin and Jingyi Wang and Yu Yan and Xingzhou Zhang and Min Liu and Yuwei Wang and Sheng Sun},
  title = {{Probe Before You Learn: Allocating Prompts from Initial Gradients under Label Noise}},
  year = {2026},
  eprint = {2611.29336},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29336},
}
Figure