Gradient-Free Few-Shot Adaptation of Vision Models via Agentic Coding
On the map: LLM agents and tool use → Multimodal and embodied agents
Abstract (arXiv)
Adapting a vision model to new classes from a few labeled images usually relies on gradient fine-tuning, which is unstable with so few images. We ask whether a coding agent can replace gradient descent for this task. We propose the Agent edit, a method in which a coding agent writes a program that sets the new class weights in the class head of a frozen COCO-trained detector, with no gradient step. The agent runs the detector on the labeled images a limited number of times and sees how much its edit lowers COCO mAP; the program rebuilds the weights without the agent. In the same head and with the same labels, the Agent edit outperforms full-decoder fine-tuning at five shots on 2 of four fine-grained sets, by 11.2 and 12.3 F1 points, and ties on the rest. At ten shots, fine-tuning ties with or outperforms it. Moreover, when the new classes are scored jointly with the COCO classes, the AP of the COCO class to which they belong falls by up to 33.3 points, and limiting that loss lowers F1 on the new classes. Most of the agent's programs share three parts, which we write as a formula that needs no agent. A classifier on frozen backbone features reaches a higher F1 than every method inside the head on every set. Hence a coding agent can replace gradient descent only in part: inside the head and at five shots.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Multimodal and embodied agents, one of 16 directions in LLM agents and tool use. Builds on 64 of its 85 references that are in the map. Submitted 17 Nov 2026, announced 24 Nov 2026.
Builds on
64 of 85 references.
References · 64
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 34,995
- 2014Microsoft COCO: Common Objects in Contextcited by 18,045
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,989
- 2017Prototypical Networks for Few-shot Learningcited by 3,087
- 2022Locating and Editing Factual Associations in GPTcited by 2,951
- 2016Learning without Forgettingcited by 2,595
- 2016iCaRL: Incremental Classifier and Representation Learningcited by 2,384
- 2021Learning to Prompt for Vision-Language Modelscited by 2,355
- 2013Describing Textures in the Wildcited by 2,183
- 2013Fine-Grained Visual Classification of Aircraftcited by 1,811
- 2017EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classificationcited by 1,548
- 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,502
38 more
- 2022Editing Models with Task Arithmeticcited by 1,272
- 2025SAM 3: Segment Anything with Conceptscited by 1,187
- 2022Mass-Editing Memory in a Transformercited by 1,110
- 2025AlphaEvolve: A coding agent for scientific and algorithmic discoverycited by 1,078
- 2023Large Language Models as Optimizerscited by 985
- 2023TIES-Merging: Resolving Interference When Merging Modelscited by 916
- 2021Robust fine-tuning of zero-shot modelscited by 850
- 2022Fine-Tuning can Distort Pretrained Features and Underperform Out-of-Distributioncited by 796
- 2019A Closer Look at Few-shot Classificationcited by 698
- 2024MLE-bench: Evaluating Machine Learning Agents on Machine Learning Engineeringcited by 572
- 2020Rethinking Few-Shot Image Classification: a Good Embedding Is All You Need?cited by 445
- 2023MLAgentBench: Evaluating Language Agents on Machine Learning Experimentationcited by 426
- 2022Tip-Adapter: Training-free Adaption of CLIP for Few-shot Classificationcited by 388
- 2018Dynamic Few-Shot Visual Learning without Forgettingcited by 386
- 2020Frustratingly Simple Few-Shot Object Detectioncited by 289
- 2025AIDE: AI-Driven Exploration in the Space of Codecited by 281
- 2018Few-shot Object Detection via Feature Reweightingcited by 270
- 2018Explicit Inductive Bias for Transfer Learning with Convolutional Networkscited by 249
- 2017All-but-the-Top: Simple and Effective Postprocessing for Word Representationscited by 243
- 2019iSAID: A Large-scale Dataset for Instance Segmentation in Aerial Imagescited by 212
- 2019SimpleShot: Revisiting Nearest-Neighbor Classification for Few-Shot Learningcited by 203
- 2019Meta R-CNN : Towards General Solver for Instance-level Few-shot Learningcited by 185
- 2023RanPAC: Random Projections and Pre-trained Models for Continual Learningcited by 182
- 2021FSCE: Few-Shot Object Detection via Contrastive Proposal Encodingcited by 173
- 2018xView: Objects in Context in Overhead Imagerycited by 155
- 2020Rewriting a Deep Generative Modelcited by 112
- 2021DeFRCN: Decoupled Faster R-CNN for Few-Shot Object Detectioncited by 108
- 2020Incremental Few-Shot Object Detectioncited by 103
- 2023FeCAM: Exploiting the Heterogeneity of Class Distributions in Exemplar-Free Continual Learningcited by 99
- 2019Lifelong Machine Learning with Deep Streaming Linear Discriminant Analysiscited by 95
- 2021Generalized Few-Shot Object Detection without Forgettingcited by 89
- 2023Permutation Equivariant Neural Functionalscited by 85
- 2025Text-to-LoRA: Instant Transformer Adaptioncited by 78
- 2021Editing a classifier by rewriting its prediction rulescited by 72
- 2024LP++: A Surprisingly Strong Linear Probe for Few-Shot CLIPcited by 66
- 2024A Hard-to-Beat Baseline for Training-free CLIP-based Adaptationcited by 60
- 2023Neural Functional Transformerscited by 56
- 2021Incremental Few-Shot Instance Segmentationcited by 50
50 most cited of 64 All 64 (JSON)
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026On the Few-Shot Adaptation of Vision-Language Models: A Few Gradient Signs Are All You Need
- 2022Localized Latent Updates for Fine-Tuning Vision-Language Models
- 2026Scalable Minimal-Change Learning for Controllable Image Editing
- 2025Rethinking Few-Shot Adaptation of Vision-Language Models in Two Stages
- 2025Generalizable Vision-Language Few-Shot Adaptation with Predictive Prompts and Negative Learning
- 2023A Closer Look at the Few-Shot Adaptation of Large Vision-Language Models
- 2026Domain-Grounded Candidate Selection for Agentic Image Editing: A Shadow Removal Case
- 2026ImageEdit-R1: Boosting Multi-Agent Image Editing via Reinforcement Learning