IP Library Granted Patent US 12,688,684
Granted Patent B2
US 12,688,684 · App. 18/175,839 · Granted Jul 21, 2026

Training and using a model for content moderation of multimodal media

Inventors: Ye Yu (Redmond, WA); Gaurav Mittal (Redmond, WA); Matthew Brigham Hall (Kenmore, WA); Sandra Sajeev (Seattle, WA); Mei Chen (Bellevue, WA); Jialin Yuan (Corvallis, OR)
Assignee: Microsoft Technology Licensing, LLC.
G06V10/811G06F40/284G06V10/75
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,688,684
App. No.
18/175,839
Granted
Jul 21, 2026
Kind
B2
Abstract

A computerized method trains and uses a multimodal fusion transformer (MFT) model for content moderation. Language modality data and vision modality data associated with a multimodal media source is received. Language embeddings are generated from the language modality data and vision embeddings are generated from the vision modality data. Both kinds of embeddings are generated using operations and/or processes that are specific to the associated modalities. The language embeddings and vision embeddings are combined into combined embeddings and the MFT model is used with those combined embeddings to generate a language semantic output token, a vision semantic output token, and a combined semantic output token. Contrastive loss data is generated using the three semantic output tokens and the MFT model is adjusted using that contrastive loss data. After the MFT model is trained sufficiently, it is configured to perform content moderation operations using semantic output tokens.

Claims (40)

1 . A system comprising:

a processor; and

a memory comprising programming instructions for execution by the processor, wherein the programming instructions, upon execution by the processor, cause the system to perform the following operations:

receiving multimodal social media content associated with a social media platform, the multimodal social media content combining language modality data with vision modality data, each of the language modality data and the vision modality data being innocuous alone, wherein a combined meaning of the language modality data and the vision modality data is harmful within a multimodal context;

generating language embeddings from the language modality data using a first embedding operation;

generating vision embeddings from the vision modality data using a second embedding operation;

combining the language embeddings and the vision embeddings into combined embeddings; and

training a multimodal fusion transformer (MFT) model to perform multimodal content moderation, within the multimodal context, for the social media platform using training data that includes the combined embeddings, wherein training the MFT model includes using the MFT model to generate one or more language semantic output tokens, one or more vision semantic output tokens, and one or more combined semantic output tokens from the combined embeddings, determining contrastive loss data based on the one or more language semantic output tokens, the one or more vision semantic output tokens, and the one or more combined semantic output tokens, and adjusting the MFT model based on the contrastive loss data.

2 . The system of claim 1 , wherein determining the contrastive loss data includes:

calculating a first cosine similarity value between the one or more language semantic output tokens and the one or more combined semantic output tokens;

calculating a second cosine similarity value between the one or more vision semantic output tokens and the one or more combined semantic output tokens; and

combining the first cosine similarity value with the second cosine similarity value to form the contrastive loss data.

3 . A method comprising:

receiving multimodal social media content associated with a social media platform, the multimodal social media content combining language modality data with vision modality data, each of the language modality data and the vision modality data being innocuous alone, wherein a combined meaning of the language modality data and the vision modality data is harmful within a multimodal context;

generating language embeddings from the language modality data using a first embedding operation;

generating vision embeddings from the vision modality data using a second embedding operation;

combining the language embeddings and the vision embeddings into combined embeddings; and

training a multimodal fusion transformer (MFT) model to perform multimodal content moderation, within the multimodal context, for the social media platform using training data that includes the combined embeddings, wherein training the MFT model includes using the MFT model to generate one or more language semantic output tokens, one or more vision semantic output tokens, and one or more combined semantic output tokens from the combined embeddings, determining contrastive loss data based on the one or more language semantic output tokens, the one or more vision semantic output tokens, and the one or more combined semantic output tokens, and adjusting the MFT model based on the contrastive loss data.

4 . The method of claim 3 , wherein generating the contrastive loss data includes:

calculating a first cosine similarity value between the one or more language semantic output tokens and the one or more combined semantic output tokens;

calculating a second cosine similarity value between the one or more vision semantic output tokens and the one or more combined semantic output tokens; and

combining the first cosine similarity value with the second cosine similarity value to form the contrastive loss data.

5 . A non-transitory computer storage medium having programming instructions stored thereon that, upon execution by a processor of a system, cause the system to perform the following operations:

receiving multimodal social media content associated with a social media platform, the multimodal social media content combining language modality data with vision modality data, each of the language modality data and the vision modality data being innocuous alone, wherein a combined meaning of the language modality data and the vision modality data is harmful within a multimodal context;

generating language embeddings from the language modality data using a first embedding operation;

generating vision embeddings from the vision modality data using a second embedding operation;

combining the language embeddings and the vision embeddings into combined embeddings; and

training a multimodal fusion transformer (MFT) model to perform multimodal content moderation, within the multimodal context, for the social media platform using training data that includes the combined embeddings, wherein training the MFT model includes using the MFT model to generate one or more language semantic output tokens, one or more vision semantic output tokens, and one or more combined semantic output tokens from the combined embeddings, determining contrastive loss data based on the one or more language semantic output tokens, the one or more vision semantic output tokens, and the one or more combined semantic output tokens, and adjusting the MFT model based on the contrastive loss data.

6 . The system of claim 1 , wherein the combined embeddings include one or more language classification tokens (CLS) tokens generated as an aggregate representation of the one or more language semantic output tokens, one or more vision CLS tokens generated as an aggregate representation of the one or more vision semantic output tokens, and one or more combined CLS tokens generated as an aggregate representation of the one or more language semantic output tokens and the one or more vision CLS tokens.

7 . The system of claim 1 , wherein the contrastive loss data includes domain-specific contrastive loss data associated with a content moderation domain, and wherein the domain- specific contrastive loss data is used to train the MFT model is trained to generate domain- specific semantic output tokens associated with the content moderation domain.

8 . The system of claim 1 , wherein the contrastive loss data includes Masked Language Modeling (MLM) loss data.

9 . The system of claim 8 , wherein the MLM loss data is used to train the MFT model to determine masked or missing text tokens based on surrounding text tokens in the training data.

10 . The system of claim 8 , wherein the MLM loss data is generated by masking a text token of the language embeddings.

11 . The system of claim 1 , wherein the contrastive loss data includes Masked region of interest (RoI) loss data.

12 . The system of claim 11 , wherein the Masked RoI loss data is used to train the MFT model to predict visual information in a bounding box based on the one or more language semantic output tokens.

13 . The system of claim 11 , wherein the Masked RoI loss data is generated by masking a region of interest (RoI) bounding box of the vision embeddings to produce masked vision embeddings.

14 . The system of claim 13 , wherein the masked vision embeddings include a feature map embedding associated with the RoI bounding box and an object category associated with the RoI bounding box.

15 . The system of claim 1 , wherein the contrastive loss data includes Image-Text Matching (ITM) loss data.

16 . The system of claim 15 , wherein the ITM loss data is used to train the MFT model to determine whether text and image data from the training data match semantically.

17 . The system of claim 15 , wherein the ITM loss data is computed by the MFT model upon determining that the language modality data and the vision modality data originate from a common source.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 9, 2023
From: YU, YE; MITTAL, GAURAV; HALL, MATTHEW BRIGHAM; SAJEEV, SANDRA; CHEN, MEI; YUAN, JIALIN
To: MICROSOFT TECHNOLOGY LICENSING, LLC
Reel/Frame 062932/0537 →
Continuity (1)
Related Publication 20240290081A1 · Aug 29, 2024
References Cited (86)
US 11301732B2 · Hu · 2022 [cited by examiner]
US 20190325342A1 · Sikka et al. · 2019 [cited by applicant]
US 20210303939A1 · Hu · 2021 [cited by examiner]
US 20220284321A1 · Yuan et al. · 2022 [cited by applicant]
US 20220300764A1 · Liu et al. · 2022 [cited by applicant]
US 20220391755A1 · Li · 2022 [cited by examiner]
US 20220392637A1 · Kollada et al. · 2022 [cited by applicant]
US 20240290081A1 · Yu · 2024 [cited by examiner]
US 20240378859A1 · He · 2024 [cited by examiner]
AU 2022203405A1 · 2022 [cited by applicant]
CN 112069484A · 2020 [cited by applicant]
CN 113656539A · 2021 [cited by applicant]
WO 2022261570A1 · 2022 [cited by applicant]
“Amazon Rekognition Content Moderation”, Retrieved From: https://aws.amazon.com/rekognition/content-moderation/, Nov. 11, 2022, 8 Pages. [cited by applicant]
“Detect Artificial Texts and Watermarks in Images and Videos”, Retrieved From: https://sightengine.com/detect-artificial-text-watermarks, Aug. 17, 2022, 7 Pages. [cited by applicant]
“Jigsaw Unintended Bias in Toxicity Classification”, Retrieved From: https://www.kaggle.com/competitions/jigsaw-unintended-bias-in-toxicity-classification/overview, Jul. 19, 2019, 1 Page. [cited by applicant]
“MEMEmoderator”, Retrieved From: https://moderation.fun.co/, Sep. 6, 2022, 5 Pages. [cited by applicant]
“Video Moderation Solutions to Protect Your Brand”, Retrieved From: https://www.webpurify.com/video-moderation/, Dec. 4, 2022, 8 Pages. [cited by applicant]
Akyon, et al., “Deep Architectures for Content Moderation and Movie Content Rating”, In Repository of arXiv:2212.04533v2, Dec. 12, 2022, 9 Pages. [cited by applicant]
Alayrac, et al., “Flamingo: A Visual Language Model for Few-Shot Learning”, In Repository of arXiv:2204.14198v2, Nov. 15, 2022, 54 Pages. [cited by applicant]
Baly, et al., “Integrating Stance Detection and Fact Checking in a Unified Corpus.”, In Proceedings of the Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Techno… [cited by applicant]
Banko, et al., “A Unified Taxonomy of Harmful Content”, In Proceedings of the Fourth Workshop on Online Abuse and Harms, pages, Nov. 20, 2020, pp. 125-137. [cited by applicant]
Brown, et al., “Language Models are Few-Shot Learners”, In Proceedings of 34th Conference on Neural Information Processing Systems, Dec. 6, 2020, 25 Pages. [cited by applicant]
Caselli, et al., “HateBERT: Retraining BERT for Abusive Language Detection in English”, In Repository of arXiv:2010.12472v1, Oct. 23, 2020, 8 Pages. [cited by applicant]
Changpinyo, et al., “Conceptual 12M: Pushing Web-Scale Image-Text Pre-Training to Recognize Long-Tail Visual Concepts”, In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Jun. 20, 2021… [cited by applicant]
Chen, et al., “UNITER: UNiversal Image-TExt Representation Learning”, In Proceedings of European conference on computer vision, Sep. 24, 2020, pp. 104-120. [cited by applicant]
Das, et al., “Detecting hate speech in multi-modal memes”, In Repository arXiv:2012.14891v1, Dec. 29, 2020, 10 Pages. [cited by applicant]
Davidson, et al., “Automated Hate Speech Detection and the Problem of Offensive Language”, In Proceedings of the International AAAI Conference on Web and Social Media, vol. 11, No. 1, May 3, 2017, pp. 512-515. [cited by applicant]
Ding, et al., “Davit: Dual Attention Vision Transformers”, In Repository of arXiv:2204.03645v1, Apr. 7, 2022, 23 Pages. [cited by applicant]
Elsherief, et al., “Latent Hatred: A Benchmark for Understanding Implicit Hate Speech”, In Repository of arXiv:2109.05322v1, Sep. 11, 2021, 19 Pages. [cited by applicant]
Gan, et al., “Large-Scale Adversarial Training for Vision-and-Language Representation Learning”, In Proceedings of 34th Conference on Neural Information Processing Systems, Jun. 11, 2020, 13 Pages. [cited by applicant]
Ging, et al., “COOT: Cooperative Hierarchical Transformer for Video-Text Representation Learning”, In Repository of arXiv:2011.00597v1, Nov. 1, 2020, 27 Pages. [cited by applicant]
Gomez, et al., “Exploring Hate Speech Detection in Multimodal Publications”, In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, Mar. 1, 2020, pp. 1470-1478. [cited by applicant]
Hartvigsen, et al., “ToxiGen: A Large-Scale Machine-Generated Dataset for Adversarial and Implicit Hate Speech Detection”, In Repository of arXiv:2203.09509v1, Mar. 17, 2022, 18 Pages. [cited by applicant]
Hudson, et al., “GQA: A New Dataset for Real-World Visual Reasoning and Compositional Question Answering”, In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Jun. 15, 2019, pp. 6700-67… [cited by applicant]
Khattar, et al., “MVAE: Multimodal Variational Autoencoder for Fake News Detection”, In Proceedings of The World Wide Web Conference, May 13, 2019, 8 Pages. [cited by applicant]
Kiela, et al., “The Hateful Memes Challenge: Detecting Hate Speech in Multimodal Memes”, In Proceedings of 34th Conference on Neural Information Processing Systems, Dec. 6, 2020, 14 Pages. [cited by applicant]
Kim, et al., “Why Is It Hate Speech? Masked Rationale Prediction for Explainable Hate Speech Detection”, In Repository of arXiv:2211.00243v1, Nov. 1, 2022, 12 Pages. [cited by applicant]
Kirchknopf, et al., “Multimodal Detection of Information Disorder from Social Media”, In Proceedings of International Conference on Content-Based Multimedia Indexing, Jun. 28, 2021, 4 Pages. [cited by applicant]
Kuznetsova, et al., “The Open Images Dataset V4”, In International Journal of Computer Vision, vol. 128, No. 7, Mar. 13, 2020, pp. 1956-1981. [cited by applicant]
Lee, et al., “Disentangling Hate in Online Memes”, In Proceedings of the 29th ACM International Conference on Multimedia, Oct. 20, 2021, 10 Pages. [cited by applicant]
Li, et al., “Entity-Oriented Multi-Modal Alignment and Fusion Network for Fake News Detection”, In Proceedings of IEEE Transactions on Multimedia, vol. 24, Jul. 26, 2021, pp. 3455-3468. [cited by applicant]
Li, et al., “OSCAR: Object-Semantics Aligned Pre-training for Vision-Language Tasks”, In Proceedings of European Conference on Computer Vision, Sep. 24, 2020, pp. 121-137. [cited by applicant]
Lin, et al., “Microsoft COCO: Common Objects in Context”, In Proceedings of European conference on computer vision, Sep. 6, 2014, pp. 740-755. [cited by applicant]
Ma, et al., “Are Multimodal Transformers Robust to Missing Modality?”, In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Jun. 18, 2022, pp. 18177-18186. [cited by applicant]
Mathew, et al., “Hatexplain: A Benchmark Dataset for Explainable Hate Speech Detection”, In Proceedings of the AAAI Conference on Artificial Intelligence, vol. 35, No. 17, May 18, 2021, pp. 14867-14875. [cited by applicant]
Modarressi, et al., “AdapLeR: Speeding up Inference by Adaptive Length Reduction”, In Repository of arXiv:2203.08991v1, Mar. 16, 2022, 15 Pages. [cited by applicant]
Nakamura, et al., “r/Fakeddit: A New Multimodal Benchmark Dataset for Fine-grained Fake News Detection”, In Repository of arXiv: 1911.03854v1, Nov. 10, 2019, 6 Pages. [cited by applicant]
Ordonez, et al., “Im2Text: Describing Images Using 1 Million Captioned Photographs”, In Proceedings of Advances in Neural Information Processing Systems, Dec. 12, 2011, 9 Pages. [cited by applicant]
Pham, et al., “Combined Scaling for Open-Vocabulary Image Classification”, In Repository of arXiv:2111.10050v2, Apr. 29, 2022, 47 Pages. [cited by applicant]
Phan, et al., “LSPD: A Large-Scale Pornographic Dataset for Detection and Classification”, In International Journal of Intelligent Engineering and Systems, vol. 15, No. 1, Oct. 2021, pp. 198-213. [cited by applicant]
Qu, et al., “On the Evolution of (Hateful) Memes by Means of Multimodal Contrastive Learning”, In Repository of arXiv:2212.06573v1, Dec. 13, 2022, 19 Pages. [cited by applicant]
Radford, “Learning Transferable Visual Models From Natural Language Supervision”, In Proceedings of International Conference on Machine Learning, Jul. 1, 2021, 16 Pages. [cited by applicant]
Ramesh, et al., “Hierarchical Text-Conditional Image Generation with CLIP Latents”, In Repository of arXiv:2204.06125v1, Apr. 13, 2022, 27 Pages. [cited by applicant]
Ren, et al., “Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks”, In Proceedings of Advances in neural information processing systems, Dec. 7, 2015, 9 Pages. [cited by applicant]
Robinson, Sara, “Filtering inappropriate content with the Cloud Vision API”, Retrieved From: https://cloud.google.com/blog/products/ai-machine-learning/filtering-inappropriate-content-with-the-cloud-vision-api, Aug. 18,… [cited by applicant]
Sahoo, et al., “Detecting Unintended Social Bias in Toxic Language Datasets”, In Repository of arXiv:2210.11762v1, Oct. 21, 2022, 12 Pages. [cited by applicant]
Schmidt, et al., “A Survey on Hate Speech Detection using Natural Language Processing”, In Proceedings of the Fifth International Workshop on Natural Language Processing for Social Media, Apr. 3, 2017, pp. 1-10. [cited by applicant]
Sharma, et al., “Conceptual Captions: A Cleaned, Hypernymed, Image Alt-text Dataset For Automatic Image Captioning”, In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics., Jul. 15, … [cited by applicant]
Soldner, et al., “Box of Lies: Multimodal Deception Detection in Dialogues”, In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technolog… [cited by applicant]
Su, et al., “VL-BERT: Pre-training of Generic Visual-Linguistic Representations”, In Repository of arXiv:1908.08530v1, Aug. 22, 2019, 13 Pages. [cited by applicant]
Subramaniam, et al., “Exploring Hate Speech Detection with HateXplain and BERT”, In Repository of arXiv:2208.04489v1, Aug. 9, 2022, 9 Pages. [cited by applicant]
Thakur, et al., “Multimodal and Explainable Internet Meme Classification”, In Repository of arXiv:2212.05612v1, Dec. 11, 2022, 9 Pages. [cited by applicant]
International Search Report and Written Opinion received for PCT Application No. PCT/US2024/016431, Jun. 13, 2024, 15 pages. [cited by applicant]
Khan, et al., “Single-Stream Multi-Level Alignment for Vision-Language Pretraining,” European Conference on Computer Vision. Cham: Springer Nature Switzerland, Mar. 27, 2022, pp. 735-751. [cited by applicant]
Li, et al., “Align before Fuse: Vision and Language Representation Learning with Momentum Distillation,” Advances in neural information processing systems, Jul. 16, 2021, pp. 9694-9705. [cited by applicant]
Li, et al., “MVPTR: Multi-Level Semantic Alignment for Vision-Language Pre-Training via Multi-Stage Learning,” Proceedings of the 30th ACM International Conference on Multimedia, Sep. 14, 2022, pp. 4395-4405. [cited by applicant]
Singh, et al., “FLAVA: A Foundational Language And Vision Alignment Model,” Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Dec. 8, 2021, pp. 15638-15650. [cited by applicant]
Wang, et al., “Cross-modal Contrastive Learning for Multimodal Fake News Detection,” Proceedings of the 31st ACM International Conference on Multimedia, Feb. 25, 2023, pp. 5696-5704. [cited by applicant]
Wang, et al., “UFO: A UniFied Transformer for Vision-Language Representation Learning,” arXiv preprint, Nov. 19, 2021, 14 Pages. [cited by applicant]
International Preliminary Report on Patentability (Chapter I) received for PCT Application No. PCT/US2024/016431, Sep. 11, 2025, 10 pages. [cited by applicant]
Vaswani, et al., “Attention is All you Need”, In Proceedings of Advances in Neural Information Processing Systems 30, Dec. 4, 2017, 11 Pages. [cited by applicant]
Vosoughi, et al., “The Spread of True and False News Online”, In Journal of Science vol. 359, Mar. 9, 2018, 6 Pages. [cited by applicant]
Wang, et al., “OFA: Unifying Architectures, Tasks, and Modalities Through a Simple Sequence-to-Sequence Learning Framework”, In Proceedings of 39th International Conference on Machine Learning, Jul. 17, 2022, 23 Pages. [cited by applicant]
Wang, et al., “SimVLM: Simple Visual Language Model Pretraining with Weak Supervision”, In Repository of arXiv:2108.10904v1, Aug. 24, 2021, 16 Pages. [cited by applicant]
Waseem, et al., “Hateful Symbols or Hateful People? Predictive Features for Hate Speech Detection on Twitter”, In Proceedings of the NAACL Student Research Workshop, Jun. 12, 2016, pp. 88-93. [cited by applicant]
Waseem, et al., “Understanding Abuse: A Typology of Abusive Language Detection Subtasks”, In Proceedings of the First Workshop on Abusive Language Online, Jul. 30, 2017, pp. 78-84. [cited by applicant]
Yang, et al., “Unified Contrastive Learning in Image-Text-Label Space”, In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Jun. 18, 2022, pp. 19163-19173. [cited by applicant]
Young, et al., “From Image Descriptions to Visual Denotations: New Similarity Metrics for Semantic Inference Over Event Descriptions”, In Journal of Transactions of the Association for Computational Linguistics, vol. 2,… [cited by applicant]
Yu, “Ernie-Vil: Knowledge Enhanced Vision-Language Representations through Scene Graphs”, In Proceedings of he AAAI Conference on Artificial Intelligence, Jun. 18, 2021, pp. 3208-3216. [cited by applicant]
Yuan, et al., “Florence: A New Foundation Model for Computer Vision”, In Repository of arXiv:2111.11432v1, Nov. 22, 2021, 17 Pages. [cited by applicant]
Zaheri, et al., “Toxic Comment Classification”, In Journal of SMU Data Science Review, vol. 3, No. 1, Jul. 9, 2020, 17 Pages. [cited by applicant]
Zhang, et al., “VinVL: Revisiting Visual Representations in Vision-Language Models”, In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Jun. 20, 2021, pp. 5579-5588. [cited by applicant]
Zhou, et al., “Challenges in Automated Debiasing for Toxic Language Detection”, In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics, Apr. 19, 2021, pp. 3143-315… [cited by applicant]
Zhu, Ron, “Enhance Multimodal Transformer With External Label and In-Domain Pretrain: Hateful Meme Challenge Winning Solution”, In Repository of arXiv:2012.08290v1, Dec. 15, 2020, 10 Pages. [cited by applicant]
Zolfaghari, et al., “CrossCLR: Cross-modal Contrastive Learning for Multi-modal Video Representations”, In Repository of arXiv:2109.14910v1, Sep. 30, 2021, 14 Pages. [cited by applicant]