Fusing in-context learning and fine-tuning for language model neural networks

US2025077895A1 · US · A1

Patent metadata
FieldValue
Publication numberUS-2025077895-A1
Application numberUS-202418826005-A
CountryUS
Kind codeA1
Filing dateSep 5, 2024
Priority dateSep 5, 2023
Publication dateMar 6, 2025
Grant date

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Methods, systems, and apparatuses, including computer programs encoded on computer storage media, for configuring a set of language model neural networks, e.g., a first large language model and a second smaller-sized language model, and performing a machine learning task on new inputs using the set of language model neural networks. Configuring the language model neural networks and performing a machine learning task can include leveraging the ability of a first large language model to follow prompt-engineered instructions and perform chain-of-thought reasoning, while also fine-tuning a second, smaller language model neural network to optimize the machine learning task performance.

First claim

Opening claim text (preview).

What is claimed is: 1 . A method performed by one or more computers, the method comprising: receiving a new input for a machine learning task; processing a first input sequence comprising (i) a first prompt for the machine learning task and (ii) the new input using a first language model neural network to generate an intermediate output for the machine learning task; and processing a second input sequence comprising the intermediate output generated by the first language model neural network and the new input using a second language model neural network to generate a final output for the machine learning task. 2 . The method of claim 1 , wherein the first machine learning model has been pre-trained on a second, different machine learning task that is different from the machine learning task. 3 . The method of claim 2 , wherein the second machine learning model has been pre-trained on a third, different machine learning task that is different from the machine learning task and then fine-tuned on the machine learning task. 4 . The method of claim 3 , wherein the second machine learning model has been fine-tuned on the machine learning task through parameter-efficient fine-tuning. 5 . The method of claim 2 , wherein the second machine learning task, the third machine learning task, or both is a language modeling task. 6 . The method of claim 1 , wherein the second input sequence further comprises a second prompt for the machine learning task. 7 . The method of claim 1 , wherein the first prompt is a chain-of-thought prompt for the machine learning task and the intermediate output comprises text describing one or more reasoning steps generated by the first language model neural network. 8 . A method performed by one or more computers and for configuring a first language model neural network and a second language model neural network to perform a machine learning task, the method comprising: obtaining training data comprising a plurality of training inputs for the machine learning task and a respective target output for the machine learning task for each of the training inputs; obtaining data specifying a first prompt for the machine learning task; for each of the training inputs: processing a first input sequence comprising the first prompt for the machine learning task and the training input using the first language model neural network to generate an intermediate output for the machine learning task; and processing a second input sequence comprising the intermediate output generated by the first language model neural network and the training input using the second language model neural network to generate a training output for the machine learning task; and training the second language model neural network to perform the machine learning task using an objective function that is based on, for each training input, the training output for the training input and the target output for the training input. 9 . The method of claim 8 , wherein the first prompt is a chain-of-thought prompt for the machine learning task and the intermediate output comprises text describing one or more reasoning steps generated by the first language model neural network. 10 . The method of claim 8 , further comprising: obtaining a second prompt for the machine learning task, wherein the second input sequence comprises the second prompt. 11 . The method of claim 8 , wherein training the second language model neural network to perform the machine learning task comprises: training the second language model neural network through parameter-efficient fine-tuning. 12 . The method of claim 8 , wherein the second input sequence further comprises the target output for the training input, wherein the training output comprises a respective probability distribution for each position in the target output, and wherein the objective function measures, for each position, a probability assigned by the probability distribution for the position to a token at the position in the target output. 13 . The method of claim 8 , wherein the first language model neural network has more parameters than the second language model neural network. 14 . The method of claim 8 , wherein the first language model neural network is not trained on the machine learning task. 15 . The method of claim 8 , wherein training the second language model neural network comprises: training the second language model neural network while holding the first language model neural network fixed. 16 . A system comprising: one or more computers; and one or more storage devices storing instructions that, when executed by the one or more computers, cause the one or more computers to perform operations comprising: receiving a new input for a machine learning task; processing a first input sequence comprising (i) a first prompt for the machine learning task and (ii) the new input using a first language model neural network to generate an intermediate output for the machine learning task; and processing a second input sequence comprising the intermediate output generated by the first language model neural network and the new input using a second language model neural network to generate a final output for the machine learning task. 17 . The system of claim 16 , wherein the second machine learning model has been fine-tuned on the machine learning task through parameter-efficient fine-tuning. 18 . The system of claim 16 , wherein the second machine learning task, the third machine learning task, or both is a language modeling task. 19 . The system of claim 16 , wherein the second input sequence further comprises a second prompt for the machine learning task. 20 . The system of claim 16 , wherein the first prompt is a chain-of-thought prompt for the machine learning task and the intermediate output comprises text describing one or more reasoning steps generated by the first language model neural network.

Assignees

Inventors

Classifications

  • Learning methods · CPC title

  • G06N3/0985Primary

    Hyperparameter optimisation; Meta-learning; Learning-to-learn · CPC title

  • G06N3/045Primary

    Combinations of networks · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US2025077895A1 cover?
Methods, systems, and apparatuses, including computer programs encoded on computer storage media, for configuring a set of language model neural networks, e.g., a first large language model and a second smaller-sized language model, and performing a machine learning task on new inputs using the set of language model neural networks. Configuring the language model neural networks and performing …
Who is the assignee on this patent?
Google Llc
What technology area does this patent fall under?
Primary CPC classification G06N3/0985. Mapped technology areas include Physics.
When was this patent published?
Publication date Thu Mar 06 2025 00:00:00 GMT+0000 (Coordinated Universal Time) (A1). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).