Multimodal Text Generation via Differentiable Tokenization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing machine-learning techniques struggle to effectively generate task-specific text from multimodal inputs, such as video and audio, due to the non-differentiability of tokenization on continuous sensor data and the complexity of integrating multiple modalities.

Innovation Solution

The proposed solution involves a framework that uses a learnable tokenizer to convert sensor data into embedding vectors in a multi-dimensional language embedding space, incorporating a differentiable tokenization module to enable end-to-end training. This framework includes an autoregressive decoder to generate open-ended text, allowing for the fusion of multiple modalities without the need for specialized network heads for each task.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If traditional encoder-only models are used for multimodal text generation, then the model structure is simpler, but the model cannot generate open-ended text and requires task-specific network heads

Engineering Contradiction:
Improvecapability to generate open-ended text for various tasksVSAvoidmodel architecture complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent applies universality by using a single autoregressive decoder model that can perform multiple text generation tasks (captioning, question answering, dialog) without requiring separate network heads for each task. The decoder is trained to generate open-ended text from multimodal inputs, making one model serve multiple functions across different task domains.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The patent introduces dynamics by enabling the model to adapt its generation behavior through autoregressive decoding, where the decoder dynamically generates text token by token based on the input modalities and previously generated text. This dynamic generation process allows the model to adjust its output based on the specific task requirements without structural changes.

Inventive Principle:
Principle #15Dynamics

2Ease of operation

If tokenization is applied to continuous sensor data, then the data can be processed in a unified language embedding space, but the tokenization process becomes non-differentiable and prevents end-to-end training

Engineering Contradiction:
Improveunified processing of multiple modalitiesVSAvoidtrainability through end-to-end gradient propagation
Core Design Contradiction:
Ease of operationVSReliability

Solution Approach 1:

The patent applies parameter changes by introducing a differentiable approximation of tokenization that replaces the traditional non-differentiable tokenization process. This approximation uses continuous parameters (such as softmax probabilities over vocabulary) that can be differentiated, allowing gradients to flow through the tokenization step and enabling end-to-end training while maintaining unified processing of multiple modalities in language embedding space.

Inventive Principle:
Principle #35Parameter changes

3Reliability

If specialized network heads are created for each desired task, then task performance can be optimized, but the device complexity and number of parameters increase significantly

Engineering Contradiction:
Improvetask-specific performance optimizationVSAvoidnumber of network components
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent eliminates the need for multiple specialized network heads by training a single autoregressive decoder to perform all text generation tasks. The decoder is trained with task-specific objectives during training, allowing it to optimize performance across different tasks without requiring separate network components for each task.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS12236192B2Task-specific text generation based on multimodal inputs
Publication Date: 2025.02.25 META PLATFORMS INC
  • US12236192B2 patent drawing
  • US12236192B2 patent drawing
  • US12236192B2 patent drawing

AI summary

A system and method for generating task-specific text by processing multimodal inputs using machine-learning models is provided. The method may include accessing first sets of tokens associated with a desired task and one or more modalities associated with a context of the desired task. The method may further include determining a second set of tokens for each of the one or more modalities using a classifier network associated with the modality. The method may further include generating a number of embedding vectors by mapping the first sets of tokens and the second set of tokens associated with each of the one or more modalities to an embedding space. The method may further include producing a sequence of words addressing the desired task by processing the number of embedding vectors with an encoder-decoder network.