IP Library Granted Patent US 12,566,765
Granted Patent B2
US 12,566,765 · App. 18/244,229 · Granted Mar 3, 2026

Executing a client model using a task prompt produced by a main system

Inventors: Mohsen Fayyaz (Berlin, DE); Ayyoob Imanigooghari (Munich, DE); Eric Chris Wolfgang Sommerlade (Oxford, GB)
Assignee: Microsoft Technology Licensing, LLC
G06F16/24564
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,566,765
App. No.
18/244,229
Granted
Mar 3, 2026
Kind
B2
Abstract

A technique executes a client machine-trained model (“client model”) on a client device. In operation, the client device submits a description of a task to be performed by the client device to a network-accessible main system. The main system uses a main-system machine-trained model (“main-system model”) to produce a task prompt based on the task description. The client device subsequently uses the task prompt to process queries pertaining to the task. The main-system is trained to increase the accuracy of responses produced by the client model, while reducing the sizes of task prompts produced by the main system. The training process is performed by holding weights of the client model constant.

Claims (52)

1 . A method for interacting with a client machine-trained model provided at a client device, comprising:

receiving a task description that describes a task to be performed using the client machine-trained model;

submitting the task description to a network-accessible main system, wherein the main system includes a main-system machine-trained model, wherein the main-system machine-trained model, as a result of a training process that was performed, includes weights that have learned a vector space associated with the client machine-trained model, wherein weights of the client machine-trained model were held constant throughout the training process that was performed,

wherein the main-system machine-trained model has been trained in the training process by: transforming task descriptions into task prompts associated with respective tasks; receiving model responses to queries produced by the client machine-trained model using the task prompts; determining measures of prediction loss by comparing the model responses to associated ground-truth responses, to generate measures of prediction loss; and using the measures of prediction loss to update the weights of the main-system machine-trained model without training the weights of the client machine-trained model in the training process;

receiving a task prompt from the main system, the main-system machine-trained model producing the task prompt based on the task description that is submitted and based on the learned vector space associated with the client machine-trained model, the task prompt being embedding information that expresses a meaning of the task description; and

using the task prompt to process queries associated with the task,

wherein the using includes, for each query of the queries associated with the task:

receiving the query;

producing a query prompt based on the query;

producing a combined prompt by combining the query prompt with the task prompt; and

using the client machine-trained model to produce a model response to the query based on the combined prompt.

2 . The method of claim 1 , wherein the client device is a user computing device or a local system that includes one or more client devices, wherein the main system is implemented by one or more servers, and wherein the using the task prompt occurs offline, without interaction with the main system.

3 . The method of claim 1 , wherein the task description that is received includes a description of an objective of the task, and plural examples of model responses that are to be generated upon the submission of respective queries, in accordance with the task.

4 . The method of claim 1 , further comprising acquiring a pre-generated task prompt from a network-accessible data store, and using the pre-generated task prompt to interact with the client machine-trained model.

5 . The method of claim 1 , wherein the main-system machine-trained model includes a base machine-trained model that provides an initial task prompt, and a prompt-compressing machine-trained model that compresses the initial task prompt, to produce the task prompt that is sent to the client device.

6 . The method of claim 1 ,

wherein the main-system machine-trained model has been trained in the training process based on a measure of loss that is a combination of the prediction loss and sparsity loss,

wherein the sparsity loss measures removal of redundant information from the task prompts.

7 . A main system for interacting with a client device, comprising:

a data store for storing computer-readable instructions;

a processing system for executing the computer-readable instructions in the data store, to perform operations including:

receiving a task description from the client device over a computer network, the task description describing a task to be performed by the client device using a client machine-trained model;

using a main-system machine-trained model to transform the task description into a task prompt, the task prompt being embedding information that expresses a meaning of the task description, wherein the main-system machine-trained model, as a result of a training process that was performed, includes weights that have learned a vector space associated with the client machine-trained model, wherein weights of the client machine-trained model were held constant throughout the training process that was performed,

wherein the main-system machine-trained model has been trained in the training process by: transforming task descriptions into task prompts associated with respective tasks; receiving model responses to queries produced by the client machine-trained model using the task prompts; determining measures of prediction loss by comparing the model responses to associated ground-truth responses, to generate measures of prediction loss; and using the measures of prediction loss to update the weights of the main-system machine-trained model without training the weights of the client machine-trained model in the training process;

sending the task prompt over the computer network to the client device, wherein the client machine-trained model uses the task prompt to transform queries pertaining to the task into model responses by transforming the queries into query prompts, producing combined prompts by combining the query prompts with the task prompt, and producing the model responses based on the combined prompts,

wherein the client machine-trained model has fewer weights than the main-system machine-trained model.

8 . The main system of claim 7 , wherein the main system is implemented by one or more servers, and the client device is a user computing device.

9 . The main system of claim 7 , wherein the task description that is received includes a description of an objective of the task, and plural examples of model responses that are to be generated upon the submission of respective queries, in accordance with the task.

10 . The main system of claim 7 , wherein the main-system machine-trained system includes:

a base machine-trained model that transforms the task description into an initial task prompt; and

a prompt-compressing machine-trained model compresses the initial task prompt, to produce the task prompt that is sent to the client device.

11 . The main system of claim 7 ,

wherein the main-system machine-trained model has been trained in the training process based on a measure of loss that is a combination of the prediction loss and sparsity loss,

wherein the sparsity loss measures removal of redundant information from the task prompt prompts.

12 . The main system of claim 11 ,

wherein measures of the sparsity loss are based on numbers of elements in the task prompts.

13 . A computer-readable storage medium for storing computer-readable instructions, a processing system executing the computer-readable instructions to perform operations in a client device, the operations comprising:

receiving a task description that describes a task to be performed using a client machine-trained model of the client device;

submitting the task description to a network-accessible main system, the main system providing a main-system machine-trained model;

receiving a task prompt from the main system, the main-system machine-trained model producing the task prompt based on the task description, the task prompt being embedding information that expresses a meaning of the task description,

wherein the main-system machine-trained model, as a result of a training process that was performed, includes weights that have learned a vector space associated with the client machine-trained model, wherein weights of the client machine-trained model were held constant throughout the training process that was performed,

wherein the main-system machine-trained model has been trained in the training process by: transforming task descriptions into task prompts associated with respective tasks; receiving model responses to queries produced by the client machine-trained model using the task prompts; determining measures of prediction loss by comparing the model responses to associated ground-truth responses, to generate measures of prediction loss; and using the measures of prediction loss to update the weights of the main-system machine-trained model without training the weights of the client machine-trained model in in the training process; and

using the task prompt to process queries associated with the task, wherein the using includes, for each query of the queries associated with the task:

receiving the query;

producing a query prompt based on the query;

producing a combined prompt by combining the query prompt with the task prompt; and

using the client machine-trained model to produce a model response to the query based on the combined prompt.

14 . The method of claim 1 , further comprising using the client machine-trained model to produce responses for another task for which the main-system machine-trained model has not been trained in the training process.

15 . The method of claim 1 , wherein each part of the task prompt is an embedding that represents a prompt token, wherein the query prompt is produced using a vocabulary of text-based tokens, and wherein each prompt token differs from each of the text-based tokens.

16 . The method of claim 5 , wherein the training process that was performed involves training weights of the prompt-compressing machine-trained model while holding weights of the base machine-trained model and the weights of the client machine-trained model fixed throughout the training process.

17 . The main system of claim 10 , wherein the training process that was performed involves training weights of the prompt-compressing machine-trained model while holding weights of the base machine-trained model and the weights of the client machine-trained model fixed throughout the training process.

18 . The method of claim 1 , wherein the weights of the main-system machine-trained model are capable of generating task prompts for additional task descriptions not included in the training process, without requiring additional training based on training examples pertaining to the additional task descriptions.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 9, 2023
From: FAYYAZ, MOHSEN; IMANIGOOGHARI, AYYOOB; SOMMERLADE, ERIC CHRIS WOLFGANG
To: MICROSOFT TECHNOLOGY LICENSING, LLC
Reel/Frame 064852/0984 →
Continuity (1)
Related Publication 20250086187A1 · Mar 13, 2025
References Cited (43)
US 20200349919A1 · Wanas et al. · 2020 [cited by applicant]
US 20210217408A1 · Hakkani-Tur · 2021 [cited by examiner]
US 20220004819A1 · Modi · 2022 [cited by examiner]
US 20230214689A1 · Tian · 2023 [cited by examiner]
US 20230244938A1 · Wei et al. · 2023 [cited by applicant]
US 20240176958A1 · Raimondo et al. · 2024 [cited by applicant]
US 20240289362A1 · Williams · 2024 [cited by examiner]
US 20240311575A1 · Baeuml et al. · 2024 [cited by applicant]
US 20240354319A1 · Dinu et al. · 2024 [cited by applicant]
US 20240394479A1 · Pathak et al. · 2024 [cited by applicant]
US 20250005276A1 · Bhat · 2025 [cited by examiner]
US 20250005427A1 · Venkateswaran et al. · 2025 [cited by applicant]
US 20250006052A1 · Williams et al. · 2025 [cited by applicant]
US 20250028751A1 · Yu et al. · 2025 [cited by applicant]
US 20250053748A1 · Fayyaz et al. · 2025 [cited by applicant]
WO 2023022727A1 · 2023 [cited by applicant]
Gu et al., From Server-Based to Client-Based Machine Learning: A Comprehensive Survey, ACM Computing Surveys, vol. 54, No. 1, Article 6, pp. 6:1-6:36. (Year: 2020). [cited by examiner]
Devlin, et al., “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding,” arXiv, Cornell University, arXiv:1810.04805v2 [cs.CL], May 24, 2019, 16 pages. [cited by applicant]
Scao, et al., “BLOOM: A 176B-Parameter Open-Access Multilingual Language Model,” arXiv, Cornell University, arXiv:2211.05100v2 [cs.CL], Dec. 11, 2022, 62 pages. [cited by applicant]
Vaswani, et al., “Attention Is All You Need,” in 31st Conference on Neural Information Processing Systems (NIPS 2017), 2017, 11 pages. [cited by applicant]
Brown, et al., “Language Models are Few-Shot Learners,” arXiv, Cornell University, arXiv:2005.14165v4 [cs.CL], Jul. 22, 2020, 75 pages. [cited by applicant]
“Introducing the World's Largest Open Multilingual Language Model: BLOOM,” available at https://bigscience.huggingface.co/blog/bloom, accessed on Feb. 13, 2023, 2 pages. [cited by applicant]
Houlsby, et al., “Parameter-Efficient Transfer Learning for NLP,” arXiv, Cornell University, arXiv:1902.00751v2 [cs.LG], Jun. 13, 2019, 13 pages. [cited by applicant]
Pfeiffer, et al., “AdapterFusion: Non-Destructive Task Composition for Transfer Learning,” arXiv, Cornell University, arXiv:2005.00247v3, Jan. 26, 2021, 17 pages. [cited by applicant]
Pfeiffer, et al., “AdapterHub: A Framework for Adapting Transformers,” in Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, 2020, 9 pages. [cited by applicant]
Hu, et al., “LoRA: Low-Rank Adaptation of Large Language Models,” in Proceedings of 10th International Conference on Learning Representations, Apr. 25, 2022, 13 pages. [cited by applicant]
Rafailov, et al., “Direct Preference Optimization: Your Language Model is Secretly a Reward Model,” arXiv, Cornell University, arXiv:2305.18290v1 [cs.LG], May 29, 2023, 26 pages. [cited by applicant]
Lester, Brian, “Guiding Frozen Language Models with Learned Soft Prompts,” available at https://ai.googleblog.com/2022/02/guiding-frozen-language-models-with.html, Google Research Blogs, Feb. 10, 2022, 5 pages. [cited by applicant]
Lester, et al., “The Power of Scale for Parameter-Efficient Prompt Tuning,” arXiv, Cornell University, arXiv:2104.08691v2 [cs.CL], Sep. 2, 2021, 15 pages. [cited by applicant]
Rao, et al., “DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsification,” in 35th Conference on Neural Information Processing Systems (NeurIPS 2021), 2021, 13 pages. [cited by applicant]
Hu, at al., “LoRA: Low-Rank Adaptation of Large Language Models,” arXiv, Cornell University, arXiv:2106.09685v2 [cs.CL], Oct. 16, 2021, 26 pages. [cited by applicant]
Touvron, et al., “LLaMA: Open and Efficient Foundation Language Models,” arXiv, Cornell University, arXiv:2302.13971v1 [cs.CL], Feb. 27, 2023, 27 pages. [cited by applicant]
Fayyaz, et al., “Compressing Information Provided to a Machine-Trained Model Using Abstract Tokens,” U.S. Appl. No. 18/232,485, filed Aug. 10, 2023, 62 pages. [cited by applicant]
International Search Report and Written Opinion received for PCT Application No. PCT/US2024/041380, mailed on Nov. 25, 2024, 14 pages. [cited by applicant]
U.S. Appl. No. 18/232,485, filed Aug. 10, 2023 (pending). [cited by applicant]
Gupta, “Compression of Deep Learning Models for Text: A Survey,” arXiv, arXiv:2008.05221v4 [cs.CL], Jun. 13, 2021, 53 pages. [cited by applicant]
Chen, et al., “Stabilized In-Context Learning with Pre-trained Language Models for Few Shot Dialogue State Tracking,” arXiv, arXiv:2302.05932v1 [cs.CL], Feb. 12, 2023, 14 pages. [cited by applicant]
Santra, et al., “Frugal Prompting for Dialog Models,” arXiv, arXiv:2305.14919v1 [cs.CL], May 24, 2023, 22 pages. [cited by applicant]
PCT Search Report and Written Opinion for PCT/US2024/037265, mailing date Oct. 22, 2024, 17 pages. [cited by applicant]
Banino, et al., “PonderNet: Learning to Ponder,” arXiv, arXiv:2107.05407v2 [cs.LG], Sep. 2, 2021, 18 pages. [cited by applicant]
Radford, et al., “Improving Language Understanding by Generative Pre-Training,” available at https://cdn.openai.com/research-covers/language-unsupervised/language_understanding_paper.pdf, OpenAI, San Francisco, Californ… [cited by applicant]
Hedge, et al., “Variational Student: Learning Compact and Sparser Networks in Knowledge Distillation Framework,” International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2020, pp. 3247-3251. [cited by applicant]
Non-Final Office Action mailed on Jul. 2, 2025, in U.S. Appl. No. 18/232,485, 28 pages. [cited by applicant]