Series, volume 6

Let's incorporate Large Language Models (LLMs) into our daily lives

My name is Mirumi, and I run a blog called "Mirume" (https://mirumi.me). My main profession is software engineering, and I spend my days either programming or writing blog posts. For some time, I will be contributing articles on a wide range of topics, primarily focusing on IT technology. Please treat me kindly.

It has been almost 2 years since the release of ChatGPT, a truly impactful event. Looking back, during the summer and autumn of 2022, image generation AIs like Midjourney and Stable Diffusion were generating considerable buzz (at that point, it felt like we were already witnessing incredible technological advancements), but just a few months later, ChatGPT was released, and it seemed that humanity had finally taken a significant step forward. After its release, I spent several days in a row conversing with it and experimenting with various features.

I still believe that the phrase "human progress" is not an exaggeration, but since then, as many people have explored the applications of AI, a large number of individuals, often referred to as "AI hype merchants," have emerged. I suspect that many people, for some reason, haven't really engaged with these developments. Ultimately, the feeling is that something described as simply "amazing" might not actually be useful in real life, leading to skepticism.

At least, that's how I feel. Considering that I haven't gone a day without using AI like ChatGPT for almost 2 years, it certainly feels like an essential part of my life. Mr. Masayoshi Son even said, "People who aren't using ChatGPT should regret their lives" (1), and while that might be a bit extreme, if there are still people who aren't using it regularly, I would like them to experience its convenience, which is why I chose this as the topic for today.

This article begins by explaining the basic workings of conversational generative AI, then introduces guidelines on how to use it in everyday life, and also provides detailed know-how for practical applications. If you have never used any AI before, we encourage you to create an account and try using it while reading this article (2).

Basic mechanisms

In this paper, we will refer to AI systems like ChatGPT as LLMs. LLM stands for Large Language Model, which is a type of generative AI.

As the name suggests, LLMs can be understood as "programs that have learned from a large amount of text." In reality, they generate "plausible answers to questions" based on this learning process, but there is no actual "thinking" involved. It's simply that their accuracy and performance are extraordinarily high.

I will introduce a very easy-to-understand conceptual diagram that allows you to instantly understand this topic. [Image 1]

1. Basic mechanisms of LLMs (the options and numbers in the diagram are hypothetical examples for illustrative purposes)

The text is generated in chunks called "tokens," and during this process, the system continuously selects what it deems to be the most appropriate token to come next. In reality, randomness is added to this process, which introduces a degree of variability (meaning that even if you ask the same question, you won't always receive exactly the same response).

Even within these 2 years, each large language model has grown to an astonishing degree, and it feels almost as if they are no longer just engaging in conversation with humans. When things reach this point, we humans... well, that ventures into the realm of science fiction, so let's leave it at that for now. In reality, understanding everything up to this point is sufficient for everyday use of LLMs.

Differentiating between internet searches and other functionalities

When it comes to using LLMs in everyday life, it might be difficult to imagine exactly what scenarios they would be useful for. Therefore, I thought it would be helpful to provide some specific examples, although these are limited to my own use cases. Here are a few points that illustrate how LLMs can be used:

・ When researching something

→ Basically, we use LLMs for everything

・ When you want to tackle something extremely difficult and don't know where to start or what to investigate

→Using an LLM

・ When you want to confirm whether your own understanding or ideas are correct

→Using an LLM

・ When you want to go to a specific website

→ Perform a search as usual

・ When you want to know about things where the answer is likely to be unique, such as "What is ◯◯?" or "When was ◯◯ released?"

→ Perform a search as usual

・ When you want to know about the latest information, current events, or things that change constantly with updated data

→ Perform a search in the traditional way (3)

In simple terms, almost all tasks that were previously done by "googling" have now been replaced by asking questions to a large language model (LLM). Conversely, if the information you want is highly localized or if "searching" specifically means going to a particular website, then you will still use keyword-based searches as before.

For example, suppose you want to know something about taxes. If you can only use internet searches, you have to repeatedly perform partial searches and manually combine the results to try to fit them to your specific situation, essentially guessing "Could this be what it means?" In contrast, it's easy to imagine how powerful an LLM is that allows you to present your situation and ask questions directly.

On the other hand, if you want to know something about today's stock market, you should search for it on the internet, and the same applies when you want to check the spelling of "google." There is no need to write lengthy questions in Japanese and engage in a conversation.

It is quite predictable, based on the understanding that "LLMs are essentially models trained on vast amounts of text," which was discussed in the previous section, what types of tasks are well-suited for LLMs and which are not.

Context sharing

What surprised me the most when ChatGPT was released was that, after asking a question once and continuing the conversation, the responses took into account the previous interactions. I still vividly remember being quite moved by that experience.

This is a distinct advantage that goes beyond a simple internet search. In the previous section, we were operating under the assumption of "one question and one answer," but this allows for more: for example, you can delve deeper into points that weren't clear from the initial response, or use the answer to one question as a stepping stone to ask another. Once you experience this convenience, it may be difficult to go back to just using regular internet searches.

Currently, all conversational AIs operate in a way where the context is divided into "chats," and content discussed within the same chat continues to have an influence throughout the conversation (although the impact of the context weakens as the distance between responses increases, which will be explained later).

Furthermore, there is a broader sharing of context than just within a single chat. This refers to instructions that define the usage guidelines for LLMs, such as custom prompts and system prompts. For example, by providing information about your personality, preferred response style, occupation, or hobbies, you can reduce unnecessary responses and customize them to be more readable.

There are many situations where someone might say, "I already have a certain level of knowledge in this area, but I want to learn more about the aspects beyond that." In such cases, it's very stress-free and pleasant when both parties can avoid unnecessary explanations based on pre-existing assumptions. It truly feels like there is shared context between them.

The functionality beyond the core language model varies significantly between different LLM products, so it's a good idea to pay attention to features like personalized options when choosing your preferred platform.

Learn some tips for asking questions

Assuming that you have already learned how to use LLMs effectively in appropriate situations, let's also learn some fine-grained tips for obtaining higher quality responses.

The following are examples of know-how:

・ At the beginning of the chat, share background information such as conditions and assumptions, and then focus on the specific area where you want to get answers, using a top-down approach

Questions should be structured (using bullet points or a sequential explanation is effective, and the response content can even be structured using JSON format (4), for example)

Even if you have multiple questions, if they seem relatively unrelated, it's better to ask them separately rather than together (because there is an implicit upper limit on the amount of text in the answer, and the more extensive the explanation needed, the less detailed each individual response will be)

・Context weakens over time, so it's important to control this by reiterating key information

If you feel like you're going in circles, either completely restart the chat or use a prompt like "Please forget everything that has happened so far" to refresh the conversation (Often, a proposal is made [Plan A], but because there's a problem, another plan is requested [Plan B], and when that also presents problems, yet another plan is desired, leading to situations where Plan C isn't proposed and we revert back to Plan A)

The last 2 examples still exhibit some "artificiality" due to the techniques used, but I believe these issues will likely be improved relatively soon.

In reality, the subtle aspects of how these models are used have been changing as they are updated. As mentioned earlier, each model has made remarkable progress in the past 2 years, but during that process, many techniques have become unnecessary (for example: explicitly stating the end of a question to make it clear whether the answer should be yes or no; providing examples and scores before asking users to aim for high scores, etc.).

It's important to be careful not to let the techniques themselves become the goal, and perhaps it would be better to approach this with the idea of improving communication skills with humans rather than focusing solely on AI.

What should you do when you find that "the content of the answer is unreliable"?

However, some people might think this way: "It seems like the premise is that the information provided in the answers is correct, but what if I'm told something incorrect and don't even realize it? It's scary and I can't use it." Let me share my thoughts on this.

First, let's consider the types of websites that have primarily served as information sources in internet searches. While there are many different kinds, some may have been sites whose operators were unknown and seemed to be solely focused on generating revenue. To prevent a decline in the quality of information, it was necessary to verify numerous websites and repeatedly search using different keywords. It's also important to note that this process involves human judgment in selecting and filtering information. Just as there is potential for assembling correct answers, there is also the risk of arriving at incorrect conclusions.

Since LLMs are the result of learning from vast amounts of information, including the internet, it can be assumed that they undergo a similar process. Furthermore, due to their nature of providing the most common and plausible answers, any minor misunderstandings or incorrect statements are generally ignored, and it is expected that more "correct" answers will be output (5).

If, even after starting to use an LLM, you still feel uneasy about whether the content is accurate, I recommend using internet searches to double-check the answers provided (in fact, there are times when I still perform separate searches to confirm if I have doubts about the LLM's understanding). However, after repeating this process a certain number of times, you should realize that this "verification" is usually unnecessary. This sense of certainty comes from actively engaging with the process yourself, and it will become a valuable basis for using the LLM with confidence afterward.

Changing your everyday sources of information can be quite unsettling, but as mentioned above, try gradually getting used to LLMs while maintaining a sense of security.

Finally,

As the GPT series underwent rapid advancements, rumors circulated that even AI researchers themselves didn't fully understand why AI had suddenly achieved such significant growth. This wasn't entirely a myth; rather, it highlights one of the key challenges in recent AI research. If we cannot predict when similar technological breakthroughs will occur again, this continuous progress could lead to a point where humans are left behind, a phenomenon known as the singularity.

While these past few years have been incredibly convenient and a very pleasant period, there's also a sense of excitement mixed with anxiety about what the future holds. I can't take my eyes off its future development in many ways.

Note

(1) https://www.itmedia.co.jp/news/articles/2310/04/news175.html

(2) Recently, even with the free plan of ChatGPT, you can now use the latest models: https://openai.com/chatgpt/pricing

(3) LLMs are trained on existing text, so they generally cannot answer questions about things the model has not yet learned. A common misconception is to view conversational generative AI as an extension of internet search, and this is something that requires careful consideration.

(4) JavaScript Object Notation, often abbreviated as JSON, is a very popular method for handling data structurally, regardless of the system.

(5) This is a part that completely depends on the design of each individual model, but naturally, information that is considered more official and reliable tends to be labeled with higher importance. It's not common for all information on the internet to be treated equally. In this sense, we can consider that the selection and prioritization of information are being unified according to certain rules.

(Written by Miru)

(Featured in the Autumn issue of Up&Coming '24)



Previous page
    
Index
    
Next page

Up&Coming

LOADING