Google AI Blog announced KELM, a way that could be used to reduce bias and toxic content in search (open domain question answering). It uses a method called TEKGEN to convert Knowledge Graph facts into natural language text that can then be used to improve natural language processing models.
What is KELM?
KELM is an acronym for Knowledge-Enhanced Language Model Pre-training. Natural language processing models like BERT are typically trained on web and other documents. KELM proposes adding trustworthy factual content (knowledge-enhanced) to the language model pre-training in order to improve the factual accuracy and reduce bias.TEKGEN converts knowledge graph structured data to natural language text known as the KELM Corpus
KELM Uses Trustworthy Data
The Google researchers proposed using knowledge graphs for improving factual accuracy because they’re a trusted source of facts.Advertisement Continue Reading Below
“Alternate sources of information are knowledge graphs (KGs), which consist of structured data. KGs are factual in nature because the information is usually extracted from more trusted sources, and post-processing filters and human editors ensure inappropriate and incorrect content are removed.”
Is Google Using KELM?
Google has not indicated whether or not KELM is in use. KELM is an approach to language model pre-training that shows strong promise and was summarized on the Google AI blog.
Bias, Factual Accuracy and Search Results
This research is important because reducing bias and increasing factual accuracy could impact how sites are ranked. Google doesn’t currently fact check search results.
KELM, should it be introduced, could conceivably have an impact on sites that promote factually incorrect statements and ideas.
Indirect Ties to MUM
Google has also indicated that the next-generation MUM algorithm will not be released until Google is satisfied that bias does not negatively impact the answers it gives.
According to the Google MUM announcement:Advertisement Continue Reading Below
“Just as we’ve carefully tested the many applications of BERT launched since 2019, MUM will undergo the same process as we apply these models in Search.
Specifically, we’ll look for patterns that may indicate bias in machine learning to avoid introducing bias into our systems.”
The KELM approach specifically targets bias reduction, which could make it valuable for developing the MUM algorithm.
Machine Learning Can Generate Biased Results
The research paper states that the data that natural language models like BERT and GPT-3 use for training can result in “toxic content” and biases.
In computing there is an old acronym , GIGO that stands for Garbage In – Garbage Out. That means the quality of the output is determined by the quality of the input.
If what you’re training the algorithm with is high quality then the result is going to be high quality.
What the researchers are proposing is to improve the quality of the data that technologies like BERT and MUM are trained on in order to remove biases.
The knowledge graph is a collection of facts in a structured data format. Structured data is a markup language that communicates specific information in a manner easily consumed by machines.
In this case the information is facts about people, places and things.
The Google Knowledge Graph was introduced in 2012 as a way to help Google understand the relationships between things. So when someone asks about Washington, Google could be able to discern if the person asking the question was asking about Washington the person, the state or the District of Columbia.
Google’s knowledge graph was announced to be comprised of data from trusted sources of facts.
Google’s 2012 announcement characterized the knowledge graph as a first step towards building the next generation of search, which we are currently enjoying.
Knowledge Graph and Factual Accuracy
Knowledge graph data is used in this research paper for improving Google’s algorithms because the information is trustworthy and reliable.
The Google research paper proposes integrating knowledge graph information into the training process to remove the biases and increase factual accuracy.Advertisement Continue Reading Below
What the Google research proposes is two-fold.
- First, they need to convert knowledge bases into natural language text.
- Secondly the resulting corpus, named Knowledge-Enhanced Language Model Pre-training (KELM), can then be integrated into the algorithm pre-training to reduce biases.
The researchers explain the problem like this:
“Large pre-trained natural language processing (NLP) models, such as BERT, RoBERTa, GPT-3, T5 and REALM, leverage natural language corpora that are derived from the Web and fine-tuned on task specific data…
However, natural language text alone represents a limited coverage of knowledge… Furthermore, existence of non-factual information and toxic content in text can eventually cause biases in the resulting models.”
From Knowledge Graph Structured Data to Natural Language Text
The researchers state that a problem with integrating knowledge base information into the training is that the knowledge base data is in the form of structured data.
The solution is to convert the knowledge graph structured data to natural language text using a natural language task called, data-to-text-generation.Advertisement Continue Reading Below
They explained that because data-to-text-generation is challenging they created what they called a new “pipeline” called “Text from KG Generator (TEKGEN)” to solve the problem.
TEKGEN Natural Language Text Improved Factual Accuracy
TEKGEN is the technology the researchers created to convert structured data to natural language text. It is this end result, factual text, that can be used to create the KELM corpus which can then be used as part of machine learning pre-training to help prevent bias from making its way into algorithms.
The researchers noted that adding this additional knowledge graph information (corpora) into the training data resulted in improved factual accuracy.
The TEKGEN/KELM paper states:
Advertisement Continue Reading Below
“We further show that verbalizing a comprehensive, encyclopedic KG like Wikidata can be used to integrate structured KGs and natural language corpora.
…our approach converts the KG into natural text, allowing it to be seamlessly integrated into existing language models. It carries the further advantages of improved factual accuracy and reduced toxicity in the resulting language model.”
The KELM article published an illustration showing how one structured data node is concatenated then converted from there to natural text (verbalized).
I broke up the illustration into two parts.
Below is an image representing a knowledge graph structured data. The data is concatenated to text.
Screenshot of First Part of TEKGEN Conversion Process
The image below represents the next step of the TEKGEN process that takes the concatenated text and converts it to a natural language text.Advertisement Continue Reading Below
Screenshot of Text Turned to Natural Language Text
Generating the KELM Corpus
There is another illustration that shows how the KELM natural language text that can be used for pre-training is generated.
The TEKGEN paper shows this illustration plus description:
Advertisement Continue Reading Below
- “In Step 1 , KG triples arealigned with Wikipedia text using distant supervision.
- In Steps 2 & 3 , T5 is fine-tuned sequentially first on this corpus, followed by a small number of steps on the WebNLG corpus,
- In Step 4 , BERT is fine-tuned to generate a semantic quality score for generated sentences w.r.t. triples.
- Steps 2 , 3 & 4 together form TEKGEN.
- To generate the KELM corpus, in Step 5 , entity subgraphs are created using the relation pair alignment counts from the training corpus generated in step 1.
The subgraph triples are then converted into natural text using TEKGEN.”
KELM Works to Reduce Bias and Promote Accuracy
The KELM article published on Google’s AI blog states that KELM has real-world applications, particularly for question answering tasks which are explicitly related to information retrieval (search) and natural language processing (technologies like BERT and MUM).
Google researches many things, some of which seem to be explorations into what is possible but otherwise seem like dead-ends. Research that probably won’t make it into Google’s algorithm usually concludes with a statement that more research is needed because the technology doesn’t fulfill expectations in one way or another.
But that is not the case with the KELM and TEKGEN research. The article is in fact optimistic about real-world application of the discoveries. That tends to give it a higher probability that KELM could eventually make it into search in one form or another.
This is how the researchers concluded the article on KELM for reducing bias:
Advertisement Continue Reading Below
“This has real-world applications for knowledge-intensive tasks, such as question answering, where providing factual knowledge is essential. Moreover, such corpora can be applied in pre-training of large language models, and can potentially reduce toxicity and improve factuality.”
Will KELM be Used in Soon?
Google’s recent announcement of the MUM algorithm requires accuracy, something the KELM corpus was created for. But the application of KELM is not limited to MUM.
The fact that reducing bias and factual accuracy are a critical concern in society today and that the researchers are optimistic about the results tends to give it a higher probability of being used in some form in the future in search.
Google AI Article on KELM
KELM: Integrating Knowledge Graphs with Language Model Pre-training Corpora
KELM Research Paper (PDF)
Knowledge Graph Based Synthetic Corpus Generation for Knowledge-Enhanced Language Model Pre-training