IP Library Granted Patent US 12,401,680
Granted Patent B1
US 12,401,680 · App. 19/200,467 · Granted Aug 26, 2025

Agentic on-device adaptation for increasing node efficiency by accommodating distribution shifts

Inventors: Rahul Sharma (Fremont, CA); Narasimha ‘Murthy’ M Kunchakarra (Fremont, CA)
Assignee: U.S. BANCORP, NATIONAL ASSOCIATION
H04L63/1433G06F40/30
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,401,680
App. No.
19/200,467
Granted
Aug 26, 2025
Kind
B1
Abstract

A method and related systems for dynamically adjusting on-device configurations for models based on detected context switches is disclosed. The system can use an on-device language model to determine context parameters in a first mode and then uses the context parameters to determine prediction models or prediction model parameters to use for inputs provided in a second mode.

Claims (82)

1. A system for dynamically adjusting on-device configurations for message type vulnerability for a text-based model in a federated network by dynamically modifying context based on detected context switches in an audio mode, the system comprising one or more processors configured by computer-readable instructions to perform operations comprising:

determining, using an on-device language model executing on a first electronic device, a first context parameter based on text input derived from audio data received via an on-device audio receiver of the first electronic device;

receiving, from a first user, a user-provided input via a text-based entry on a user interface screen of the first electronic device;

generating, with the first electronic device, a first output prediction indicating message vulnerability for a message type that, if interacted with, compromises data accessible via the first electronic device or control of the first electronic device by (1) selecting a first prediction model in lieu of alternative prediction models by referencing an associative data structure associating parameters and prediction models with the first context parameter to select the first prediction model, and (2) providing, to the first prediction model, an input comprising the user-provided input to generate the first output prediction;

in response to generating the first output prediction indicating the message vulnerability to the message type:

presenting a first test message of the message type on a display of the first electronic device to test the message vulnerability of the first electronic device during later use of the first electronic device, wherein a target interaction with the first electronic device after the presenting of the first test message on the first electronic device causes the first electronic device to send a confirmation message indicating a first vulnerability status to a server; and

transmitting a version of the first prediction model to a second electronic device in a federated learning network with the first electronic device without requiring the second electronic device to independently perform training to obtain the version of the first prediction model, wherein the second electronic device is caused to generate a second output prediction indicating the message vulnerability to the message type for the second electronic device using the first prediction model, and wherein the second electronic device presents a second test message of the message type to test device vulnerability in response to generating the second output prediction.

2. The system of claim 1 , the operation further comprising determining a result indicating whether the first context parameter is associated with a category indicating that the first context parameter is temporary, wherein generating the first output prediction comprises generating the first output prediction based on the result indicating whether the first context parameter is associated with the category indicating that the first context parameter is temporary.

3. The system of claim 1 , the operation further comprising:

determining a second context parameter based on the user-provided input;

determining a correlation parameter between the first context parameter and the second context parameter based on a count of events characterized by the first context parameter being determined and the second context parameter being determined within a same predefined time interval;

determining a result indicating whether the correlation parameter satisfies a threshold; and

constructing an association between the first context parameter and the second context parameter based on the result indicating whether the correlation parameter satisfies the threshold, wherein determining the first prediction model comprises selecting the first prediction model based on the association between the first context parameter and the second context parameter.

4. A method adjusting on-device configurations for message type vulnerability based on detected context switches, comprising:

determining, using an on-device language model executing on a first electronic device, a first context parameter based on a first input derived from first data received via a first mode of the first electronic device;

receiving a second input for a prediction model via a second mode of the first electronic device;

generating a first output prediction indicating message vulnerability for a message type by (1) determining a first prediction model in lieu of alternative prediction models based on an associative data structure associating the first context parameter with the first prediction model and (2) providing, to the first prediction model, an input comprising the second input to cause the first prediction model to generate the first output prediction; and

based on the generating of the first output prediction:

presenting a first message of the message type on a display of the first electronic device, wherein a target interaction with the first electronic device after the presenting of the first message on the first electronic device causes the first electronic device to send a second message indicating a vulnerability status to a server; and

transmitting a version of the first prediction model to a second electronic device, wherein the second electronic device is caused to generate a second output prediction indicating the message vulnerability to the message type.

5. The method of claim 4 , wherein generating the first output prediction comprises:

determining, using the on-device language model, a second context parameter based on the first input;

determining a first modality weight associated with data received via the first mode; and determining a comparison result indicating that the first modality weight associated with the first mode outweighs a second modality weight associated with the second mode, and wherein selecting the first prediction model comprises selecting the first prediction model based on the comparison result.

6. The method of claim 4 , further comprising:

detecting, via the on-device language model, a previous context parameter based on the first input;

determining a previous model mapped to the previous context parameter, wherein generating the first output prediction comprises:

determining a result indicating whether a similarity between the previous model and the first prediction model satisfies a threshold; and

generating the first output prediction based on the result.

7. The method of claim 4 , further comprising:

obtaining a set of model configuration parameters by referencing a context map based on the first context parameter and the first mode; and

determining the first prediction model comprises configuring an initial model to construct the first prediction model based on the set of model configuration parameters.

8. The method of claim 4 , wherein determining the first prediction model comprises:

retrieving a set of adapter neural networks mapped to the first context parameter; and

configuring the prediction model to use a set of adapter neural network nodes.

9. The method of claim 4 , wherein determining the first prediction model comprises performing a retraining operation on a previous model based on a set of responses to previous messages stored in the first electronic device to determine the first prediction model.

10. The method of claim 4 , further comprising:

detecting a set of stable contextual variables by determining a first set of features that remain associated with particular models or outcomes across different context parameter switches;

detecting a set of exogenous contextual variables by determining a second set of features that vary across different context parameter switches; and

training the prediction model by:

training a first subset of model layers based on the set of stable contextual variables; and

training a second subset of model layers based on the set of exogenous contextual variables.

11. The method of claim 4 , further comprising

based on the target interaction, sending a response message associated with the first message to the server, wherein the response message causes a creation of a new user account.

12. One or more non-transitory, machine-readable media storing program instructions that, when executed by one or more processors, causes the one or more processors to perform operations comprising:

determining, using a first electronic device, a first context parameter based on text input derived from audio data received via an on-device audio receiver of the first electronic device;

receiving, from a first user, a user-provided input for a prediction model via a text-based entry on a user interface screen of the first electronic device;

generating an output prediction indicating message vulnerability for a message type that, if interacted with, compromises data accessible via the first electronic device or control of the first electronic device by (1) selecting a first prediction model in lieu of alternative prediction models by referencing an associative data structure associating parameters and prediction models to select the first prediction model and (2) providing, to the first prediction model, an input comprising the user-provided input to obtain the output prediction; and

based on the generating of the output prediction,

presenting a first test message of a message type on a display of the first electronic device to test the message vulnerability of the first electronic device during later use of the first electronic device, wherein a target interaction with the first electronic device after the presenting of the first test message on the first electronic device causes the first electronic device to send a confirmation message associated with the first message to a server; and

transmitting a version of the first prediction model to a second electronic device in a federated learning network with the first electronic device without requiring the second electronic device to independently perform training to obtain the version of the first prediction model, wherein the second electronic device is caused to generate a second output prediction indicating the message vulnerability to the message type for the second electronic device using the first prediction model, and wherein the second electronic device presents a second test message of the message type to test device vulnerability in response to generating the second output prediction.

13. The one or more media of claim 12 , the operations further comprising:

detecting a candidate sequence of recurring context variables comprising the first context parameter and a subsequent second context;

detecting a plurality of instances indicating the candidate sequence of recurring context variables;

determining a schedule of context based on the plurality of instances, wherein the schedule of context variables comprises the first context parameter associated with a first time interval in the schedule of contexts; and

receiving a third input from the first user causing a selection of the first prediction model in response to the third input being provided during the first time interval.

14. The one or more media of claim 12 , the operations further comprising:

detecting a temporal pattern of shifts based on the shifts;

constructing a schedule based on the temporal pattern; and

generating a future output prediction indicating message vulnerability by:

determining that a context shift is predicted for a future period; and

pre-configure a model with a set of model parameters associated with the first context parameter before or while the future period occurs.

15. The one or more media of claim 12 , the operations further comprising determining a result indicating whether the first context parameter is associated with a category indicating that the first context parameter is temporary, wherein generating the output prediction indicating message vulnerability comprises generating the output prediction based on the result indicating whether the first context parameter is associated with the category indicating that the first context parameter is temporary.

16. The one or more media of claim 12 , the operations further comprising:

determining a second context parameter based on a third input obtained via a third mode different from the on-device audio receiver and different from the text-based entry on the user interface screen;

determining a correlation parameter between the first context parameter and the second context parameter based on a count of events characterized by the first context parameter being determined and the second context parameter being determined within a same predefined time interval;

determining a result indicating whether the correlation parameter satisfies a threshold; and

constructing an association between the first context parameter and the second context parameter based on the result indicating whether the correlation parameter satisfies the threshold, wherein determining the first prediction model comprises selecting the first prediction model based on the association between the first context parameter and the second context parameter.

17. The one or more media of claim 12 , wherein generating the output prediction indicating message vulnerability comprises:

determining a second context parameter based on the text input;

determining a first modality weight associated with data received via the on-device audio receiver; and

determining a comparison result indicating that the first modality weight associated with the on-device audio receiver outweighs a second modality weight associated with the text-based entry on the user interface screen, and wherein selecting the first prediction model comprises selecting the first prediction model based on the comparison result.

18. The one or more media of claim 12 , the operations further comprising:

detecting a previous context parameter based on the text input;

determining a previous model mapped to the previous context parameter, wherein generating the output prediction indicating message vulnerability comprises:

determining a result indicating whether a similarity between the previous model and the first prediction model satisfies a threshold; and

generating the output prediction based on the result.

19. The one or more media of claim 12 , the operations further comprising

obtaining a set of model configuration parameters by referencing a context map based on the first context parameter and the on-device audio receiver; and

determining the first prediction model comprises configuring an initial model to construct the first prediction model based on the set of model configuration parameters.

20. The one or more media of claim 12 , wherein determining the first prediction model in lieu of alternative prediction models comprises:

retrieving a set of adapter neural networks mapped to the first context parameter; and

configuring the prediction model to use a set of adapter neural network nodes.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 31, 2025
From: SHARMA, RAHUL; KUNCHAKARRA, NARASIMHA 'MURTHY' M
To: U.S. BANCORP, NATIONAL ASSOCIATION
Reel/Frame 071897/0791 →
References Cited (59)
US 6507012B1 · Medard · 2003 [cited by examiner]
US 9558677B2 · Sadeh-Koniecpol · 2017 [cited by examiner]
US 9824609B2 · Sadeh-Koniecpol · 2017 [cited by examiner]
US 10681072B2 · Alfano · 2020 [cited by examiner]
US 11128655B2 · S · 2021 [cited by examiner]
US 11503063B2 · Rao · 2022 [cited by examiner]
US 11757871B1 · Shah · 2023 [cited by examiner]
US 11830357B1 · Murphy · 2023 [cited by examiner]
US 12069083B2 · Hawthorn · 2024 [cited by examiner]
US 12141289B1 · McDonald · 2024 [cited by examiner]
US 12299133B2 · Yellapragada · 2025 [cited by examiner]
US 12321446B1 · Chan · 2025 [cited by examiner]
US 12335296B2 · Binyamini · 2025 [cited by examiner]
US 20140199663A1 · Sadeh-Koniecpol · 2014 [cited by examiner]
US 20140199664A1 · Sadeh-Koniecpol · 2014 [cited by examiner]
US 20150373132A1 · Mukherji et al. · 2015 [cited by applicant]
US 20170103674A1 · Sadeh-Koniecpol · 2017 [cited by examiner]
US 20170235960A1 · Austin · 2017 [cited by examiner]
US 20180330102A1 · Siman · 2018 [cited by examiner]
US 20190108330A1 · Sikder · 2019 [cited by examiner]
US 20190325080A1 · Natarajan et al. · 2019 [cited by applicant]
US 20200020326A1 · Srinivasan et al. · 2020 [cited by applicant]
US 20200059468A1 · Wolosewicz · 2020 [cited by examiner]
US 20200067861A1 · Leddy · 2020 [cited by examiner]
US 20200175174A1 · Bakalli · 2020 [cited by examiner]
US 20200184053A1 · Kursun · 2020 [cited by examiner]
US 20200409432A1 · Mehandjiysky · 2020 [cited by examiner]
US 20210021592A1 · Wright · 2021 [cited by examiner]
US 20210166080A1 · Podder · 2021 [cited by examiner]
US 20210194883A1 · Badhwar · 2021 [cited by examiner]
US 20210209226A1 · Sundararajan · 2021 [cited by examiner]
US 20210319093A1 · Molloy · 2021 [cited by examiner]
US 20210360007A1 · Paquin · 2021 [cited by examiner]
US 20220046048A1 · Koo · 2022 [cited by examiner]
US 20220060501A1 · Liu · 2022 [cited by examiner]
US 20220164471A1 · Braghin · 2022 [cited by examiner]
US 20220197923A1 · Jeong · 2022 [cited by examiner]
US 20220394055A1 · Mukkamala · 2022 [cited by examiner]
US 20220405537A1 · Yang · 2022 [cited by examiner]
US 20230038196A1 · Labreche · 2023 [cited by examiner]
US 20230344856A1 · Mosko · 2023 [cited by examiner]
US 20230412635A1 · Binyamini · 2023 [cited by examiner]
US 20230421582A1 · McCarthy · 2023 [cited by examiner]
US 20240054233A1 · Ohayon · 2024 [cited by examiner]
US 20240114041A1 · Sapountzis · 2024 [cited by examiner]
US 20240250979A1 · Ding · 2024 [cited by examiner]
US 20240330934A1 · Karimli · 2024 [cited by examiner]
US 20240333746A1 · Williams · 2024 [cited by examiner]
US 20240340302A1 · Wang · 2024 [cited by examiner]
US 20240363125A1 · Khoury · 2024 [cited by examiner]
US 20240411666A1 · Chan · 2024 [cited by examiner]
US 20240412720A1 · Vasylyev · 2024 [cited by examiner]
US 20250013744A1 · Xiao · 2025 [cited by examiner]
US 20250045304A1 · Quatro · 2025 [cited by examiner]
US 20250071040A1 · Wang · 2025 [cited by examiner]
US 20250165616A1 · Cameron · 2025 [cited by examiner]
US 20250175456A1 · Crabtree · 2025 [cited by examiner]
US 20250190460A1 · Madisetti · 2025 [cited by examiner]
US 20250209156A1 · Sankaran · 2025 [cited by examiner]
Cited By (1)
US 12,718,012