News for hackers. Stuff that matters.
Re:AI training method exceeds GPT-3 performance with fewer p... by lzzzfelipe on Wednesday October 07, 2020 @12:28AM (#24705308)
GPT3's strength is on language generation, so using *GLUE for evaluating it (where encoder type models are just better) and claiming to have 99.9% less parameters is sensationalism.
Re:AI training method exceeds GPT-3 performance with fewer p... by gvhst on Wednesday October 07, 2020 @12:47AM (#24705399)
That's kind of like saying that this super cheap SUV from 2003 is a better off-roader than the latest Ferrari. Like, true statement, but vacuous none the less.
Re:AI training method exceeds GPT-3 performance with fewer p... by leereeves on Wednesday October 07, 2020 @07:31AM (#24707181)
Powerful analogy, but analogies are dangerous. They can obscure what's really happening.

In this case, by analogy, Ferrari made the comparison to the super cheap SUV from 2003. That is, OpenAI compared GPT3 to BERT on the SuperGLUE benchmark, in the paper announcing GPT3 [1].

They did so to demonstrate GPT3's ability to learn a new task given only a few examples of the task ("few-shot learning"). The limited amount of task-specific training data was a signficant handicap that GPT3 was able to overcome, like a Ferrari towing a two ton trailer outperforming an old SUV towing nothing.

What this paper claims is that encoder type models can also achieve few-shot learning. The headline should be "AI training method achieves few-shot learning with 99.9% fewer parameters than GPT3." That's the innovation here, not outperforming GPT3 on a benchmark that GPT3 isn't particularly good at.

1: https://arxiv.org/pdf/2005.14165.pdf

Re:AI training method exceeds GPT-3 performance with fewer p... by Cybiote on Wednesday October 07, 2020 @10:39AM (#24708692)
Unfortunately, your correction is still misleading because it fails to capture what really sets GPT-3 apart. Ironically, GPT-3's limitation also highlights its strength. As it is not capable of learning (few shot or otherwise) in the strict sense of permanently changing its parameters based on examples, all its demonstrated capabilities are completely at inference time. It somehow configures itself at inference time so that state machines which produce plausible continuations of whatever pattern it was fed, are most probably generated. This means that whenever it succeeds, it is much more flexible in how it produces its responses. It generalizes on and continues those implicit patterns in the provided input.

This paper however, is not replicating that flexibility. Their proposed model is much closer to expectation maximization than it is an instance of what GPT3 does. The novelty of their work, what makes it genuinely useful, is they provide a practical and fairly general way to leverage pre-trained language models to produce classifiers for specific tasks using a very small amount of labeled data. Requiring less effort compared to what would go into fine-tuning. This approach to distillation is an instance of https://en.wikipedia.org/wiki/Semi-supervised_learning.

Compared to GPT-3, this approach remains at a severe disadvantage when amount of effort and time required to gather data and train something useful is accounted for. On the other hand, if you can fit your problem into the format proposed by the paper, you will likely have more control on the final model's behavior using a small amount of labeled examples (for your specific task), at a significantly lower cost of computation at inference time. Focusing on parameters however, is not even wrong.

Re:AI training method exceeds GPT-3 performance with fewer p... by leereeves on Wednesday October 07, 2020 @12:51PM (#24710121)
Number of parameters remains an important practical concern, and an important goal for research (see [1] for a recent example).

It is true that this model requires a large amount of unlabeled data, in addition to a small amount of labeled data, but gathering unlabeled data is often easy.

So I think it's potentially misleading to say "this approach remains at a severe disadvantage when amount of effort and time required to gather data and train something useful is accounted for".

I'd say this approach actually has a serious advantage compared to GPT3, which is locked inside the walls of OpenAI, can only be used with their permission, and is too big for most people to use (let alone train) anyway. The cost and effort to use this approach on large real world problems is probably less than using GPT3.

And it may also have an advantage in terms of the total amount of data and training required, when all of the data and training in the original pretrained models is included. That is, it may be a more efficient way to train new models from scratch for tasks for which few labeled examples are available.

1: https://ai.googleblog.com/2020/09/advancing-nlp-with-efficie...

Re:AI training method exceeds GPT-3 performance with fewer p... by Cybiote on Wednesday October 07, 2020 @03:33PM (#24711790)
Let me preface this by saying I generally agree with what you're saying. My focus below is on the delta.

> It is true that this model requires a large amount of unlabeled data, in addition to a small amount of labeled data, but gathering unlabeled data is often easy.

Gathering unlabeled data is easier than labeled but can still be challenging. You'll often require careful thought in assembling a distribution of examples. Being able to skip that step yields a significant savings even if not as much as that gained from going from labeled to largely unlabeled data.

> I'd say this approach actually has a serious advantage compared to GPT3, which is locked inside the walls of OpenAI, can only be used with their permission, and is too big for most people to use (let alone train) anyway.

I fully agree and said as much too.

> The cost and effort to use this approach on large real world problems is probably less than using GPT3.

I'd say it depends. Most of the effort with GPT3 will involve edge cases. Having a system in front to handle these might eat into labor savings but you could still end up net positive. It's difficult to say without real world data, you might be correct.

> That is, it may be a more efficient way to train new models from scratch for tasks for which few labeled examples are available.

You're right in general, I think. But it's still worth pointing out GPT3's advantage. It combines a lot of general capabilities, which together with its generative ability and flexibility to input means the level of expertise required to get something useful will be much lower compared to this semi-supervised learning approach. And there are some capabilities it's displayed, one example of many being discussing, querying, pattern matching on computer code that seem hard to replicate with this method.

Re:AI training method exceeds GPT-3 performance with fewer p... by whimsicalism on Wednesday October 07, 2020 @01:37PM (#24710639)
> It somehow configures itself at inference time so that state machines which produce plausible continuations of whatever pattern it was fed, are most probably generated.

What is this sentence supposed to convey? I'm an NLP practicioner/researcher and this isn't even true - as GPT isn't a "state machine" as the latent space is continuous and not finite.

Moreover, there is nothing that makes GPT-3 "not capable of learning." It has had very exciting results from language modeling a zero-shot task at inference time, but there's nothing (besides compute) precluding fine-tuning of it in principle.

I agree with the rest of your comment.

Re:AI training method exceeds GPT-3 performance with fewer p... by Cybiote on Wednesday October 07, 2020 @02:57PM (#24711412)
> What is this sentence supposed to convey?

There are examples where it is able to recognize and continue patterns in strings which if manually generated, would have required a FSM. In fact, some of the more impressive examples would require a stack of some sort so I thought I was rather underselling its capabilities in that arena.

> as GPT isn't a "state machine" as the latent space is continuous and not finite.

Technically speaking, that is impossible since these models leverage floating point numbers and are limited in memory to whatever hidden and self-attention layers.

Practically speaking, in order to generate strings based on patterns as mentioned prior, there must be abstract states which correspond to states and state changes such that thinking in terms of at least state machines is useful.

Studying LMs in terms of automata is not strange, there have been papers which do this for specific trained RNNs (such as https://arxiv.org/abs/1711.09576). I contend GPT-3 is capable, to a certain extent, of generating these dynamically at inference time.

As far as I know this way of extracting what LMs are doing hasn't been done for Transformers but you can also frame Transformers in term of RNNs so there's no reason why such methods wouldn't readily apply to them too.

> Moreover, there is nothing that makes GPT-3 "not capable of learning."

I specifically addressed that: to count as learning, without diluting the utility of the term, it has to be capable of remembering. Without permanent changes to its weights, the use of the term learning stretches the word beyond utility.

Re:AI training method exceeds GPT-3 performance with fewer p... by whimsicalism on Wednesday October 07, 2020 @03:03PM (#24711475)
> Without permanent changes to its weights, the use of the term learning stretches the word beyond utility.

Yes, my claim is that there is nothing that makes its weights incapable of being fine-tuned and thus changed.

Re:AI training method exceeds GPT-3 performance with fewer p... by Cybiote on Wednesday October 07, 2020 @03:35PM (#24711828)
Oh okay, then in that case we don't disagree and are talking about different things. My issue is the few shot learning done by a model which is performing gradient updates should be distinguished from whatever GPT-3 is doing when it's continuing context patterns.
Re:AI training method exceeds GPT-3 performance with fewer p... by tinmandespot on Wednesday October 07, 2020 @04:01AM (#24706206)
Oh I love me a great analogy!!
Re:AI training method exceeds GPT-3 performance with fewer p... by fnord123 on Wednesday October 07, 2020 @04:28AM (#24706318)
Welcome to benchmarklandia, where you find the top algorithm in an area and write a stripped down version that outcompetes it on a different set of data and get good results.

See: hadoop->spark->spark with infiniband->spark with nvme->timely dataflow on a laptop; csv parsers that don't support scientific notation floats, etc. I'm sure others can give moren interesting examples.

Re:AI training method exceeds GPT-3 performance with fewer p... by albertwang on Wednesday October 07, 2020 @10:27AM (#24708565)
Out of (self-interested) curiosity, what are you referring to with the "nvme->timely dataflow on a laptop" reference?

The closest benchmark I could find was the "FASTER State Management for Timely Dataflow" paper from ETH Zurich, but that wasn't run on a laptop.

Re:AI training method exceeds GPT-3 performance with fewer p... by fnord123 on Wednesday October 07, 2020 @11:19AM (#24709144)
Re:AI training method exceeds GPT-3 performance with fewer p... by frankmcsherry on Wednesday October 07, 2020 @01:50PM (#24710774)
It's a bit different, right, because that paper presents better algorithms on the same datasets as the work it cites.
Re:AI training method exceeds GPT-3 performance with fewer p... by fnord123 on Wednesday October 07, 2020 @04:55PM (#24712613)
Yes it's different. Another part of Benchmarklandia is where researchers make custom algorithms for the same dataset. Benchmarks targeting MNIST is a great example. :)
Re:AI training method exceeds GPT-3 performance with fewer p... by nl on Wednesday October 07, 2020 @01:07AM (#24705479)
This isn't strictly true. This is comparing to "GPT3 as a few-shot learner"[1] as opposed to the fine tuned models that everyone else use.

Few-shot GPT3 outperforms a BERT-based baseline.

[1] https://github.com/openai/gpt-3

Re:AI training method exceeds GPT-3 performance with fewer p... by empiko on Wednesday October 07, 2020 @02:07AM (#24705701)
Yeah, but they actually do fine-tune their model and compare it to in-batch GPT3 "learning". I called them out on it on Reddit and they claim that they use the same amount of data. I.e. GPT use X examples in the sample and they use the same amount of X samples to fine-tune. However, I am still not convinced that it is a fair comparison.
Re:AI training method exceeds GPT-3 performance with fewer p... by visarga on Wednesday October 07, 2020 @12:39AM (#24705364)
Yes, it can do simple yes/no questions but can it write dad jokes like GPT-3?
Re:AI training method exceeds GPT-3 performance with fewer p... by dvfjsdhgfv on Wednesday October 07, 2020 @12:54AM (#24705429)
For me another question is crucial: is it open (i.e. is there an open source reference implementation) or closed like the so-called "OpenAI" products/services?
Re:AI training method exceeds GPT-3 performance with fewer p... by mkolodny on Wednesday October 07, 2020 @12:58AM (#24705452)
You can find the code for the paper here: https://github.com/timoschick/pet
Re:AI training method exceeds GPT-3 performance with fewer p... by emteycz on Wednesday October 07, 2020 @06:51AM (#24706975)
Can you please explain to me (I don't understand it) why do you think GPT-3 is closed? Yes, they won't share the trained model, but they're sharing the research here[0][1] so you can reproduce easily, aren't they? As I understand it now, it's very fair - training the model is a separate thing from doing (and sharing) the research, is very costly, and would not happen if they were forced to open that too - I also don't understand why should they be.

[0] https://arxiv.org/abs/2005.14165

[1] https://github.com/openai/gpt-3

Re:AI training method exceeds GPT-3 performance with fewer p... by luma on Wednesday October 07, 2020 @09:00AM (#24707705)
I submitted a request for access to the GPT-3 API a couple months ago and still haven't been approved.

I don't find that to be very open at all.

Re:AI training method exceeds GPT-3 performance with fewer p... by emteycz on Wednesday October 07, 2020 @09:21AM (#24707875)
The API does not have to be open, the research does. This is like saying cloud services should be free and open for all because Linux is open.
Re:AI training method exceeds GPT-3 performance with fewer p... by dvfjsdhgfv on Wednesday October 07, 2020 @12:36PM (#24709946)
For quite some time maddog has been promoting Subutai, a kind of P2P cloud (https://subutai.io/). Voluntary computing is an old concept, even BOINC is almost 20 years old. Peertube already reached the stage where it's actually usable and people can watch the movies smoothly. So it's not unimaginable that people who care organize somehow creating a platform where you could use a GPT-3 platform by contributing your GPU time in exchange.
Re:AI training method exceeds GPT-3 performance with fewer p... by emteycz on Wednesday October 07, 2020 @11:56AM (#24709487)
To expand on that point, they're basically selling pre-executed computing to you. Resolving the query itself is nothing.
Re:AI training method exceeds GPT-3 performance with fewer p... by dj_mc_merlin on Wednesday October 07, 2020 @07:12AM (#24707084)
> so you can reproduce easily

That's like saying you can look at the Eiffel tower and it's schematics so what's so hard about getting a spare million dollars and building it.

Re:AI training method exceeds GPT-3 performance with fewer p... by emteycz on Wednesday October 07, 2020 @07:45AM (#24707243)
Well, we others can buy a ticket and go see it. Same with GPT-3.
Re:AI training method exceeds GPT-3 performance with fewer p... by fxtentacle on Wednesday October 07, 2020 @07:13AM (#24707089)
Yes they tell you how to do it.

But training a model of this size requires you to use thousands of GPUs, or wait forever. That will sum up to millions of $$$ in rental and electricity costs.

Re:AI training method exceeds GPT-3 performance with fewer p... by dvfjsdhgfv on Wednesday October 07, 2020 @08:20AM (#24707448)
Looks like a great opportunity for someone to step in and organize a project aimed at recreating that. I for one would be more than glad to donate my GPUs' time for something that would be useful for all humanity, for free.
Re:AI training method exceeds GPT-3 performance with fewer p... by emteycz on Wednesday October 07, 2020 @07:44AM (#24707239)
That seems like the reason why won't they share the trained model. Somebody needs to pay for that, how would they fund it if they just shared it?

As far as my thinking goes, they are open more than enough. Thank you for your input!

Re:AI training method exceeds GPT-3 performance with fewer p... by fxtentacle on Thursday October 08, 2020 @06:56AM (#24717903)
They claim to be a well funded nonprofit.
Re:AI training method exceeds GPT-3 performance with fewer p... by emteycz on Thursday October 08, 2020 @06:58AM (#24717917)
Yeah, and that nonprofit probably wouldn't really be doing its mission it got funding for if they were handing out computing, instead of research
Re:AI training method exceeds GPT-3 performance with fewer p... by fxtentacle on Thursday October 08, 2020 @08:06AM (#24718329)
Well, they are withholding the information needed to verify their research. That is generally frowned upon in science.

Plus, they are called OpenAI but producing a closed source product...

Re:AI training method exceeds GPT-3 performance with fewer p... by emteycz on Friday October 09, 2020 @01:03PM (#24731952)
It's not a product, it all boils down to raw computing work. Their mission is to do open research, not provide computing time that they paid for for free. Similarly, Red Hat does not have to provide free cloud computing because they also contribute to Linux and use it.
Re:AI training method exceeds GPT-3 performance with fewer p... by dynamite-ready on Wednesday October 07, 2020 @09:01AM (#24707707)
This is a very article on the subject of GPT3's 'market position' - https://bdtechtalks.com/2020/09/21/gpt-3-economy-business-mo...
Re:AI training method exceeds GPT-3 performance with fewer p... by Veedrac on Wednesday October 07, 2020 @09:55AM (#24708217)
I had this discussion with Timo Schick, the first author, on Reddit. My final comment is copied below, with the relevant context.

Note that GPT-3's approach to *GLUE involved no training on the task, just a good choice of prompt, whereas PET and iPET also use fine-tuning. Also, because distillation takes large amounts of training data, they use ensembles in the true few-shot regime, so their parameter efficiency is significantly worse than they advertise.

https://www.reddit.com/r/slatestarcodex/comments/itrcac/smal...

---

Timo Schick:

Finally, I do not really agree with your last two paragraphs, especially "One is about semi-supervised learning, that says by exploiting task-specific architectures you can do fairly well with low amounts of labelled data.": If you leave out the final distillation step (which is not required for good performance), we use the exact same architecture for all tasks. In what sense is this more task-specific than GPT-3? I would not consider "exploiting task-specific architectures" to be a (fundamental) part of the paper.

My reply:

So what I mean here is that masked training and bidirectional transformer models like BERT have always been designed as a way to get good scores in analysis tasks like Q&A, even if they are pretrained on general text, whereas unidirectional generative transformer models are now basically only relevant for generative tasks. You can say, well, both architectures can do both tasks, so is it really task specific?, but ultimately, yes, we've selected ALBERT because it's better for Q&A tasks, and we've selected unidirectional transformers in other things because they're better for generative tasks.

So I guess the problem I have is with the merits of your thesis, “Can we achieve similar few-shot performance to GPT-3 without requiring billions of parameters?” OpenAI didn't present few-shot learning as if it were an optimal method; their headline achievement was not “here's the best way to...” but “I bet you never expected that this could...”. And so while it's definitely true that a BERT-derived model will outperform a GPT-derived model even at lower parameter counts on these sort of tasks, nothing new or interesting is being said by it. Everyone already knows that a bidirectional GPT-3 would be better at Q&A, and so that's what a smaller bidirectional model should be competing against. GPT-3 is only interesting in this context because it's not the optimal model (or training routine).

So while it's also true that if your aim is SOTA in few-shot learning then you should definitely use a bidirectional transformer with all the new tricks, if your goal is to understand PET in a context that includes GPT-3, doing so merely makes it harder to see what's going on.

Re:AI training method exceeds GPT-3 performance with fewer p... by msamwald on Wednesday October 07, 2020 @01:39PM (#24710663)
A shorter reply would be: It would be great to compare PET not only to GPT-3, but also to other models, especially ones geared towards few-shot learning.

Do you know of any other models that should be used for such a comparison, or are there already any relevant results on SuperGLUE that should be mentioned?

Re:AI training method exceeds GPT-3 performance with fewer p... by leereeves on Wednesday October 07, 2020 @02:04PM (#24710921)
This appears to be SOTA on SuperGLUE with few-shot learning.

PET (well, a version called iPET from the same author) is at #9 on the SuperGLUE leaderboard [1], and none of the models above it mention being evaluated by few-shot learning.

1: https://super.gluebenchmark.com/leaderboard/

Re:AI training method exceeds GPT-3 performance with fewer p... by Veedrac on Wednesday October 07, 2020 @03:31PM (#24711774)
The results reported there are what most people would call ‘semi-supervised learning’, not ‘few-shot’. The true few-shot results are in a few places in the paper, https://arxiv.org/abs/2009.07118, labeled with ‘- dist’.
Re:AI training method exceeds GPT-3 performance with fewer p... by Veedrac on Wednesday October 07, 2020 @03:37PM (#24711850)
There are many BERT-based models that would have made for a good numeric comparison, had they tested on few-shot learning, but I'm not aware of any that have.
Re:AI training method exceeds GPT-3 performance with fewer p... by msamwald on Wednesday October 07, 2020 @04:20PM (#24712266)
Well, in table 1 they compare to RoBERTa trained in a vanilla supervised fashion?