SpecPL: Disentangling Spectral Granularity for Prompt Learning

Jingtao Zhou, Xirui Kang, Feiyang Huang, Lai-Man Po
5/6/2026
cs.CVcs.AIcs.CL

Official code: Mlrac1e/SpecPL-Prompt-Learning (13 stars, MIT, last commit 2026-05-29).

Abstract

Existing prompt learning for VLMs exhibits a modality asymmetry, predominantly optimizing text tokens while still relying on frozen visual encoder as holistic extractor and neglecting the spectral granularity essential for fine-grained discrimination. To bridge this, we introduce Disentangling Spectral Granularity for Prompt Learning (SpecPL), which approaches prompt learning from a novel spectral perspective via Counterfactual Granule Supervision. Specifically, we leverage a frozen VAE to decompose visual signals into semantic low-frequency bands and granular high-frequency details. A frozen Visual Semantic Bank anchors text representations to universal low-frequency invariants, mitigating overfitting. Crucially, fine-grained discrimination is driven by counterfactual granule training: by permuting high-frequency signals, we compel the model to explicitly distinguish visual granularity from semantic invariance. Uniquely, SpecPL serves as a universal plug-and-play booster, revitalizing text-oriented baselines like CoOp and MaPLe via visual-side guidance. Experiments on 11 benchmarks demonstrate competitive state-of-the-art performance, achieving a new performance ceiling of 81.51\% harmonic-mean accuracy. These results validate that spectral disentanglement with counterfactual supervision effectively bridges the gap in the stability-generalization trade-off. Code is released at https://github.com/Mlrac1e/SpecPL-Prompt-Learning.

View on arXivView PDF

Code Implementations(1)

MIT

[ICML 2026]Official PyTorch implementation of "SpecPL: Disentangling Spectral Granularity for Prompt Learning"

130Shell, PythonMay 3, 20264 months agoMIT

Similar Papers

Cite this paper

@article{zhou2026specpl,
  title  = {SpecPL: Disentangling Spectral Granularity for Prompt Learning},
  author = {Jingtao Zhou and Xirui Kang and Feiyang Huang and Lai-Man Po},
  year   = {2026},
  eprint = {2605.04504},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.04504v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.04504.svg)](https://codeofpaper.com/paper/2605.04504)

Discussion