I won't be breaking any news by saying that the hottest technology topic online in 2022 and early 2023 (and probably throughout the year) is ChatGPT and other tools using artificial intelligence (AI). The term itself has been around for a long time, in both academic circles and science fiction or cyberpunk, so humanity is familiar with the idea. Until recently, though, the general feeling was that a few things might already be possible, but the real thing still lay in the future. Then the future arrived, ripped the door off its hinges, threw the cat out of the armchair, and made itself at home in the living room.
It soon became clear that tools generating images from text descriptions, such as DALL-E 2 and Midjourney, were just the warm-up. Along came ChatGPT, acting as a conversation partner, guide, adviser, and moralizer all at once. The excitement grew so intense that other companies suddenly started following OpenAI's lead and developing their own tools. Microsoft's Bing assistant, for example, looks very promising. Reports keep appearing about artificial intelligence being used across industries, offering suggestions to users, and solving everyday technical problems. Suddenly, everything fashionable needs an "AI" label. There are even ready-made AI systems you can run on your own server. Of course, moral concerns and discussions about the safety of this technology emerged at the same time, once it entered widespread use. For now, let's focus on the fact that artificial intelligence has left the research labs and is within anyone's reach.
The question is whether this really is artificial intelligence. After all, until now the darling of software systems, especially those seeking funding, was machine learning (ML). It was achievable and, when used well, genuinely impressive, saving work for people responsible for algorithms while creating more work for others. At some point, my rather peculiar mind felt the urge to explain how AI compares with ML and whether we really are witnessing a revolution. Spoiler: we are.
How does machine learning work?
Let's start with the main point: it is a subfield of artificial intelligence. AI and ML are therefore not separate fields; one sits within the other. ML, our abbreviation for machine learning, involves discovering patterns in data that let us aggregate, group, classify, and otherwise process it. You are probably familiar with recommendations in online stores or on news websites. Those are likely to involve a machine learning method working from your browsing history of articles or products, specifically association rule mining. You can also encounter this in advanced spam filtering and in much more serious applications, such as medical diagnostics, where it can help indicate whether an X-ray shows concerning cancerous changes.
At this point, someone might say that algorithms already exist and all of this can be expressed using conditions, loops, and so on. Under the hood, that is indeed how machine learning works: you could say it creates its own internal instructions for responding to a particular situation. Fair enough, but the issue here is the level of complexity. A person can write explicit instructions when, for example, assigning someone to a group follows clear criteria, such as a given number of points corresponding to a particular test grade. Machine learning becomes useful when we want to process data and discover rules, but do not know how to do so and cannot easily work it out from the enormous pool of information available. That pool does, however, contain real-life cases or cases described by an expert. It is the training set that an ML method uses to build an internal model for actual use. This is not quite straightforward. The researcher still has to identify, for example, the parameters describing each case that might help the classifier. These are not always explicit values such as true, false, or a number. Nor are there usually just 3 attributes: 30, 300, 3,000, or more are more likely. The input set also needs to be sufficiently varied and "sensible" for the resulting rules to assess as many cases as possible. There is another complication: the training set must not be too large, to avoid "overfitting" the model, which could then get confused by very simple cases and treat them as special ones.
Machine learning therefore makes it easier to interpret complex data and draw conclusions automatically. It does not always work perfectly, of course, but it can improve work in many fields. Although difficult, it is achievable, especially since ready-made libraries implement individual methods, particularly in Python, but also in JavaScript, PHP, and other technologies. The engineer's role here is more about choosing the right method and training set, and preparing the attributes that describe the data and help train the resulting model properly.
What is artificial intelligence?
We all intuitively understand AI to mean machines and programs behaving as though they had intelligence of their own. In practice, this means simulating how a real person thinks, or rather attempting to reproduce that process. The concept is very broad and, as I mentioned earlier, extends beyond science. It appears in many fields and discussions, including fictional ones, such as HAL 9000 in "2001: A Space Odyssey".
Video game players will certainly know the term AI in relation to enemy behavior. In practice, this is not quite artificial intelligence, because the actions of enemies and even NPCs are scripted. Developers build models themselves, such as finite-state machines, that issue commands like "attack," "run away," or "drink a potion" depending on the situation, described by variables such as health points or distance from the player. This also applies beyond video games: traditional games such as chess have engines that use rules, trees, and other techniques to identify the best moves or predict a player's chances.
Artificial intelligence goes much further, however. It includes the machine learning methods described above, as well as methods that analyze and synthesize natural language, known as NLP, or Natural Language Processing. These are the methods currently making the biggest impression through ChatGPT and, earlier, through less advanced chatbots, which might also have used expert systems or simply predefined rules. NLP is itself a field with many branches, studying the structure of a language for further processing. As you might expect, these methods tend to work best with English. Polish, for example, makes things much more complicated because of inflection, word order, and so on. Nevertheless, sentences in the language of the descendants of the Piast dynasty can certainly be analyzed and generated automatically too.
Many people also associate this field with neural networks, structures intended to imitate human thought processes. Whether they actually do so is debatable, but they are among the best-known types of AI models. They consist of interconnected neurons that gradually pass along conclusions, work toward a particular piece of information, and return it. Like onions or ogres, they have layers, though here we are talking about levels. The number of neurons and "floors" determines a network's complexity and effectiveness. A network may also contain recursive elements, returning to previously visited nodes to process information again in a different context. Major advantages of neural networks are their tolerance of errors or missing information and their ability to work in parallel. Large networks also underpin deep learning, a subfield of machine learning. You may know one service based on this: DeepL, an automatic translator that many consider better than Google Translate for certain uses.
What makes artificial intelligence "real," however, is a model's ability to learn on its own. In traditional machine learning, for example, classifiers can assign only classes they know about. If they can award a grade from 1 to 6, there will never be a case with a result of 7. At most, the method will report that it cannot assign a suitable grade. If we let a program learn independently from further cases, this starts to become possible. We can see this in ChatGPT, which can acquire knowledge from users. Of course, this is dangerous because of pranksters, plain misinformation, or information colored by particular views. Nevertheless, with a sufficiently enormous training set, the negative effect may be smaller and the positive contribution greater.
What was the training set for version 3 of ChatGPT? Version "4" is already available as I write this. It was enormous: 570 GB of data, and we know that text files themselves tend to be fairly small, plus 176 billion parameters describing the information. You can find these figures and an explanation of the model in this article, which explains everything from the perspective of AI methods. This example shows what a huge undertaking it is, requiring scientists and substantial computing power that has finally become available.
Conclusion
ChatGPT and OpenAI's other AI-based tools can therefore indeed be called artificial intelligence. This is certainly not the limit of what is possible, and the grumblers will say it is not AI and they want something better. But isn't learning really about presenting someone with texts and examples so they can learn from them and draw conclusions? The question is when this technology will become truly dangerous as well as impressive. In fact, perhaps we have already reached that point, considering deepfakes, cloned voices, swapped faces, and generated material that cannot be distinguished from human creations at first glance. That is a separate discussion, though, and one I did not want to take on here. My apologies to anyone hoping to read about legal regulations, the open letter addressed to OpenAI and others, or ChaosGPT.
Still, remember that the popularity of artificial intelligence means even fairly simple solutions that "figure things out on their own" now get called AI, because the label draws a crowd or sparks controversy. In reality, "good old" machine learning methods, which belong to AI anyway, still perform quite well in many areas, and the phrase "artificial intelligence" is often something of an overstatement. The question is how long "ordinary" ML will actually be enough.
Best regards, and thank you. Jakub Rojek.


