DICE: Disentangled Instance-Class knowlEdge Prompt Tuning via SAE for Vision-Language Models

Sungkyunkwan University, South Korea
European Conference on Computer Vision (ECCV) 2026 · Poster Presentation
Overview of the DICE framework

DICE decomposes LLM-derived class priors into sparse, interpretable concepts with a Sparse Autoencoder and fuses class-level and instance-level semantics into a unified prompt for robust few-shot adaptation of CLIP.

Abstract

CLIP, known for its strong zero-shot generalization, has received significant attention in prompt tuning for its ability to adapt effectively to new tasks in few-shot settings. Recent studies have employed descriptions generated by Large Language Models (LLMs) as predefined prompts to obtain class-level semantics. However, because these predefined descriptions are not directly grounded in visual information, they often misalign with an image's visual semantics. They tend to generate generic class-level descriptions rather than instance-specific ones. As a result, LLM-based prompts are structurally biased toward class-level semantics, making it difficult to capture and reflect instance-level cues, which in turn limits generalization in few-shot settings where both levels of knowledge are crucial. To address this limitation, we propose Disentangled Instance-Class knowlEdge (DICE) prompt tuning, a framework that restructures LLM-derived class-level priors to capture instance-level semantics. Specifically, DICE decomposes LLM-derived priors into instance-level components using a Sparse Autoencoder (SAE), which selects instance-specific concept vectors. These concept vectors are then fused with class embeddings to form enriched representations. This synergy preserves class-level semantic coherence while capturing instance-level details, improving generalization to unseen classes. Our approach achieves competitive performance across 11 few-shot recognition benchmarks, while additionally offering a plug-and-play solution that enhances interpretability through SAE.

Motivation

A single LLM-generated class description is reused for every image in a class, regardless of visual differences. As shown below, many descriptions align poorly with the actual image (left), and across datasets the cosine-similarity distribution has a pronounced left tail for prior methods (right). DICE shifts this distribution to the right, strengthening visual–textual alignment by injecting instance-specific concepts.

Motivation: cosine similarity between LLM descriptions and images

(a) Cosine similarities between LLM-generated descriptions of class DH-82 and its image in FGVC-Aircraft. (b) Similarity distributions for ZeroshotCLIP, CoPrompt, and DICE (Ours).

Method

DICE builds a unified context prompt from two complementary branches. The Class Context Module projects cached LLM embeddings into the CLIP space to capture general class-level semantics. The Instance Context Module passes both the projected class embedding and the image feature through a shared Sparse Autoencoder (SAE), computes a co-activation score over the sparse concept dictionary, and selects the top-k concept vectors aligned with both the image and its class. The two branches are fused and passed through a lightweight meta-network to produce prompts that reflect both general class knowledge and instance-specific detail.

Contributions

  • Concept Dictionary via Sparse Autoencoders. We show that an SAE can serve as a learnable concept dictionary for vision–language representations, enabling explicit concept selection and improving interpretability.
  • Class–Instance Semantic Integration. We introduce a unified prompt formulation that integrates class-level semantic priors with instance-specific visual concepts for robust few-shot adaptation.
  • From Handcrafted Descriptions to Concept-based Prompts. We replace predefined class descriptions with prompts built from disentangled concept units that adapt dynamically to each input instance.

Results

Base-to-Novel Generalization (average over 11 datasets)

DICE sets a new state of the art among single-textual-prompt methods (Base/Novel/H = 84.45 / 76.77 / 80.43) and, as a plug-and-play module, lifts CoOp/CoCoOp/PSRC by up to +5.79 H. PSRC w/ DICE reaches the best overall harmonic mean of 81.31, surpassing recent LLM-based and multi-modal prompt tuning methods.

MethodTypeBaseNovelH
CoOptp82.6963.2271.66
CoCoOptp80.4771.6975.83
TCPtp84.1375.3679.51
MaPLemp81.5472.3076.65
PSRCmp84.2676.1079.97
HPTmp84.3276.8680.23
CoPromptmp84.0077.2380.48
DICE (Ours)tp84.4576.7780.43
CoOp w/ DICEtp83.0972.5477.45
CoCoOp w/ DICEtp82.7073.1977.65
PSRC w/ DICEmp85.7677.2981.31

tp: text prompt tuning  ·  mp: multi-modal prompt tuning  ·  H: harmonic mean.

Few-shot Classification (accuracy vs. #shots, avg. over 11 datasets)

Method124816
CoOp67.5664.7871.6176.0979.89
CoCoOp66.7967.6571.2172.9674.90
PSRC72.3275.2978.0680.6982.87
CoOp w/ DICE68.9372.3375.1877.7080.96
PSRC w/ DICE72.9475.9079.0181.1983.21

Ablations

SettingBaseNovelH
Class only84.2875.7879.80
Instance only82.5274.3478.22
Class + Instance84.4576.7780.43

Both context modules are complementary.

SettingBaseNovelH
w/ SAE84.4576.7780.43
w/o SAE (MLP)81.3173.8277.38
Δ+3.14+2.95+3.05

Gains stem from sparse concept disentanglement, not extra capacity.

Interpretability: Disentangled Concepts

Each SAE latent is matched to its most strongly activated WordNet concept. Meaningful and diverse concepts emerge (e.g., freckled for skin texture, mozzarella for food), and even images within the same class emphasize distinct but related concepts — evidence that the SAE captures interpretable, instance-level variation.

Disentangled latent interpretation examples

Disentangled latent interpretation on DTD (top left), StanfordCars (bottom left), and Food101 (right). Each image activates a distinct, interpretable set of concept latents.

Food101 concept activation

Food101: per-image concept activations.

OxfordPets concept activation

OxfordPets: per-image concept activations.

UCF101 concept activation

UCF101: per-image concept activations.

Representation Quality (UMAP)

UMAP comparison on FGVC-Aircraft

On FGVC-Aircraft, DICE produces well-separated clusters with clear inter-class boundaries, unlike the scattered ZeroshotCLIP embeddings and the low-variance CoPrompt clusters.

Poster

ECCV 2026 · Thu, Sep 10, 10:30–12:30 CEST · ExHall #461

DICE poster

Download poster (PDF)

Paper, supplementary, code and citation will be available after publication.