---
title: 'IMG: Importance-aware Multi-Granularity Fusion'
url: https://www.emergentmind.com/topics/importance-aware-multi-granularity-fusion-model-img
type: topic
---

# IMG: Importance-aware Multi-Granularity Fusion

Importance-aware Multi-Granularity Fusion Model (IMG) denotes a class of architectures that do not fuse heterogeneous signals uniformly, but instead estimate which representations are informative at multiple granularities and then weight, gate, or align them accordingly. In the literature provided here, the term appears both as the explicit name of a model for Video Moment Retrieval (VMR) and as a conceptual description for related architectures in malicious URL detection, open-domain question answering, reading comprehension, scene text recognition, aspect-based sentiment analysis, event-driven forecasting, and panoptic-part segmentation. Across these uses, the recurring idea is that fusion is conditioned on learned importance at more than one representational level—such as token, layer, block, event, sentence, sequence, or modality—rather than relying on flat concatenation or symmetric cross-modal mixing [2508.04273] [2510.12395].

## 1. Terminological scope and defining characteristics

The phrase “Importance-aware Multi-Granularity Fusion Model” has a narrow and a broad usage. In "Audio Does Matter: Importance-Aware Multi-Granularity Fusion for Video Moment Retrieval" it is the proper name of a VMR model that selectively aggregates audio, vision, and text [2508.04273]. In "IP-Augmented Multi-Modal Malicious URL Detection Via Token-Contrastive Representation Enhancement and Multi-Granularity Fusion," by contrast, “Importance-aware Multi-Granularity Fusion” is explicitly not the name of a single module; it is the design philosophy jointly realized by the Cross-Layer Multi-Scale Aggregator (CLMSA) and the Blockwise Multi-Modal Coupler (BMMC), with TACL-BERT supplying robust token-level embeddings [2510.12395].

| Context | Referent of IMG | Main granularities |
|---|---|---|
| VMR | Named model | local, event, global; audio importance |
| Malicious URL detection | CLMSA + BMMC design philosophy | token, layer/scale, block/modal |
| ODQA / FiD | Conceptual mapping | passage, sentence |
| Reading comprehension | Conceptual mapping | character, word, sentence, paragraph |
| STR | Decision-level fusion over outputs | character, BPE, WordPiece |
| Financial forecasting | Conceptual mapping | sequence, token/step |
| Panoptic-part segmentation | Conceptual mapping | semantic area, instance, part |

What unifies these usages is not a fixed operator but a recurrent design principle. Importance-awareness is realized through mechanisms such as a pseudo-label-supervised audio importance predictor, block-level attention weights $\alpha_i$, listwise passage importance $p_i$, salience-based anchor selection, Granger-supervised feature-wise gates, or parameter-free confidence balancing. Multi-granularity refers to the coexistence of several levels of representation or structure, for example local/event/global temporal structure in VMR, token/layer/block in URL detection, or semantic/instance/part structure in panoptic-part segmentation [2508.04273] [2510.12395] [2404.02581] [2311.18618].

A common misconception is to treat IMG as a single canonical architecture. The record here suggests otherwise. The named IMG model in VMR is one particular instantiation, while other papers describe comparable importance-aware multi-granularity fusion mechanisms under different names and with different mathematical forms [2508.04273] [2404.02581].

## 2. General architectural pattern

Despite domain differences, the architectures follow a similar decomposition. First, each modality or representational stream is encoded independently into a latent space. Second, one or more modules estimate importance, either explicitly through scores or gates, or implicitly through learned filters and aggregation blocks. Third, fusion is carried out at multiple granularities, often with different operators at each level. Fourth, a task-specific prediction head consumes the fused representation.

In the VMR formulation, textual guidance is integrated with vision and audio separately, after which a pseudo-label-supervised Audio Importance Predictor computes a sample-wise score $p \in [0,1]$ and the model fuses audio and visual features at local-, event-, and global-level [2508.04273]. In CURL-IP, TACL-BERT produces layer-wise token representations $H^{(l)} \in \mathbb{R}^{B\times T\times D}$ for $l=1,\dots,L$ with $L=12$ and $D=768$, CLMSA aggregates them into $f_{\text{url}} \in \mathbb{R}^{B\times128}$, an MLP maps IP features to $f_{\text{ip}} \in \mathbb{R}^{B\times128}$, and BMMC learns block-level attention weights from a shared global context $g$ before classification [2510.12395].

The importance mechanisms differ materially. In VMR, the gating weight is scalar at the sample level:
$$
p=\sigma(\text{MLP}([\hat A_G;\hat V_G])).
$$
Fusion at each granularity then takes forms such as
$$
\mathcal{F}_l=(1-p)\,\text{LN}(\hat V_l)+p\,\text{LN}(\hat A_l).
$$
In CURL-IP, BMMC predicts per-block scores through
$$
\alpha=\text{softmax}(\text{Linear}(g)),
$$
rescales them to $[\alpha_{\min},1]$, samples block dropout masks $m_i\sim \text{Bernoulli}(1-p)$, and applies
$$
\tilde x_i^{(m)} \leftarrow \tilde x_i^{(m)}\cdot m_i \cdot \alpha_i.
$$
The paper further emphasizes that BMMC does not compute $QK^\top/\sqrt d$ dot-product attention; it uses learned gating from a shared global context instead [2510.12395].

This suggests that IMG is best understood as a design schema: importance estimation is inserted before or during fusion, and the granularity axis is treated as a first-class modeling choice rather than a byproduct of encoder depth.

## 3. IMG as a named model for Video Moment Retrieval

In the VMR setting, IMG addresses the problem of retrieving a segment $(f_s,f_e)$ in an untrimmed video $V$ matched by a textual query $Q$, given synchronized visual frames $V=\{f_1,\dots,f_T\}$ and audio $A=\{a_1,\dots,a_T\}$ [2508.04273]. The model uses pre-trained visual backbones such as I3D, C3D, SlowFast, or InternVideo2; audio backbones such as PANNs or VGGish; and 300d GloVe embeddings for text, with modality encoders following Span-based architectures.

Its first distinctive component is the Audio Importance Predictor. Because ground-truth audio-importance labels are unavailable, IMG constructs pseudo-labels from the unimodal retrieval losses $\mathcal{L}_{retv}$ and $\mathcal{L}_{reta}$:
$$
y=\frac{\exp(-\mathcal{L}_{reta}/\gamma)}{\exp(-\mathcal{L}_{reta}/\gamma)+\exp(-\mathcal{L}_{retv}/\gamma)}.
$$
After thresholding with $\epsilon_{\min}$ and $\epsilon_{\max}$, the predictor is trained with binary cross-entropy,
$$
\mathcal{L}_p=-\frac{1}{B}\sum_i \left[y'_i\log p_i+(1-y'_i)\log(1-p_i)\right].
$$
Early training uses a neutral fusion weight of approximately $0.5$, then gradually increases reliance on $p$ [2508.04273].

The second component is the multi-granularity fusion module. Local-level fusion applies multi-kernel 1D convolutions to capture fine temporal neighborhoods. Event-level fusion uses Slot Attention to extract events and a cross-modal transformer to condition sequences on event slots. Global-level fusion pools the entire video context and reinjects it into the sequence through concatenation and MLPs. A set of bidirectional GRUs over pairs $\{\mathcal{F}_l,\mathcal{F}_e,\mathcal{F}_g\}$ re-establishes inter-level relationships and yields the final fused stream $\mathcal{F}\in\mathbb{R}^{T\times d}$ [2508.04273].

The training objective combines retrieval, importance prediction, knowledge distillation, and saliency:
$$
\mathcal{L}=\mathcal{L}_{ret}+\lambda_1\mathcal{L}_p+\lambda_2\mathcal{L}_{kl}+\lambda_3\mathcal{L}_{sal},
$$
with $\lambda_1=5$, $\lambda_2=10$, and $\lambda_3=0.5$. Cross-modal knowledge distillation transfers the fused branch into unimodal branches so that the visual student can be used when audio is missing at inference [2508.04273].

The paper also introduces Charades-AudioMatter, a test subset of Charades-STA containing 1,196 samples where audio provides complementary or dominant cues. Six annotators independently labeled samples, each instance was double-annotated, disagreements were adjudicated by a third annotator, and inter-annotator agreement exceeded 95% [2508.04273].

Empirically, IMG significantly outperforms prior audio-incorporated methods such as UMT, PMI-LOC, QD-DETR, and ADPN. On Charades-STA with I3D, IMG improves R1@7 by +4.71 points and mIoU by +2.86 over its visual-only counterpart. On Charades-AudioMatter, R1@7 improves by +6.69 and mIoU by +4.41. The reported compute is modest: 0.38 GFlops and 3.31 M parameters in the I3D setting, with the AIP adding approximately $10^{-4}$ GFlops and the multi-granularity fusion module approximately 0.20 GFlops [2508.04273].

## 4. Importance-aware multi-granularity fusion in CURL-IP

CURL-IP addresses malicious URL detection under obfuscation, character-level perturbations, adversarial attacks, and the need to incorporate auxiliary network-level signals such as IP addresses [2510.12395]. Its pipeline is explicitly multi-stage: TACL-BERT produces layer-wise token representations, CLMSA performs cross-layer multi-scale aggregation inside the URL encoder, an IP branch projects external IP embeddings to a 128-dimensional vector, and BMMC performs blockwise multi-modal coupling before binary or multi-class classification.

The token-level component is the Token-Contrastive Representation Enhancer, also described as TCRE/TaCL-BERT. With teacher $f_T$ on clean input $x$ and student $f_S$ on masked input $\tilde x$, the token-aware contrastive objective is
$$
L_{\text{TaCL}} = - \sum_{i\in M} \log \frac{\exp(\text{sim}(\tilde h_i, h_i)/\tau)}{\sum_{j=1}^{m} \exp(\text{sim}(\tilde h_i, h_j)/\tau)},
$$
combined with masked language modeling:
$$
L_{total}=L_{MLM}+\lambda L_{TaCL}.
$$
The paper states that this yields more discriminative and isotropic subword embeddings and improves sensitivity to character-level obfuscations [2510.12395].

CLMSA then stacks and permutes all hidden layers,
$$
X_{BERT}=\text{Stack}(H^{(1)}\dots H^{(12)})\in\mathbb{R}^{B\times L\times T\times D},\quad
X_0=\text{Permute}(X_{BERT})\in\mathbb{R}^{B\times L\times D\times T},
$$
applies four $3\times3$ convolution blocks with channels $64\rightarrow 32\rightarrow 16\rightarrow 8$, pools to $[B,8,25,96]$, reshapes to $[B,25,768]$, projects with $W_p\in\mathbb{R}^{768\times128}$, applies a gMLP, and temporally averages to produce $f_{url}\in\mathbb{R}^{B\times128}$ [2510.12395]. Although no explicit gating weights are computed per scale, the convolutional hierarchy and gMLP are described as learned filters that emphasize informative multi-layer patterns.

BMMC partitions each modality into channel blocks, computes global summaries $g^{(m)}=\text{GAP}(\sum_i \tilde x_i^{(m)})$, aggregates them into a shared context $g$, and predicts normalized block importance weights $\alpha_i$. The blocks are then scaled and masked through dropout. This is the explicit importance-aware component: salient regions are up-weighted, noisy ones are down-weighted or dropped [2510.12395].

The reported datasets are URL-Binary with 802,228 samples, URL-Adversarial with 160,000 samples, and URL-MultiClass with 671,957 samples. On binary detection, the model attains Accuracy 0.9799, Precision 0.9737, Recall 0.9858, F1 0.9797, and AUC 0.9946, with TPR@FPR=0.0001 equal to 0.9263 and TPR@FPR=0.001 equal to 0.9263. On the adversarial dataset, Accuracy is 0.9395, F1 is 0.9393, and AUC is 0.9812; the paper notes that baselines degrade sharply, citing URLBERT at Accuracy 0.6853 and AUC 0.8529. For multi-class detection, CURL-IP reports the highest macro-AUC of 0.9543 and class-wise F1 scores of 95.66% for benign, 83.68% for malicious, and 77.96% for phishing [2510.12395].

## 5. Related formulations in other domains

Several papers do not use the label IMG as a formal model name, yet they are explicitly described as conceptually matching an importance-aware multi-granularity fusion approach.

In open-domain question answering, MGFiD extends Fusion-in-Decoder by learning passage-level importance through a listwise re-ranking head, sentence-level importance through a focal-loss classifier, and a max-pooled sentence “anchor vector” injected into the decoder’s $[BOS]$ query. It also reuses passage importance $p_i$ for pruning, reducing the average number of passages to the decoder to 4.8 on Natural Questions and 7.7 on TriviaQA at $\tau=0.05$ [2404.02581].

In reading comprehension, the hierarchical attention fusion network of "Multi-granularity hierarchical attention fusion networks for reading comprehension and question answering" performs attention and fusion horizontally and vertically across layers. Importance-awareness is realized through soft-alignment weights $\alpha$, $\beta$, $L$, and $\gamma$, and through gated fusion functions such as
$$
P' = g(P,\tilde Q)\cdot m(P,\tilde Q) + (1-g(P,\tilde Q))\cdot P.
$$
The granularities include character/subword via ELMo, word via GloVe and BiLSTMs, sentence-level question aggregation, and paragraph-level passage reasoning [1811.11934].

In scene text recognition, MGP-STR introduces character, BPE, and WordPiece outputs and fuses them with either a confidence-based fusion strategy or a learnable fusion strategy. The learnable strategy scores candidate sequences by image–text similarity in a CLIP-like contrastive space and selects the highest-scoring granularity; the paper states that MGP-STR achieves an average recognition accuracy of $94\%$ on standard benchmarks [2307.13244].

In aspect-based sentiment analysis, EMGF integrates dependency syntax, constituent syntax, attention semantic features, and external knowledge graphs. Importance enters through semantic-attention-based Top-K anchor selection and through learnable transformations in factorized bilinear pooling; the paper emphasizes a cumulative effect as more granularities are added [2402.07787].

In event-driven forecasting, GS-FUSE uses a Granger-supervised, causal-aware gated fusion module and a multi-granularity alignment mechanism spanning instance/sequence-level and token/step-level alignment. The gate is trained against an online incremental-utility signal
$$
\Delta_i=\ell_i^{ts}-\ell_i^{full},
$$
so that text is incorporated when it adds predictive value beyond prices [2605.28520].

In panoptic-part segmentation, JPPF fuses semantic areas, object instances, and semantic parts with a parameter-free operator
$$
FL(\text{MLL})=\left(\sum_k \sigma(l_k)\right)\odot\left(\sum_k l_k\right),
$$
which the paper describes as dynamically balanced fair fusion across granularities [2311.18618].

## 6. Empirical themes, limitations, and interpretive issues

Across the cited work, IMG-style designs are consistently motivated by the claim that uniform fusion treats informative and noisy evidence alike. The VMR paper states that not all audios are helpful and that some videos contain complete noise or background sound that is meaningless to moment determination, hence the need for importance prediction [2508.04273]. The CURL-IP paper makes an analogous claim for URL-IP fusion, arguing that early fusion risks dilution of salient cues and that block-level importance can suppress noisy channels while leveraging complementary IP signals [2510.12395].

The limitations are correspondingly domain-specific. In VMR, performance depends on pseudo-label quality for the Audio Importance Predictor and on the presence and clarity of audio events relevant to the query; if AIP predicts $p\rightarrow 0$ on audio-dominant samples, performance deteriorates, though the model still outperforms visual-only baselines on average [2508.04273]. In CURL-IP, benefits diminish when IP metadata is missing or noisy, fixed channel block sizes may be suboptimal, stacking all Transformer layers increases memory, and pretraining on Wikipedia may underfit URL-specific distributions [2510.12395].

A further interpretive issue concerns what counts as “importance-aware.” In some models, importance is an explicit scalar or vector gate, as with $p$ in VMR or $\alpha_i$ in BMMC. In others, such as CLMSA or hierarchical attention fusion for reading comprehension, importance is partly implicit in learned filters, soft alignments, or gating operations rather than a single standalone score [2510.12395] [1811.11934]. This suggests that the defining property of IMG is not a particular attention formula but the systematic use of learned relevance estimation across more than one granularity.

Another common misconception is that multi-granularity fusion is equivalent to multimodal fusion. The literature here shows a broader scope. The relevant granularities may be temporal levels within one modality, representational depth within a Transformer, linguistic units such as characters and subwords, evidence levels such as passages and sentences, or nested scene labels such as semantic areas, instances, and parts [2508.04273] [2404.02581] [2311.18618].

Taken together, these works establish IMG not as a single architecture, but as a research pattern: identify meaningful granularities, estimate importance at those levels, and fuse only after that estimation. The named VMR model and the CURL-IP design philosophy are two explicit formulations, while adjacent work in QA, recognition, forecasting, and structured perception indicates that the same principle recurs whenever heterogeneous evidence is useful but unevenly reliable.

Source: https://www.emergentmind.com/topics/importance-aware-multi-granularity-fusion-model-img