Multitask Learning Question Answering Architecture

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing natural language processing systems face challenges in generalizing across different types of tasks, such as question answering, machine translation, and sentiment analysis, due to parameter sharing limitations and task-specific architectures, which restrict their ability to handle diverse types of analysis and responses.

Innovation Solution

A unified multitask learning approach is proposed, where various natural language processing tasks are framed as question answering tasks, using a shared architecture that includes an encoder for context and question representation, coattention networks, and self-attention mechanisms to align and compress information, enabling the system to generate answers by treating multiple tasks as a single type of task.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If task-specific architectures are used for different natural language processing tasks, then each task can be optimized for its specific requirements, but the system cannot generalize across different task types and requires separate architectures for each task

Engineering Contradiction:
Improvetask-specific performanceVSAvoidgeneralization across task types
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The patent applies universality by designing a single question-answering architecture that can handle multiple natural language processing tasks (machine translation, summarization, sentiment analysis, etc.) through a unified framework. The system uses a shared encoder-decoder structure with attention mechanisms that can process different task types by framing them as question-answering problems, eliminating the need for separate task-specific architectures while maintaining performance across diverse tasks

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

2Adaptability or versatility

If parameter sharing is limited across task types, then each task can maintain its unique characteristics, but the system loses the ability to leverage common patterns across different tasks

Engineering Contradiction:
Improvetask independenceVSAvoidlearning efficiency
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The patent merges parameters across different task types by implementing a shared encoder and decoder architecture with common attention mechanisms. The system combines task-specific inputs (different contexts and questions) through a unified parameter space, allowing the model to learn shared representations and patterns across machine translation, summarization, sentiment analysis, and other NLP tasks while still handling task-specific requirements through the question-answering framework

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentUS11600194B2Multitask learning as question answering
Publication Date: 2023.03.07 SALESFORCE INC
  • US11600194B2 patent drawing
  • US11600194B2 patent drawing
  • US11600194B2 patent drawing

AI summary

Approaches for natural language processing include a multi-layer encoder for encoding words from a context and words from a question in parallel, a multi-layer decoder for decoding the encoded context and the encoded question, a pointer generator for generating distributions over the words from the context, the words from the question, and words in a vocabulary based on an output from the decoder, and a switch. The switch generates a weighting of the distributions over the words from the context, the words from the question, and the words in the vocabulary, generates a composite distribution based on the weighting of the distribution over the first words from the context, the distribution over the second words from the question, and the distribution over the words in the vocabulary, and selects words for inclusion in an answer using the composite distribution.