Live data from Hacker News

Can LLMs learn from a single example?

fast.ai

131–140 of 143 posts

Re: Can LLMs learn from a single example?

#131

Earlier quoted context omitted.

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.

Llama2 doesn’t and outclasses llama. I believe GPT was trained in same manner

Re: Can LLMs learn from a single example?

#132
post #107
post #97

Probably unrelated, but I tried to get ChatGPT to write me some code to programmatically control the details of a column filter in an Excel spreadsheet in PowerShell. Nothing it tried worked, it got close, but it didn't work. Finally I found some C# code that fixed the problem, and I pasted that code into ChatGPT, asked it to read it, and then fix the problem in PowerShell. It said it understood the solution, updated…

Interesting anecdote. I think there's a common theme with current LLMs, that people focus unreasonably much on "knowledge retrieval" from the models (1) and under-hype and under-appreciate the "language model" part. These things are really easy to anthropomize, partly because they are good at "talking" and "articulating". So good that we tend to just accept that magical, enormous feat of statistical engineering as a…

It's why the "hallucination" concern is IMO not a helpful way for people to conceive of the remaining challenges. These things aren't meant to be search engines, search engines already exist, and I don't understand the utility of using the model itself as a search engine (I do understand having the model search for you and summarise what it finds, like an integrated assistant). The model is better conceived of as the part that does the thinking, and to work on knowledge that you want to be reliable you have to have that knowledge accessible to the model in some other format. We know how to store information, generally. What is interesting and useful about this model is not their ability to off-the-cuff recall facts without access to any resources, that's a party trick in humans and AI. What is interesting about them is their ability to be given a piece of information, understand it, and use that information for logical reasoning. That provides the ability to answer questions about the information, use the information in conjunction with other information, etc. That is new for a natural language interface, and it has really interesting implications for what we can build with it.

Re: Can LLMs learn from a single example?

#133

Earlier quoted context omitted.

But if you have say 50bn weights, and you run backprop, you are going to update most of the weights (except the dropout ones, but which ones drop out changes on every token I think). This means you need 50bn deltas. It might compress, but if you do then you need extra compute to do that.

You would do dropout on every epoch of training, not on every token .

I didn't know that, I might look at the NanoGPT code and torch.dropout docs a bit closer then. Thanks!

Re: Can LLMs learn from a single example?

#134
post #72
post #57

Earlier quoted context omitted.

I have been training a natural intelligence model for 3 years now and she still doesn’t get nuance. Things are either good or bad in her book: nothing in between. My plan is to let her train with binary good/bad labels till the age of 5 and then start smoothing the labels after that. Wonder if that works for your AI.

in my mind I've built an 'emotional engine' to add nuance to models understanding, take something like Plutchik's wheel of emotions and create a high quality multi-modal dataset based on that structure, given our current technology takes inspiration from the brain, it would seem like having discrete models specialising in particular aspects of 'intelligence' that are then organised into a mixture of experts is an int…

That seems similar to https://en.m.wikipedia.org/wiki/Internal_Family_Systems_Mode...

Re: Can LLMs learn from a single example?

#135

Earlier quoted context omitted.

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.

Llama2 doesn’t and outclasses llama. I believe GPT was trained in same manner

> I believe GPT was trained in same manner

If you are talking about GPT-4, unless you are insider (doubt it) you'd have no way of proving it either way because that info is not public.

> Llama2 doesn’t and outclasses llama.

My point still stands, llama2 is just one llm, and we still don't know the distribution of their training set.

Re: Can LLMs learn from a single example?

#136
post #72

Earlier quoted context omitted.

in my mind I've built an 'emotional engine' to add nuance to models understanding, take something like Plutchik's wheel of emotions and create a high quality multi-modal dataset based on that structure, given our current technology takes inspiration from the brain, it would seem like having discrete models specialising in particular aspects of 'intelligence' that are then organised into a mixture of experts is an int…

That seems similar to https://en.m.wikipedia.org/wiki/Internal_Family_Systems_Mode...

very interesting, thanks.

Re: Can LLMs learn from a single example?

#137
post #72

Earlier quoted context omitted.

in my mind I've built an 'emotional engine' to add nuance to models understanding, take something like Plutchik's wheel of emotions and create a high quality multi-modal dataset based on that structure, given our current technology takes inspiration from the brain, it would seem like having discrete models specialising in particular aspects of 'intelligence' that are then organised into a mixture of experts is an int…

I have code stubbed out for this in mitta.us. It has 9 states, based on the Plutchik wheel, with emojis for the states. States drive temp and a few other things and drop the state into prompts.

Interesting, do you have a mailing list or way I can be notified of progress?

Re: Can LLMs learn from a single example?

#138

Earlier quoted context omitted.

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?

I am not sure if the origin of polysyntacicity is fully understood.

From a physics perspective it’s entropy: There are just more local minima that have neurons code multiple things.

I suspect that dropout and similar tricks also play a role in this: Removing connections during training means that pathways need to be redundant somewhat.

Re: Can LLMs learn from a single example?

#139
post #67

Earlier quoted context omitted.

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

That's not how LLM's work. LLM's complete documents, they don't make statements about LLM's unless you explain to them how they should do it and give them all the information they need. If you could extract the information from an LLM well enough to supply that to an LLM with an explanation on how to summarize the behaviour of the LLM to a human, we would have already done that to a PhD student instead. A PhD student is a little bit slower than an LLM, but they require a lot less explanation.

In any case, looking at and understanding how a neural network encodes information is like gene editing. Perhaps you could isolate a gene in the human genome that achieves something interesting like giving a child blue eyes. But even if you would do that, there's a chance you break something else if you modify that gene and give the child health risk. Since all neurons in a deep neural network are interconnected, there is a butterfly effect in it that makes them inherently somewhat of a black box.

Re: Can LLMs learn from a single example?

#140

I see similar loss curves when training ViTs (from scratch), which has always bothered me but I had bigger concerns so never delved too deep into it. The only difference is that I see the training loss go _up_ during each epoch. The cliffs between epochs are large enough that training loss goes down overall and validation loss keeps going down the whole time as well. The model gets close-ish to SoTA so I guess it's "…

After the first epoch, the average time since the present data item was last used for during training is small at the beginning of an epoch grows during the epoch. I'd expect that to positively relate to loss on the present iteration.
Post reply on HN