SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2603.13326 · 2026

Feature-level Interaction Explanations in Multimodal Transformers

Randy Goebel, Yeji Kim, Housam Babiker, Mi-Young Kim

arXiv · PDF · Open in the Atlas

Code that ran

2 of 3 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 0 failures of our instrument; 1 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2603.13326.json · badge: /api/ran/2603.13326.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
dut0817/FL-I2MoE community
Papers with Code archive
2 ran · 1 no recorded run
FunctionStatusWhere it lives
InteractionExpert Ran
ran on a synthesized input · constructed an object; no result was computed
dut0817/FL-I2MoE/src/imoe/InteractionMoE.py
code served (permissive licence) · get_code("89c45f09b5fdcc27")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, InteractionExpert: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class StandInFusionModel(nn.Module):
    """
    Stand-in fusion model that accepts multiple modalities and returns logits and latent.
    """
    def __init__(self):
        super(StandInFusionModel, self).__init__()
        self.linear = nn.Linear(12, 8)  # 3 modalities * 4 dims = 12 input
        self.output_layer = nn.Linear(8, 5)  # 5 output classes
        self._gate_loss_value = torch.tensor(0.1)
    
    def forward(self, inputs, masks=None, return_latent=False):
        """
        Args:
            inputs: list of tensors, one per modality
            masks: optional masks
            return_latent: if True, return (logits, latent)
        
        Returns:
            logits: tensor of shape (batch_size, num_classes)
            latent: tensor of shape (batch_size, latent_dim) if return_latent=True
        """
        # Concatenate all modality inputs
        concatenated = torch.cat(inputs, dim=1)  # (batch_size, total_dims)
        
        # Compute latent representation
        latent = self.linear(concatenated)  # (batch_size, 8)
        
        # Compute logits
        logits = self.output_layer(latent)  # (batch_size, 5)
        
        if return_latent:
            return logits, latent
        return logits
    
    def gate_loss(self):
        """Return a gate loss value."""
        return self._gate_loss_value


# Create modality inputs
batch_size = 2
modality_1 = torch.randn(batch_size, 4)  # 4-dimensional modality
modality_2 = torch.randn(batch_size, 4)  # 4-dimensional modality
modality_3 = torch.randn(batch_size, 4)  # 4-dimensional modality

inputs = [modality_1, modality_2, modality_3]

# Create masks (optional)
masks = None

# Create fusion model
fusion_model = StandInFusionModel()

# Test with sparse=False
fusion_sparse_false = False

ARGS = {
    "fusion_model": fusion_model,
    "fusion_sparse": fusion_sparse_false,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type InteractionExpert — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a InteractionExpert output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
MLPReWeighting Ran
ran on a synthesized input · constructed an object; no result was computed
dut0817/FL-I2MoE/src/imoe/InteractionMoE.py
code served (permissive licence) · get_code("8a4c1445af129eeb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, MLPReWeighting: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Test inputs: 3D tensors (batch_size, seq_len, hidden_dim)
batch_size = 2
seq_len = 5
hidden_dim = 256
num_modalities = 3
num_branches = 4

# Create input tensors for each modality
input_1 = torch.randn(batch_size, seq_len, hidden_dim)
input_2 = torch.randn(batch_size, seq_len, hidden_dim)
input_3 = torch.randn(batch_size, seq_len, hidden_dim)
inputs = [input_1, input_2, input_3]

# Create masks (optional, one per modality)
mask_1 = torch.ones(batch_size, seq_len)
mask_2 = torch.ones(batch_size, seq_len)
mask_3 = torch.ones(batch_size, seq_len)
masks = [mask_1, mask_2, mask_3]

ARGS = {
    "num_modalities": num_modalities,
    "num_branches": num_branches,
    "hidden_dim": hidden_dim,
    "hidden_dim_rw": 128,
    "num_layers": 2,
    "temperature": 1.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MLPReWeighting — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a MLPReWeighting output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
InteractionMoE Not yet run
unverified (harvested, no recorded run)
dut0817/FL-I2MoE/src/imoe/InteractionMoE.py
code served (permissive licence) · get_code("484292922627d93c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Multimodal Transformers often produce predictions without clarifying how different modalities jointly support a decision. Most existing multimodal explainable AI (MXAI) methods extend unimodal saliency to multimodal backbones, highlighting important tokens or patches within each modality, but they rarely pinpoint which cross-modal feature pairs provide complementary evidence (synergy) or serve as reliable backups (redundancy). We present Feature-level I 2 MoE (FL-I 2 MoE), a structured Mixture-of-Experts layer that operates directly on token/patch sequences from frozen pretrained encoders and explicitly separates unique, synergistic, and redundant evidence at the feature level. We further develop an expert-wise explanation pipeline that combines attribution with top-K% masking to assess faithfulness, and we introduce Monte Carlo interaction probes to quantify pairwise behavior: the Shapley Interaction Index (SII) to score synergistic pairs and a redundancy-gap score to capture substitutable (redundant) pairs. Across three benchmarks (MM-IMDb, ENRICO, and MMHS150K), FL-I 2 MoE yields more interactionspecific and concentrated importance patterns than a dense Transformer with the same encoders. Finally, pair-level masking shows that removing pairs ranked by SII or redundancy-gap degrades performance more than masking randomly chosen pairs under the same budget, supporting that the identified interactions are causally relevant. Code is available at https://github.com/dut0817/FL-I2MoE.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2603.13326")
get_code_for_paper("2603.13326")
have("2603.13326")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2603.13326.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2603.13326.svg)](https://syntology.ai/paper/2603.13326)

Connect an agent — have() is free.