Generative AI Content Creation

From the invention of the wheel to generative technology
From the invention of the wheel to generative technology

Introduction

New developments in AI are creating seemingly miraculous applications which can create images from text, write essays and poetry, compose music, diagnose diseases, enhance robotics capabilities. translate languages, write software (blasphemy) and just about everything we thought was unique to only human ability.

Recent significant progress in natural-language programming (NLP), the application of machine learning algorithms to process and understand human language, has led to the development of tools that are able to translate languages, generate text, and emulate conversations with humans that cannot be distinguished from a real person (Turing Test). These new developments have generated fear and loathing among artists, writers and others who worry about encroachments on their empires. Accusations of bias (some valid) have stirred up a new breed of Luddites and haters who can only see the negatives.

The integration of NLP with Generative Adversarial Networks (GANs) and computer vision technology for image synthesis, has resulted in the creation of text to image applications such as DALL-E, Stable Diffusion, Imagen and many others that that produce results previously relegated to science fiction.

In this writing (yes; I am human) we will discuss how we got there, what problems needed to be solved and what does it all mean to us moving forward.

How did this happen?

These developments seem to have exploded into the media from the expected big players and a couple of notable new entrants over the last few months.  It is, in my opinion, a qualitative advancement of the state of the art, and a game changer!

The resulting products / technology / demonstrations represent a next generation in machine content creation; text to image, intelligent bots have become authors and music composers, 3D objects from text as well as animations and video. These achievements are based on the new developments built on person centuries of AI development.

How did this seemingly sudden paradigm change come about?

Elements of the AI development community
Elements of the AI development community Graphics generated from Dall-E and Stable diffusion

The figure above tells the story; smart people, adequate funding, collaboration, and open-source in the AI community created the environment where these new technologies could emerge.

The big breakthroughs have come from developments in NLP.  The development of the Attention Mechanism Transformer enables text queries to be encoded into formats that can be concatenated with image data providing a cohesive methodology for generating images from complex textual queries. The attention mechanism was first introduced to improve the performance of machine translation applications.

Attention mechanism
Creating a text / image encoded array.

An easy way to understand attention transformers is to look at the process as converting a query text string (encoding) into a data structure (transformation) that can be concatenated to the image being generated. The encoding process is trained with the text datasets and the image data with the labeled image data.  The result is a data representation that has seamlessly combined the image and text information so they can be processed within a single application. A big deal.

This is a non-trivial topic. 

CLIP (Contrastive Language-Image Pre-Training) was released (and since evolved substantially) in January of 2021.  It was trained with four hundred million image text pairs and utilized 592 NVIDIA A100 GPU processors (over a Peta flop of processing).  Estimates indicate that a single, full training cycle took over 30 days of continuous processing.  An A100 currently costs about ten thousand dollars and requires a big network of workstations to host them.  We can be confident that many training sessions were required to get to a version 1.  This represents about two million kilowatts of electricity per training session, which a typical home uses in two years.

If we look at the task of creating the training datasets, the hardware and computing time costs, not to mention development costs, we can see that it takes adequate funding, lots of smart people, collaboration, and the availability of open-source technology (figure 2) to develop this.

OpenAI has received three billion dollars (largely from Microsoft) to get where they are. Billions more will be invested to advance the new generative technologies. In 2022, investors pumped at least $1.37 billion into Generative AI companies across 78 deals, almost as much as they invested in the previous five years combined. (Source NYT)

Microsoft has recently announced that it will be incorporating OpenAI technology into all of its applications. This will instantly bring the new AI capabilities to hundreds of millions of users worldwide. This will create a new Next Generation of applications.

Good or evil?

Figures 3 – 6 show the AI generated images and the input text captions used to generate them used in figure 2.

Successful AI development environment
Smart people, adequate funding, collaboration and open standards have contributed to the rapid growth of AI

Figure 4 shows a cultural bias; all smart people wear glasses!

Recently I encouraged a client who was bringing a FinTech product to market, to use a generative text-to-image application to do the illustrations for their website.

The idea was diverse people looking at financial charts on cell phones. The client’s response was both humorous and relevant.

They told me the apps were biased as all the cell phones rendered appeared to be Apple’s.

We must keep in mind that the AI did not make up these associations but learned from the data it was trained on. Garbage in garbage out.  An old adage, that is applicable in the creation of text / image datasets

The quality of training data determines the value of the project.
Figure 8 Training data determines content created

The training data dictates what the AI engine will output for a given query (figure 7)

Currently the big players in generative content creation provide disclaimers and bias warnings along with their licensing agreements.

Bias acknowledgement
Figure 9 Image from DALL-E, Beware, skull disclaimer from Stable Diffusion
Disclaimer on AI models effect on social impact.
Figure 10 Disclaimer from Dall-E

All the major players provide similar disclaimers on bias.

Does this mean that the Generative Content technologies are evil and should be avoided?  The genre is in its infancy; it will improve and refine.  Several of the big players have withheld the release of their products until the bias issues can be adequately satisfied.   Googles Imagen product is a good example of this.

The source of bias is not the underlying technology, but the data sets it is trained on. The development of curated datasets that are deemed culturally neutral can be used to mitigate bias. But a biased orpolitically motivated provider can deliberately use a curated data set that represents their viewpoints. In these cases, there may not be any disclaimers or attribution of the sources. A topic for future scrutiny.

A news site based on Fox content would most likely show different results than an MSNBC or CNN curated site.

On the other hand, content curation can be used to create branding and differentiation for a provider. Utilization of proprietary high-quality imagery, and non-open-source documents can provide value added user experience.  As one might expect this will provide better quality content generation.  Since the AI engine can utilize any compatible data set, content providers can utilize open-source AI models (the software engine) with their own curated data sets to create differentiation in their product offerings.  A business model.

Getty Images offers 70 million high quality digital images.  One would expect that a text to image application built with their content would provide superior output and the basis for new products which protect the value of their IP.

There are billions of digital images available from about a dozen major stock photo sources. These are not open source and would be the basis for new commercial branded text to image applications.

Generative AI is not good or evil, it is a tool. Its intentions are determined by its providers and users.

Moving Forward:  The end of the world, or the new sliced bread?

AI for good or evil?
Is AI the new sliced bread or the end of the world as we know it?

Generative AI appears to be the next big thing and the real deal.  The Internet changed the way people gain knowledge, experience entertainment, and communicate. Not since the innovation of sliced bread 😊 have we seen such excitement.

The New York Times recently featured two essays predicting the end of democracy and the death of education as a result of Generative AI.

Bots would be used to drive public opinion, disseminate misinformation, write letters to the editor, augment lobbyists and diminish democratic process.  The essay assignment in academic courses is no longer valid as students will create reports and represent original research with Bot output.

Generative Bots did not create personality flaws. Plagiarism and ghost writing have been a reality of student life for decades.  Fake social media accounts driven by bots or staffed by operatives have played unfortunate roles in shaping public opinion and election results for years.

Now for some real blasphemy: I just read a book; I loved it do I care if it was authored by an AI?  If an AI created a movie that entertained, should it be damned?  Composed music and poetry. Why not?

Pandora’s box is open, the genie is out, it’s not going back in the bottle. So, what’s the good news?

AI Generative Technologies will become the great equalizer, empowering the average person with the ability to produce compelling content. The internet already gives us the ability to go viral and get our messages to the world.

The spelling checker and the auto complete were just precursors to the new sliced bread.

For the sake of a boring example of paradigm shifts we will see, let’s look at how we create a website or a document.

Currently I decide I need an image, if I have the images I’m set, if I’m a photographer I go out and grab one, if I’m an artist I create one, If I am a commercial web developer, I go to stock image sites and buy one. I then insert the image and create a caption.

With Generative AI my task is simplified; I create a caption and hit ENTER. A minute later I have image choices and am on my way.

Now for the scary stuff: deep fake voice synthesis (VALL-E).   We get a voice sample and then generate audio sentences from their text input. A convincing impersonation has now been created.

Some government agencies and financial institutions  today are using voice recognition for proof of identity, while banks use voice recognition for funds transfers and online banking and we recognize the voices of friends and associates.

Cyber criminals, there’s lots of them, can collect voice samples, stylize their synthesized audio with you voice style, embed the AI bot with your voice style in a scam spam and request you take some action, like send me money.

The true end of the world as we know, we can’t trust anything.

All these nightmare scenarios can be mitigated through validations and will require all of us to learn new security procedures.

Now the bottom line; we  are moving into a truly new world of creative content  creation and opportunity. Let’s see what happens.

The appendix provides a directory of the big players and their offerings. I encourage you spend some time reviewing their offerings and using the demos for your own enlightenment. You will be rewarded