Two important aspects of AI

In this post, I am going to briefly talk about two important aspects of AI – tokens, hallucinations.

What are tokens?

You communicate with GPT with natural language such as English. How does ChatGPT understand your question? Sentences, words, and characters are transformed into many individual tokens. Here is the example sentence: Chat GPT processes text by splitting it into tokens.

Each token will have a unique ID. What happens after the tokenization? It tried to predict what would be best token after the current one. And this could potentially lead to a fundamental problem – hallucination

What are hallucinations?

Due to the fundamental nature of large language models – prediction of next tokens – it can often produce factually incorrect text. When they predict next tokens, they don’t care whether it’s actually fact or not. They just predict most plausible next token.

It might not be a big problem if you ask something trivial/simple. However, when legal/scientific/medical questions are presented, the answers must be correct. Otherwise, it could lead to a potentially very big disaster.

Is there any way to prevent hallucinations? Yes. you should provide sourcing text ChatGPT can parse and make sure to tell it to answer only based on the provided text. Tell GPT to say “I don’t know” if it doesn’t know based on your text.

Leave a Reply

Your email address will not be published. Required fields are marked *