
SOFTWARE TECHNOLOGY
JULY/AUGUST 2023 | IEEE SOFTWARE
31
Generative AI Technologies
Generative AI has been around for
many years. With no means to prove
validity, researchers hesitated to bring
such technology to the mass market
of rather naïve data citizens. As we
have observed many times in recent
IT history, the perceived gold rush
makes people close their eyes to ob-
vious risks. Even tools designed for
good will eventually have devastating
consequences. When ChatGPT was
finally released to a wide public audi-
ence in 2022, the AI arms race started
at a speed never seen before. It took
just two months for ChatGPT to reach
100 million users. Figure 1 shows this
fast evolution for different technolo-
gies spanning a mere 100 years of
recent human history. A technology
like the wheel even took thousands of
years to reach 100 million users.
For every developer, turning to
StackOverflow or Google has been a
natural part of the job for years now.
Condemning the “not invented here
syndrome” to the dustbin, our first
reaction when in doubt how to code
something has been to look it up on
the Internet. Search engines have be-
come better at indexing code reposito-
ries, myriads of which exist online, and
community advice sites, such as Stack-
Overflow, provide reasoned solutions
and valuable commentary on user
questions. What is common in search
engines and question-and-answer web-
sites is that you can look up informa-
tion that has already been stored there.
Generative AI is different. As the
name suggests, it can synthesize—or
generate—the answers to the ques-
tions you pose. Instead of trawling a
prefabricated answer as classic search
engines are doing, it will create an
answer for you. The answer is based
on vast amounts of data on which
it has been trained, such as those ar-
chived and indexed by search engines.
To provide meaningful answers, gen-
erative AI undergoes further train-
ing based on human feedback. Many
human trainers pose questions and
provide feedback on the generated an-
swers, rewarding good answers and
punishing unsatisfying ones. This kind
of reinforcement learning guides the
system toward providing more accu-
rate answers, while guarding against
harmful responses. This has led to
glimpses of a new way of working,
where the focus is on “prompt engi-
neering”: find the most appropriate
way to frame a question or a whole
dialogue. Generative AI does not work
with individual question and answers:
it maintains a context window, which
can be used to guide the AI in gener-
ating contextually relevant and well-
informed responses.
Underlying all this, generative AI
is powered by large language models
(LLMs). As the name again suggests,
these are large neural network models
that are trained on big language cor-
pora. Technically, they have a trans-
former architecture, which is based on
a mechanism called attention. The pub-
lication of the attention mechanism, by
Google researchers, must now rank
among the most influential papers in
computer science.
1
Two early LLMs
were the Bidirectional Encoder Repre-
sentations from Transformers (BERT),
developed by Google in 2018,
2
and
FIGURE 1. Time to reach 100 million users for different technologies in months after
initial deployment.
ChatGPT
TikTok
WhatsApp
Internet
Mobile Phone
Car
Telephone
2
9
40
80
190
400
900
Time to Reach 100 Million Users
0 100 200 300 400 500 600 700 800 900 1,000
The basic idea is to use a large
language corpus to train a neural
network to learn the language, by
hiding part of the text and asking the
network to guess the missing parts.
Authorized licensed use limited to: Shenzhen Institute of Advanced Technology CAS. Downloaded on October 11,2023 at 13:25:56 UTC from IEEE Xplore. Restrictions apply.
评论