hottub.patents
US 12,430,583 B2#3432376 Most CitedActiveUnited States (USPTO)Utility

Method and system for managing embeddings and serving recommendations in real-time

0Forward Citations (#3432376 Global)
0.0/yrCitation Velocity (#3432376 Global)
0.00Citation PageRank (#3432376 Global)
6Prior Art Cited
8Structured Claims
0Drawings / Sheets

Abstract

The disclosed embodiments describe techniques for isolating and managing models via versioning. In one embodiment, a method is disclosed comprising reading a configuration document associated with a first model; incrementing an internal write version of the configuration document; storing the internal write version in the configuration document; generating documents belonging to a second model such that respective document identifiers of the documents include a next external version a first field and the incremented internal write version in a second field; and uploading the documents to a serving system, causing the serving system to replace the first model with the second model.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 0.

Claims (8)

  1. Claim 1Independent Claim

    A method comprising: reading, by a processing device, a configuration document associated with a first model; incrementing, by the processing device, an internal write version of the configuration document; storing, by the processing device, the internal write version in the configuration document; generating, by the processing device, documents belonging to a second model such that respective document identifiers of the documents include a next external version in a first field and the incremented internal write version in a second field, the first field and second field comprising distinct sections of the document identifiers that maintain version coherence for model-specific embeddings during model transitions; and uploading, by the processing device, the documents to a serving system, causing the serving system to atomically replace the first model with the second model, the atomic replacement ensuring that inferences access embeddings belonging to a single model version.

  2. Claim 2Depends on #1

    The method of claim 1, further comprising: updating the configuration document such that an internal read version of the configuration document stores the incremented internal write version and an external version of the configuration document stores a next value.

  3. Claim 3Depends on #2

    The method of claim 2, further comprising: reading the configuration document to obtain the internal read version; and filtering accesses to the documents during an inference by the serving system such that only documents storing the read version are utilized.

  4. Claim 4Depends on #1

    The method of claim 1, wherein the documents of the second model include model-related data, the model-related data comprising updated embeddings and shared documents associated with the second model include model-agnostic data.

  5. Claim 5Depends on #1

    The method of claim 1, further comprising: detecting and discarding obsolete documents by: separating the documents into discrete sets so that a first subset documents are automatically overwritten in each model update and are not be explicitly discarded; and detecting a second subset documents that have not been overwritten by comparing an associated internal read version to a current internal read version in the configuration document.

  6. Claim 6Depends on #1

    The method of claim 1, further comprising cycling the external version of the document identifiers through a range of numbers.

  7. Claim 7Depends on #6

    The method of claim 6, wherein the range of numbers comprises 0 and 1.

  8. Claim 8Independent Claim

    A non-transitory computer-readable storage medium for tangibly storing computer program instructions capable of being executed by a computer processor, the computer program instructions defining steps of: reading a configuration document associated with a first model; incrementing an internal write version of the configuration document; storing the internal write version in the configuration document; generating documents belonging to a second model such that respective document identifiers of the documents include a next external version a first field and the incremented internal write version in a second field, the first field and second field comprising distinct sections of the document identifiers that maintain version coherence for model-specific embeddings during model transitions; and uploading the documents to a serving system, causing the serving system to atomically replace the first model with the second model, the atomic replacement ensuring that inferences access embedding

Technical Overview & Description

CROSS-REFERENCE TO RELATED APPLICATIONS The application claims priority to provisional application Ser. No. 63/188,715, filed May 14, 2021, incorporated by reference in its entirety. BACKGROUND In the era of big data, search engines and recommendation systems have adopted machine learning (ML) models with ever-increasing popularity. Certain types of ML models can consist of many vector embeddings that describe the semantic similarity of entities modeled by their proximity in vector spaces. However, embeddings of the same model are dependent. That is, for an inference to be correct, it must use embeddings belonging to a single model. Thus, the similarity of entities is only meaningful in the context of a single model. Many contemporary search systems (e.g., Vespa ™ by Yahoo!, Elasticsearch ® by Elasticsearch B.V., and Pinecone ® by Pinecone Systems, Inc.) support storage and retrieval of model embeddings. Retrieval can include returning the embedding representation of a specific entity or the result of more complex queries like nearest neighbor (NN) and top-N dot-product search. Such systems often store each embedding in a separate document. Consequently, updating a model involves updating multiple documents, which can be a lengthy operation. BRIEF SUMMARY The disclosed embodiments describe techniques for isolating and managing ML models via versioning. In one embodiment, a method includes reading a configuration document and incrementing an internal write version of the configuration document. In some embodiments, the configuration document is associated with an ML model. After incrementing the internal write version, the method includes storing updated configuration (e.g., the updated write version) in the configuration document and generating documents belonging to a new model such that respective document IDs of the documents include a next external version and the documents internally store the incremented internal write version in a dedicated field. Then, the m

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (6)

PatentTitleYearCitations