{"about":{"non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","site":"https://codewithpapers.app","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page","syntology":{"site":"https://syntology.ai","developers":"https://syntology.ai/developers","mcp":{"server":"https://syntology.ai/mcp","transport":"streamable-http","server_card":"https://syntology.ai/.well-known/mcp/server-card.json","auth":{"type":"trial token, no account","trial_token":"https://syntology.ai/api/oauth/trial/token","method":"POST","docs":"https://syntology.ai/developers"}},"have":"https://syntology.ai/api/graph/have?x=<method, arXiv id or title> (free, answers coverage only)","paper_base":"https://syntology.ai/paper/","atlas_base":"https://app.syntology.ai/?focus="},"machine_readable":[{"url":"https://codewithpapers.app/llms.txt","what":"the machine catalog: every machine-readable file, counted"},{"url":"https://codewithpapers.app/index/manifest.json","what":"paper-to-code index by arXiv id, with Syntology's counts"},{"url":"https://codewithpapers.app/search/manifest.json","what":"site search index (titles, authors) and its files"},{"url":"https://codewithpapers.app/download","what":"bulk files: Syntology's layer, described there"},{"url":"https://codewithpapers.app/build_manifest.json","what":"the build record: inputs, counts, exclusions, probes"}]},"url":"/method/coop","slug":"coop","name":"CoOp","full_name":"Context Optimization","full_name_withheld":false,"description_markdown":"**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.","description_state":"present","introduced_year":null,"introduced_by":{"title":"Learning to Prompt for Vision-Language Models","paper":"/paper/learning-to-prompt-for-vision-language-models","first_author":"Kaiyang Zhou","n_authors":4,"url_abs":null,"archive_paper_url":"https://paperswithcode.com/paper/learning-to-prompt-for-vision-language-models"},"source":{"url":"https://arxiv.org/abs/2109.01134v6","title":"Learning to Prompt for Vision-Language Models","url_on_a_paper_host":true},"code_snippet_url":null,"code_snippet_url_on_a_code_host":false,"categories":[{"area":"General","area_id":"general","collection":"Prompt Engineering","url":"/methods/category/prompt-engineering","pwc_aliases":[]}],"n_papers_tagged":30,"archive_num_papers":30,"papers_newest_first":[{"paper":"/paper/fa-forced-prompt-learning-of-vision-language","slug":"fa-forced-prompt-learning-of-vision-language","title":"FA: Forced Prompt Learning of Vision-Language Models for Out-of-Distribution Detection","date":"2025-07-06","arxiv_id":"2507.04511","n_code_links":1,"syntology":{"ran":5,"of":9,"n_ran_checked":2,"n_instrument":3,"unverified":4,"pointer_only":9,"phrase":"5 ran (of which 0 constructed an object rather than computing a result; 2 with no instrument failure: 0 honoured, 0 violated, 2 with no contract checked; 3 where Syntology's instrument failed) · 4 unverified","official":{"repos":["0xfafa/fa"],"state":"official (archive's flag): 5 ran","n_ran":5,"n_constructed":0,"n_ran_no_instrument_failure":2,"n_unverified":4,"ran_from_kinds":["official"]}}},{"paper":"/paper/mmrl-parameter-efficient-and-interaction","slug":"mmrl-parameter-efficient-and-interaction","title":"MMRL++: Parameter-Efficient and Interaction-Aware Representation Learning for Vision-Language Models","date":"2025-05-15","arxiv_id":"2505.10088","n_code_links":1,"syntology":null},{"paper":"/paper/mmrl-multi-modal-representation-learning-for","slug":"mmrl-multi-modal-representation-learning-for","title":"MMRL: Multi-Modal Representation Learning for Vision-Language Models","date":"2025-03-11","arxiv_id":"2503.08497","n_code_links":1,"syntology":{"ran":0,"of":1,"n_ran_checked":0,"n_instrument":0,"unverified":1,"pointer_only":0,"phrase":"0 ran · 1 unverified","official":{"repos":["yunncheng/MMRL"],"state":"official: harvested, nothing ran","n_ran":0,"n_constructed":0,"n_ran_no_instrument_failure":0,"n_unverified":1,"ran_from_kinds":[]}}},{"paper":null,"slug":"multi-point-positional-insertion-tuning-for","title":"Multi-Point Positional Insertion Tuning for Small Object Detection","date":"2024-12-24","arxiv_id":"2412.18090","n_code_links":0,"syntology":null},{"paper":null,"slug":"plpp-prompt-learning-with-perplexity-is-self","title":"PLPP: Prompt Learning with Perplexity Is Self-Distillation for Vision-Language Models","date":"2024-12-18","arxiv_id":"2412.15277","n_code_links":0,"syntology":null},{"paper":"/paper/textrefiner-internal-visual-feature-as","slug":"textrefiner-internal-visual-feature-as","title":"TextRefiner: Internal Visual Feature as Efficient Refiner for Vision-Language Models Prompt Tuning","date":"2024-12-11","arxiv_id":"2412.08176","n_code_links":1,"syntology":null},{"paper":"/paper/transagent-transfer-vision-language","slug":"transagent-transfer-vision-language","title":"TransAgent: Transfer Vision-Language Foundation Models with Heterogeneous Agent Collaboration","date":"2024-10-16","arxiv_id":"2410.12183","n_code_links":1,"syntology":{"ran":6,"of":8,"n_ran_checked":2,"n_instrument":4,"unverified":2,"pointer_only":2,"phrase":"6 ran (of which 0 constructed an object rather than computing a result; 2 with no instrument failure: 1 honoured, 0 violated, 1 with no contract checked; 4 where Syntology's instrument failed) · 2 unverified","official":{"repos":["markywg/transagent"],"state":"official (archive's flag): 6 ran","n_ran":6,"n_constructed":0,"n_ran_no_instrument_failure":2,"n_unverified":2,"ran_from_kinds":["official"]}}},{"paper":null,"slug":"flier-few-shot-language-image-models-embedded","title":"FLIER: Few-shot Language Image Models Embedded with Latent Representations","date":"2024-10-10","arxiv_id":"2410.07648","n_code_links":0,"syntology":null},{"paper":"/paper/understanding-and-mitigating-miscalibration","slug":"understanding-and-mitigating-miscalibration","title":"Understanding and Mitigating Miscalibration in Prompt Tuning for Vision-Language Models","date":"2024-10-03","arxiv_id":"2410.02681","n_code_links":1,"syntology":{"ran":4,"of":9,"n_ran_checked":1,"n_instrument":3,"unverified":5,"pointer_only":6,"phrase":"4 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 1 honoured, 0 violated, 0 with no contract checked; 3 where Syntology's instrument failed) · 5 unverified","official":null}},{"paper":null,"slug":"enhancing-robustness-of-vision-language","title":"Enhancing Robustness of Vision-Language Models through Orthogonality Learning and Self-Regularization","date":"2024-07-11","arxiv_id":"2407.08374","n_code_links":0,"syntology":null},{"paper":null,"slug":"learning-to-adapt-category-consistent-meta","title":"Learning to Adapt Category Consistent Meta-Feature of CLIP for Few-Shot Classification","date":"2024-07-08","arxiv_id":"2407.05647","n_code_links":0,"syntology":null},{"paper":null,"slug":"intcoop-interpretability-aware-vision","title":"IntCoOp: Interpretability-Aware Vision-Language Prompt Tuning","date":"2024-06-19","arxiv_id":"2406.13683","n_code_links":0,"syntology":null},{"paper":"/paper/aapl-adding-attributes-to-prompt-learning-for","slug":"aapl-adding-attributes-to-prompt-learning-for","title":"AAPL: Adding Attributes to Prompt Learning for Vision-Language Models","date":"2024-04-25","arxiv_id":"2404.16804","n_code_links":1,"syntology":null},{"paper":"/paper/weak-distribution-detectors-lead-to-stronger","slug":"weak-distribution-detectors-lead-to-stronger","title":"Weak Distribution Detectors Lead to Stronger Generalizability of Vision-Language Prompt Tuning","date":"2024-03-31","arxiv_id":"2404.00603","n_code_links":1,"syntology":{"ran":4,"of":6,"n_ran_checked":1,"n_instrument":3,"unverified":2,"pointer_only":3,"phrase":"4 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 1 honoured, 0 violated, 0 with no contract checked; 3 where Syntology's instrument failed) · 2 unverified","official":{"repos":["kding1225/VLPT-OOD"],"state":"official (archive's flag): 4 ran","n_ran":4,"n_constructed":0,"n_ran_no_instrument_failure":1,"n_unverified":2,"ran_from_kinds":["official"]}}},{"paper":null,"slug":"concept-guided-prompt-learning-for","title":"Concept-Guided Prompt Learning for Generalization in Vision-Language Models","date":"2024-01-15","arxiv_id":"2401.07457","n_code_links":0,"syntology":null},{"paper":null,"slug":"text-driven-prompt-generation-for-vision","title":"Text-driven Prompt Generation for Vision-Language Models in Federated Learning","date":"2023-10-09","arxiv_id":"2310.06123","n_code_links":0,"syntology":null},{"paper":null,"slug":"swapprompt-test-time-prompt-adaptation-for","title":"SwapPrompt: Test-Time Prompt Adaptation for Vision-Language Models","date":"2023-09-21","arxiv_id":null,"n_code_links":0,"syntology":null},{"paper":"/paper/pre-vision-language-prompt-learning-with","slug":"pre-vision-language-prompt-learning-with","title":"PRE: Vision-Language Prompt Learning with Reparameterization Encoder","date":"2023-09-14","arxiv_id":"2309.07760","n_code_links":2,"syntology":null},{"paper":"/paper/language-models-as-black-box-optimizers-for","slug":"language-models-as-black-box-optimizers-for","title":"Language Models as Black-Box Optimizers for Vision-Language Models","date":"2023-09-12","arxiv_id":"2309.05950","n_code_links":1,"syntology":{"ran":8,"of":11,"n_ran_checked":6,"n_instrument":2,"unverified":3,"pointer_only":11,"phrase":"8 ran (of which 0 constructed an object rather than computing a result; 6 with no instrument failure: 0 honoured, 0 violated, 6 with no contract checked; 2 where Syntology's instrument failed) · 3 unverified","official":{"repos":["shihongl1998/llm-as-a-blackbox-optimizer"],"state":"official (archive's flag): 8 ran","n_ran":8,"n_constructed":0,"n_ran_no_instrument_failure":6,"n_unverified":3,"ran_from_kinds":["official"]}}},{"paper":null,"slug":"context-aware-prompt-tuning-for-vision","title":"Context-Aware Prompt Tuning for Vision-Language Model with Dual-Alignment","date":"2023-09-08","arxiv_id":"2309.04158","n_code_links":0,"syntology":null},{"paper":null,"slug":"unsupervised-prototype-adapter-for-vision","title":"Unsupervised Prototype Adapter for Vision-Language Models","date":"2023-08-22","arxiv_id":"2308.11507","n_code_links":0,"syntology":null},{"paper":"/paper/mudpt-multi-modal-deep-symphysis-prompt","slug":"mudpt-multi-modal-deep-symphysis-prompt","title":"MuDPT: Multi-modal Deep-symphysis Prompt Tuning for Large Pre-trained Vision-Language Models","date":"2023-06-20","arxiv_id":"2306.11400","n_code_links":1,"syntology":null},{"paper":"/paper/locoop-few-shot-out-of-distribution-detection-1","slug":"locoop-few-shot-out-of-distribution-detection-1","title":"LoCoOp: Few-Shot Out-of-Distribution Detection via Prompt Learning","date":"2023-06-02","arxiv_id":"2306.01293","n_code_links":2,"syntology":{"ran":9,"of":12,"n_ran_checked":4,"n_instrument":5,"unverified":3,"pointer_only":7,"phrase":"9 ran (of which 0 constructed an object rather than computing a result; 4 with no instrument failure: 1 honoured, 0 violated, 3 with no contract checked; 5 where Syntology's instrument failed) · 3 unverified","official":{"repos":["atsumiyai/locoop"],"state":"official (archive's flag): 9 ran","n_ran":9,"n_constructed":0,"n_ran_no_instrument_failure":4,"n_unverified":3,"ran_from_kinds":["official"]}}},{"paper":null,"slug":"task-oriented-multi-modal-mutual-leaning-for","title":"Task-Oriented Multi-Modal Mutual Leaning for Vision-Language Models","date":"2023-03-30","arxiv_id":"2303.17169","n_code_links":0,"syntology":null},{"paper":"/paper/understanding-and-mitigating-overfitting-in","slug":"understanding-and-mitigating-overfitting-in","title":"Understanding and Mitigating Overfitting in Prompt Tuning for Vision-Language Models","date":"2022-11-04","arxiv_id":"2211.02219","n_code_links":1,"syntology":null},{"paper":"/paper/prompt-tuning-with-soft-context-sharing-for","slug":"prompt-tuning-with-soft-context-sharing-for","title":"Prompt Tuning with Soft Context Sharing for Vision-Language Models","date":"2022-08-29","arxiv_id":"2208.13474","n_code_links":1,"syntology":null},{"paper":"/paper/learning-to-compose-soft-prompts-for","slug":"learning-to-compose-soft-prompts-for","title":"Learning to Compose Soft Prompts for Compositional Zero-Shot Learning","date":"2022-04-07","arxiv_id":"2204.03574","n_code_links":1,"syntology":{"ran":2,"of":2,"n_ran_checked":2,"n_instrument":0,"unverified":0,"pointer_only":0,"phrase":"2 ran (of which 0 constructed an object rather than computing a result; 2 with no instrument failure: 1 honoured, 0 violated, 1 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified","official":{"repos":["batsresearch/csp"],"state":"official (archive's flag): 2 ran","n_ran":2,"n_constructed":0,"n_ran_no_instrument_failure":2,"n_unverified":0,"ran_from_kinds":["official"]}}},{"paper":"/paper/unsupervised-prompt-learning-for-vision","slug":"unsupervised-prompt-learning-for-vision","title":"Unsupervised Prompt Learning for Vision-Language Models","date":"2022-04-07","arxiv_id":"2204.03649","n_code_links":1,"syntology":null},{"paper":"/paper/conditional-prompt-learning-for-vision","slug":"conditional-prompt-learning-for-vision","title":"Conditional Prompt Learning for Vision-Language Models","date":"2022-03-10","arxiv_id":"2203.05557","n_code_links":12,"syntology":{"ran":4,"of":6,"n_ran_checked":1,"n_instrument":3,"unverified":2,"pointer_only":3,"phrase":"4 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 1 honoured, 0 violated, 0 with no contract checked; 3 where Syntology's instrument failed) · 2 unverified","official":{"repos":["kaiyangzhou/coop"],"state":"community repositories only","n_ran":0,"n_constructed":0,"n_ran_no_instrument_failure":0,"n_unverified":0,"ran_from_kinds":["listed"]}}},{"paper":"/paper/learning-to-prompt-for-vision-language-models","slug":"learning-to-prompt-for-vision-language-models","title":"Learning to Prompt for Vision-Language Models","date":"2021-09-02","arxiv_id":"2109.01134","n_code_links":18,"syntology":{"ran":3,"of":12,"n_ran_checked":2,"n_instrument":1,"unverified":9,"pointer_only":0,"phrase":"3 ran (of which 1 constructed an object rather than computing a result; 2 with no instrument failure: 0 honoured, 0 violated, 2 with no contract checked; 1 where Syntology's instrument failed) · 9 unverified","official":{"repos":["kaiyangzhou/coop"],"state":"community repositories only","n_ran":0,"n_constructed":0,"n_ran_no_instrument_failure":0,"n_unverified":0,"ran_from_kinds":["listed"]}}}],"papers_shown":30,"papers_order":"date (newest first), then slug","paper_counts":{"archive_papers_tagged":30,"with_a_code_link":18,"where_syntology_ran_a_sample":9,"not_listed_spam_title":0,"listed":30,"listed_where_code_ran":9,"where_syntology_ran_a_sample_split":{"with_a_run_with_no_instrument_failure":9,"every_run_a_failure_of_syntologys_instrument":0,"listed_with_a_run_with_no_instrument_failure":9,"listed_every_run_a_failure_of_syntologys_instrument":0,"filter":{"states":["a run with no instrument failure","any run, instrument failures included"],"default":"a run with no instrument failure","note":"on the 'only where code ran' pages the default hides, in the browser, the rows where every run was a failure of Syntology's instrument; the second state shows them again. Rows are hidden, never re-ordered; these twins list every row"}},"definition":"distinct papers the archive tags; 'where Syntology ran a sample' counts papers with at least one harvested sample that ran, which is not a correctness claim"},"papers_where_code_ran":9,"papers_where_code_ran_first_page":"/method/coop/papers/ran/1","papers_where_code_ran_caption":"We ran code from the paper's repository; we did not isolate this method inside it.","pages":[{"order":"ran","page":1,"of":1,"url":"/method/coop/papers/ran/1","json":"/method/coop/papers/ran/1.json","rows":9}],"tasks":[{"task":"/task/prompt-learning","name":"Prompt Learning","papers":14},{"task":"/task/prompt-engineering","name":"Prompt Engineering","papers":7},{"task":"/task/domain-generalization","name":"Domain Generalization","papers":6},{"task":"/task/transfer-learning","name":"Transfer Learning","papers":5},{"task":"/task/few-shot-learning","name":"Few-Shot Learning","papers":4},{"task":"/task/image-classification","name":"Image Classification","papers":3},{"task":"/task/ood-detection","name":"Out of Distribution (OOD) Detection","papers":3},{"task":"/task/representation-learning","name":"Representation Learning","papers":3},{"task":"/task/zero-shot-learning","name":"Zero-Shot Learning","papers":3},{"task":"/task/image-classification","name":"image-classification","papers":3},{"task":"/task/attribute","name":"Attribute","papers":2},{"task":"/task/data-augmentation","name":"Data Augmentation","papers":2},{"task":"/task/few-shot-image-classification","name":"Few-Shot Image Classification","papers":2},{"task":"/task/image-generation","name":"Image Generation","papers":2},{"task":"/task/object","name":"Object","papers":2},{"task":"/task/object-detection","name":"Object Detection","papers":2},{"task":"/task/out-of-distribution-detection","name":"Out-of-Distribution Detection","papers":2},{"task":"/task/object-detection-1","name":"object-detection","papers":2},{"task":"/task/compositional-zero-shot-learning","name":"Compositional Zero-Shot Learning","papers":1},{"task":"/task/federated-learning","name":"Federated Learning","papers":1}],"tasks_shown":20,"n_tasks":39,"usage_by_year":[{"year":"2021","papers":1},{"year":"2022","papers":5},{"year":"2023","papers":9},{"year":"2024","papers":12},{"year":"2025","papers":3}],"row_source":"methods_table","archive":{"source":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","archive_url":"https://paperswithcode.com/method/coop"},"syntology_read_at":"2026-10-05T00:36:11+00:00","syntology":{"source":"Syntology's have check for this name (the free coverage lookup), read from Syntology's graph","have_url":"https://syntology.ai/api/graph/have?x=CoOp","read_at":"2026-10-05T00:54:02+00:00","query":"CoOp","kind":"method","have":"no_code","tier":"paper_only","verified_implementation":false,"level":null,"level_meaning":"the served verification level, per answer; never summed across methods","resolved_to":{"method":"Coop","origin_arxiv_id":"2311.00591"},"resolution":"case_insensitive","resolved_name_differs":false,"absence_asserted":"for_this_exact_name_only","absence_unchecked":null,"no_code_is_about_this_method":false,"subject":"different_paper","archive_paper_arxiv_id":"2109.01134","repositories":{"listed":null,"in_graph":0,"list_truncated":null,"strongest_link":null},"retrieve_with":null,"name_competition":{"verdict":"outranked","may_be_wrong_sense":true,"bearers_found":4,"served":{"arxiv_id":"2311.00591","citations":9},"leading_other_bearer":{"arxiv_id":"2109.01134","title":"Learning to Prompt for Vision-Language Models","citations":4355,"named_by":["acronym_expansion"],"bearer_name":"Context Optimization (CoOp)","ask_with":"have('2109.01134')"},"n_other_bearers_listed":3,"note":"'CoOp' is ALSO the name of 'Context Optimization (CoOp)', a method in 'Learning to Prompt for Vision-Language Models' (arXiv:2109.01134, 4,355 citations), which is cited FAR more than the paper this answer is about (9). This answer may be about the wrong CoOp. If you meant the better-known one, ask again with that entry of `also_named`."},"name_competition_text":"The same name also belongs to “Context Optimization (CoOp)”, a method in the paper “Learning to Prompt for Vision-Language Models” (arXiv:2109.01134, 4,355 citations), which the lookup finds cited far more than the paper this answer is about (9 citations), so this answer may be about a different sense of the name.","near_matches":null,"code_nearby":[{"name":"coop-CBM","relation":"shares_name_tokens","relation_means":"shares name tokens with this name; a different method","level":3,"retrieve_with":"get_reference_implementation(name='coop-CBM')","origin_arxiv_id":"2311.11108"},{"name":"COOP-KERNELUCB","relation":"shares_name_tokens","relation_means":"shares name tokens with this name; a different method","level":2,"retrieve_with":"get_reference_implementation(name='COOP-KERNELUCB')","origin_arxiv_id":"2008.06220"}],"code_nearby_caption":"Code Syntology holds under other names, as the lookup lists them (code_nearby); not a complete list, and none of them is this method.","origin_paper":{"arxiv_id":"2311.00591","page":null,"syntology_url":"https://syntology.ai/paper/2311.00591","in_graph_layer":false,"samples":0},"line":"about another paper, arXiv:2311.00591: no code under this name (no_code; paper_only). The lookup matched 'Coop' ignoring case. About another paper: this answer is about arXiv:2311.00591, while the archive credits arXiv:2109.01134, so it does not say whether this method has code.","level_legend":{"state":"quoted","server_card":"https://syntology.ai/.well-known/mcp/server-card.json","card_sha256":"479785a84658dd682a11b10237b3620d651d7f87799f5dc7add970aaa83f6d39","note":"Syntology's served verification levels, quoted verbatim from its MCP server card; a row is split where the card separates clauses with a double hyphen, and the separator is not reproduced","levels":[{"level":"V0","quoted":["imports"]},{"level":"V1","quoted":["executes against a synthesized fixture and returns a value of the recorded type"]},{"level":"V2","quoted":["two implementations GENERATED from the paper's signature and spec agree numerically (1e-6) on fixture inputs","neither of the two ever read the authors' own code, so V2 measures how unambiguously the paper specifies the method, not fidelity to the authors' implementation (measured 2026-09-11, commit 75eaa77: cross_checked_by is a second LLM on 2,628 of 2,831 served samples)"]},{"level":"V3","quoted":["paper-derived property tests pass on both of those same two generations."]}],"no_rung":"No rung on this ladder compares the served code against the authors' implementation, so treat every level as evidence about runnability and internal agreement, not about matching the paper's results."}},"syntology_have_state":"loaded","record_sha256":"f5b12cd7874d466b9c781c909ddb9eb208b5c37cfcb36c5a63b10ea523f8eac7","record_changed_at":"2026-10-05","record_changed_at_basis":"changed"}