257 points · by doener · 4y ago · 145 comments
DALL-E 2 has a secret language - https://news.ycombinator.com/item?id=31573282 - May 2022 (109 comments)
Think about the "bouba"/"kiki" effect [1], or how the spells in Harry Potter sound recognizably "spell-like" even though spells aren't a real thing. (In the latter case, it's because they're phonetically Latin-adjacent.)
For example, here are some nonsense terms:
* Swith'eil Aerveid
* Karflon B43
* Hooboo skramp
If I were to ask you all which is a dangerous gas, a sex act, and an Elven city, I suspect there would be fairly wide agreement. Inventing words that are evocative this way is a fundamental part of fiction writing, especially in fantasy, horror, and sci-fi. There's nothing profound going on here, it's just that language recognition is fuzzy and highly associative even at the level of individual phonemes.
Swith'eil Aerveid, which I took to be the Elven city, immediately made me think of Morrowind. I think it's a perfectly fitting name for a Dunmer or Dunmer city. Maybe a dwarven ruin.
When I use or think in English, my brain has weird rules of its own. Some person can have his/her pronoun constantly wrong. For some it's random. Context and rhythm can also can create pattern.
Involving genetics and evolution in etymology makes no sense.
Ask a person off the street to come up with an "alien planet in a science fiction TV series" or "deadly gas/virus from a comic book" and you'll get similar answers.
Your average person on the street could probably successfully come up with trope-fitting "evil alien species" and "peaceful alien species" names, too.
Abra kedabra
“Abracadabra belongs to Aramaic, a Semitic language that shares many of the same grammar rules as Hebrew, says Cohen in Win the Crowd.
‘Abra' is the Aramaic equivalent of the Hebrew 'avra,' meaning, 'I will create. ' While 'cadabra' is the Aramaic equivalent of the Hebrew 'kedoobar,' meaning 'as was spoken.”
https://www.haaretz.com/2013-05-08/ty-article/word-of-the-da...
From the book: "about a head shorter than Harry [...] swarthy, clever face, a pointed beard [...] very long fingers and feet”, indeed.
I lol'd at the "Jewish culture" tag.
[1] https://giannisdaras.github.io/publications/Discovering_the_...
[2] https://twitter.com/giannis_daras/status/1531693093040230402
This is largely some embedding of semantics that we currently do not fully have a mapping for, precisely because it was generated stochastically.
Saying it was "not true" seems like clickbait.
Like those AIs that guess what you draw, and recognize random doodling as "clouds", DALL-E is probably using the least unlikely route. That a gibberish word is drawn as a bird is maybe because it was "bird (2%), goat (1%), radish (1%)".
Exactly. This could be profound. I'm looking forward to further work here. Sure, the examples here are daft, but developing this approach could be like understanding a talking lion [0] only this time it's a lion of our making.
[0] https://tzal.org/understanding-the-lion-the-in-joke-of-psych...
None of this makes DALL-E any less impressive to me. High quality image generation is a truly amazing result. Results from foundational models (GPT-3, PaLM, DALL-E, etc) are so impressive that they're forcing us to reconsider the nature of intelligence and raise the bar. That's a sign of a job well done to me.
Just nitpicking here a bit. It has been trained to ensure the validity of mappings, but only for mappings of valid prompts, where "valid" is vaguely "things that appear in the training set". On the other hand, it wasn't trained to ensure the validity of mappings of invalid prompts to images. It's an open question what that would even mean - someone in another thread here suggested it should output "not a valid prompt" in this case.
As much as people would like there to be, there really does not seem to be anything here. The original author doesn't think so, either (would need to refind the tweet).
This is by far the worst.
I also think you could probably hire a team of linguists pretty cheap compared to a team of AI engineers.
Also, there is no way for vocabulary to exist on its own without grammar, as these are two sides of the phenomenon, we call language. Some signs of grammar had to emerge together with this, at once. However…
----
Edit: Let's imagine a typical movie scene. Our nondescript individual points at himself and utters "Atuk" (yes, Ringo Starr!) and then points at his counterpart in this conversation, who utters "Carl Benjamin von Richterslohe". This involves quite an elaborate system of grammar, where we already know that we're asking for a designator, that this is not the designator for the act of pointing, and that by decidedly pointing at a specific object, we'd ask for a specific designator not a general one. Then, C.B. von Richterslohe, our fearless explorer, waves his hand over the backdrop of the jungle, asking for "blittiri" in an attempt to verify that this means "bird", for which Atuk readily points out a monkey. – While only nouns have been exchanged, there's a ton of grammar in this.
And we haven't even arrived at things like, "a monkey sitting at the foot of a tree". Which is mostly about the horizontal and vertical axes of grammar, along which we align things and where we can substitute one thing for another in a specific position, which ultimately provides them with meaning (by what combinations and substitutions are legitimate ones and which are not).
Now, in light of this, that specific compounds are changing their alleged "meaning" radically, when aligned (composed), doesn't allow for high hopes for this to be language.
To clarify: that these triggers do produce (radically) different results when provided in varying compositional context, like "as cartoon", "as painting", etc, (i.e, "a as b") suggests that these are just random alliterations that serve merely by accident as synonyms, rather than having a specific value in that position. The latter being a requirement for language. (And it wouldn't be too far fetched to supposed that these are just some "residual" values, when showing up in pseudo-textual compositions. As there had to be some trigger for that.)
I wonder what level I would be able to share ideas I lack the words for, my perceived bitrate at creating "random" noise is certainly higher than when verbally communicating an idea to another human. Will we even share a common language in the future? Or will we have our own language that is translated to other people?
> 5.62 (…) For what the solipsist means is quite correct; only it cannot be said, but makes itself manifest. The world is my world: this is manifest in the fact that the limits of language (of that language which alone I understand) mean the limits of my world. [1]
So, something could become apparent, but you would still haven't said anything (as it's not part of that conversation). ;-)
[1] https://www.masswerk.at/digital-library/catalog/wittgenstein...
(I deem this edition to be somewhat appropriate in context.)
I believe the original claim has substance behind and it was a very interesting non-trivial observation.
Also, it proposes a very exciting idea for an emergent phenomena that, if understood, could have deep consequences to our understanding of knowledge, language and a lot of other related topics.
Though I'll also point out that even evidence for that weaker claim is tenuous. It definitely knows how to move an image closer to "3D render" in concept-space, but it doesn't seem to understand the linguistic composition of your request. For example, you'd have an extremely hard time getting it to generate an image of a person using 3D rendering software, or a "person in any style that isn't 3D render"; it would probably just make 3D renders of persons.
I haven't played around with it myself, I'm going off the experiences of others. For example:
https://astralcodexten.substack.com/p/a-guide-to-asking-robo...
These absurdly big, semi-supervised transformers are predicting what the next pixel or word or Atari move is. They’re strikingly good at it. To accomplish this they build up a latent space where all the pictures of sunglasses and the word “shades” are cosine similar, and quite different to “dog” or a picture of a dog, and have an operator (in word2vec, addition, in DALL-E, something nonlinear) that can put sunglasses on a dog.
Is that latent space and all the embeddings into it a “language”? Who cares? It works and it’s fucking cool.
I dont think the latter have much interesting to say about the former; but, having done no research, they think they do.
Also, I'm wondering if there is some way that these models could have a decent error response rather than responding to every input?
It is trivial to make it reject gibberish prompts. Just use a generative model to estimate the probability of the input, it's what language models do by definition.
Would still be interesting to see how the output changes with little changes to these inputs. If my vague understanding is at all close, this will reveal the “faces” that are more “noisy” than the others. Not sure what that gives though.
1. Tokenized text embeddings can map to similar points in latent space. The text encoder is autoregressive so this won’t work for all random sequence of tokens but it can work for the right ones. I wonder if anyone has tried reverse decoding the embeddings of interest to see if they cluster around known words that are relevant.
2. Diffusion models are trained by pushing off manifold points onto the manifold so to speak. It is not surprising that off manifold points map onto known concepts during the reversal process.
IMO these words were part of some training images (e.g. taken from nature atlases) and DALL-E learned to associate them with birds, although in gibberish form.
For example "hedge" combined with "hog" is neither a "hedge" nor is it a "hog" nor is it some sort of horrific hybrid mixture of hedges and hogs. A hedgehog is tiny rodent. Most likely this is what's going on here.
The domain is almost infinite. And the range is even greater. Thus it's actually realistic to say that there are must be hundreds of input and output sets that form alternative languages.
But if one of those probes towards unrewarded input produces a correlation then SOME side effect is influencing it. It means there can be side effects ALL over the unrewarded space.
That being said the reward space VS. unrewarded space is tiny. 1 over infinite for all intents and purposes. It's basically all combinations of letters in reality vs. all possible grammatically correct English combinations.
The unrewarded space is massively huge. Within that unrewarded space given how massive it it is, there is actually a very high probability that there is at least several sets of inputs in there that form a grammar and a consistent language with consistent outputs.
But these sets are hard to find you can't just pick anything. If you pick one secret word that has a correlation with birds, then you mash it up with english expecting it to stay coherent... well that's simply an invalid set.
You need to find the OTHER words that work in conjunction with the secret bird word. There are millions likely, but they will likely be impossible to find. Library of Babel vibes, https://maskofreason.files.wordpress.com/2011/02/the-library....
This could actually be an interesting project. Some algorithm that explores this space attempting to map out connections. It would have to be another ML algorithm, but likely that search is still never ending; but like the library of babel, in terms of probability something must be out there that works.
> Tries a lot of prompts that generates things to a common theme.
> "To me this is all starting to look a lot more like stochastic, random noise, than a secret DALL-E language."
Some of the whale dialogue is clearly transcribable, but he regenerates it again until he gets "Evve waeles" and answers that resemble "Wales".
https://nitter.net/benjamin_hilton/status/153178089297217536...
A bunch of people didn't read the original study and just saw the pictures and assumed the gibberish is the only result being discussed.
https://www.newscientist.com/article/2114748-google-translat...
I am more likely to believe celebrity gossip than AI news articles.
For example, I could write a heuristic algorithm to product the same thing using a Google image search, but it would look like MS word clip art.
The answer is that the training process literally has to make the results smooth. That’s how training works.
Imagine you have 100 photos. Your job is to classify them by color. You can place them however you want, but similar colors should be physically closer together.
You can imagine the result would look a lot like a photoshop RGB picker, which is smooth.
The surprise is, this works for any kind of input. Even text paired with images.
The key is the loss function (a horrible name). In the color picker example, the loss function would be how similar two colors are. In the text to image example, it’s how dissimilar the input examples are from each other (Contrastive Loss). The brilliance of that is, pushing dissimilar pairs apart is the same thing as pulling similar pairs together, when you train for a long time on millions of examples. Electrons are all trying to push each other apart, but your body is still smooth.
The reason it’s brilliant is because it’s far easier to measure dissimilar pairs than to come up with a good way of judging “does this text describe this image?” — you definitely know that it isn’t a bicycle, but you might not know whether a car is a corvette or a Tesla. But both the corvette and the Tesla will be pushed away from text that says it’s a bicycle, and toward text that says it’s a car.
That means for a well-trained model, the input by definition is smooth with respect to the output, the same way that a small change in {latitude,longitude} in real life has a small change in the cultural difference of a given region of the world.
gwern helped too. He has an intuition for ML that I’m still jealous of.
Your best bet is to just start building things and worry about explanations later. It’s not far from the truth to say that even the most detailed explanation is still a longform way of saying “we don’t really know.” Some people get upset and refuse to believe that fundamental truth, but I’ve always been along for the ride more than the destination.
It’s never been easier to dive in. I’ve always wanted to write detailed guides on how to start, and how to navigate the AI space, but somehow I wound up writing an ML fanfic instead: https://blog.gpt4.org/jaxtpu
(Fun fact: my blog runs on a TPU.)
I’m increasingly of the belief that all you need is a strong desire to create things, and some resources to play with. If you have both of those, it’s just a matter of time — especially putting in the time.
That link explains how to get the resources. But I can’t help with how to get a desire to create things with ML. Mine was just a fascination with how strange computers can be when you wire them up with a small dose of calculus that I didn’t bother trying to understand until two years after I started.
(If you mean contrastive loss specifically, https://openai.com/blog/clip/ is decent. But it’s just a droplet in the pond of all the wonderful things there are to learn about ML.)
ML is simply curve fitting. It's a applied math problem that's quite common. In fact I lost a lot of interest in intelligence in general once I realized this was all that was going on. The implications really say that all of intelligence is really some form of curve fitting.
The simplest form of this is linear regression which is used to derive an equation for a line from a set of 2D points. All ML is basically a 10,000 (or much more) dimensional extension of that. The magic is lost.
Most of ML research is just to find the most efficient way to find the best fitting curve given the least amount of data points. A ML guys knowledge is centered around a bunch of tricks and techniques to achieve that goal with some N-D template equation. And the general template equation is all the same: A neural network. The answer to what intelligence is seems to be quite simple and not that profound at all... which makes sense given that we're able to create things like DALL-E in such a short time frame.
One of the big mysteries of the universe (intelligence) and the thing I always wondered about was essentially answered within the last 2 decades which is pretty cool.. but it's like knowing the secret behind an amazing magic trick.
I made that by using ML as a guitar. I chose instruments and style the way a guitarist’s fingers chooses frets.
And saying “give me this style with these instruments” is far easier than recording it yourself.
For what it’s worth, I agree with you about AGI. https://twitter.com/theshawwn/status/1446076902607888385?s=2...
But for me, that means it’s far more interesting than AGI. Everyone has their eye on AGI, and no one seems to be taking ML at face value. That means the first companies to do it will stand to make a fortune.
There is for sure a set of consistent words that produce output that makes sense to us. He just picked the wrong set!