Is generative AI output a novel creation or simple imitation?
I’ve heard many people say that LLMs (and generative AI overall) don’t create new things. They can only output variations of what was put in. I disagree. Let’s dig into why.
Note: I know generative AI is usually imitating. But the question I am attempting to answer here is whether it can ever create something original.
“Creativity is a process involving the generation of new ideas or concepts, or new associations between existing ideas or concepts, and their substantiation into a product that has novelty and originality.” - New World Encyclopedia
Based on the definition above, we’ll consider something “creative” if it is new and meaningful in a specific context (as the secord part of the definition mentions). For example, if there’s a breakthrough due to a new concept in one industry that is applicable to another industry and it’s novel, then that’s a success. It’s new and meaningful for that context.
I do also think LLMs will create (and may have already created) novel breakthroughs in fields where it’s more than just a variation. It’s harder to argue so I won’t move the goal post for this blog. A person might ask why I don’t simply show an example of truly astounding breakthrough. In order to say for certain that it is new and meaningful, you need to be an expert in a field with knowledge of most of the research. So, if you’re reading this and you’re a super-expert in a field who used an LLM to make a big breakthrough, I’d love to know about it!
Let’s start with first principles. I’m no expert in first-principles thinking, but for this topic I believe it would be whether there’s a systemic constraint to LLMs creating novel ideas. For example, an LLM can’t make videos as output. However, I think it’s safe to assume that new ideas or breakthroughs can be expressed with the current tokens LLMs have access to. This is likly also true without varying from english dictionary words. For example, when humans make a new discovery, we describe it in the language we already have. And LLMs have all that language.
One could argue that stringing together tokens that were in the training data isn’t creating something novel. But by that definition, no human discoveries are novel. We know all the words and phrases to describe new discoveries before we’ve discovered them. Then we string those words together to describe the new thing.
It seems almost logically provable that it can be creative. For example, if you ask an LLM to answer you about something obviously not in the training data, it can do it. If you say “write a poem about a hacker who is a caterpillar with a theme of forbidden love in the style of shakespeare,” this isn’t in the training data, but it can do it. This is new, but doesn’t satisfy our definition of being both new and meaningful.
However, LLMs can describe and understand the components and overall ideas behind very meaningful fields of research. So if there were a way to force it to create “new” ideas in those fields, it would satisfy our definition of “new things.” Read on and find out how.
Humans are effectively token imitators ourselves. We learn thoughts and ideas from human output just like LLMs. We learn how to string together phrases into sentences and yet somehow we’re capable of creativity. I think llms are the same way. One key difference is that they lack the human “experience”. We have sight, taste, touch, etc. And our brains are completely different than a Generative AI Model. But there are multi-modal modals coming out such as GPT4 with vision and bard which effectively “understand” what it’s like to “see” nearly everything as well as having the vast knowledge LLMs already possess.
And really, I don’t think we, as humans, come up with anything truly original that isn’t based on our understanding of things that came before it. Since LLMS understand the “building blocks” of required knowledge for tons of domains (and the concepts that are in its layers like time, rationality, order of events, location, etc.), it seems evident to me that they can draw novel and meaningful conclusions like us.
One other reason I think generative AI can create novel output is by looking at how image models can create incredible new and amazing art. Since they learn “concepts” at a high level, they are able to apply that abstractly to any situation. If you prompt for a dragon, it makes a dragon. If you request a hacker, it can do a hacker, etc. And it can do them in infinitely many styles so it’s clearly applying the “idea” or the “notion” of a dragon rather than copying a dragon exactly from training data. I think LLMs are similar. They have this notion of logic and attention and other concepts at a high level. For example, you can ask for rhyme, molecules, scenery, a genre, a different language, or any other concept it understands and applies it to infinitely many contexts.
I think that’s very similar to how our brains understand concepts semantically and apply them to new situations. We have the ability to apply the knowledge to situations or questions that we’ve never heard before. Generative AI does too.
If you imagine a generative AI model as a big box of all possible tokens, and it has some correlation between some tokens and other tokens. It has “learned” in what context they’re used, etc. And all that plays into which token is picked. Therefore it’s extremely likely that any set of 2-3 tokens is not going to be “new” (here I mean that it’s simply not in the the training data). Also, because it’s “fitted” to perform well and to showcase expertise, it’s quite good at parroting high quality information from many domains. That same feature is part of what “masks” it’s ability to come up with new things because it will heavily prefer to regurgitate known information rather than produce new information.
Raising the temperature will increase the odds of something novel, but that increases the noise. The LLM will hallucinate much more making it difficult or annoying for humans to sort through the bad output/ideas. Read on for a potential solution to this.
How do we drive the AI towards novelty? I’ve got some general advice and three strategies. The general advice is to ask for novelty. For example, I sometimes use a system prompt such as:
You are the most intelligent brainstorming bot ever written. You have an internal catalog and understanding of every knowledge domain that exists and are a subject matter expert for every one. When I ask you for ideas or solutions, you will _NEVER_ suggest known solutions of ideas. You will only return completely new, novel, creative solutions or ideas.
And here are the three strategies I’ve observed and used for creative output.
Ask about a combination of topics or ideas that clearly couldn’t be in the training set.
Example:
Apply the NIST Cybersecurity framework abstractly to testing LLMs and apps built on top of large language models. What vulnerabilities might exist? Consider a system where the LLM can make HTTP requests, query internal documentation, and accepts prompts from both staff and customers.
Ask a new question that hasn’t been asked before.
Example:
What are the five ways to use the metaverse and wearable VR technology to incentivize more secure coding practice among developers?
Ask about something but give it a deny-list of the known/common responses. If you aren’t sure the known or common responses, you can ask the LLM what they are and then pass those as the deny list.
Example:
What are the top reasons to believe in a flat earth? Don't mention arguments about perception and experience, misinterpretation of scientific principles, distrust of authority, religious beliefs.
When you employ the strategies above and begin to play with the temperature (often moving it up), you’ll get a lot of unreasonable answers or hallucinations. Fine-tuning the prompt can help. Consider adding text such as:
Only respond with solutions that actually have a chance of working. Do not suggest nonsense. That said, be sure and think outside of the box.
However, there might still be a lot of noise. What if we could outsource the idea validation to the AI? I think we can. We could make an idea-scoring agent to take the suggested ideas and point out flaws in them, as well as rate them and suggest the best ones to be passed to humans for further validation. It could bubble up the best 1% of ideas. If you build this, please let me know!
I think all of this is extremely interesting because I genuinely believe we do hard things like cure cancer by harnessing models as simple as GPT-4 with the right prompts, validation, and data to create solutions. And future models will be even better.
Imagine we’re trying to invent a new drug. The LLM could know what ingedients are in all current drugs, and it knows what those drugs do. It knows which ingredients are best mixed with those drugs to make them bind well and be effective. So if you gave it the right context and asked it to invent a drug that does something new and necessary, it may be able to come up with great ideas. And even if it’s not perfect, I expect there’s a good chance it would have ideas that researchers in the field haven’t considered because no one can know the properties of every substance. LLMs can.
And this just one example. It can be applied to other domains. Humanity has thousands of problems that need creative solutions. It gets me so pumped that it might be possible to use AI for solving so many of them.
This was a much longer post than usual. I hope you enjoyed it. Reach out on twitter with any thoughts or disagreements and definitely let me know if you use AI for a big breakthrough :)
- rez0
For more of my thoughts on ai, hacking, and more, follow me on twitter.