Live data from Hacker News

Can LLMs learn from a single example?

fast.ai

121–130 of 143 posts

Re: Can LLMs learn from a single example?

#121

Earlier quoted context omitted.

They are not being trained only on 1 epoch. They are trained on multiple epochs for high quality data. Also Meta team with llama show that simply training more, more tokens, continues to reduce loss.

If you divide the number of sentences trained on by the total number of sentences in its corpora, the number for most of the top LLMs will be far closer to ~1 than any other integer. > Also Meta team with llama show that simply training more, more tokens, continues to reduce loss. Can you source the specific claim you are talking about? More tokens to me generally will mean new tokens unless you are specifying. from…

Yes. Surely "more tokens" doesn't mean "more epochs".

Re: Can LLMs learn from a single example?

#122

Earlier quoted context omitted.

> Was this not sort of the clear implication of the fact that most LLMs are currently only being trained with one epoch? Slight nit: Many public LLMs are trained for at least slightly over one epoch, and usually several epochs on particular subsets of the data (like wikipedia).

Source? Maybe several epochs on some very small subsets, but my strong impression was that it was 1 epoch in the pre-training run for pretty much all of the top LLMs.

Llama off the top of my head: https://arxiv.org/pdf/2302.13971.pdf

Re: Can LLMs learn from a single example?

#123
post #90

Earlier quoted context omitted.

LLMs are trained on 'tokens' derived from 'words' and 'text' and even though there are tokens that are just one letter the bulk is a rough approximation to syllables as though you're trying to create a dictionary to be used for data compression. It might be more effective to try to play 'tokendle' before trying to play 'wordle'.

Do you know whether LLMs grasp the equivalence of a word expressed as one whole-word token and as a series of single character tokens that spell out the same word? I'm curious if modifying the way some input words are split into tokens could be useful for letter-by-letter reasoning like in Wordle. Or would an LLM get confused if we were to alter the way the tokenization of the input text is done, since it probably ne…

From what I understand it is anything goes, it could be letters or it could be a whole word or even a sentence fragment or a concept ('The United States of America'). Think of it as the dictionary for a compression algorithm and you wouldn't be too far off.

https://www.geeksforgeeks.org/lzw-lempel-ziv-welch-compressi...

For 'code table' substitute 'token table'.

Re: Can LLMs learn from a single example?

#124

Earlier quoted context omitted.

I doubt it. If anything, ULMFiT era AI has finally killed the need for human curated data. ChatGPT 4 is already being used as an oracle model that everyday AI models are trained off of. A truly gargantuan oracle model will obviate all but the smallest of human input.

GPT4 relies heavily on human curated data. Both for specific domains and for instruction following. Any new model that tries to go beyond it will also likely rely on such data.

Yeah it's been known that OpenAI hires domain experts. If anything, they augment that high quality data rather than just starting from bare bones synthetic data.

Re: Can LLMs learn from a single example?

#125

Earlier quoted context omitted.

Source? Maybe several epochs on some very small subsets, but my strong impression was that it was 1 epoch in the pre-training run for pretty much all of the top LLMs.

Llama off the top of my head: https://arxiv.org/pdf/2302.13971.pdf

Good one, I certainly managed to forget this and had "1" firmly etched in my brain.

Re: Can LLMs learn from a single example?

#126

Does anyone know if LLMs have been used to augment their own training data? I wonder what would happen if you trained an LLM on a little input but then had it generate a lot of synthetic input added to the training data. I think of it as "dreaming". This seems like it would just add noise, but LLMs are able to improve their output by augmenting their own context (by "thinking out loud"), maybe they can do the same wi…

If it's training on the same data that it generates, there's no new information being added into the system. You'd be reinforcing everything that it already gets right and wrong, which would lead to zero improvement.

That said, it's common to use large models to generate synthetic training data for training other smaller models. In this way, we're able to transfer knowledge from one model to another.

Re: Can LLMs learn from a single example?

#127
post #78

Earlier quoted context omitted.

No I don't use the term overfitting for a model where the accuracy is getting better. I think it's misleading.

Over fitting literally means what it says, fitting the training data too well to maintain a well formed function. This is many decades old terminology for a well established effect that occurs for all curve fitting, function approximation, parameter optimizing, and model training algorithms. You can Google it with no other context: “over fitting”. [0] “Confidence” isn’t its name and its meaning has nothing to do with…

Addendum: Most data has a fraction which is noise, or is dependent on information not completely captured by training data.

In both cases, training to a perfect fit of training data makes no sense.

Learning the particular noise in training data guarantees worse results on real data, where the noise will, by definition, be different.

The same is true for exactly reproducing data that depended on some unaccounted for information. Once applied, the unaccounted information in the training data will have no predictive quality.

So perfectly fitting data is usually a terrible idea, even when it can be done.

Training data captures a problem to be solved, as best it can. But it isn’t the same as the actual problem.

——

Best practice:

1. Use training data to optimize a model

2. Use separate validation data to approximate current generalization quality, and stop at (or revert to) the point where validation performance was best.

3. Use separate test data, not used for model design in any way, for a completely independent approximation of generalization performance.

Wide disparities between validation & test performance suggest problems. Ideally they should track each other fairly closely.

If not, more data is probably needed to characterize the problem more reliably.

NEVER just retrain, or tweak training parameters, until training & the validation stop produce good test performance. That means the test data was actually used in the design and is no longer an independent measure of performance!

——

Assuming you are having trouble getting similar validation & test performances:

A good way to ensure test performance is real, is to retrain the model in exactly the same way, several times, with different random divisions of training, validation & test data. If test results are good regardless of data divisions, then they are reliable.

Then you can eliminate the test performance dependency, by randomly selecting any of the models. Don’t choose the one with best test results!

That takes discipline!

In that case, the mean of all test performances is your best estimate of generalization performance, regardless of model.

(Throwing out models with the worst and best test performances is ok, it avoids outlier training failures or successes equally. Note I said “avoids”, not “eliminates”, since the worst & best test performances are estimates of generalization, not a measure of actual generalization.)

Re: Can LLMs learn from a single example?

#128

Earlier quoted context omitted.

I could be wrong, but I thought the llama 2 paper explicitly called out 1 epoch and that more than that caused over-fitting in their other experiments.

You're not at all wrong :) I think a lot of people confuse the pre-training and fine-tuning runs because these are all novel concepts.

Llama: https://arxiv.org/pdf/2302.13971.pdf

You can clearly see in table on second page that higher quality data is trained on more than 1 epoch. Most Open LLM's do this.

Re: Can LLMs learn from a single example?

#129
post #67

Earlier quoted context omitted.

Can it be taught "contextual matrices" where by it builds a new layer of construct but preserves the other, then cross learns between parameters or something (sorry for my poor lexicon, I'm wet-learning :-) But imagine all LLMs in a macro view like a sponge entity

We wouldn't know how to construct those matrices because we don't know where in the layers what knowledge is represented. One thing that helps a little bit is freezing the lower layers, so at least the model won't forget its most fundamental knowledge. Note that the only reason that things are catastrophically forgotten, is that the original examples are not shown again. If the model learns in a single shot, there mi…

where in the layers what knowledge is represented."

This seems like a ripe angle for evolvement of our understanding of AIs use in LLMs... can we throw AIs at AIs (is AI synonymous to LLM?) Can we throw LLMs at LLMs? and have them recursively learn from themselves.. or is it a Rat King. AI recognize AI in the GangPlane

Re: Can LLMs learn from a single example?

#130
post #61

Earlier quoted context omitted.

In fact I bet you could update like one or two neurons for certain concepts, and then transplant those neurons to another LLM to give it some idea of it. Like a literal brain transplant but for concepts.

Many neurons are polysynthactic, that makes interventions like the proposed difficult.

Is that necessarily the case for massive LLMs, or could there be a more refined grouping?
Post reply on HN