Can LLMs Learn From a Single Example? « Machine Learning Times

By: Jeremy Howard and Jonathan Whitaker
Originally printed in Fast.AI, Sept 4, 2023.
We’ve seen an uncommon coaching sample in fine-tuning LLMs. At first we thought it’s a bug, however now we expect it reveals LLMs can be taught successfully from a single instance.
How neural networks be taught
We prepare neural community classifiers by displaying them examples of inputs and outputs, and so they be taught to foretell outputs based mostly on inputs. For instance, we present examples of images of canine and cats, together with the breed of every, and so they be taught to guess the breed from the picture. To be extra exact, for a record of doable breeds, they output their guess as to the chance of every breed. If it’s uncertain, it would guess a roughly equal chance of every doable breed, and if it’s extremely assured, it would guess a almost 1.0 chance of its predicted breed.
The coaching course of consists of each picture in a coaching set being proven to the community, together with the right label. A move by means of all of the enter information is named an “epoch”. We have to offer many examples of the coaching information for the mannequin to be taught successfully.
During coaching the neural community makes an attempt to scale back the loss, which is (roughly talking) a measure of how typically the mannequin is flawed, with extremely assured flawed predictions penalised probably the most, and vise versa. We calculate the loss after every batch for the coaching set, and occasionally (typically on the finish of every epoch) we additionally calculated the loss for a bunch of inputs the mannequin does not get to be taught from – that is the “validation set”. Here’s what that appears like in observe once we prepare for 11 epochs.
To proceed studying this text, click on right here.

https://www.predictiveanalyticsworld.com/machinelearningtimes/can-llms-learn-from-a-single-example/13171/

Recommended For You