What an Artificial Intelligence Taught Me about Perfectionism

Every now and then I get sick of the fact that all my goals are massive, overwhelming and scary. It’d be nice to just achieve something, for once. So I had an idea for a small, mini-project to help me recharge, and I thought it’d be fun to share the whole journey with you.

To date, I’ve written over one hundred articles for Puttylike. And I’ve been curious about computer-generated writing for years. So here’s the plan: I’m going to feed all my articles into an Artificial Intelligence and see if computers can learn to write like I do. I’m no expert in AI… but that’s precisely what makes this idea so enticing.

Stage zero: Expectations

One of the reasons my projects often balloon in scope is that I can’t bear the thought of doing anything imperfectly. So I’m consciously releasing myself from perfection before I even start. 

Ideally, my new AI friend will auto-generate a complete and comprehensible article, filled with pearls of wisdom and hilarious wit. But just generating anything would be an achievement. The aim for this mini-project is simply to have fun while creating something.

My mantra will be this: something imperfect that exists is better than something perfect that doesn’t!

Stage one: Learning

Mini-projects inevitably involve a lot of learning. A quick search reveals what I don’t know about AI text generation, which – it turns out – is a lot! 

Happily, I always find the revealing-my-vast-ignorance-to-myself stage of projects enjoyable.

My initial plan is to harness the power of the biggest, coolest beast in the world of AI text generation: GPT3. This network generates impressively human-seeming output in all kinds of areas. Check out the poem it wrote — it’s called “Future Consensus Forecasts” by Board of Governors of the Federal Reserve System:

No one knows what will come
Forecasts foretell a rise in power
That is probably not to be
Deficit of several lines
The golden future has tourniquets
No one likes it

Sure, it’s nonsense, but it’s fun. I’m already anticipating what GPT3 will make out of my writing. 

Unfortunately, I hit an immediate stumbling block: GPT3 isn’t fully open to the public. 

And while filling in the form to join the waitlist, I decide that “automating my Puttylike articles” is probably not a good enough reason to make it into their exclusive program.

Stage one-and-a-bit: Relearning

Trial and error is inevitable. My first idea didn’t work out, so I’ll find another way.

More googling reveals that it’s (relatively) easy to train your own neural network on some text. I won’t go too deeply into the technicalities, but the basic idea is that the network runs some advanced mathematics on whatever you feed it, and it figures out how to come up with new stuff that’s similar.

The disadvantage of doing this myself is that my network will lack the enormous power and sophistication of GPT3. I’m much more likely to end up with a bunch of nonsensical sentences than a plausible article which imitates my style.

However, the advantage is that this is actually physically possible, which is a strong enough reason to go for it. (Something imperfect that exists is better than something perfect that doesn’t!)

I found a tutorial which passes my Useful Learning Test — i.e. it contains mostly things I already know and a small amount of things I don’t — and I’m going to go try it immediately.

Stage two: Experimentation

As I write, a neural network is training itself on a small amount of test data. This is extremely exciting!

I’m watching this progress bar right now:

One yardstick for the power of these networks is their number of parameters, which is a bit like the size of their brains. My little home-made AI has a grand total of 2,939,141 parameters. Sounds good, right? Well, for comparison, GPT3 has over 175 billion parameters.

A quick glance at animal brain size shows that GPT3 apparently has more parameters than human brains have neurons, while my network has the comparative mental power of…a guppy. 

Unfortunately, even with this modest start, the test training will apparently take around 30 minutes on my machine. This is mildly concerning. At this speed, it looks like I might have to train the network on my articles for several days–once I’ve validated this actually works. 

I could spend some money and figure out how to get this running faster on the cloud, or do some magic to speed up the computations, but ‘imperfection is okay’.

Meanwhile, the training has completed. Let’s see the results.

Stage three: Doing

The test data worked. Well, sort of. Here’s what I get back out of it when I ask for a new sentence:

Hovered ice fish could procured thus cut chief article maintenance triumph enemy increased difficulty …

It goes on like this for quite a while. It seems I have not yet replaced myself with a robot guppy.

I’m actually really happy with this result. I barely trained it — on the wrong data — and it came up with…some complete gibberish. But it’s basically what I expected. 

In theory, I can now train it on the right data and for a proper length of time, and then I will discover what an AI makes out of the totality of my Puttylike articles.

I love these moments in a project. Realizing this is actually possible is so exciting!

And with that, I’ll set it training on the real data. See you soon.

Stage four: Results

Welcome back!

Imagine doing nothing but reading my blog posts for days on end. I’ve thought about what that would feel like as I watched the progress bars gradually tick back and forth for the last three days.

Let’s see what effect it had on my AI. 

AI, give me a sentence.

non fiction writer world might custard physics mental health writer realised sime shings shings shings shings shings

Oh wow. I mean. It’s, uh… certainly grasped something of the subjects I tend to mention. I’m not sure it has quite captured my writing style. But let’s try again, I suppose:

television actually paid attention experience might go something like joylessly scroll option shings shings shings shings shings shings shings shings shings shings

Hmmm. Well…

I see the AI has at least nailed my famous catchphrase, shings shings shings shings shings.  Although I think my delivery is better.

Let’s go one more time. Maybe this glitch doesn’t always happen?

scared fine super touch emotions identified dealt usual fears realised part us terrified caging for get sime shings shings shings

Well, fair enough. I can’t disagree.

Stage five: Concluding

Was this project worth several days of my life?

I find this question impossible to answer. As always, I went in with hopes and dreams and a whole lot of ignorance. I learned plenty in the process (in particular, I learned how to teach a computer to repeatedly say “shings”), and I had a lot of fun documenting the journey.

Honestly, the results aren’t what I hoped for, but I suppose I knew that training my own network (potentially wrongly!) was always going to be worse than using a ‘real’ one. Maybe I’ll return to this project someday, if I manage to get access to GPT3 or a similar technology.

Or, maybe I’ll learn more about training networks and figure out how to make this one smarter! Perhaps instead of the brain size of a guppy I could try one the size of a mongoose! Or instead of training it on my own computer I’ll use some cloud computer to run 24/7 for a week. Or maybe…

You know what? Any project that ends with me filled with enthusiasm and brimming with ideas of how to improve it in the future is a success.

And one thing I’ve always said about success is, sime shings shings shings shi


[this article was originally written for Puttylike]

Neil Hughes

Neil Hughes is the author of Walking on Custard & the Meaning of Life, a comical and useful guide to life with anxiety, and The Shop Before Life, a tale about a magical shop which sells human personality traits. Along with writing more books, he puts his time into standup comedy, speaking about mental health, computer programming, public speaking and everything from music to video games to languages. He struggles to answer the question “so, what do you do?” and is worried that the honest answer is probably “procrastinate.” He would like it if you said hello.

Leave a Reply

Your email address will not be published.