SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2309.05950 · 2023

Language Models as Black-Box Optimizers for Vision-Language Models

arXiv · PDF · Open in the Atlas

Code that ran

8 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 failures of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2309.05950.json · badge: /api/ran/2309.05950.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
shihongl1998/llm-as-a-blackbox-optimizer canonical (classifier label)
classifier basis: census
8 ran · 3 no recorded run
FunctionStatusWhere it lives
encode_image Ran
ran; our contract draft was wrong, not the code
shihongl1998/llm-as-a-blackbox-optimizer/auto_prompt_image_optimization.py
pointer only (licence: NONE); the stored copy get_code serves, from jongwoopark7978/LVNet, is pointer only (licence: NONE) · get_code("f41cb1a19b154297")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shihongl1998/llm-as-a-blackbox-optimizer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_experiment_name Ran
ran; our contract draft was wrong, not the code
shihongl1998/llm-as-a-blackbox-optimizer/utils.py
pointer only (licence: NONE) · get_code("60d87e4e28792d30")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shihongl1998/llm-as-a-blackbox-optimizer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_message Ran
ran; our contract draft was wrong, not the code
shihongl1998/llm-as-a-blackbox-optimizer/prompt_pool.py
pointer only (licence: NONE) · get_code("5bc725a3a530c2c4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shihongl1998/llm-as-a-blackbox-optimizer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_split_transformer Ran
ran; our contract draft was wrong, not the code
shihongl1998/llm-as-a-blackbox-optimizer/engine/clip/partial_model.py
pointer only (licence: NONE) · get_code("e07e33e12b2f42d7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shihongl1998/llm-as-a-blackbox-optimizer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_split_vit Ran
ran; our contract draft was wrong, not the code
shihongl1998/llm-as-a-blackbox-optimizer/engine/clip/partial_model.py
pointer only (licence: NONE) · get_code("219ed3eef816ba50")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shihongl1998/llm-as-a-blackbox-optimizer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_text_encoder Ran
ran; our contract draft was wrong, not the code
shihongl1998/llm-as-a-blackbox-optimizer/engine/clip/partial_model.py
pointer only (licence: NONE) · get_code("0aa8eb7ae30a6420")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shihongl1998/llm-as-a-blackbox-optimizer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_templates_from_txt Ran
ran; our contract draft was wrong, not the code
shihongl1998/llm-as-a-blackbox-optimizer/load_laioncoco_templates.py
pointer only (licence: NONE) · get_code("e62bfda6e308ebbc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shihongl1998/llm-as-a-blackbox-optimizer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

read_classnames Ran
ran; our contract draft was wrong, not the code
shihongl1998/llm-as-a-blackbox-optimizer/engine/datasets/imagenet.py
pointer only (licence: NONE); the stored copy get_code serves, from baowenxuan/Mint, is pointer only (licence: NONE) · get_code("92f525cf6230e44e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shihongl1998/llm-as-a-blackbox-optimizer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

ask_chatgpt_for_prompt Not yet run
unverified (harvested, no recorded run)
shihongl1998/llm-as-a-blackbox-optimizer/auto_prompt_prompt_inversion.py
pointer only (licence: NONE) · get_code("31025d8eb991afe7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shihongl1998/llm-as-a-blackbox-optimizer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

build_model Not yet run
unverified (harvested, no recorded run)
shihongl1998/llm-as-a-blackbox-optimizer/engine/clip/model.py
pointer only (licence: NONE); the stored copy get_code serves, from Sheldon04/NeRP, is pointer only (licence: NONE) · get_code("c47aa9e5b049a11d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shihongl1998/llm-as-a-blackbox-optimizer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_init_templates Not yet run
unverified (harvested, no recorded run)
shihongl1998/llm-as-a-blackbox-optimizer/utils.py
pointer only (licence: NONE) · get_code("5ca56bc26635e339")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shihongl1998/llm-as-a-blackbox-optimizer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 3 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 3 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
build_model 119 other papers
37 dated earlier, 5 the same month, 72 later, 3 same year, order not determinable, 2 undated
1809.11096 (2018-09)
Large Scale GAN Training for High Fidelity Natural Image Synthesis
1901.07441 (2019-01)
PadChest: A large chest x-ray image dataset with multi-label annotated reports
2104.14294 (2021-04)
Emerging Properties in Self-Supervised Vision Transformers
and 116 more not named here
encode_image 76 other papers
76 later
2311.15732 (2023-11)
GPT4Vis: What Can GPT-4 Do for Zero-shot Visual Recognition?
2312.14867 (2023-12)
VIEScore: Towards Explainable Metrics for Conditional Image Synthesis Evaluation
Cao_MAPLM_A_Real-World_Large-Scale_Vision-Language_Benchmark_for_Map_and_Traffic_CVPR_2024_paper (2024 (year only))
MAPLM: A Real-World Large-Scale Vision-Language Benchmark for Map and Traffic Scene Understanding
and 73 more not named here
read_classnames 2 other papers
2 later
2401.15657 (2024-01)
Data-Free Generalized Zero-Shot Learning
2510.22127 (2025-10)
Mint: A Simple Test-Time Adaptation of Vision-Language Models against Common Corruptions

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Vision-language models (VLMs) pre-trained on web-scale datasets have demonstrated remarkable capabilities on downstream tasks when fine-tuned with minimal data. However, many VLMs rely on proprietary data and are not open-source, which restricts the use of white-box approaches for fine-tuning. As such, we aim to develop a black-box approach to optimize VLMs through natural language prompts, thereby avoiding the need to access model parameters, feature embeddings, or even output logits. We propose employing chat-based LLMs to search for the best text prompt for VLMs. Specifically, we adopt an automatic hill-climbing procedure that converges to an effective prompt by evaluating the performance of current prompts and asking LLMs to refine them based on textual feedback, all within a conversational process without human-in-the-loop. In a challenging 1-shot image classification setup, our simple approach surpasses the white-box continuous prompting method (CoOp) by an average of 1.5% across 11 datasets including ImageNet. Our approach also outperforms both human-engineered and LLM-generated prompts. We highlight the advantage of conversational feedback that incorporates both positive and negative prompts, suggesting that LLMs can utilize the implicit gradient direction in textual feedback for a more efficient search. In addition, we find that the text prompts generated through our strategy are not only more interpretable but also transfer well across different VLM architectures in a black-box manner. Lastly, we apply our framework to optimize the state-of-the-art black-box VLM (DALL-E 3) for text-to-image generation, prompt inversion, and personalization.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2309.05950")
get_code_for_paper("2309.05950")
have("2309.05950")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2309.05950.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2309.05950.svg)](https://syntology.ai/paper/2309.05950)

Connect an agent — have() is free.