Abstract
Multimodal Large Language Models (MLLMs) are increasingly used as judges for complex visual tasks, yet they face a trade-off between the speed of scoring models and the accuracy of generative models. We present YOFO (You Only Forward Once), a paradigm that enables MLLMs to perform deep, compositional analysis of multi-part requirements in a single forward pass. By decomposing queries into structured templates and utilizing logit-based inference, YOFO achieves state-of-the-art reranking accuracy with the throughput of simple classifiers.
Introduction
In e-commerce and visual search, "rerankers" are critical for ensuring search results align with complex user intent. A typical challenge involves processing queries with multiple constraints, such as "a long-sleeved midi dress that isn't pink." Standard models often struggle with such compositional logic, frequently failing on negative constraints (e.g., "not pink") due to keyword overlap.
Existing MLLM judging approaches generally fall into two categories: fast but shallow scoring models that produce a single scalar, and accurate but slow generative models that produce text token-by-token. YOFO bridges this gap by providing a middle ground: high-speed, multi-factor analysis.
The YOFO Paradigm
YOFO introduces a template-conditioned judging approach that avoids the latency of autoregressive text generation. By shifting from "typing" an answer to checking probability distributions at specific indices, the model can evaluate multiple requirements simultaneously.
Methodology
- Decomposition: An LLM first breaks a natural language query into atomic, verifiable requirements (e.g., "is long-sleeved," "is not pink").
- Structured Templates: These requirements are formatted into a template where each is followed by an
unknowntoken placeholder. - Logit-Based Inference: The model processes the image and template simultaneously. Instead of generating text, it inspects the probability (logits) of "yes" vs. "no" at the index of each placeholder.
- Post-hoc Chain-of-Thought (CoT): During training, the model learns to provide justifications after its binary judgments. This "implicit reasoning" improves internal representations and accuracy without adding inference-time overhead.
- Dependency-Awareness: Utilizing causal attention, the model can handle conditional logic where later judgments depend on previous ones in the template.
Experimental Results
The authors evaluated YOFO on the LRVS-Fashion (Large-scale Referred Visual Search) benchmark, a challenging real-world dataset.
- Superior Accuracy: YOFO (based on Qwen3-VL) achieved a ranking error rate of just 3.7%, significantly outperforming baseline rerankers like Jina-Reranker-m0, which had an error rate of 16.2%.
- Massive Throughput: The model maintained a throughput of 48 image pairs per second, matching the speed of scalar scoring models while providing the depth of generative judges.
- Logical Consistency: In tests involving dependent logic (e.g., "Is the answer to this the opposite of the last one?"), YOFO reached 99.1% accuracy, demonstrating a robust understanding of structured context.
Discussion and Future Work
YOFO demonstrates that "judging" is a transferable meta-skill. Despite being trained on general images from the SA-1B dataset, it showed exceptional zero-shot generalization to the fashion domain.
However, the system remains dependent on the quality of the initial query decomposition. Future research may explore YOFO's application in video search or as a multi-factor reward model for Reinforcement Learning from Human Feedback (RLHF), where granular feedback is more valuable than a single scalar score.
Conclusion
YOFO offers a scalable solution for high-performance visual reranking. By shifting from text generation to structured logit analysis, it provides the necessary speed for production environments without sacrificing the reasoning capabilities of large multimodal models.
Summary updated