Unified Visual-Dialogue Transformer with BERT for Multi-Turn QA

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing visual dialogue systems struggle to effectively integrate visual content and dialogue history for multi-turn question answering, as they often rely on pretraining on large-scale external vision-language datasets and are limited to discriminative settings, resulting in inferior performance metrics.

Innovation Solution

A unified visual-dialogue transformer-based approach that leverages pre-trained BERT models to encode images and multi-turn dialogue history concurrently, using self-attention masks and visually-grounded objectives like Masked Language Modeling and Next Sentence Prediction to facilitate both discriminative and generative settings, enabling direct answer ranking or generation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If pretraining on large-scale external vision-language datasets is used, then the model can be trained with existing approaches, but the performance metrics are inferior

Engineering Contradiction:
Improveperformance metricsVSAvoidtraining data requirements
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent applies preliminary action by pretraining the BERT model on large-scale external vision-language datasets (such as Visual Genome and MS COCO) before fine-tuning on the specific visual dialogue task. This preliminary pretraining enables the model to learn general vision-language representations that improve performance on downstream tasks without requiring extensive task-specific data

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent uses an intermediary approach by introducing a unified transformer encoder that bridges visual features and language features. This unified encoder acts as an intermediary that processes both image embeddings and text tokens together, enabling effective fusion of vision and dialogue contents while maintaining compatibility with pre-trained BERT models

Inventive Principle:
Principle #24Intermediary (Mediator)

2Adaptability or versatility

If discriminative settings are used, then the model structure is simpler, but the system is limited to only discriminative settings and cannot perform generation

Engineering Contradiction:
Improvesetting flexibilityVSAvoidmodel architecture
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent applies universality by designing a unified transformer encoder that can operate in both discriminative and generative settings. The same encoder architecture supports multiple functions: it can perform classification for discriminative tasks and generate sequences for generative tasks, eliminating the need for separate model architectures for different settings

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

Solution Approach 2:

The patent implements dynamics by making the model architecture adaptable through configurable components. The unified transformer encoder can dynamically adjust its behavior based on the task requirements, switching between discriminative and generative modes as needed, providing flexibility without requiring fixed rigid structures

Inventive Principle:
Principle #15Dynamics

3Measurement precision

If visual content and dialogue history are integrated, then the answer quality improves, but the computational complexity increases

Engineering Contradiction:
Improveanswer accuracyVSAvoidprocessing complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent applies merging by combining visual features and dialogue history into a unified representation through the transformer encoder. All inputs (image embeddings, text tokens from dialogue history, and current question) are processed together in a single unified sequence, allowing the model to capture complex interactions between visual content and dialogue context in one integrated process

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The patent uses another dimension by transforming the multi-dimensional input data into a unified embedding space. The transformer encoder processes visual features, dialogue history, and questions together as a single sequence of tokens, adding a temporal and contextual dimension that enables the model to reason across multiple turns while maintaining computational efficiency

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

Data Source

PatentUS11562147B2Unified vision and dialogue transformer with BERT
Publication Date: 2023.01.24 SALESFORCE INC
  • US11562147B2 patent drawing
  • US11562147B2 patent drawing
  • US11562147B2 patent drawing

AI summary

A visual dialogue model receives image input and text input that includes a dialogue history between the model and a current utterance by a human user. The model generates a unified contextualized representation using a transformer encoder network, in which the unified contextualized representation includes a token level encoding of the image input and text input. The model generates an encoded visual dialogue input from the unified contextualized representation using visual dialogue encoding layers. The encoded visual dialogue input includes a position level encoding and a segment type encoding. The model generates an answer prediction from the encoded visual dialogue input using a first self-attention mask associated with discriminative settings or a second self-attention mask associated with generative settings. Dense annotation fine tuning may be performed to increase accuracy of the answer prediction. The model provides the answer prediction as a response to the current utterance of the human user.