Microsoft's New Patent: Training Faster Search Tools by Watching a Big AI Read
Microsoft's patent application describes building a document finder by letting a big AI read first, then teaching a much smaller model to copy what the big one paid attention to.

- Publication number
- US 2026/0377712 A1(US20260377712A1)
- USPTO patent title:
- Training Engine(s) for Training Embedding Models Using Pre-Trained Transformer-Based Model Attention Weights
- Applicant
- Microsoft Technology Licensing, LLC
- Filed · Published
- May 22, 2025 · Nov 26, 2026
- Inventors
- Shrey SHAH
- Status when we published
- Waiting for an examiner
- Document
- 20 claims
- US classification
- 706/15
What Microsoft's search-model teacher patent does
Every time you ask a work chatbot about a contract or a company policy, something has to dig through thousands of documents and pull out the right pages before the chatbot answers. That digging is done by a small program called an embedding model, which turns text into numbers so that passages with similar meaning end up close together.
Teaching that program is the slow part. Experts usually spend weeks or even months labeling which documents belong together. Microsoft's patent application skips most of that. It has a big AI read a batch of sample documents, then checks which passages the big AI linked to each other while it read.
Those links become the answer key. The small program is trained until its own sense of "similar" matches the big AI's, so you end up with a fast, cheap finder that borrowed the big model's judgment.
provide a set of domain-specific documents to a pre-trained large language model (LLM), wherein the LLM comprises a plurality of layers; extract attention weights from one or more layers of the plurality of layers of the LLM; and train an embedding model using the extracted attention weights …
Translation: Feed industry documents into a giant AI, steal its internal focus data, and use that to build a faster search tool.
How a big AI's reading becomes an answer key
The filing covers a training engine that makes three moves. First, it feeds a set of documents from one subject area (say, legal or medical) into a pre-trained large language model, the same kind of AI that powers chatbots. Second, it pulls out the attention weights, numbers showing how strongly the model connects each piece of text to every other piece while it reads.
Third, it trains the smaller embedding model (a program that turns text into a list of numbers so similar meanings land near each other) to match those connections. The training uses a contrastive loss, a scoring rule that rewards pulling related passages together and pushing unrelated ones apart.
The filing adds several specifics:
- Layer choice: the weights come from the middle of the big model, roughly the 25th to 50th percentile of its layers, and in some versions the 10th to 30th.
- Cleanup: weak connections are filtered out with a cutoff based on the spread of the numbers themselves, then the results are averaged across the model's multiple attention heads (parallel sub-readers inside each layer).
- Negatives: random or unrelated documents get mixed in so the contrast is clearer.
Optionally, once people use the finished model for search, the engine asks them to rate the results and weights that feedback more heavily than the big model's links.
The attention weights, which may be extracted from one or more intermediate layers of the LLM, may be used as supervision signals to train the embedding model through contrastive learning, allowing the embedding model to learn semantic relationships between text segments based on the LLM's understanding of the domain.
Translation: The AI's hidden reading notes teach the new model how words connect, making domain searches much smarter.
Why Microsoft's trick could cheapen document search
If you work somewhere with a mountain of private documents, this is about getting a useful search tool without a long labeling project. The filing says the resulting model needs far fewer computing resources than the big AI, so it could run on modest hardware such as phones or laptops and answer quickly.
It also matters for chatbots that look things up before they answer, where weak lookup means vague or off-target replies. Cheaper, better finders for each subject area, such as legal or medical files, would make those assistants more useful on your own company's material. Keep in mind this is a patent application, so it tells you nothing certain about what Microsoft will ship.
Microsoft's 55th filing we've tracked since May in our AI models that work in teams watchlist follows earlier applications covering teaching AI to describe photos and AI helpers taking turns in chat.
Source: US 2026/0377712 A1 at the USPTO (PDF). Full patent text and figures are in the official publication.
Get our take in your Top Stories
Liked this breakdown? Add Patentlyze as a preferred source on Google, and our plain-English take shows up more often in your Top Stories the next time Microsoft patent news breaks.
We read the new patents from Big Tech, carmakers and more and send you the ones worth knowing. Plain English, free, every week.
The drawings · 6 sheets
6 drawing sheets from US 2026/0377712 A1 · click any drawing to enlarge

No comments yet