Disentangling Fine-Tuning from Pre-Training in Visual Captioning with Hybrid Markov Logic
Monika Shah, Somdeb Sarkhel, Deepak Venugopal
TL;DR
The paper tackles the challenge of disentangling knowledge acquired during fine-tuning from pretraining in visual captioning. It introduces a Hybrid Markov Logic Network (HMLN) that combines symbolic predicates extracted from captions with real-valued CLIP-based visual terms, and defines two inference tasks: abductive MAP inference to assess caption likelihood given an image, and back-tracing training examples via sampling and MILP to explain the caption’s dependence on fine-tuning data. Experiments on MSCOCO across five captioning architectures—including BLIP2, a Visual Large Language Model—show that LLM-based systems leverage broad pretraining knowledge, making their captions harder to trace to fine-tuning data, while non-LLM baselines align more with the finetuning distribution. The work provides a principled method for knowledge attribution in multimodal systems and suggests directions for diagnosing and improving the reliability of captioning under strong pretraining signals.
Abstract
Multimodal systems have highly complex processing pipelines and are pretrained over large datasets before being fine-tuned for specific tasks such as visual captioning. However, it becomes hard to disentangle what the model learns during the fine-tuning process from what it already knows due to its pretraining. In this work, we learn a probabilistic model using Hybrid Markov Logic Networks (HMLNs) over the training examples by relating symbolic knowledge (extracted from the caption) with visual features (extracted from the image). For a generated caption, we quantify the influence of training examples based on the HMLN distribution using probabilistic inference. We evaluate two types of inference procedures on the MSCOCO dataset for different types of captioning models. Our results show that for BLIP2 (a model that uses a LLM), the fine-tuning may have smaller influence on the knowledge the model has acquired since it may have more general knowledge to perform visual captioning as compared to models that do not use a LLM
