Papers › InstructCV: Instruction-Tuned Text-to-Image Diffusion Models as Vision Generalists

InstructCV: Instruction-Tuned Text-to-Image Diffusion Models as Vision Generalists

30 Sep 2023arXiv:2310.00390archive 2025-07-28

Yulu Gan, Sungwoo Park, Alexander Schubert, Anthony Philippakis, Ahmed M. Alaa

Recent advances in generative diffusion models have enabled text-controlled synthesis of realistic and diverse images with impressive quality. Despite these remarkable advances, the application of text-to-image generative models in computer vision for standard visual recognition tasks remains limited. The current de facto approach for these tasks is to design model architectures and loss functions that are tailored to the task at hand. In this paper, we develop a unified language interface for computer vision tasks that abstracts away task-specific design choices and enables task execution by following natural language instructions. Our approach involves casting multiple computer vision tasks as text-to-image generation problems. Here, the text represents an instruction describing the task, and the resulting image is a visually-encoded task output. To train our model, we pool commonly-used computer vision datasets covering a range of tasks, including segmentation, object detection, depth estimation, and classification. We then use a large language model to paraphrase prompt templates that convey the specific tasks to be conducted on each image, and through this process, we create a multi-modal and multi-task training dataset comprising input and output images along with annotated instructions. Following the InstructPix2Pix architecture, we apply instruction-tuning to a text-to-image diffusion model using our constructed dataset, steering its functionality from a generative model to an instruction-guided multi-task vision learner. Experiments demonstrate that our model, dubbed InstructCV, performs competitively compared to other generalist and task-specific vision models. Moreover, it exhibits compelling generalization capabilities to unseen data, categories, and user instructions.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2310.00390")

Code

Syntology Ran 2 of 12 code samples harvested from 1 repository linked to this paper; 10 have no recorded run. Of those that ran: 2 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

AlaaLab/InstructCV officialmentioned in papermentioned on GitHubpytorchNOASSERTION report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 2 ran; 0 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran
10unverified

Licence: 12 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from AlaaLab/InstructCV. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

iou AlaaLab/InstructCV/evaluate/evaluate_cls_seg_det.py official repository ran licence not identified · pointer only · 1a20155f648328f5 · report
read_pred_img AlaaLab/InstructCV/evaluate/evaluate_depes.py official repository ran licence not identified · pointer only · 30d263a2a2ae4188 · report
absolute_mean_relative_error AlaaLab/InstructCV/evaluate/evaluate_depes.py official repository unverified licence not identified · pointer only · b0f21fc9a1aa3b08 · report
cal_bboxes_iou AlaaLab/InstructCV/evaluate/evaluate_cls_seg_det.py official repository unverified licence not identified · pointer only · 120433ec9c58b66e · report
calc_iou AlaaLab/InstructCV/evaluate/evaluate_cls_seg_det.py official repository unverified licence not identified · pointer only · eeb478400c75c259 · report
get_bbox_prompt AlaaLab/InstructCV/build_data/format_dataset_fp.py official repository unverified licence not identified · pointer only · 4155a5233179db09 · report
get_bbox_prompt AlaaLab/InstructCV/build_data/format_dataset_rp.py official repository unverified licence not identified · pointer only · 3647dbec915093fa · report
get_cls_prompt AlaaLab/InstructCV/build_data/format_dataset_fp.py official repository unverified licence not identified · pointer only · 4e8ac6d87ea2d135 · report
get_cls_prompt AlaaLab/InstructCV/build_data/format_dataset_rp.py official repository unverified licence not identified · pointer only · e9016d81762a6bb7 · report
get_seg_prompt AlaaLab/InstructCV/build_data/format_dataset_fp.py official repository unverified licence not identified · pointer only · 0d7e7a5e4d33be60 · report
get_seg_prompt AlaaLab/InstructCV/build_data/format_dataset_rp.py official repository unverified licence not identified · pointer only · b544ea6180a53824 · report
read_gt_img AlaaLab/InstructCV/evaluate/evaluate_depes.py official repository unverified licence not identified · pointer only · 523afd8adffe17ce · report

Tasks

Depth EstimationImage GenerationLanguage ModellingLarge Language ModelObject DetectionText to Image GenerationText-to-Image Generationobject-detection

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

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