编码智能体替代梯度下降:冻结COCO检测器类别头的小样本适配
Gradient-Free Few-Shot Adaptation of Vision Models via Agentic Coding
研究提出Agent edit方法,由编码智能体编写程序直接设定冻结COCO检测器类别头的新类权重,全程不执行梯度步骤。在相同类别头与标签下,该方法在四个细粒度数据集中的两个上以5 shots超过全解码器微调,F1分别高出11.2和12.3点,其余持平;10 shots时微调追平或反超。新类与COCO类联合评分时,所属COCO类AP最多下降33.3点。
arXiv:2611.28105v1 Announce Type: new Abstract: 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org