Home Artificial Intelligence 3 Ways to Keep Stale Facts Fresh in Large Language Models

3 Ways to Keep Stale Facts Fresh in Large Language Models

3 Ways to Keep Stale Facts Fresh in Large Language Models

Large Language Models (LLM) like GPT3, ChatGPT and BARD are all the trend today. Everyone has an opinion about how these tools are good or bad for society and what they mean for the longer term of AI. Google received lots of flak for its recent model BARD getting a posh query fallacious (barely). When asked “What recent discoveries from the James Webb Space Telescope can I tell my 9-year-old about?” – the chatbot provided three answers, out of which 2 were right and 1 was fallacious. The fallacious one was that the primary “exoplanet” picture was taken by JWST, which was incorrect. So principally, the model had an incorrect fact stored in its knowledgebase. For big language models to be effective, we want a approach to keep these facts updated or augment the facts with recent knowledge.

Let’s first take a look at how facts are stored inside of enormous language model (LLM). Large language models don’t store information and facts in a conventional sense like databases or files. As an alternative, they’ve been trained on vast amounts of text data and have learned patterns and relationships in that data. This allows them to generate human-like responses to questions, but they don’t have a particular storage location for his or her learned information. When answering an issue, the model uses its training to generate a response based on the input it receives. The data and knowledge that a language model has is a results of the patterns it has learned in the information it was trained on, not a results of it being explicitly stored within the model’s memory. The Transformers architecture on which most recent LLMs are based on have an internal encoding of facts that’s used for answering the query asked within the prompt.

So, if facts inside the interior memory of the LLM are fallacious or stale, recent information must be provided via a prompt. Prompt is the text sent to LLM with the query and supporting evidence that may be some recent or corrected facts. Listed here are 3 ways to approach this.

1.  One approach to correct the encoded facts of a LLM is to supply recent facts relevant to the context using an external knowledge base. This data base could also be API calls to get relevant information or a lookup on a SQL, No-SQL, or Vector database. More advanced knowledge may be extracted from a knowledge graph that stores data entities and relations between them. Depending on the knowledge user is querying for, the relevant context information may be retrieved and given as additional facts to the LLM. These facts may additionally be formatted to appear like training examples to enhance learning process. For instance, you could pass a bunch of query answer pairs for model to learn tips on how to provide answers.

2. A more progressive (and costlier) approach to augment the LLM is actual fine-tuning using training data. So as a substitute of querying knowledge base for specific facts so as to add, we construct a training dataset by sampling the knowledge base. Using supervised learning techniques like superb tuning we could create a new edition of the LLM that’s trained on this extra knowledge. This process is normally expensive and might cost just a few thousand dollars to construct and maintain a fine-tuned model in OpenAI. After all, the fee is anticipated to get cheaper over time.

3. Another choice is to make use of methods like Reinforcement Learning (RL) to coach an agent with human feedback and learn a policy on tips on how to answer questions. This method has been highly effective in constructing smaller footprint models that get good at specific tasks. For instance, the famous ChatGPT released by OpenAI was trained on a mixture of supervised learning and RL with human feedback.

In summary, it is a highly evolving space with every major company wanting to get into and show their differentiation. We’ll soon see major LLM tools in most areas like retail, healthcare and banking that may respond in a human-like manner understanding the nuances of language. These LLM-powered tools integrated with enterprise data can streamline access and make right data available to right people at right time.


Please enter your comment!
Please enter your name here