Modern Australian
Men's Weekly

.

Can robots write? Machine learning produces dazzling results, but some assembly is still required

  • Written by Alexandra Louise Uitdenbogerd, Senior Lecturer in Computer Science, RMIT University
Can robots write? Machine learning produces dazzling results, but some assembly is still required

You might have seen a recent article from The Guardian written by “a robot”. Here’s a sample:

I know that my brain is not a “feeling brain”. But it is capable of making rational, logical decisions. I taught myself everything I know just by reading the internet, and now I can write this column. My brain is boiling with ideas!

Read the whole thing and you may be astonished at how coherent and stylistically consistent it is. The software used to produce it is called a “generative model”, and they have come a long way in the past year or two.

But exactly how was the article created? And is it really true that software “wrote this entire article”?

How machines learn to write

The text was generated using the latest neural network model for language, called GPT-3, released by the American artificial intelligence research company OpenAI. (GPT stands for Generative Pre-trained Transformer.)

OpenAI’s previous model, GPT-2, made waves last year. It produced a fairly plausible article about the discovery of a herd of unicorns, and the researchers initially withheld the release of the underlying code for fear it would be abused.

But let’s step back and look at what text generation software actually does.

Machine learning approaches fall into three main categories: heuristic models, statistical models, and models inspired by biology (such as neural networks and evolutionary algorithms).

Heuristic approaches are based on “rules of thumb”. For example, we learn rules about how to conjugate verbs: I run, you run, he runs, and so on. These approaches aren’t used much nowadays because they are inflexible.

Read more: From Twitterbots to VR: 10 of the best examples of digital literature

Writing by numbers

Statistical approaches were the state of the art for language-related tasks for many years. At the most basic level, they involve counting words and guessing what comes next.

As a simple exercise, you could generate text by randomly selecting words based on how often they normally occur. About 7% of your words would be “the” – it’s the most common word in English. But if you did it without considering context, you might get nonsense like “the the is night aware”.

More sophisticated approaches use “bigrams”, which are pairs of consecutive words, and “trigrams”, which are three-word sequences. This allows a bit of context and lets the current piece of text inform the next. For example, if you have the words “out of”, the next guessed word might be “time”.

This happens with the auto-complete and auto-suggest features when we write text messages or emails. Based on what we have just typed, what we tend to type and a pre-trained background model, the system predicts what’s next.

While bigram- and trigram-based statistical models can produce good results in simple situations, the best recent models go to another level of sophistication: deep learning neural networks.

Imitating the brain

Neural networks work a bit like tiny brains made of several layers of virtual neurons.

A neuron receives some input and may or may not “fire” (produce an output) based on that input. The output feeds into neurons in the next layer, cascading through the network.

The first artificial neuron was proposed in 1943 by US neuroscientists Warren McCulloch and Walter Pitts, but they have only become useful for complex problems like generating text in the past five years.

To use neural networks for text, you put words into a kind of numbered index. You can use the number to represent a word, so for example 23,342 might represent “time”.

Neural networks do a series of calculations to go from sequences of numbers at the input layer, through the interconnected “hidden layers” inside, to the output layer. The output might be numbers representing the odds for each word in the index to be the next word of the text.

In our “out of” example, number 23,432 representing “time” would probably have much better odds than the number representing “do”.

Read more: Friday essay: a real life experiment illuminates the future of books and reading

What’s so special about GPT-3?

GPT-3 is the latest and best of the text modelling systems, and it’s huge. The authors say it has 175 billion parameters, which makes it at least ten times larger than the previous biggest model. The neural network has 96 layers and, instead of mere trigrams, it keeps track of sequences of 2,048 words.

The most expensive and time-consuming part of making a model like this is training it – updating the weights on the connections between neurons and layers. Training GPT-3 would have used about 262 megawatt-hours of energy, or enough to run my house for 35 years.

GPT-3 can be applied to multiple tasks such as machine translation, auto-completion, answering general questions, and writing articles. While people can often tell its articles are not written by human authors, we are now likely to get it right only about half the time.

The robot writer

But back to how the article in The Guardian was created. GPT-3 needs a prompt of some kind to start it off. The Guardian’s staff gave the model instructions and some opening sentences.

This was done eight times, generating eight different articles. The Guardian’s editors then combined pieces from the eight generated articles, and “cut lines and paragraphs, and rearranged the order of them in some places”, saying “editing GPT-3’s op-ed was no different to editing a human op-ed”.

This sounds about right to me, based on my own experience with text-generating software. Earlier this year, my colleagues and I used GPT-2 to write the lyrics for a song we entered in the AI Song Contest, a kind of artificial intelligence Eurovision.

AI song Beautiful the World, by Uncanny Valley.

We fine-tuned the GPT-2 model using lyrics from Eurovision songs, provided it with seed words and phrases, then selected the final lyrics from the generated output.

For example, we gave Euro-GPT-2 the seed word “flying”, and then chose the output “flying from this world that has gone apart”, but not “flying like a trumpet”. By automatically matching the lyrics to generated melodies, generating synth sounds based on koala noises, and applying some great, very human, production work, we got a good result: our song, Beautiful the World, was voted the winner of the contest.

Co-creativity: humans and AI together

So can we really say an AI is an author? Is it the AI, the developers, the users or a combination?

A useful idea for thinking about this is “co-creativity”. This means using generative tools to spark new ideas, or to generate some components for our creative work.

Where an AI creates complete works, such as a complete article, the human becomes the curator or editor. We roll our very sophisticated dice until we get a result we’re happy with.

Read more: Computing gives an artist new tools to be creative

Authors: Alexandra Louise Uitdenbogerd, Senior Lecturer in Computer Science, RMIT University

Read more https://theconversation.com/can-robots-write-machine-learning-produces-dazzling-results-but-some-assembly-is-still-required-146090

Why Ugly Websites Sometimes Outperform Beautiful Ones

In the digital age, we're constantly told that first impressions matter, and nowhere does this seem more apparent than in web design. However, a cur...

TPD Claims & Super: What Does It All Mean?

Many Australians hear the term "TPD" in relation to their superannuation and feel completely lost. If you're scratching your head, wondering what it...

What Does Breastfeeding Feel Like? A Guide for New Moms

Frequently, numerous new mothers wonder, "What does breastfeeding feel like?" The feeling is different for each individual - a few describe it as a ...

Best Nail Care Routine for Frequent Nail Polish Wearers

For many people, nail polish is more than a beauty statement – it’s part of their everyday routine. Whether you love bold colours, chic neutrals...

Reinventing Research: How E-Libraries Are Changing Education Forever

A New Chapter for Learning For centuries libraries stood as temples of knowledge filled with shelves that smelled of dust and paper. Today the same...

Psychologists Explore Gestalt Vs Schema Therapy for PTSD Treatment

Recent research has revealed that in 2022, 1 in 9 Australians experienced post-traumatic stress disorder (PTSD). For some, this can significantly im...

Beyond Sunscreen: Building a Sun-Smart Culture in Modern Australia

Australia’s sun-soaked lifestyle is a defining part of its national identity. From beaches and sports fields to weekend barbecues and bushwalks, t...

What is Power BI & Why Should Your Business Use It?

In today's data-driven world, businesses are constantly searching for ways to gain a competitive edge. One tool that has emerged as a game-changer i...

From Service to Strength: How Aussie Veterans Are Rebuilding Their Lives with Everyday Support

Life after military service can bring new challenges. From physical limitations to mental health hurdles, many Australian veterans find everyday hou...

The Best Times of Year to Buy a Caravan

If you're shopping for caravans for sale, timing matters almost as much as the layout and features you desire. The calendar shapes price, stock and ...

The Growing Demand for Smart Living Through Home Automation

Technology has reshaped how we communicate, work, and travel—but now, it’s also changing the way we live at home. The rise of home automation i...

Beyond Clicks and Likes: Why Many Small Businesses in Australia Still Aren’t Leveraging Digital Marketing in 2025

Introduction In 2025, online marketing has become the driving force behind business growth for companies of all sizes. Yet, despite its proven effect...

Lighting Shop Perth: Your Comprehensive Guide to Choosing the Right Lighting Solutions

Lighting is a fundamental element in defining the ambiance, functionality, and aesthetic appeal of any space. Whether you are renovating your home, ...

Private Booze Cruisers – The New Must-Have Toy for Cashed Up Millennials

Did you hear that your 30s are the new 20s? We’ve finally rocked up that adult money and now it’s time to play with it. I was going for a walk ...

Grinding & Jaw Soreness: Signs You Might Need Night Guards and How We Protect Enamel

Waking with a tight jaw, tender muscles, or a dull temple headache is more than a bad night’s sleep. Many Australians grind or clench their teeth ...

Circular Interior Design: Furnishing with Salvaged & Reclaimed Materials

Circular interior design is gradually making its way from niche circles into mainstream Australian homes. At its core, this approach revolves around...

Invisible Braces vs Traditional Braces: Which Is Best for Adults?

Straightening teeth as an adult is common in Australia, and the options are better than ever. The two main choices are clear aligners, also called i...

Smoking, Vaping, and Healing: How Nicotine Affects Sockets and What you can do About it

Nicotine and oral surgery are a poor mix. After an wisdom teeth removal in Sydney, your body needs a stable blood clot and steady blood flow to rebu...