Microsoft patents method to scramble AI math to hide data patterns
Microsoft describes a system that shuffles the order of calculations in AI models to hide how they process data. By randomizing the sequence of operations, the system makes it harder for attackers to guess what data is being processed based on the computer's activity.
In the filing’s own words
This invention provides a system for enhancing the privacy and security of neural networks through dynamic execution trace obfuscation. The system generates randomized computational patterns to mask the actual processing flow during inference and training, preventing information leakage via side-channel attacks. It employs a randomization engine to reorder operations, vary memory access patterns, and introduce timing variations, ensuring mathematical correctness and model performance. The system includes a protection component for monitoring execution patterns and a performance optimization component to balance security and efficiency.
What exactly they claim (claim 1)
1. A method for obfuscating execution of operations of a machine-learning model during execution of inference tasks, the method comprising: receiving, by a processor, an inference task comprising input data to be processed by the machine-learning model, the inference task received from a requestor; creating, by the processor, a computational graph mapping execution dependency of the machine-learning model by representing input-dependent operations as nodes and specifying data flow paths between nodes as edges, the computational graph created based on a model architecture of the machine-learning model; identifying, by the processor, and based upon the computational graph, independent operations within the machine-learning model that are performed during the inference task that can be processed in a different order without changing an output of the inference task; generating, by the processor, using a pseudo-random number generator, randomization parameters for determining an execution order of the independent operations within the machine-learning model that are performed during the inference task; ordering, by the processor, the independent operations within the machine-learning model that are performed during the inference task according to the randomization parameters to create a reordered independent operations of the independent operations within the machine-learning model that are performed during the inference task; executing, by the processor, the reordered independent operations on the input data to produce an output of the inference task, the reordered independent operations generating randomized execution traces for each inference task of the machine-learning model; and transmitting, by the processor, the output of the inference task to the requestor.
Facts
- Company
- Microsoft (Microsoft Technology Licensing, LLC)
- Official title
- MACHINE-LEARNING EXECUTION SECURITY
- Publication number
- US20260267943A1
- Application number
- 19072845
- Filed
- Mar 6, 2025
- Published
- Sep 10, 2026
- Inventors
- 1
- Claims
- 20
Classified under
G06F 21/14 Physics & computingG06F 12/1425 Physics & computingMore from Microsoft in AI & software
- Microsoft patents method to check AI answers against verified facts Oct 20, 2026
- Microsoft patents AI that presents PowerPoint slides for you Sep 3, 2026
- Microsoft patents method to check if LLM answers are based on real data Sep 10, 2026
- Microsoft patents system to blend multiple AI agents into one chat Oct 1, 2026
- Microsoft patents system that answers questions using your screen history Oct 15, 2026
Summaries are simplified from the filing’s own abstract and first claim. A patent filing is not a product announcement.
Patent data and drawings: U.S. Patent and Trademark Office (USPTO). Nebula is not affiliated with or endorsed by the USPTO.