This post continues the discussion of the third Multimodal Challenge, Reasoning, defined as "Combining knowledge, usually through multiple inferential steps, exploiting multimodal alignment and problem structure." As discussed in the previous post, this challenge can be broken down into 4 sub-challenges:
The previous post, Multimodal Reasoning: Interactive Structure, explored Interactive Structure, one of the multi-step reasoning structures in the first sub-challenge, through a full review of Reinforcement Learning fundamentals and methods. This post picks up where it left off by examining Structure Discovery, the remaining approach to Structure Modeling. It then moves beyond Structure Modeling to explore the other three sub-challenges: Intermediate Concepts, Inference Paradigm, and External Knowledge.
In one of the previous posts, Structured Representations & Reasoning, several methods for Modular Structure are explored that dynamically build a hierarchical structure by leveraging the semantic or syntactic structure of natural language: a question is first parsed, and the resulting structure is then used to dynamically construct a deep network composed of reusable modules, such as attend[,], classify[.], and combine[.].
The natural next question is whether a system can learn that module layout on its own without relying on a parser. To answer this, the choice of modules and their composition can be framed as a policy that a network learns, with the reward signal determined by whether the resulting composition produces the correct answer. Because module selection involves discrete decisions, the model can't be trained with ordinary backpropagation. Instead, it relies on REINFORCE algorithm for discrete optimization:$$\nabla_\theta J(\theta) = \mathbb{E}_{\tau \sim p(\tau;\theta)} \left[ \sum_{t=0}^{T-1} \nabla_\theta \log \pi_\theta(a_t \mid s_t) G_t \right] \approx \frac{1}{N} \sum_{i=1}^{N} \sum_{t=0}^{T-1} \nabla_\theta \log \pi_\theta(a_t^{(i)} \mid s_t^{(i)}) G_t^{(i)}$$ where trajectories $\tau_i$ are sampled and the gradient $\nabla_\theta J(\theta)$ is estimated from the return along each trajectory, treating the environment and the reward function as a black box.
The reinforcement-learning approach to structure discovery generalizes well but is slow because every candidate composition has to be sampled and evaluated.Several later approaches trade some of this flexibility in discrete optimization for speed through continuous relaxations:
DARTS: Differentiable ARchiTecture Search approximates the discrete choices operations (e.g., convolution, max pooling) using a softmax distribution, turning the original discrete structure search problem into a continuous bi-level optimization, composed of an inner loop that trains the network weights and an outer loop that adjusts the operation weights. Once training converges, the softmax distribution is converted back into a discrete choice.Faster, though the bi-level optimization itself is still nontrivial.
DAGs with NO TEARS: Continuous Optimization for Structure Learning addresses the problem of structure learning in graphical models, where the goal is to learn the relationships among variables from data. A common setting is to represent these relationships as a directed acyclic graph (DAG), where nodes represent variables and directed edges represent their relationships. However, learning a DAG from data is an NP-hard problem, mainly due to the combinatorial acyclicity constraint: The learned graph must contain no directed cycles.
The paper converts the combinatorial optimization problem into a continuous program by replacing the combinatorial acyclicity constraint with a smooth equality constraint that encodes the acyclicity constraint over the adjacency matrix. This allows graph-structure learning to be formulated as a continuous optimization problem to which standard numerical algorithms for constrained problems can be applied, though the resulting program is nonconvex.
The second sub-challenge in reasoning is Intermediate Concepts, which is defined as:
"The parameterization of individual multimodal concepts in the reasoning process."
One way to introduce discreteness is hard attention gates. Instead of assigning a softmax-weighted distribution over inputs, the model makes a binary 0/1 selection, effectively inserting a discrete decision layer in between differentiable neural layers. This shows up in multimodal sentiment and emotion recognition, where word-level gates decide which modality signals to keep at each time step. Because each gate makes a discrete decision by outputting either 0 or 1 based on its input, it cannot be trained directly through ordinary backpropagation. Instead, it is trained using REINFORCE-style optimization, with downstream task performance used as the reward signal.
A different way to get discrete, interpretable intermediate concepts is to bypass learned embeddings altogether and let separate large pretrained models, such as Language Models (LMs), Vision Language Models (VLMs), and Audio Language Models (ALMs), communicate directly in natural language.
Socratic Models: Composing Zero-Shot Multimodal Reasoning with Language allows each large pretrained model to keep its own domain-specific knowledge, and the interactions between them are scripted using prompt templates rather than trained. The result is a modular framework that composes multiple pretrained large models for zero-shot multimodal reasoning, without requiring any additional training or fine-tuning.
Treating language as the shared interface means each model's internal knowledge becomes a common, human-readable form that other models can consume directly without requiring joint training.This pattern has been used for zero-shot image captioning, for robot perception and planning, where visual scenes are translated into language that an agent can act upon, and video reasoning.
For instance, to generate a caption for an image, the target image is first fed to a VLM model which detects the place category, object categories, image type, and the number of people for it and returns top-k predictions in natural language. These predictions can then be substituted into an LM prompt template, for example:
"I am an intelligent image captioning bot. This image is a {img_type}. There are {num_people}. I think this photo was taken at a {place1}, {place2}, or {place3}. I think there might be a {object1}, {object2}, {object3},... in this {img_type}. A creative short caption I can generate to describe this image is:"
Given the VLM-informed prompt, a causal LM, meaning a language model that generates text through next-token prediction, generates several candidate captions. Finally, these captions are ranked by another VLM together with the target image, and the highest scoring caption is returned. Therefore, we have: $\text{caption} = f^3_{VLM}(f^2_{LM}(f^1_{VLM}(\text{image})))$.
The third sub-challenge is Inference Paradigm, which is defined as:
"How increasingly abstract concepts are inferred from individual multimodal evidences."
It's useful to think of this as a spectrum: a purely learned representation sits at one end, explicit logical inference sits further along, and explicit causal inference sits furthest along.
In visual question answering (VQA) tasks, when models are given an image and tested with questions built from basic premises connected by logical operators, such as AND, OR, and NOT, a consistent pattern emerges: models handle the basic premises fine, such as "Are they in a restaurant?" or "Are they all girls?", but accuracy drops once questions involve logical connectives, such as "Are they in a restaurant AND are they all girls?". Performance drops even further under adversarial antonym swaps, such as "Are they in a restaurant AND are they all boys?".
VQA-LOL: Visual Question Answering under the Lens of Logic uses LXMERT, introduced in the post Multimodal Transformers - Part 1 , as the encoder for an image-question pair input. The model then takes its cross-modal output from LXMERT and feeds it into a Question Attention module and a Logic Attention module in parallel. The outputs of these two attention modules are concatenated and passed to an Answering Module to predict the answer.
The Question Attention module predicts the question type, such as Yes-No, Number, or Other, while the Logic Attention module predicts the probability of each logical operator, such as AND, OR, and NOT, present in the question.

Causal inference rests on the idea of an intervention: what would happen to an outcome if a variable were deliberately set to a value? Causation differs from association in that the former describes how outcomes would change under different circumstances, whereas the latter only describes how variables happen to co-occur in observational data.
A causal diagram is a graph that describes the causal relationships between observed variables where the nodes represent the variables, and the directed edges represent their causal relationships, with the arrows pointing from cause to effect. For example, suppose we have:
$$\begin{aligned}& x= \text{rand()}\\& y=x+1+rand()\end{aligned}$$Then, the corresponding causal diagram contains a directed edge $x \to y$.
When an intervention is applied to a variable, it can be represented as removing all graph edges that point into that variable, since those causal pathways no longer determine its value once it is fixed externally. Using the equations above as an example, applying the intervention $\text{do}(y=c)$, which sets $y$ to a fixed value $c$, removes the edge from $x$ to $y$.
However, in practice, real-world interventions, such as asking "Does a treatment actually affect a patient's outcome?", are often difficult to carry out. This is why formal tools for estimating interventional effects from observational data are important.
Existing models can struggle to adapt to targeted causal interventions. Towards Causal VQA: Revealing and Reducing Spurious Correlations by Invariant and Covariant Semantic Editing proposes a framework to analyze and measure the robustness of state-of-the-art (SOTA) Visual Question Answering (VQA) models against spurious correlations, where models predict answers based on irrelevant objects in the image that merely co-occur with the visual evidence relevant to the question. To test the models, the authors semantically edit the image and check whether the model's prediction changes or remains unchanged as expected. They propose two types of semantic image edits:
The paper finds that existing VQA models exploit spurious correlations, relying on irrelevant objects in the image to predict the answer rather than on the visual evidence relevant to the question. For example, removing giraffes can cause models to stop detecting zebras, suggesting that they may have been using the presence of giraffes as a contextual cue. In addition, the evaluation also shows that existing VQA models already struggle with counting problems even without any edits, and all of the SOTA VQA models evaluated by the paper fail to consistently count the correct number of objects for $>75\%$ of the covariant-edited images. In other words, if models can correctly count the objects in the original image, they often fails to produce the corresponding count after one instance of the relevant object is removed.
Finally, the paper proposes a data augmentation-based technique to improve models' performance by fine-tuning these models on their invariant-edited and covariant -edited data. This encourages the models to remain consistent under irrelevant changes while responding appropriately to relevant ones.
The fourth sub-challenge is External Knowledge, which is defined as:
"The derivation of knowledge in the study of inference, structure, and reasoning."
This sub-challenge examines how a reasoning system pulls in information that isn't directly present in the multimodal input itself, such as information from structured knowledge graphs or unstructured sources, and leverage it for reasoning.
OK-VQA: A Visual Question Answering Benchmark Requiring External Knowledge builds a benchmark for visual question answering (VQA) task specifically around questions that require outside knowledge. For example, correctly naming an object as a "wakeboard" versus a generic "board" requires knowing about water sports and equipment. The paper also shows that the performance of existing state-of-the-art (SOTA) VQA models degrades drastically on this new dataset.
KAT: A Knowledge Augmented Transformer for Vision-and-Language is a sequence-to-sequence model for Visual Question Answering (VQA) tasks that leverages knowledge during reasoning and answer generation.
There are two types of knowledge that are integrated during knowledge reasoning: One is explicit knowledge, retrieved from external knowledge bases such as English Wikidata. The other is implicit knowledge, which is commonsense knowledge captured in the parameters of a large-scale language model. Each type of knowledge is retrieved using a different method:
(Coca-Cola, carbonated brown-colored soft drink).After retrieveing top-$m$ explicit knowledge entries and the implicit knowledge, the question is concatenated with each of the knowledge, resulting in $m+1$ question-knowledge pairs. Each of the question-knowledge pairs is then encoded by a separate Transformer encoder. For each Transformer encoder, its output representations are averaged to obtain a single vector representating the corresponding question-knowledge pair, $x\in\mathbb{R}^d$.
To jointly reason over all the question-knowledge pairs, their representations are concatenated to form a global knowledge representation $X\in\mathbb{R}^{(m+1)\times d}$, which is used to generate Keys and Values and fed into the cross-attention modules in a Transformer decoder, while the Queries are derived from previously generated tokens. The Transformer decoder then generates the answer autoregressively. The paper refers to these cross-attention modules inside the Transformer decoder as the Reasoning Module that allow KAT to jointly reason over explicit and implicit knowledge during answer generation .
Building a Large-scale Multimodal Knowledge Base System
for Answering Visual Queries designs a system that can efficiently learn a Large-scale Multimodal Knowledge Base (KB) from multiple data sources for visual querying tasks, where the goal is to retrieve all the images that satisfy a given query.
A KB can be thought of as a graph of nodes connected by edges, where the nodes are entities and the edges are relations. The entities describe the images and include scene categories, visual attributes (e.g., clouds, sunny, or warm), and functional affordances (i.e., actions that can be performed in the given scene, such as cooking). The relations link entities to one another, and the learned weights associated with the edges indicate the strength of the relations.
One advantage of employing a KB system to answer visual queries is its ability to handle rich and diverse types of queries without new classifiers to be trained. For example, users can ask the KB a question in natural language, such as "find me a list of sunny beaches", then the question will be reformulated into a logical form: $$\text{sceneCategory}(i, \text{beach}) \land \text{sceneAttribute}(i, \text{sunny}) $$
The KB then returns all the images $i$ for which both predicates are true.

Beyond factual knowledge graphs, several resources try to encode softer, more subjective kinds of knowledge, including if-then commonsense about the causes and effects of everyday events, and moral or social judgments about what counts as rude, expected, or acceptable in a given situation. However, these remain open and unresolved challenges for grounding reasoning systems in the kinds of knowledge that people apply automatically but rarely write down clearly as defined facts.
The 4 sub-challenges in Reasoning are: Structure Modeling, defining or learning the relationships over which reasoning occurs; Intermediate Concepts, the parameterization of individual multimodal concepts in the reasoning process; Inference Paradigm, how increasingly abstract concepts are inferred from individual multimodal evidences; and External Knowledge, leveraging external knowledge in the study of structure, concepts, and inference.
The choice and composition of modules for structure discovery can be framed as a policy learning problem and tackled via REINFORCE-style discrete optimization. However, discrete optimization is slow, and a common solution is to introduce some form of continuous relaxation, such as approximating discrete choices with a softmax distribution or replacing discrete constraints with smooth equality constraints.
Intermediate concepts can be made more discrete and interpretable through replacing softmax-weighted distribution with hard attention , which acts as a discrete decision layer within the model, or by using natural language as an interface between pretrained large-scale multimodal models, allowing intermediate reasoning steps to be expressed as human-readable concepts rather than hidden embeddings.
The performance of existing SOTA VQA models has been shown to degrade drastically when evaluated for robustness against spurious correlations, indicating that when predicting answers based on the image content for a given question, the models shift their answers even when an unrelated, merely co-occurring object is removed.