Methods › General › Prompt Engineering › CoOp

Context Optimization

CoOp

30 papers tagged archive 2025-07-28

Introduced by Kaiyang Zhou et al. in Learning to Prompt for Vision-Language Models

archive 2025-07-28 Description, source and code snippet are the archive's method entry.

CoOp, or Context Optimization, is an automated prompt engineering method that avoids manual prompt tuning by modeling context words with continuous vectors that are end-to-end learned from data. The context could be shared among all classes or designed to be class-specific. During training, we simply minimize the prediction error using the cross-entropy loss with respect to the learnable context vectors, while keeping the pre-trained parameters fixed. The gradients can be back-propagated all the way through the text encoder, distilling the rich knowledge encoded in the parameters for learning task-relevant context.

PaperSource

Papers archive 2025-07-28

30 shown of 30, newest first. Repository counts are the archive's code-links table. A Syntology line states what Syntology ran from that paper's harvested code; it is per sample and not a correctness claim.

Tasks archive 2025-07-28

20 shown of 39 tasks the archive attaches to papers tagged with this method, by distinct papers. A task without a page in the catalog is plain text.

TaskPapers
Prompt Learning14
Prompt Engineering7
Domain Generalization6
Transfer Learning5
Few-Shot Learning4
Image Classification3
Out of Distribution (OOD) Detection3
Representation Learning3
Zero-Shot Learning3
image-classification3
Attribute2
Data Augmentation2
Few-Shot Image Classification2
Image Generation2
Object2
Object Detection2
Out-of-Distribution Detection2
object-detection2
Compositional Zero-Shot Learning1
Federated Learning1

Usage over time archive 2025-07-28

Papers per year tagged with CoOp: 2021 to 2025, peak 12 12 0 2021: 1 paper 2021 2022: 5 papers 2022 2023: 9 papers 2023 2024: 12 papers 2024 2025: 3 papers 2025
Papers per year the archive tags with this method, by the paper's archive date (30 dated). Bars are counts, not a trend claim.

Components: the archive holds no method-to-method composition, so PwC's Components table cannot be rebuilt; the Papers list carries no Results column for the same reason (the archive does not join its leaderboard rows to method tags).

Categories archive 2025-07-28

Prompt Engineering

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections