Analysis of Artificial Intelligence: How ChatGPT Works and Its Knowledge Limits
Read more
Olhar Digital
olhardigital.com.br

Analysis of Artificial Intelligence: How ChatGPT Works and Its Knowledge Limits

When seeking information, individuals can choose three methods: consulting Google, interacting with an artificial intelligence (AI) chatbot like ChatGPT, Claude, or Gemini, or speaking directly with a person. With the growing integration of AI into Google Search, the first two paths tend to generate similar experiences, unlike human interaction, where knowledge resides in people's minds.

The fundamental distinction lies in the fact that a consulted human possesses real knowledge about the subject and can resolve or even raise new questions, whereas AI does not possess this intrinsic knowledge. Although chatbot responses convey a sense of credibility, being well-structured and coherent, it is crucial to understand that the platform does not hold the knowledge about what it is communicating.

Communication between humans and AI operates in distinct languages. Even if an individual masters all world languages, they will not speak the same language as the machine. Humans use a vocabulary of words, while the machine processes only tokens, which are blocks with numerical designations.

Fabrício Carraro, Program Manager at Alura, explained in an interview with Olhar Digital that a token is equivalent to a subword. He exemplified that the words 'feliz' (happy), 'triste' (sad), and 'divisível' (divisible) are individual tokens. For words like 'indivisível' (indivisible) or 'infeliz' (unhappy), the token 'in' is used, corresponding to a specific number in the language model's vocabulary, which, when added to the token 'feliz' (happy), forms the word 'infeliz' (unhappy).

When interacting with ChatGPT, the process is more characterized as a 'word calculation' than as an articulation of thoughts. According to Carraro, the AI selects thousands of tokens from its vocabulary and assigns a probability to each one, based on what it learned during the training phases.

Training a Large Language Model (LLM) requires immense volumes of data; reading daily would not allow reaching the amount of data processed by ChatGPT in about one hundred thousand years. After initial training, reinforcement learning occurs, a moment when the LLM is adjusted to be useful to humans.

Carraro detailed that, in this post-training phase, the model is taught to present answers in the format expected by humans for a given question. This reinforcement learning also aims to instruct the AI on which responses are desirable and which are not.

When responding, the AI executes millions of mathematical operations, as every neuron in the neural network is essentially a mathematical equation. During inference, the AI chooses each word based on its training, generating the next token according to the probabilities established in pre-training, post-training, and reinforcement learning; in short, the chatbot is only producing what is statistically most probable.

Although generative AI platforms do not possess inherent knowledge, technology companies have implemented features to mitigate this limitation. One such feature is the incorporation of internet search capability, which has increased accuracy when answering current questions, such as recent sports results or Oscar winners.

Another technique is called 'reasoning.' Carraro emphasized that the machine does not think, but the internal mechanism simulates a mental process. Companies like Google and OpenAI have adopted the strategy of having the model internally generate multiple micro-questions and elaborate answers for them without exposing this process to the user. This allows the AI to detect errors, try alternative approaches, and provide a more reliable answer, significantly improving accuracy.

Despite the AI not 'knowing' anything, its usefulness remains undeniable for clarifying doubts, generating content, and improving productivity. Kenneth Corrêa, an AI specialist and professor at FGV, considers that AI platforms are, theoretically, extremely advanced calculators.

In practice, LLMs with trillions of parameters are observed capable of generating answers or completing commands with skills that exceed their learning base. These tools, although they may 'hallucinate,' produce a significant volume of results. Corrêa argues that AI should not be reduced to a mere sophisticated calculator, as this ignores the impact it generates.

The Program Manager at Alura mentioned that some discoveries obtained with these powerful models may be integrations of existing knowledge, organized in a novel way, requiring only 'brute force' to be located.

The FGV professor gave an important warning: these tools lack morality and ethics. They express confidence both when providing the correct answer and when doing so incorrectly. For this reason, human supervision is indispensable, as only humans can validate the answers and determine their use.

Similar stories

The Need for Local AI on PCs: Expert Discusses Hybrid Data Processing Models
Read more
olhardigital.com.br

The Need for Local AI on PCs: Expert Discusses Hybrid Data Processing Models

Artificial intelligence (AI) can be used in computers in various ways. Services such as chatbots and assistants like ChatGPT, Gemini, and Copilot can operate in the cloud, while PCs with AI are beginning to incorporate specialized hardware to perform specific tasks directly on the device.

However, these two approaches do not necessarily have to compete with each other. According to Carlos Buarque, Marketing Director at Intel Brasil, the trend is that AI applications will combine local and cloud processing depending on the characteristics of each task. He stated in an interview with Olhar Digital: 'We believe that all AI applications will become hybrid applications.'

One reason for moving AI processing to the computer is the desire to avoid sending certain data to the cloud. Buarque points to privacy and the cost of using AI services as factors promoting local execution. In his words, language models installed on the PC itself are capable of performing operations such as text proofreading, translation, and data analysis.

Performing part of the workflow locally can reduce costs because some tasks no longer depend on cloud processing. In this scenario, the model is loaded onto the machine and performs inferences locally, without requiring an internet connection for that specific task.

Privacy is especially important when AI works with personal or confidential information. Buarque shared that he used AI to analyze data from his tax return, including information about stock transactions. He noted that he would not want to send such content to a public model without guarantees of data confidentiality.

The director also provided an example from healthcare where local processing makes sense. For instance, during a consultation, transcription could be performed directly on the computer before being included in the doctor's medical record. He emphasized: 'I transcribe the consultation. This is critical, confidential information of my patient. It will be performed locally and transcribed on my computer to go into my patient's file on my computer. I will not run this in the cloud, you understand? Because there is a confidential relationship between the doctor and the patient.'

Furthermore, there are situations where connectivity is a decisive factor. At a factory, Buarque gives the example of using computer vision to detect defects on a production line. In this case, the analysis can happen locally so that the work does not depend on the network. He asserts: 'You will not run this in the cloud; you run it locally due to performance.'

A similar principle applies to security systems. Buarque mentions cameras capable of identifying certain situations and making decisions locally, such as activating an alert or alarm.

Local processing does not negate the need for cloud services. Buarque himself mentions chatbots as applications that continue to function well in the cloud. He says: 'I run my Copilot, Gemini, ChatGPT in the cloud.'

The cloud remains an option when part of the work requires processing that should not happen on the device. Instead of a final choice between architectures, Buarque believes that applications can distribute tasks between the computer and external servers. He concludes: 'There are different types of applications that are very sensible to run locally, and there are others for which I would say the meaning is hybrid. There will be part that you run locally, and another that you run externally due to performance.'

This model can also be applied to separating different types of information within one application. Buarque gives examples where more sensitive data remains on the device, while publicly available information or tasks requiring external searches are processed in the cloud.

The discussion of local processing is not limited to placing a chatbot on a laptop. Buarque argues that new applications can use the ability to run models directly on the device to create an experience different from the current one. In games, for example, he mentions non-player characters (NPCs). In the expert's opinion, locally executed AI models can make these characters smarter, make them behave more naturally, and react better to the player's style.

With AI, these non-player characters can become much smarter and act naturally. The game can adapt much better to your playstyle and become much more personalized for you.

Another example appears in video conferences. Buarque notes that platforms like Microsoft Teams use CPU, GPU, and NPU to perform functions such as noise cancellation and background blurring. In this case, the advantage is not only in the visible or audible result but also in energy efficiency: this task could be done by the CPU, but it would require more energy.

Thus, the combination of local and cloud processing should not be determined by the complete replacement of one technology with another. For Buarque, the place of execution for each part of the AI will depend on the characteristics of the application, including factors such as privacy, cost, performance, and the need to work offline.

During the interview, the expert emphasized that the choice between local and cloud processing must be based on the specifics of each application. In his opinion, different tasks can be divided between the computer and external servers depending on factors such as performance, cost, and privacy.

Popular