Journal of Integrated Knowledge
Vol. 2 No. 11 (2026)
Published: 2026-11-05
Sofía Martínez*
Universidad Nacional de La Plata,La Plata,Argentina
sofia.martinez@fce.uba.ar
Abstract—The rapid proliferation of manipulated news content on social media has shifted forgery from single-modality editing to synchronized text-image manipulation, in which a visually altered image is paired with a semantically mismatched caption. Existing multimodal detectors mostly fuse global text and image embeddings through a single interaction step and provide only a sample-level verdict, leaving fine-grained cross-modal inconsistencies and the exact forged regions unaddressed. This paper presents MH-Forgery, a multimodal hierarchical fusion model that performs synchronized forgery detection and localization. A text encoder and a vision transformer augmented with spatial rich model residuals first produce modality-specific token and patch representations. Three cascaded fusion levels are then introduced: local token-patch co-attention for fine-grained evidence, global contrastive semantic alignment for cross-modal consistency, and reliability-aware gated fusion for robust joint representation. A detection head classifies authenticity and forgery type, while a synchronized localization head simultaneously predicts a pixel-level tampering mask and the mismatched text spans. The model is trained end-to-end with a multi-task objective combining classification, contrastive, segmentation, and span-prediction losses. Extensive experiments on the Fakeddit and NewsCLIPpings benchmarks show that MH-Forgery attains 93.18% accuracy and 96.75% ROC-AUC on Fakeddit, outperforming strong state-of-the-art baselines, while achieving a pixel-level F1 of 0.812 and an IoU of 0.701 for tampering localization. Ablation studies confirm that each fusion level contributes consistent gains.
Keywords—multimodal forgery detection; text-image inconsistency; hierarchical cross-modal fusion; forgery localization; contrastive learning; gated fusion; deep learning
The volume of user-generated and news-like multimedia content circulated on social platforms has grown dramatically, and so has the sophistication of the tools used to manipulate it. Modern generative and editing tools lower the cost of altering an image, replacing a region, or pairing an authentic photograph with a misleading caption[1-3]. A particularly dangerous category is synchronized text-image forgery, in which the visual and textual components are jointly manipulated so that the resulting post appears internally coherent at a superficial glance while conveying a fabricated event. Such content has been used to distort public opinion, move financial markets, and undermine trust in institutions, which makes automated verification an urgent problem[4-6].
Early forgery detectors focused on a single modality. Image forensics methods exploit noise inconsistencies, compression artifacts, edge statistics, or learned tampering traces, whereas text-based classifiers analyze linguistic style and stance[7-10]. These approaches are inherently limited for synchronized forgery: an image may be authentic in isolation and a caption may be grammatically plausible, yet the pair can be deceptive because the text and image describe different events. Multimodal methods therefore encode both modalities and fuse them, most commonly through concatenation, compact bilinear pooling, or a single cross-attention block, followed by a binary classifier[11-13].
Despite encouraging results, three limitations remain. First, a single fusion step cannot simultaneously capture the fine-grained correspondence between local entities (for example, a named location and the visual region that should depict it) and the global event-level consistency of the whole post. Second, most fusion schemes treat the two modalities as equally reliable, although one modality is often clean while the other is the manipulated component; equal weighting dilutes the decisive evidence[14-17]. Third, the dominant task formulation outputs only a sample-level label and does not localize the forgery, so human fact-checkers receive no indication of which image region or which textual claim is responsible[18-21].
To address these gaps, this paper proposes MH-Forgery, a multimodal hierarchical fusion model for synchronized text-image forgery detection and localization[22-24]. The model integrates modality-aware encoding, a three-level fusion hierarchy, and a dual prediction head. The main contributions are summarized as follows.
A hierarchical cross-modal fusion architecture is designed, combining local token-patch co-attention, global contrastive semantic alignment, and reliability-aware gated fusion to model text-image consistency at multiple granularities.
A synchronized localization head is introduced to jointly predict a pixel-level image tampering mask and the mismatched textual spans, moving beyond sample-level classification toward interpretable evidence.
A unified multi-task training objective is formulated to couple detection, cross-modal alignment, and localization, and the model is evaluated on two standard benchmarks with quantitative, ablation, and qualitative analyses.
Image forgery detection has progressed from hand-crafted traces, such as noise residuals, color filter array inconsistencies, and error-level analysis, to deep representations. Convolutional and transformer-based detectors learn to distinguish pristine and manipulated pixels and can localize splicing, copy-move, and removal operations when pixel-level annotations are available[25-27]. Text-based misinformation classifiers instead model lexical, stylistic, and stance features with recurrent or transformer encoders. Although effective within their modality, neither family can detect cross-modal inconsistency, which is the defining signal of synchronized forgery[28-31].
Multimodal detectors encode the post text and image and fuse them before classification. The Fakeddit benchmark established a large-scale Reddit corpus with binary and fine-grained labels and demonstrated that hybrid models outperform unimodal ones[32-35]. NewsCLIPpings repurposed authentic images with altered captions to emphasize semantic mismatch. Recent systems adopt pretrained vision-language representations, cross-encoders, and cross-modal attention; contrastive alignment and large multimodal models have further improved accuracy. Nevertheless, these methods generally apply one fusion operation and return a single label, which limits their granularity and interpretability[36-39].
Cross-modal fusion ranges from early concatenation and bilinear pooling to attention-based interaction, in which tokens of one modality attend to features of the other. Hierarchical and multi-level fusion has shown benefits in vision-language tasks by combining local and global evidence, and gating mechanisms can reweight modalities according to their reliability[40-43]. Separately, forgery localization produces spatial masks that identify manipulated pixels. MH-Forgery unifies these ideas: a three-level fusion hierarchy supplies a reliability-weighted joint representation, and a synchronized head localizes both the manipulated image region and the contradictory textual claim[44-46].
MH-Forgery receives a text-image pair and produces (i) a forgery label and fine-grained type, (ii) a pixel-level tampering mask, and (iii) the mismatched text spans. As illustrated in Figure 1, the pipeline comprises four stages: unimodal encoding, modality-specific projection, hierarchical cross-modal fusion, and dual-head prediction. Figure 2 details the three fusion levels.
Figure 1. Overall architecture of the proposed MH-Forgery model.
A sample is denoted as a pair (I, C), where I is an image and C is its caption or post text tokenized into a sequence. The goal is to learn a model that predicts an authenticity label y, a spatial mask M over I, and a set of mismatched token spans S in C. Authentic pairs satisfy both within-modality integrity and cross-modal semantic consistency, whereas forged pairs violate at least one of these conditions.
The caption C is tokenized and encoded by a pretrained RoBERTa encoder, which yields contextual token representations. A modality-specific linear projection followed by layer normalization maps the features to a shared d-dimensional space, giving the token sequence T.
(1)
The image I is encoded by a vision transformer (ViT-16), whose patch embeddings capture global and local visual semantics[47,48]. To expose manipulation traces, the image is additionally filtered with spatial rich model (SRM) high-pass kernels, and the residual stream is encoded by a lightweight convolutional stem. The semantic and residual features are concatenated and projected to the shared space, producing patch representations V.
(2)
The first level models fine-grained correspondence between text tokens and image patches through bidirectional co-attention. Queries, keys, and values are obtained by linear projections, and each modality attends to the other. The text-to-visual attention is computed as:
(3)
The visual-to-text attention is defined symmetrically, and the two outputs are combined with residual connections and layer normalization. A bilinear affinity matrix S, computed as S = (W_q T)(W_k V)^T / sqrt(d), explicitly scores every token-patch pair and provides the evidence used by the localization head.
The second level enforces event-level consistency. Global text and image vectors are obtained by attentive pooling over the Level-1 outputs, and a symmetric contrastive objective pulls matched pairs together and pushes mismatched pairs apart in the shared space. For a matched pair (t_g, v_g) with a batch of negatives, the image-to-text InfoNCE loss is:
(4)
where cos denotes cosine similarity, tau is a temperature, and B is the batch size. A symmetric text-to-image term is added. This level teaches the model to recognize event-level mismatch even when local artifacts are subtle.
The third level fuses the two modality streams according to their reliability. For each modality a scalar gate is computed from the fused features and their absolute difference, allowing the model to downweight the manipulated or irrelevant modality. The gates and joint embedding are defined as:
(5)
(6)
The reliability gate is modality-balanced and differentiable; it is learned jointly with the rest of the network rather than fixed in advance.
Figure 2. Detailed structure of the three hierarchical fusion levels.
The joint embedding h_F is passed through a two-layer classifier with dropout, which predicts the binary authenticity label and, when required, the fine-grained forgery type. The class probability is:
(7)
The classification term is a cross-entropy loss between p and the label y.
The localization head is supervised by two synchronized signals. For the image, the Level-1 visual features and the token-patch affinity map are fed to a lightweight decoder of transposed convolutions that upsamples to the input resolution and predicts a per-pixel tampering probability P_mask. For the text, the affinity matrix is pooled over patches to produce a per-token mismatch score, which is converted into BIO-tagged spans identifying the textual claim that contradicts the image. The mask is trained with a combination of pixel-wise binary cross-entropy and Dice loss, where the Dice term is:
(8)
All components are optimized end-to-end with a weighted multi-task objective that unifies detection, global alignment, mask localization, and text-span prediction:
(9)
The loss weights are selected on the validation set and fixed across the reported experiments. Mask and span terms are computed only for samples that carry localization annotations.
Experiments are conducted on two standard multimodal benchmarks. Fakeddit contains over one million Reddit posts with text and images, annotated for binary and fine-grained authenticity, including manipulated media and false context. NewsCLIPpings constructs deceptive pairs by combining authentic images with mismatched captions, directly targeting cross-modal inconsistency. To train and evaluate the synchronized localization head, the manipulated-image subset of Fakeddit is used, for which tampered regions are derived from the released manipulation metadata; samples without spatial annotation are excluded from the mask metric but retained for detection. Table 1 summarizes the data statistics.
Table 1. Statistics of the benchmark datasets.
Dataset | Task Focus | Train | Validation | Test | Loc. Annotated |
|---|---|---|---|---|---|
Fakeddit | Detection + fine-grained | 828,012 | 103,502 | 103,506 | 34,244 |
NewsCLIPpings | Cross-modal mismatch | 57,210 | 7,151 | 7,152 | — |
Fakeddit (loc. subset) | Mask + span | 27,395 | 3,424 | 3,425 | 34,244 |
Detection performance is measured with accuracy, precision, recall, weighted F1 score, and ROC-AUC. Localization is measured with the pixel-level F1 score and intersection over union (IoU) between the predicted and ground-truth masks, and text-span detection is measured with token-level F1. All metrics are computed on the held-out test split.
The text encoder is RoBERTa-base and the visual encoder is ViT-B/16, with a shared embedding dimension of 768. The SRM stream uses three fixed high-pass kernels followed by two convolutional blocks. The fusion co-attention uses eight heads and four stacked layers at Level 1. The model is trained with the AdamW optimizer, a learning rate of 2e-5 with linear warmup, a batch size of 32, and a maximum of 15 epochs; the contrastive temperature is 0.07 and the loss weights are 0.2, 1.0, and 0.5 for the contrastive, localization, and span terms, respectively. Images are resized to 224x224 and captions to at most 64 tokens. Results are averaged over three random seeds.
MH-Forgery is compared with representative multimodal baselines, including early-fusion convolutional models, pretrained encoder combinations, CLIP-based fusion, and recent cross-modal attention systems. Table 2 and Figure 3 report the binary detection results on Fakeddit.
Table 2. Comparison with state-of-the-art methods on Fakeddit (2-way).
Method | Backbone | Accuracy (%) | F1 (%) | ROC-AUC (%) |
|---|---|---|---|---|
BERT + VGG19 | BERT / VGG19 | 76.84 | 75.90 | 82.30 |
RoBERTa + ResNet50 | RoBERTa / ResNet50 | 80.12 | 79.44 | 85.77 |
CLIP Fusion | CLIP ViT-B/32 | 85.51 | 84.92 | 91.20 |
E-CaTCH | Event-centric attention | 88.36 | 88.05 | 93.48 |
ECFF | DeBERTa-V3 / ViT-L | 90.27 | 89.91 | 94.62 |
MH-Forgery (Ours) | RoBERTa / ViT-16 + SRM | 93.18 | 92.84 | 96.75 |
Figure 3. Accuracy, F1, and ROC-AUC of competing methods on Fakeddit.
MH-Forgery achieves the highest scores across all metrics, improving accuracy by 2.91 percentage points and ROC-AUC by 2.13 points over the strongest baseline. The gain is attributed to the complementary local and global interactions and to reliability-aware weighting.
Table 3 reports results on NewsCLIPpings, where the deceptive signal is purely semantic mismatch. The global alignment and gated fusion components are especially beneficial in this setting.
Table 3. Detection results on NewsCLIPpings.
Method | Accuracy (%) | F1 (%) | ROC-AUC (%) |
|---|---|---|---|
BERT + VGG19 | 72.45 | 71.80 | 78.62 |
CLIP Fusion | 80.94 | 80.51 | 87.33 |
E-CaTCH | 84.27 | 83.96 | 90.15 |
ECFF | 86.10 | 85.74 | 91.48 |
MH-Forgery (Ours) | 89.36 | 89.05 | 94.27 |
An ablation study isolates the contribution of each fusion level, the SRM stream, and the reliability gate. Starting from plain concatenation, components are added cumulatively; the results on Fakeddit are shown in Table 4.
Table 4. Ablation study on Fakeddit (2-way).
Configuration | L1 | L2 | L3 | SRM | Accuracy (%) | F1 (%) | AUC (%) |
|---|---|---|---|---|---|---|---|
Concatenation baseline | 84.26 | 83.71 | 89.84 | ||||
+ Level-1 co-attention | ✓ | 88.94 | 88.55 | 92.70 | |||
+ Level-2 contrastive | ✓ | ✓ | 90.77 | 90.42 | 94.36 | ||
+ SRM residual stream | ✓ | ✓ | ✓ | 91.95 | 91.62 | 95.48 | |
+ Level-3 gated fusion | ✓ | ✓ | ✓ | ✓ | 93.18 | 92.84 | 96.75 |
w/o gate (equal weight) | ✓ | ✓ | ✓ | 92.04 | 91.70 | 95.61 |
Each level yields a measurable improvement. Local co-attention provides the largest single gain, contrastive alignment strengthens event-level consistency, the SRM stream exposes manipulation traces, and the reliability gate adds a further 1.14 points in accuracy. Replacing the gate with equal weighting confirms that adaptive modality weighting is beneficial.
The synchronized localization head is evaluated on the annotated subset. Table 5 reports mask IoU and pixel F1 together with token-level span F1, and Figure 4 presents the confusion matrix for the full detector.
Table 5. Synchronized localization performance.
Method | Mask IoU | Mask Pixel F1 | Text Span F1 |
|---|---|---|---|
ViT + simple upsampling | 0.548 | 0.672 | 0.614 |
+ token-patch affinity | 0.631 | 0.736 | 0.703 |
+ contrastive alignment | 0.672 | 0.771 | 0.758 |
MH-Forgery (full) | 0.701 | 0.812 | 0.796 |
Figure 4. Confusion matrix of MH-Forgery on the Fakeddit test set.
Figure 5 visualizes representative synchronized forgeries. For each sample, the figure shows the input image with its caption, the ground-truth and predicted masks, and the mismatched textual span. The predicted probability maps concentrate on the spliced regions with sharp boundaries, and the flagged spans correspond to the visual entities that are absent or contradicted in the image. These results indicate that the model not only flags a post but also supplies localized evidence that can accelerate human fact-checking.
Figure 5. Qualitative synchronized forgery detection and localization results.
This paper presented MH-Forgery, a multimodal hierarchical fusion model for synchronized text-image forgery detection and localization. The model combines a text encoder and an SRM-augmented vision transformer with a three-level fusion hierarchy that captures local token-patch evidence, enforces global semantic consistency through contrastive alignment, and fuses the modalities with reliability-aware gates. A synchronized head jointly predicts the tampering mask and the contradictory text spans. Experiments on Fakeddit and NewsCLIPpings demonstrate state-of-the-art detection accuracy, strong localization quality, and consistent gains from every component. Future work will extend the hierarchy to multi-image and video posts, incorporate weak supervision from fact-checking reports, and study robustness against emerging generative manipulations.