LLaFS: When Large Language Models Meet Few-Shot Segmentation
Lanyun Zhu, Tianrun Chen, Deyi Ji, Jieping Ye, Jun Liu
TL;DR
LLaFS introduces a novel framework that leverages large language models to perform few-shot segmentation by translating image understanding into a text-driven polygon prediction task. It couples a segmentation-task instruction with a fine-grained in-context instruction, enabling the LLM to propose a 16-point polygon that delineates target objects, followed by a lightweight refinement network to yield precise masks. The approach is trained with pseudo-sample curriculum pretraining, using progressively harder synthetic data to augment limited labeled samples. Across PASCAL-5^i and COCO-20^i, LLaFS achieves state-of-the-art results, underscoring the potential of LLMs for cross-modal few-shot vision tasks and suggesting a path toward multi-domain, LLM-enabled perception systems.
Abstract
This paper proposes LLaFS, the first attempt to leverage large language models (LLMs) in few-shot segmentation. In contrast to the conventional few-shot segmentation methods that only rely on the limited and biased information from the annotated support images, LLaFS leverages the vast prior knowledge gained by LLM as an effective supplement and directly uses the LLM to segment images in a few-shot manner. To enable the text-based LLM to handle image-related tasks, we carefully design an input instruction that allows the LLM to produce segmentation results represented as polygons, and propose a region-attribute table to simulate the human visual mechanism and provide multi-modal guidance. We also synthesize pseudo samples and use curriculum learning for pretraining to augment data and achieve better optimization. LLaFS achieves state-of-the-art results on multiple datasets, showing the potential of using LLMs for few-shot computer vision tasks.
