You May Speak Freely: Improving the Fine-Grained Visual Recognition Capabilities of Multimodal Large Language Models with Answer Extraction
Logan Lawrence, Oindrila Saha, Megan Wei, Chen Sun, Subhransu Maji, Grant Van Horn
TL;DR
This work tackles the challenge of evaluating free-form outputs from multimodal large language models in fine-grained visual classification (FGVC). It introduces nlg2choice, a two-stage pipeline that first elicits an open-ended answer and then uses text-only constrained decoding to extract a final class, supplemented by an early-stopping mechanism to speed retrieval. Across seven FGVC datasets, nlg2choice yields consistent improvements in both zero-shot classification and retrieval, and proves robust to prompt variations without requiring additional training. The study also analyzes the extraction process, showing high out-of-the-box extraction performance for several models and highlighting the nature of remaining errors, with resources released to support further research.
Abstract
Despite the renewed interest in zero-shot visual classification due to the rise of Multimodal Large Language Models (MLLMs), the problem of evaluating free-form responses of auto-regressive models remains a persistent challenge. Most existing works focus on language-only tasks or don't consider Multiple Choice Questions (MCQs) beyond 5-way options, both of which are critical capabilities to solve tasks in Fine-Grained Visual Classification (FGVC) where choice counts are in the hundreds to thousands and the choices are highly related. Furthermore, in this highly multi-way MCQ setting it is not clear how to extend LLM choice extraction to retrieval-based problems, where computing probabilities over the choice set is computationally costly. In this work we investigate nlg2choice, a simple two-stage method which first asks the MLLM an open-ended question for the task with minimal constraints, then uses text-only constrained decoding to predict the most likely choice. In retrieval settings, we compute the probability of the constrained response taking that choice with an early stopping method to significantly improve throughput. Our results show improvement over a suite of seven fine-grained visual datasets when evaluating in terms of classification and retrieval, and show that this performance holds over the various ways that users of LLMs can implement tasks in natural language.
