NLP Model External Knowledge Base Retrieval

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Pre-trained language models (PLMs) face challenges in accurately retrieving factual knowledge due to implicit representation of knowledge as parameter weights, which limits the amount of information stored and makes it difficult to retrieve relevant information effectively.

Innovation Solution

Retrieving information from a knowledge base and inputting it into the NLP model to generate responses, using identified entities to retrieve relevant triples with similarity scores to select the most relevant information, allowing the model to process both natural language input and knowledge base triples to improve accuracy and efficiency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Quantity of substance

If factual knowledge is implicitly represented as parameter weights within an NLP model, then the model can process natural language tasks, but the amount of information that can be stored is limited and retrieval accuracy deteriorates

Engineering Contradiction:
Improveamount of information storedVSAvoidretrieval accuracy
Core Design Contradiction:
Quantity of substanceVSMeasurement precision

Solution Approach 1:

The patent segments the knowledge storage function from the NLP model by introducing an external knowledge base that stores factual knowledge separately. The model parameters focus on linguistic processing while the knowledge base handles factual information, allowing both to optimize their respective functions without competing for the same parameter space.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an intermediary retrieval mechanism that connects the NLP model to the external knowledge base. This intermediary system translates model predictions into knowledge base queries and processes the retrieved information, enabling accurate access to stored factual knowledge without requiring the model to implicitly encode all facts.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Adaptability or versatility

If more factual knowledge is stored in NLP model parameters, then the model has more world knowledge, but training data requirements and model complexity increase

Engineering Contradiction:
Improveworld knowledge coverageVSAvoidmodel complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent extracts the factual knowledge storage function from the NLP model and places it in an external knowledge base. This separation allows the model to maintain relatively simple architecture focused on linguistic understanding, while the knowledge base handles the burden of storing extensive factual information about entities, relationships, and attributes.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The external knowledge base serves as a universal repository that can store diverse factual knowledge across multiple domains and entity types. This single knowledge base structure can accommodate various kinds of factual information (attributes, relationships, events) that would otherwise require separate model components or extensive training data.

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

3Loss of information

If the NLP model is trained on large amounts of unstructured text, then linguistic nuances are captured, but the implicit knowledge storage leads to inaccurate model predictions

Engineering Contradiction:
Improvelinguistic nuance captureVSAvoidprediction accuracy
Core Design Contradiction:
Loss of informationVSReliability

Solution Approach 1:

The patent segments the knowledge representation into two distinct components: linguistic patterns captured in the model parameters from unstructured text training, and explicit factual knowledge stored in the external knowledge base. This segmentation allows the model to retain its ability to understand linguistic nuances while relying on the structured knowledge base for accurate factual predictions.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system incorporates feedback mechanisms where the model's predictions are checked against the external knowledge base, and the retrieved knowledge is used to correct or refine model outputs. This feedback loop ensures that predictions are both linguistically appropriate (from model training) and factually accurate (from knowledge base verification).

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS11997056B2Language model with external knowledge base
Publication Date: 2024.05.28 ADOBE INC
  • US11997056B2 patent drawing
  • US11997056B2 patent drawing
  • US11997056B2 patent drawing

AI summary

The technology described herein receives a natural-language sequence of words comprising multiple entities. The technology then identifies a plurality of entities in the natural-language sequence. The technology generates a masked natural-language sequence by masking a first entity in the natural-language sequence. The technology retrieves, from a knowledge base, information related to a second entity in the plurality of entities. The technology then trains a natural-language model to respond to a query. The training uses a first representation of the masked natural-language sequence, a second representation of the information, and the first entity.