News for hackers. Stuff that matters.
Re:DALL·E: Creating Images from Text by ignoranceprior on Tuesday January 05, 2021 @04:30PM (#25651385)
Does this address NLP skeptics' concerns that Transformer models don't "understand" language?

If the AI can actually draw an image of a green block on a red block, and vice versa, then it clearly understands something about the concepts "red", "green", "block", and "on".

Re:DALL·E: Creating Images from Text by dcolkitt on Tuesday January 05, 2021 @11:51PM (#25654757)
The root-case of skepticism has always been that while Transformers do exceptionally well on finite-sized tasks, they lack any fully recursive understanding of the concepts.[0]

A human can learn basic arithmetic, then generalize those principles to bigger number arithmetic, then go from there to algebra, then calculus, then so. Successively building on previously learned concepts in a fully recursive manner. Transformers are limited by the exponential size of their network. So GPT-3 does very well with 2-digit addition and okay with 2-digit multiplication, but can't abstract to 6-digit arithmetic.

DALL-E is an incredible achievement, but doesn't really do anything to change this fact. GPT-3 can have an excellent understanding of a finite sized concept space, yet it's still architecturally limited at building recursive abstractions. So maybe it can understand "green block on a red block". But try to give it something like "a 32x16 checkerboard of green and red blocks surrounded by a gold border frame studded with blue triangles". I guarantee the architecture can't get that exactly correct.

The point is that, in some sense, GPT-3 is a technical dead-end. We've had to exponentially scale up the size of the network (12B parameters) to make the same complexity gains that humans make with linear training. The fact that we've managed to push it this far is an incredible technical achievement, but it's pretty clear that we're still missing something fundamental.

[0] https://arxiv.org/pdf/1906.06755.pdf

Re:DALL·E: Creating Images from Text by Veedrac on Wednesday January 06, 2021 @11:52AM (#25659454)
> So GPT-3 does very well with 2-digit addition and okay with 2-digit multiplication, but can't abstract to 6-digit arithmetic.

This is false, GPT-3 can do 10-digit addition with ~60% accuracy, with comma separators. Without BPEs it would doubtlessly manage much better.

Re:DALL·E: Creating Images from Text by dcolkitt on Wednesday January 06, 2021 @04:39PM (#25662936)
The accuracy largely comes from the fact that addition rarely requires carrying more than a single digit. So it's easy to pattern match from single digit problems that it was previously trained on.

With multiplication, which requires much more extensive cross-column interaction, accuracy falls off a cliff with anything more than a few digits.

Re:DALL·E: Creating Images from Text by Veedrac on Thursday January 07, 2021 @11:13AM (#25672732)
> The accuracy largely comes from the fact that addition rarely requires carrying more than a single digit. So it's easy to pattern match from single digit problems that it was previously trained on.

Again, not at all true due to BPEs.

      [12] [65] [25] [42] [185]
    + [580] [22] [75] [80] [93]
    ---------------------------
      [706] [75] [300] [278]
(note that GPT-3 is never told that the BPE [580] is composed of the digits [5], [8], and [0]. It has to guess this from the contexts [580] occurs in.)

> With multiplication, which requires much more extensive cross-column interaction, accuracy falls off a cliff with anything more than a few digits.

You couldn't learn long multiplication if you had to use BPEs, were never told how BPEs worked or corresponded to sane encodings, were basically never shown how to do multiplication, and were forced to do it without any working out.

Quick, what's 542983 * 39486? No writing anything down, you have to output the numbers in order, and a single wrong digit is a fail. (That's easy mode, I won't even bother asking you to do BPEs.)

ML models can learn multiplication, obviously they can learn multiplication, they just can't do it in this absurd adversarial context. GPT-f[1] was doing Metamath proofs on 9-digit division (again, a vastly harder context, they involve ~10k proof steps) with 50-50 accuracy, and we have a toy proof of concept[2] for straight multiplication.

[1] https://arxiv.org/abs/2009.03393

[2] https://github.com/Thopliterce/transformer-arithmetic

Re:DALL·E: Creating Images from Text by Veedrac on Thursday January 14, 2021 @03:27PM (#25782014)
In retrospect this was a pretty poorly framed point of mine. The point about addition being harder than stated because BPEs break at arbitrary points doesn't make much sense given the previous comment of mine pointed out that GPT-3 can only do addition with comma separators, that mostly (if not quite entirely) defeat that problem. GPT-3 does have to still know the various constructions and additions of 3-digit spans, but that's within its capabilities.
Re:DALL·E: Creating Images from Text by Veedrac on Thursday January 07, 2021 @05:51PM (#25678790)
Correction/clarification: 10k proof steps was the number of steps in the training dataset, which was for 100 such proofs.
Re:DALL·E: Creating Images from Text by codetrotter on Wednesday January 06, 2021 @06:40AM (#25656804)
> So GPT-3 does very well with 2-digit addition and okay with 2-digit multiplication, but can't abstract to 6-digit arithmetic.

That sounds disappointing but what if instead of trying to teach it to do addition one would teach it to write source code for making addition and other maths operations instead?

Then you can ask it to solve a problem but instead of it giving you the answer it would give you source code for finding the answer.

So for example you ask it “what is the square root of five?” then it responds:

    fn main ()
    {
      println!("{}", 5f64.sqrt());
    }
Re:DALL·E: Creating Images from Text by tralarpa on Tuesday January 05, 2021 @05:14PM (#25651920)
Try a large block on a small block. As the authors also have noted in their comments the success rate is nearly zero. One may wonder why. Maybe because that's something you see rarely in photos? At the end, it doesn't "understand" the meaning of the words.
Re:DALL·E: Creating Images from Text by RealSpaceMonkey on Saturday January 09, 2021 @05:27PM (#25705604)
Maybe because large/small are relative to each other here? Maybe it would be able to do "a block inside a block"
Re:DALL·E: Creating Images from Text by karmasimida on Tuesday January 05, 2021 @04:36PM (#25651463)
I think it is safe to say that learning a joint distribution of vision + language, is fully possible at this stage, demonstrating by this work.

But 'understanding' itself needs to be further specified, in order to be tested even.

What strikes me most is the fidelity of those generated images, matching the SOTA from GAN literature with much more variety, without using the GAN objective.

It seems Transformer model might be the best neural construct we have right now, to learn any distribution, assuming more than enough data.

Re:DALL·E: Creating Images from Text by TigeriusKirk on Tuesday January 05, 2021 @05:53PM (#25652354)
There are examples on twitter showing it doesn't really understand spatial relations very well. Stuff like "red block on top of blue block on top of green block" will generate red, green, and blue blocks, but not in the desired order.

https://twitter.com/peabody124/status/1346565268538089483

Re:DALL·E: Creating Images from Text by tikwidd on Wednesday January 06, 2021 @02:09AM (#25655327)
if(adj == 'red') drawBlock(RED)

According to your definition of understanding, this program understands something about the concept RED. But the code is just dealing with arbitrary values in memory (e.g. RED = 0xFF0000)

Re:DALL·E: Creating Images from Text by bra-ket on Wednesday January 06, 2021 @03:33AM (#25655775)
nah, it's still big and dumb model with no idea what it's doing, deepfake 2.0.

It looks like a variation on plain old image search engine, unreliable at that, as compared to exact matching.

But it has obvious application in design as it can create these interesting combinations of objects & styles. And I loved the snail-harp.