Beyond Surface Imitation: Contrastive Modeling for Reasoning Path Alignment in Multimodal In-Context Learning
Multimodal Large Language Models (MLLMs) often struggle with complex tasks because they rely on "surface level imitation"—copying patterns from examples rather than truly understanding the visual evidence. This paper introduces COMIL, a framework designed to shift MLLMs from simply mimicking output formats to following a logical reasoning path. By providing explicit guidance on how to refine a suboptimal response into a better one, COMIL helps models ground their answers in the specific visual details required for a task.
Moving Beyond Surface Imitation
Standard in-context learning provides models with examples of inputs and their correct outputs. However, when faced with complex visual questions, models often latch onto superficial similarities between the current input and the examples, leading to incorrect, "copied" answers. COMIL addresses this by reformulating demonstrations. Instead of just showing a final answer, each demonstration in COMIL includes a "suboptimal" response, a "better" response, and a reasoning path that explains the transition between the two. This teaches the model how to diagnose its own mistakes and identify the visual evidence needed to correct them. The same large language models question is explored in Cross-Regional Grapevine Cold Hardiness Prediction via..., which adds a research perspective.
Response-Conditioned Refinement
Because the best way to improve a response depends on what the model has already generated, COMIL uses a dynamic retrieval mechanism. Rather than selecting examples based solely on the input image or question, the system also looks at the similarity between the model's current, imperfect response and the suboptimal responses in its database. By retrieving demonstrations that specifically address the current error, the model receives highly relevant guidance for its next refinement step.
Quality Control and Stopping
To ensure the model doesn't over-refine or drift away from the correct answer, COMIL incorporates a lightweight alignment controller. This module acts as a quality monitor, predicting how well a response aligns with the desired task performance. It uses an acceptance threshold to decide when a response is "good enough," allowing the model to stop the refinement process early if it has reached a high-quality state. This prevents the model from potentially degrading a good answer through unnecessary further iterations. The same large language models question is explored in DRACO, which adds a research perspective.
Performance Gains
Experiments across various MLLMs show that COMIL consistently improves performance on reasoning-intensive tasks. The framework achieved notable success on Visual Question Answering (VQA) benchmarks, such as improving the accuracy of the Qwen3.5-9B model to 81.9%. These results demonstrate that by explicitly modeling the reasoning path, MLLMs can achieve more reliable, evidence-grounded performance without requiring parameter updates or additional training. as detailed in the full paper on Arxiv
Comments (0)
to join the discussion
No comments yet
Be the first to share your thoughts!