Vector database similarity retrieval

By computing inner products using subsets of components and employing projection techniques, the efficiency and accuracy of vector database similarity searches are enhanced, addressing the computational inefficiencies in large vector databases.

US20260377422A1Pending Publication Date: 2026-11-26THE BANK OF NEW YORK MELLON
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/217787
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Filing Date
2025-05-23
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

The computational power and time required for similarity searches in vector databases, particularly those with millions of vectors, each having numerous components, are excessive, leading to inefficiencies in obtaining accurate results.

Method used

Compute inner products using subsets of components of an input vector and stored vectors in a projected vector database, reducing the number of components needed for computation while maintaining accuracy through rank preservation, and utilize projection techniques like eigenvector matrices to enhance efficiency.

Benefits of technology

Substantially decreases computing power usage and time required for similarity searches while maintaining accuracy by reducing the number of components used in inner product computations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260377422A1-D00000_ABST
    Figure US20260377422A1-D00000_ABST
Patent Text Reader

Abstract

Systems, methods, and computer-readable storage media for rapid vector database similarity retrieval are disclosed. An example method by one or more processors may include receiving an input vector comprising a plurality of components; generating a projected vector based on the received input vector; selecting a subset of a plurality of components of the projected vector; selecting a subset of a plurality of components of a stored vector of a projected vector database, different from the input vector and the projected vector, wherein the projected vector database is a projected version of a vector database; computing a first inner product of the subset of the plurality of components of the projected vector and the subset of the plurality of components of the stored vector; and retrieving, from the vector database, an output vector corresponding to the stored vector based on the first inner product.
Need to check novelty before this filing date? Find Prior Art

Description

FIELD OF THE DISCLOSURE

[0001] The instant disclosure relates to vector database utilization and more particularly to systems and methods for rapid vector database similarity analysis and retrieval.BACKGROUND

[0002] Organizations and enterprises use databases to store and catalog information in various form. One example kind of database, the vector database, stores information in the form of vectors having one or more components. Vector databases may store multiple vectors, each vector including multiple components having information associated with the vector. As one example, each vector stored in a vector database may correspond to a product or device, and each component of each respective vector may correspond to a particular attribute or characteristic of the product or device. As another example, each vector stored in a vector database may correspond to a transaction, and each component of each respective vector may correspond to a particular attribute or characteristic of the transaction. Vector databases may be particularly useful in an artificial intelligence, machine learning, or large language model context, as such databases may be searched to locate vectors having a desired degree of similarity to an input vector.

[0003] One particular challenge with respect to use of vector databases is the amount of computing power and / or time required to perform similarity searches of vectors stored in the database. For example, some databases may store millions or tens of millions of vectors, with each vector having hundreds, or thousands, of components. As a complexity of a vector database increases, through increases in a number of vectors stored and a number of components in each stored vector, an amount of computing power and / or time required to obtain accurate similarity search results may increase.

[0004] Shortcomings mentioned here are only representative and are included simply to highlight that a need exists for improved vector database similarity retrieval systems. Embodiments described herein address certain shortcomings but not necessarily each and every one described here or known in the art. Furthermore, embodiments described herein may present other benefits than, and be used in other applications than, those of the shortcomings described above.SUMMARY

[0005] To enhance efficiency in retrieving similarity results from a vector database while maintaining a desired accuracy of the similarity results, inner products may be computed using subsets of components of an input vector, or a projection of an input vector, and vectors stored in a projected vector database. For example, instead of computing an inner product between an input vector having one hundred elements and a stored vector of a vector database having one hundred elements, an inner product may be computed for a subset of fifty or ten components of a projection of the input vector and fifty or ten components of a projection of the stored vector of the vector database. A reduction in a number of vector components used to compute an inner product may reduce an amount of computing power needed to compute the inner product. Performing a similarity search of a vector database may include computing inner products of an input vector and hundreds or thousands of stored vectors, and reducing a complexity of each inner power computation can result in a substantial decrease in compute power usage and / or an amount of time needed to perform the similarity search. A number of components of vectors to be used in computing inner products may be customized based on a desired rank preservation, allowing a threshold accuracy of results to be maintained while increasing computing efficiency. After the inner products are computed, a predetermined number of vectors having a greatest similarity to the input vector, as indicated by computed inner products, may be retrieved from the vector database for use in characterizing and / or analyzing the input vector.

[0006] A method for vector analysis may include receiving, by one or more processors, an input vector comprising a plurality of components. The method may further include generating, by the one or more processors, a projected vector based on the received input vector. The method may further include selecting, by the one or more processors, a subset of a plurality of components of the projected vector and selecting, by the one or more processors, a subset of a plurality of components of a stored vector of a projected vector database. The stored vector may be different from the input vector and the projected vector. The projected vector database may, for example, be a projected version of a vector database, such as a factorized version of the vector database. The method may further include computing, by the one or more processors, a first inner product of the subset of the plurality of components of the projected vector and the subset of the plurality of components of the stored vector. The method may further include retrieving, by the one or more processors from the vector database, an output vector corresponding to the stored vector based on the first inner product. For example, the one or more processors may determine that the computed inner product exceeds a threshold value or is in a top percentage or number of computed inner products for the input vector, and the vector may be retrieved from the vector database based on such a determination.

[0007] In some examples, multiple inner products may be computed of the subset of components of the projected vector and subsets of components of stored vectors, such as for a similarity search. For example, the method may further include selecting, by the one or more processors, one or more additional subsets of one or more additional pluralities of components of one or more additional stored vectors of the projected vector database. The method may then include computing, by the one or more processors, a first set of one or more additional inner products of the subset of the plurality of components of the projected vector and the respective one or more additional subsets of the one or more additional pluralities of components of the one or more additional stored vectors. The method may then include retrieving, by the one or more processors from the vector database, a first set of one or more additional output vectors corresponding to one or more of the one or more additional stored vectors based on the first set of one or more additional inner products. Thus, inner products may be computed for the subset of components of the input vector and multiple subsets of components of multiple stored vectors, and vectors may be retrieved from the vector database based on the computed inner products. For example, a particular number or percentage of output vectors corresponding to the highest computed inner product values may be retrieved from the vector database.

[0008] In some examples, inner product values may be computed based on full sets of components of vectors in addition to subsets of components of vectors. For example, the method may include computing, by the one or more processors, a second set of one or more inner products of the input vector and one or more of the output vector and the one or more additional output vectors of the vector database based, at least in part, on one or more of the first inner product and the first set of one or more additional inner products and retrieving, by the one or more processors from the vector database, a second set of one or more of the output vector and the one or more additional output vectors based on the second set of one or more additional inner products.

[0009] In some examples, the method may include generating, by the one or more processors, the projected vector database by performing one or more projection operations on the vector database.

[0010] In some examples, a desired rank preservation, processing capacity, and / or time may be used to determine a number of components of vectors for use in computing an inner product. For example, the method may include determining, by the one or more processors, a number of vector components for computing the first inner product based, at least in part, on a rank preservation for the first inner product, wherein selecting the subset of the plurality of components of the projected vector is performed based, at least in part, on the number of vector components and selecting the subset of the plurality of components of the stored vector is performed based, at least in part, on the number of vector components. In some examples, the number of vector components may be further determined based, at least in part, on at least one of a processing capacity of the one or more processors or a timing requirement. In some examples, the rank preservation may be an order preservation of the retrieval elements.

[0011] In some examples, the input vector may be associated with a financial transaction and the plurality of components of the input vector are associated with a plurality of attributes of the financial transaction, and wherein the vector database includes a plurality of vectors associated with a plurality of financial transactions. In some examples, the method may further include determining, by the one or more processors, a likelihood that the transaction is a fraudulent transaction based on the retrieved vector of the vector database.

[0012] In some examples, an apparatus may include a memory and one or more processors communicatively coupled to the memory and configured to perform the operations described herein. A computer program product may include a non-transitory computer-readable medium storing instructions that, when executed by one or more processors, cause the one or more processors to perform the operations described herein.

[0013] As used herein, the term “coupled” means connected, although not necessarily directly, and not necessarily mechanically; two items that are “coupled” may be unitary with each other. The terms “a” and “an” are defined as one or more unless this disclosure explicitly requires otherwise. The term “substantially” is defined as largely but not necessarily wholly what is specified (and includes what is specified; e.g., substantially parallel includes parallel), as understood by a person of ordinary skill in the art.

[0014] The phrase “and / or” means “and” or “or”. To illustrate, A, B, and / or C includes: A alone, B alone, C alone, a combination of A and B, a combination of A and C, a combination of B and C, or a combination of A, B, and C. In other words, “and / or” operates as an inclusive or.

[0015] Further, a device or system that is configured in a certain way is configured in at least that way, but it can also be configured in other ways than those specifically described.

[0016] The terms “comprise” (and any form of comprise, such as “comprises” and “comprising”), “have” (and any form of have, such as “has” and “having”), and “include” (and any form of include, such as “includes” and “including”) are open-ended linking verbs. As a result, an apparatus or system that “comprises,”“has,” or “includes” one or more elements possesses those one or more elements, but is not limited to possessing only those elements. Likewise, a method that “comprises,”“has,” or “includes,” one or more steps possesses those one or more steps, but is not limited to possessing only those one or more steps.

[0017] The foregoing has outlined rather broadly certain features and technical advantages of embodiments of the present invention in order that the detailed description that follows may be better understood. Additional features and advantages will be described hereinafter that form the subject of the claims of the invention. It should be appreciated by those having ordinary skill in the art that the conception and specific embodiment disclosed may be readily utilized as a basis for modifying or designing other structures for carrying out the same or similar purposes. It should also be realized by those having ordinary skill in the art that such equivalent constructions do not depart from the spirit and scope of the invention as set forth in the appended claims. Additional features will be better understood from the following description when considered in connection with the accompanying figures. It is to be expressly understood, however, that each of the figures is provided for the purpose of illustration and description only and is not intended to limit the present invention.BRIEF DESCRIPTION OF THE DRAWINGS

[0018] For a more complete understanding of the disclosed system and methods, reference is now made to the following descriptions taken in conjunction with the accompanying drawings.

[0019] FIG. 1 is a block diagram illustrating a vector database query system according to some embodiments of the disclosure.

[0020] FIG. 2 is a block diagram illustrating a system for preprocessing of a vector database according to some embodiments of the disclosure.

[0021] FIG. 3 is a block diagram illustrating a system for random sampling and preprocessing of a vector database according to some embodiments of the disclosure.

[0022] FIG. 4 is a block diagram illustrating a system for single stage rapid vector database similarity retrieval according to some embodiments of the disclosure.

[0023] FIG. 5 is a block diagram illustrating a system for dual stage rapid vector database similarity retrieval according to some embodiments of the disclosure.

[0024] FIG. 6 is a flow chart of an example method for rapid vector database similarity retrieval according to some embodiments of the disclosure.

[0025] FIG. 7 is a flow chart of an example method for rapid vector database similarity retrieval according to some embodiments of the disclosure.

[0026] FIG. 8 is a flow chart of an example method for rapid vector database similarity retrieval according to some embodiments of the disclosure.

[0027] FIG. 9 is a flow chart of an example method for rapid vector database similarity retrieval according to some embodiments of the disclosure.

[0028] FIG. 10 is a graph showing rank preservation for different numbers of vector components used for inner product computation according to some embodiments of the disclosure.

[0029] FIG. 11 is a graph showing vector database similarity retrieval time for different modes of inner product computation according to some embodiments of the disclosure.

[0030] FIG. 12 is a graph showing accuracy in retrieval of vectors having a highest degree of similarity based on a number of vectors retrieved for different modes of inner product computation according to some embodiments of the disclosure.

[0031] FIG. 13 is a graph showing accuracy in retrieval of vectors having a highest degree of similarity based on a number of vectors retrieved for different modes of inner product computation according to some embodiments of the disclosure.

[0032] FIG. 14 is a block diagram of an example computing device according to some embodiments of the disclosure.DETAILED DESCRIPTION

[0033] Vector databases allow for storage of information in vectors, with each including one or more components. Such databases may be of particular use in a machine learning or artificial intelligence context, where vectors stored in a database may be retrieved based on similarity to an input vector, such as in a similarity search operation. An example vector database similarity retrieval system 100 is shown in FIG. 1. A database 104 may store multiple vectors, with each vector having multiple components. Vector components may also be referred to as dimensions. Examples of vectors include vectors corresponding to manufacturing components, where each vector includes multiple attributes of a particular manufacturing component, vectors corresponding to financial transactions, where each vector includes multiple attributes of a particular financial transaction, vectors corresponding to software inventory, where each vector includes data corresponding to a particular item of software (e.g., version), and other vectors. The system 100 may be implemented by one or more computing devices, such as one or more processors and memories. A query 102, also referred to herein as an input vector, may be received. For example, the query 102 may be input by a user, received from a database, received from a remote computing device, or otherwise received. The vector database 104 may be searched for vectors that are similar to the query 102. In some examples, a particular number of vectors having a closest similarity to the query 102, such as a top K nearest results 106 with K being a number of results, may be retrieved from the database 104. The retrieved results may be used for analysis of the query 102. In some examples, the top K nearest results 106 may be determined by computing inner products of the query 102 and one or more vectors stored in the database 104. The top K nearest results 106 may be the K vectors of the database having the highest computed inner product values. As one particular example, the database 104 may be a database of N vectors having D dimensions or components. For example, in some cases N may be equal to up to or in excess of one thousand, and D may be equal to up to or in excess of one thousand. Performing a similarity analysis for the query 102 and the vectors of the vector database 104 by computing inner products may include performing N times D scalar multiplications and N times D scalar additions. Performing such a number of multiplication and addition operations may be computing resource, power, and time intensive. Reducing a number of vector components for inner product computation and / or preprocessing the database 104 may reduce a number of scalar multiplications and additions required to determine the top K nearest results 106.

[0034] Preprocessing a vector database to generate a projected vector database for similarity retrieval may enhance the efficiency of a similarity retrieval process. The projected vector database may also be referred to herein as a projected version of the vector database. An example system 200 for vector database preprocessing is shown in FIG. 2. The system 200 may be implemented by one or more computing devices, such as one or more processors and memories. An initial vector database 202 may include multiple vectors having multiple components. For example, the database 202 may include N vectors having D dimensions, forming an N×D matrix. A matrix factorization module 204 may factorize the N×D matrix of the vector database 202 to obtain the eigenvectors and eigenvalues (U, \Sigma) of the vectors of the database 202, generating an eigenvector matrix 206 of the database 202. The eigenvector matrix 206 may have dimensions D×D. As one example, the matrix factorization module 204 may perform a singular value decomposition on the database 202 to generate the eigenvector matrix 206. The database 202 may then be multiplied by the eigenvector matrix 206 to generate the projected database 208, which may also be referred to as a coefficient database. For example, the projected database 208 may include embedded vectors of X′=UX, with X′ being the vector of the projected database 208, U being the eigenvector, and X being the vector of the database 202. An inner product between any two vectors of the projected database 208 may be equal to the inner product of the coefficients of the vectors when projected into the space spanned by the eigenvector matrix 206. Furthermore, the energy of the coefficients may be concentrated on the initial coefficients, allowing for estimation of a true inner product value between two vectors by computing the inner product of the first K coefficients or components of the two vectors when projected in the eigenvector space spanned by U.

[0035] In some examples, such as when it would be infeasible to perform matrix factorization on an entire database to generate a projected database, random sampling of a database may be used to simplify the computational complexity of generating a projected database. An example system 300 for vector database random sampling and preprocessing is shown in FIG. 3. The system 300 may be implemented by one or more computing devices, such as one or more processors and memories. A database 302, similar to the vector database 202, may store multiple vectors having multiple components. A random sampling module 304 may perform a random sampling of the database 302 to generate a sampled database 306. A matrix factorization module 308 may factorize the sampled database 306, in a manner similar to the factorization of the database 202 by the matrix factorization module 204 of FIG. 2, to generate an approximate eigenvector matrix 310. The database 302 may be multiplied with the approximate eigenvector matrix 310 to generate the projected database 312. Thus, random sampling may be used to reduce an amount of computing power required to generate a projected database 312 based on a database 302.

[0036] A projected database, such as described with respect to FIGS. 2 and 3, may be used for performing rapid vector database similarity retrieval. A block diagram illustrating a system 400 for single stage rapid vector database similarity retrieval is shown in FIG. 4. The system 400 may be implemented by one or more computing devices, such as one or more processors and memories. The system 400 of FIG. 4 may be referred to as a single stage rapid vector database similarity retrieval system and may allow for performing an approximate similarity search. The single stage system shown in FIG. 4 may include functionality to compute an efficient low-rank approximation of an inner product. A query 402 may be received. The query 402 may, for example, include an input vector. The query 402 may be input by a user, received from a remote computing system, or otherwise received by system 400. Prior to or contemporaneous with the receipt of the query 402, the database 408 may be preprocessed, such as described with respect to FIGS. 2 and 3, to generate the projected database 406.

[0037] In some examples, the system 400 may compute a number of vector parameters to be retained for computation of inner product values between the query 402, or the projected query 404, and vectors of the projected database 406. For example, the input query 402, or the projected query 404, may be a vector including 100 components, and each vector of the projected database 406 may include 100 components, or a different number of components. The system 400 may determine a number of components of the query 402, or the projected query 404, and a number of components of vectors of the projected database 406 to use when computing inner products. For example, the system 400 may determine to use 50 components of the query 402 and 50 components of each vector of the projected database 406, instead of the full 100 components of each, to compute inner products. In some examples, a number of components for computing inner products may be determined based on a rank preservation requirement. As one particular example, a minimum number of vector components C to be used in inner product computation for maintaining a particular rank preservation value may be determined. In some examples, the number of vector components to be used for inner product computation may be estimated such that the inner products of the query and vectors of the projected database 406 and inner products of a subset of components of the query and subsets of components of vectors of the projected database 406 are rank preserving up to 1-epsilon, such that the ranking of inner products in the reduced space, with the subset of components, maps into the ranking of inner products in the original space, with the full set of vector components. Thus, a number of components of the query 402, or the projected query 404, and vectors of the projected database 406 may be computed to find a minimum number of components that will allow for maintaining a requested rank preservation when computing inner products. Such a number may, for example, be estimated directly from a combination of the database 408 and the projected database 406, where an expected value of rank preservation of inner products can be estimated. An example graph 1000 showing a computed rank preservation 1002 for different numbers of components is shown in FIG. 10. For example, the Y-axis may represent a fraction of rank preservation from estimated and exact inner products, while the X-axis may represent a number of components maintained for inner product computation. As shown in the graph 1000, the number of components used for inner product computation can be reduced substantially without substantially reducing the rank preservation.

[0038] After a number of components for use in computing inner products is determined, the query 402 may be used to generate a projected query 404. For example, the query 402 may be mapped into the coefficient space of the projected database 406 to generate the projected query 404. As one particular example, the projected query 404 may be the product of an eigenvector matrix of the projected database 406, referenced with respect to FIGS. 2 and 3, and the query 402. Such projection may require D2 multiplication operations and D2−D addition operations, where D is the dimension of the vectors of the projected database 406 and / or the query 402.

[0039] The system 400 may compute one or more inner products of the projected query 404 and the vectors of the projected database 406. For example, the system 400 may compute one or more inner products between a subset of components of the projected query 404 and subsets of components of the vectors of the projected database 406, based on a number of components determined based on a particular rank preservation. In particular, the inner product may be computed between the first C components of the projected query 404, where C is computed based on a particular rank preservation, and the first C components of one or more components of the projected database 406. Such computation may, for example, include N×P multiplication operations and N×P addition operations, where N is the number of vectors in the projected database 406 and P is the number of components of the vectors used for inner product computation. Thus, fewer multiplication and addition operations may be required for inner product computation when only subsets of components of the projected query 402 and the vectors of the projected database 406 are used, where the subsets are less than all of the components of the projected query 404 and the vectors of the projected database 406.

[0040] The computed inner products may be used to determine an approximate top K nearest results 410. For example, a particular number, K, of vectors of the projected database corresponding to the greatest inner product values may be determined, and the corresponding vectors may be retrieved from the projected database 406. Alternatively or additionally, the approximate top K nearest results 410 may include vectors of the database 408 corresponding to the vectors of the projected database 406 that correspond to the greatest inner product values. Thus, the K closest entries of the database 408 may be retrieved by ordering the inner products of the reduced coefficient space of the projected database 406 in descending order and selecting the top K entries.

[0041] A block diagram illustrating a system 500 for dual stage rapid vector database similarity retrieval is shown in FIG. 5. The system 500 of FIG. 5 may be referred to as a dual stage rapid vector database similarity retrieval system and may allow for performing an approximate similarity search. The dual stage system 500 may differ from the single stage system 400 in that the dual stage may include functionality for an additional step of computing inner product values for a full set of components of a query and full sets of components of one or more vectors of a database, the vectors of the database selected for inner product computation using full sets of components based on inner products of subsets of components computed as described with respect to the system 400. For example, similar to receipt of the query 402 and generation of the projected query 404 of FIG. 4, the system 500 may be configured to receive a query 502 and generate a projected query 504. In some examples, the system 500 may also be configured to generate a projected database 506 based on a database 508 and to determine a number of components of the projected query 504 and vectors of the projected database 506 for inner product computation, similar to the configuration described with respect to the system 400 ofFIG. 4.

[0042] The system 500 may include similar functionality to the system 400 of FIG. 4. However, instead of generation of the approximate top K nearest results 410 of FIG. 4 based on inner products computed using subsets of vector components, the dual stage process of FIG. 5 may generate an approximate top M vector database 510, retrieving a predetermined number of vectors of the database 508 corresponding to the greatest inner product values computed based on the subset of components of the projected query 504, or the query 502, and the subsets of components of vectors of the projected database 506. Thus, for example, the approximate top M vector database 510 may include M vectors corresponding to the top K nearest results 410 of FIG. 4. The system 500 may perform a second stage of inner product computation. For example, inner products may be computed for the full vectors of the approximate top M vector database 510, including all components, and the full input query 502, including all components. That is, one or more vectors of the database 508 may be selected based on the greatest inner product values computed for subsets of components of the projected query 504 and subsets of components of vectors of the projected database, and full inner products may be computed for the input query 502 and the selected vectors of the database 508. Such computation may generate exact inner products for the query 502 and the selected vectors of the database 508. The M candidates of the approximate top M vector database 510 may be sorted based on the computed inner products of the second stage of inner product computation, such as high to low, and a subset of M candidates, such as K of the M candidates, may be retrieved from the database 508, or from the database 510, to provide the approximate top K nearest results 512 to the query 502. Thus, the K vectors of the M candidates having a closest similarity to the query 502 may be retrieved from the database 508.

[0043] A flow chart of an example method 600 for rapid vector database similarity retrieval is shown in FIG. 6. One or more operations of the method 600 may be performed by any of systems 200, 300, 400, and 500 of FIGS. 2-5 and or by the processor(s) 1402 of FIG. 14. The method 600 may begin, at block 602, with receiving, by one or more processors, an input vector comprising a plurality of components. The input vector may, for example, be a query, as described with respect to FIGS. 4-5. In some examples, the input vector may be associated with a financial transaction, and the plurality of components of the input vector may be associated with a plurality of attributes of the financial transaction. As another example, the input vector may be associated with a healthcare record or a patient, and the one or more components of the vector may be associated with one or more attributes of the healthcare record or patient. As another example, the input vector may be associated with a manufacturing component, and the one or more components of the vector may be associated with one or more attributes of the manufacturing component. In some examples, the input vector may be received from a user, from a database, from a remote computing device, or from another source.

[0044] At block 604, the one or more processors may generate a projected vector based on the received input vector. For example, the projected vector may correspond to the projected query described with respect to FIGS. 4-5. The projected vector may also be referred to herein as a projected version of the input vector. The projected vector may also be referred to herein as a projected query, and the input vector may be referred to herein as a query, such as described with respect to FIGS. 4-5. In some examples, generating the projected vector may include mapping the input vector into a coefficient space of a projected vector database. For example, generating the projected vector based on the input vector may include mapping the input vector into a coefficient space of a projected database. As one particular example, the projected vector may be the product of an eigenvector matrix of a projected database, such as referenced with respect to FIGS. 2 and 3, and the input vector. Such projection may require D2 multiplication operations and D2−D addition operations, where D is the dimension of the vectors of the projected database and / or the input vector

[0045] At block 606, the one or more processors may select a subset of a plurality of components of the projected vector for computing a first inner product. For example, the projected vector may include one hundred components, and a subset of fifty components of the projected vector may be selected for computation of the inner product. The subset may be fewer than all components of the projected vector.

[0046] At block 608, the one or more processors may select a subset of a plurality of components of a stored vector of a projected vector database. The stored vector may be different from the input vector and the projected vector. The projected vector database may be a projected version of the vector database. The projected version of the vector database may, for example, be a projected database generated by performing a projection operation on a vector database, as described with respect to FIG. 2 or FIG. 3. As one example, the vector of the projected vector database may include one hundred components, and a subset of fifty components of the vector may be selected for computation of the inner product. The subset may be fewer than all components of the stored vector. In some examples, the vectors of the projected vector database may have the same number of components as the input vector and / or the projected vector, and a corresponding subset of a same number of components may be selected for each of the projected vector and the stored vector. Similar to the input vectors described above with respect to block 602, the vectors of the vector database may correspond to financial transactions, health records, patient records, component records, or other data, and components of the vectors may correspond to particular attributes of the financial transactions, health records, patient records, component records, or other data. In some examples, a format of the input vector, including a number and organization of components of the input vector, may match a format of vectors of the vector database or the projected vector database.

[0047] At block 610, the one or more processors may compute the first inner product of the subset of the plurality of components of the projected vector and the subset of the plurality of components of the stored vector. In some examples, blocks 608 and 610 may be repeated for multiple stored vectors of the projected vector database, such as described with respect to FIG. 7, for computation of multiple inner products of the subset of the plurality of components of the projected vector and subsets of pluralities of components of stored vectors.

[0048] At block 612, the one or more processors may retrieve, from the vector database, an output vector corresponding to the stored vector based on the first inner product. For example, if the inner product value is above a threshold value, the one or more processors may retrieve the corresponding vector from the vector database. In some examples, the one or more processors may retrieve the stored projected vector from the projected vector database in place of or in addition to the output vector. In some examples, the one or more processors may retrieve the output vector based on the inner product value being one of K highest inner product values computed for the subset of the plurality of components of the projected vector and subsets of pluralities of components of stored vectors, such as described with respect to FIG. 7. If the inner product computed at block 608 is not one of the K highest inner product values, then the corresponding vector may not be retrieved. Thus, a vector may be retrieved from a vector database based on a degree of similarity between the vector and an input vector, determined in accordance with a computed approximation of an inner product of the vector and the input vector.

[0049] A flow chart of an example method 700 for rapid vector database similarity retrieval is shown in FIG. 7. One or more operations of the method 700 may be performed by any of systems 200, 300, 400, and 500 of FIGS. 2-5 and or by the processor(s) 1402 of FIG. 14. The operations of FIG. 7 may be performed along with one or more operations of the method 600 of FIG. 6. The method 700 may begin, at block 702, with generating, by one or more processors, a projected vector database by performing one or more projection operations on a vector database. Such generation may, for example, include database preprocessing operations described with respect to FIGS. 2-3. Such generation may be performed prior to receipt of an input vector, as described at block 602 of FIG. 6.

[0050] At block 704, the one or more processors may select one or more additional subsets of one or more additional pluralities of components of one or more additional stored vectors of the projected vector database. For example, multiple stored vectors may be selected for inner product computation. In some examples, the additional subsets of the additional pluralities of components may correspond to the subset of the plurality of components of the stored vector selected at block 606 of FIG. 6. Thus corresponding components subsets may be used for computation of inner products for multiple stored vectors.

[0051] At block 706, the one or more processors may compute a first set of one or more additional inner products of the subset of the plurality of components of the projected vector and the respective one or more additional subsets of the one or more additional pluralities of components of the one or more additional stored vectors. For example, computation of inner product values may be performed for multiple subsets of components of vectors of the projected vector database.

[0052] At block 708, the one or more processors may retrieve, from the vector database, a first set of one or more additional output vectors corresponding to one or more of the one or more additional stored vectors based on the first set of one or more additional inner products. For example, a predetermined number of vectors, K, corresponding to the greatest computed inner product values may be retrieved at blocks 610 and 708. In some examples the additional stored vectors may be retrieved from the projected vector database, in addition to or in place of, retrieval of the additional stored vectors from the vector database.

[0053] In some examples, a dual-stage inner product computation process may be used for rapid vector database similarity retrieval. A flow chart of an example method 800 for rapid vector database similarity retrieval is shown in FIG. 8. One or more operations of the method 800 may be performed by any of systems 200, 300, 400, and 500 of FIGS. 2-5 and or by the processor(s) 1402 of FIG. 14. The operations of FIG. 8 may be performed along with one or more operations of the method 600 of FIG. 6 and / or the method 700 of FIG. 7. The method 800 of FIG. 8 may begin at block 802 with computing, by the one or more processors, a second set of one or more inner products of the input vector and one or more of the output vector and the one or more additional output vectors of the vector database based, at least in part, on one or more of the first inner product and the first set of one or more additional inner products. Such computation may, for example, correspond to the second stage of the dual-stage rapid vector database similarity retrieval system described with respect to FIG. 5. One or more of the output vector and the one or more additional output vectors may be selected for the second stage inner product computation. Such selection may be performed based on the inner products computed for the projected vector and the stored vectors of the projected vector database. For example, a predetermined number of stored vectors of the vector database corresponding to the greatest computed inner products may be selected, and vectors of the vector database corresponding to the selected stored vectors of the projected vector database may be used for computation of inner products with the input vector. Full sets of components of the vectors of the vector database and the input vector may be used for computation of such inner products. The second set of one or more inner products may be full inner products, rather than approximated inner products, as such inner products may be computed using full sets of components of the input vector and the selected vectors of the vector database. At block 804, the one or more processors may retrieve a second set of one or more of the output vector and the one or more additional output vectors based on the second set of one or more additional inner products. For example, a predetermined number of the vectors for which second stage inner products are computed, having the greatest second stage inner product values, may be selected and retrieved from the vector database based on the second stage inner product values. Thus, a set of vectors determined based on approximate inner product values computed using subsets of components of projected vectors of a projected vector database and a projected input vector may be further narrowed through computation of inner product values using the full set of components of the input vector and the full sets of components of vectors of the vector database.

[0054] In some examples, a number of vector components for computing inner product values may be determined based on a predetermined rank preservation for the inner product values. A flow chart of an example method 900 for rapid vector database similarity retrieval is shown in FIG. 9. One or more operations of the method 900 may be performed by any of systems 200, 300, 400, and 500 of FIGS. 2-5 and or by the processor(s) 1402 of FIG. 14. The operations of FIG. 9 may be performed along with one or more operations of the method 600 of FIG. 6, the method 700 of FIG. 7, and / or the method 800 of FIG. 8. The method 900 of FIG. 9 may begin at block 902 with determining, by the one or more processors, a number of vector components for computing the first inner product based, at least in part, on a rank preservation for the first inner product, wherein selecting the subset of the plurality of components of the projected vector is performed based, at least in part, on the number of vector components and selecting the subset of the plurality of components of the stored vector is performed based, at least in part, on the number of vector components. Thus the selections of subsets of components at blocks 606 and 608 of FIG. 6 and at block 704 of FIG. 7 may be performed based on the number determined at block 902 of FIG. 9. Selecting a number of vector components for computing inner products based on a rank preservation may allow for accuracy in selection of a number of vectors having a greatest similarity to an input vector while reducing the amount of compute power required for computation of the inner products by reducing the number of vector components used in inner product computation. In some examples, the number of vector components may be further determined based on a processing capacity of the one or more processors or a timing requirement. Thus, accuracy of the computed inner products may be balanced with other competing concerns such as a time required for similarity retrieval and computing power required for similarity retrieval. The rank preservation may, for example, be an order preservation of the retrieval elements. For example, a rank preservation of 99% may correspond to a comparison of closeness in a reduced space (e.g., A is closer to B than A is closer to C) that holds at least 99% of the times to the comparison of the original space.

[0055] At block 904, the one or more processors may determine a likelihood that a transaction, corresponding to input vector, is a fraudulent transaction based on the retrieved vector from the vector database. For example, if the input vector corresponds to a financial transaction and the one or more vectors of the vector database correspond to financial transactions, a vector retrieved based on a computed inner product showing similarity between the input vector and the retrieved vector may be compared with the input vector. If the retrieved vector corresponds to a fraudulent transaction, or if multiple retrieved vectors correspond to fraudulent transactions, a likelihood that the transaction corresponding to the input vector is fraudulent may be determined to be high. Thus, a similarity of the input vector to one or more stored vectors may be used to estimate or determine one or more attributes of the input vector.

[0056] An example graph 1100 showing vector database similarity retrieval time for different modes of inner product computation is shown in FIG. 11. The Y-axis may represent an amount of time required for similarity retrieval. The X-axis may represent a number of runs of a similarity retrieval process performed. The first plot 1102 represents an amount of time required for similarity retrieval with full inner product computation, where a full set of components of an input vector and a full set of components of one or more vectors of a vector database are used for inner product computation, over a number of runs. Such computation may require a greatest amount of time, between 2 and 2.5 seconds in this example. The second plot 1104 represents an amount of time required for double stage rapid similarity retrieval, such as described with respect to FIG. 5. For the second plot 1104, a high number is selected for the number vectors for the second stage inner product computation, providing a greater degree of accuracy. Such computation may require substantially less time than the full inner product computation of plot 1102, at around 0.5 seconds in this example. The third plot 1106 represents an amount of time required for double stage rapid similarity retrieval, such as described with respect to FIG. 5. For the third plot 1106, a low number is selected for the number of vectors for the second stage inner product computation, providing a lesser degree of accuracy, but enhanced efficiency. Such computation may require substantially less time than the full inner product computation of plot 1102, and less time than the double stage wide inner product computation of plot 1104, at around 0.3 seconds in this example. The fourth plot 1108 represents an amount of time required for single stage rapid similarity retrieval, such as described with respect to FIG. 4. Such computation may require substantially less time than the full inner product computation of plot 1102, and less time than the double stage wide inner product computation of plot 1104 or the double stage inner product computation of plot 1106, at around 0.2 seconds in this example.

[0057] An example graph 1200 showing accuracy in retrieval of vectors having a highest degree of similarity based on a number of vectors retrieved for different modes of inner product computation is shown in FIG. 12. The Y-axis may represent an average fraction of correct vectors retrieved in a similarity analysis, and the X-axis may represent a number of vectors, TOP-K, retrieved in the similarity analysis. The first plot 1202 represents an accuracy of the vectors retrieved when a full similarity analysis is performed, with an average fraction of correct vectors retrieved at or near 100% for any value of TOP-K. The second plot 1204 represents an accuracy of the vectors retrieved when a double stage rapid similarity retrieval is performed, such as described with respect to FIG. 5. For the second plot 1204, a high number is selected for the number vectors for the second stage inner product computation, providing a greater degree of accuracy. Such computation may result in accuracy close to the full similarity analysis 1202, even as TOP-K increases. The third plot 1206 represents an accuracy of the vectors retrieved when double stage rapid similarity retrieval is performed, such as described with respect to FIG. 5. For the third plot 1206, a low number is selected for the number of vectors for the second stage inner product computation, providing a lesser degree of accuracy but enhanced efficiency. Such computation may result in reduced accuracy over the computation of plot 1202, and reduced accuracy over the double stage wide inner product computation of plot 1204. The fourth plot 1208 represents an accuracy of the vectors retrieved when single stage rapid similarity retrieval is performed, such as described with respect to FIG. 4. Such computation may result in reduced accuracy over the full inner product computation of plot 1202, the double stage wide inner product computation of plot 1204, and the double stage inner product computation of plot 1206.

[0058] An example graph 1300 showing accuracy in retrieval of vectors having a highest degree of similarity based on a number of vectors retrieved for different modes of inner product computation is shown in FIG. 13. The graph 1300 may show accuracy in absolute terms, in contrast to the relative / percentage-based accuracy of the graph 1200 of FIG. 12. The Y-axis may represent an average number of correct vectors retrieved in a similarity analysis, and the X-axis may represent a number of vectors, TOP-K, retrieved in the similarity analysis. The first plot 1302 represents an accuracy of the vectors retrieved when a full similarity analysis is performed, with an average number of correct vectors retrieved being equal to TOP-K. The second plot 1304 represents an accuracy of the vectors retrieved when a double stage rapid similarity retrieval is performed, such as described with respect to FIG. 5. For the second plot 1304, a high number is selected for the number vectors for the second stage inner product computation, providing a greater degree of accuracy. Such computation may result in accuracy close to the full similarity analysis 1302, even as TOP-K increases. The third plot 1306 represents an accuracy of the vectors retrieved when double stage rapid similarity retrieval is performed, such as described with respect to FIG. 5. For the third plot 1306, a low number is selected for the number of vectors for the second stage inner product computation, providing a lesser degree of accuracy but enhanced efficiency. Such computation may result in reduced accuracy over the computation of plot 1302, and reduced accuracy over the double stage wide inner product computation of plot 1304. The fourth plot 1308 represents an accuracy of the vectors retrieved when single stage rapid similarity retrieval is performed, such as described with respect to FIG. 4. Such computation may result in reduced accuracy over the full inner product computation of plot 1302, the double stage wide inner product computation of plot 1304, and the double stage inner product computation of plot 1306.

[0059] A block diagram illustrating an example computing device 1400 is shown in FIG. 14. The computing device 1400 may, for example, be configured to implement part or all of the systems shown in FIGS. 1-5 and to perform one or more operations described with respect to FIGS. 6-9. In an example, the functionality described with respect to the device 1400 may be implemented via a cloud, via a server, or via another type of computing device or multiple types of computing devices. The device 1400 includes one or more processors 1402, a memory 1404, one or more communication interfaces 1410, and one or more input / output (I / O) devices 1412. Each of the one or more processors 1402 may be a central processing unit (CPU), a graphics processing unit (GPU), or other computing circuitry (e.g., a microcontroller, one or more application specific integrated circuits (ASICs), and the like) and each processor 1402 may have one or more processing cores. The memory 1404 may include read only memory (ROM) devices, random access memory (RAM) devices, one or more hard disk drives (HDDs), flash memory devices, solid state drives (SSDs), network attached storage (NAS) devices, other devices configured to store data in a persistent or non-persistent state, or a combination of different memory devices. The memory 1404 may store instructions 1406 that, when executed by the one or more processors 1402, cause the one or more processors 1402 to perform the operations described with reference to FIGS. 1-9. The one or more communication interfaces 1410 may be configured to communicatively couple the device 1400 to one or more networks via wired or wireless communication links according to one or more communication protocols or standards (e.g., an Ethernet protocol, a transmission control protocol / internet protocol (TCP / IP), an institute of electrical and electronics engineers (IEEE) 802.11 protocol, and an IEEE 802.16 protocol, a 3rd Generation (3G) communication standard, a 4th Generation (4G) / long term evolution (LTE) communication standard, a 5th Generation (5G) communication standard, and the like). The I / O devices 1412 may include one or more display devices, a keyboard, a stylus, one or more touchscreens, a mouse, a trackpad, a camera, one or more speakers, haptic feedback devices, or other types of devices that enable a user to receive information from or provide information to the device 1400.

[0060] The schematic or flow chart diagram FIGS. 6-9 are generally set forth as logical flow chart diagrams. As such, the depicted order and labeled steps are indicative of examples of the disclosed method. Other steps and methods may be conceived that are equivalent in function, logic, or effect to one or more steps, or portions thereof, of the illustrated method. Additionally, the format and symbols employed are provided to explain the logical steps of the method and are understood not to limit the scope of the method. Although various arrow types and line types may be employed in the flow chart diagram, they are understood not to limit the scope of the corresponding method. Indeed, some arrows or other connectors may be used to indicate only the logical flow of the method. For instance, an arrow may indicate a waiting or monitoring period of unspecified duration between enumerated steps of the depicted method. Additionally, the order in which a particular method occurs may or may not strictly adhere to the order of the corresponding steps shown.

[0061] Machine learning models, as described herein, may include logistic regression techniques, linear discriminant analysis, linear regression analysis, artificial neural networks, machine learning classifier algorithms, or classification / regression trees in some embodiments. In various other embodiments, machine learning systems may employ Naive Bayes predictive modeling analysis of several varieties, learning vector quantization artificial neural network algorithms, or implementation of boosting algorithms such as Adaboost or stochastic gradient boosting systems for iteratively updating weighting to train a machine learning classifier to determine a relationship between an influencing attribute, such as received device data, and a system, such as an environment or particular user, and / or a degree to which such an influencing attribute affects the outcome of such a system or determination of environment.

[0062] If implemented in firmware and / or software, functions described above may be stored as one or more instructions or code on a computer-readable medium. Examples include non-transitory computer-readable media encoded with a data structure and computer-readable media encoded with a computer program. Computer-readable media includes physical computer storage media. A storage medium may be any available medium that can be accessed by a computer. By way of example, and not limitation, such computer-readable media can comprise random access memory (RAM), read-only memory (ROM), electrically-erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store desired program code in the form of instructions or data structures and that can be accessed by a computer. Disk and disc includes compact discs (CD), laser discs, optical discs, digital versatile discs (DVD), floppy disks and Blu-ray discs. Generally, disks reproduce data magnetically, and discs reproduce data optically. Combinations of the above should also be included within the scope of computer-readable media.

[0063] In addition to storage on computer readable medium, instructions and / or data may be provided as signals on transmission media included in a communication apparatus. For example, a communication apparatus may include a transceiver having signals indicative of instructions and data. The instructions and data are configured to cause one or more processors to implement the functions outlined in the claims.Clause 1

[0064] A method, comprising: receiving, by one or more processors, an input vector comprising a plurality of components; generating, by the one or more processors, a projected vector based on the received input vector; selecting, by the one or more processors, a subset of a plurality of components of the projected vector; selecting, by the one or more processors, a subset of a plurality of components of a stored vector of a projected vector database, different from the input vector and the projected vector, wherein the projected vector database is a projected version of a vector database; computing, by the one or more processors, a first inner product of the subset of the plurality of components of the projected vector and the subset of the plurality of components of the stored vector; and retrieving, by the one or more processors from the vector database, an output vector corresponding to the stored vector based on the first inner product.Clause 2

[0065] The method of clause 1, further comprising: selecting, by the one or more processors, one or more additional subsets of one or more additional pluralities of components of one or more additional stored vectors of the projected vector database; computing, by the one or more processors, a first set of one or more additional inner products of the subset of the plurality of components of the projected vector and the respective one or more additional subsets of the one or more additional pluralities of components of the one or more additional stored vectors; and retrieving, by the one or more processors from the vector database, a first set of one or more additional output vectors corresponding to one or more of the one or more additional stored vectors based on the first set of one or more additional inner products.Clause 3

[0066] The method of clause 2, further comprising: computing, by the one or more processors, a second set of one or more inner products of the input vector and one or more of the output vector and the one or more additional output vectors of the vector database based, at least in part, on one or more of the first inner product and the first set of one or more additional inner products; and retrieving, by the one or more processors from the vector database, a second set of one or more of the output vector and the one or more additional output vectors based on the second set of one or more additional inner products.Clause 4

[0067] The method of any of clauses 1 to 3, further comprising: generating, by the one or more processors, the projected vector database by performing one or more projection operations on the vector database.Clause 5

[0068] The method of any of clauses 1 to 4, further comprising: determining, by the one or more processors, a number of vector components for computing the first inner product based, at least in part, on a rank preservation for the first inner product, wherein selecting the subset of the plurality of components of the projected vector is performed based, at least in part, on the number of vector components and selecting the subset of the plurality of components of the stored vector is performed based, at least in part, on the number of vector components.Clause 6

[0069] The method of clause 5, wherein the number of vector components is further determined based, at least in part, on at least one of a processing capacity of the one or more processors or a timing requirement.Clause 7

[0070] The method of any of clauses 1 to 5, wherein the input vector is associated with a financial transaction, wherein the plurality of components of the input vector are associated with a plurality of attributes of the financial transaction, and wherein the vector database includes a plurality of vectors associated with a plurality of financial transactions.Clause 8

[0071] the method of clause 7, further comprising determining, by the one or more processors, a likelihood that the transaction is a fraudulent transaction based on the retrieved vector of the vector database.Clause 9

[0072] A system, comprising: a memory; and one or more processors communicatively coupled to the memory, the one or more processors configured to perform operations comprising: receiving an input vector comprising a plurality of components; generating a projected vector based on the received input vector; selecting a subset of a plurality of components of the projected vector; selecting a subset of a plurality of components of a stored vector of a projected vector database, different from the input vector and the projected vector, wherein the projected vector database is a projected version of a vector database; computing a first inner product of the subset of the plurality of components of the projected vector and the subset of the plurality of components of the stored vector; and retrieving, from the vector database, an output vector corresponding to the stored vector based on the first inner product.Clause 10

[0073] The system of clause 9, wherein the one or more processors are further configured to perform operations comprising: selecting one or more additional subsets of one or more additional pluralities of components of one or more additional stored vectors of the projected vector database; computing a first set of one or more additional inner products of the subset of the plurality of components of the projected vector and the respective one or more additional subsets of the one or more additional pluralities of components of the one or more additional stored vectors; and retrieving, from the vector database, a first set of one or more additional output vectors corresponding to one or more of the one or more additional stored vectors based on the first set of one or more additional inner products.Clause 11

[0074] The system of clause 10, wherein the one or more processors are further configured to perform operations comprising: computing a second set of one or more inner products of the input vector and one or more of the output vector and the one or more additional output vectors of the vector database based, at least in part, on one or more of the first inner product and the first set of one or more additional inner products; and retrieving, from the vector database, a second set of one or more of the output vector and the one or more additional output vectors based on the second set of one or more additional inner products.Clause 12

[0075] The system of any of clauses 9 to 11, wherein the one or more processors are further configured to perform operations comprising: generating the projected vector database by performing one or more projection operations on the vector database.Clause 13

[0076] The system of any of clauses 9 to 12, wherein the one or more processors are further configured to perform operations comprising: determining a number of vector components for computing the first inner product based, at least in part, on a rank preservation for the first inner product, wherein selecting the subset of the plurality of components of the projected vector is performed based, at least in part, on the number of vector components and selecting the subset of the plurality of components of the stored vector is performed based, at least in part, on the number of vector components.Clause 14

[0077] The system of clause 13, wherein the number of vector components is further determined based, at least in part, on at least one of a processing capacity of the one or more processors or a timing requirement.Clause 15

[0078] The system of any of clauses 9 to 14, wherein the input vector is associated with a financial transaction, wherein the plurality of components of the input vector are associated with a plurality of attributes of the financial transaction, and wherein the vector database includes a plurality of vectors associated with a plurality of financial transactions.Clause 16

[0079] The system of clause 15, wherein the one or more processors are further configured to perform operations comprising: determining a likelihood that the transaction is a fraudulent transaction based on the retrieved vector of the vector database.Clause 17

[0080] A non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors, cause the one or more processors to perform operations comprising: receiving an input vector comprising a plurality of components; generating, by the one or more processors, a projected vector based on the received input vector; selecting a subset of a plurality of components of the projected vector; selecting a subset of a plurality of components of a stored vector of a projected vector database, different from the input vector and the projected vector, wherein the projected vector database is a projected version of a vector database; computing a first inner product of the subset of the plurality of components of the projected vector and the subset of the plurality of components of the stored vector; and retrieving, from the vector database, an output vector corresponding to the stored vector based on the first inner product.Clause 18

[0081] The non-transitory computer-readable storage medium of clause 17, further storing instructions that, when executed by one or more processors, cause the one or more processors to perform operations comprising: selecting one or more additional subsets of one or more additional pluralities of components of one or more additional stored vectors of the projected vector database; computing a first set of one or more additional inner products of the subset of the plurality of components of the projected vector and the respective one or more additional subsets of the one or more additional pluralities of components of the one or more additional stored vectors; and retrieving, from the vector database, a first set of one or more additional output vectors corresponding to one or more of the one or more additional stored vectors based on the first set of one or more additional inner products.Clause 19

[0082] The non-transitory computer-readable storage medium of clause 18, further storing instructions that, when executed by one or more processors, cause the one or more processors to perform operations comprising: computing a second set of one or more inner products of the input vector and one or more of the output vector and the one or more additional output vectors of the vector database based, at least in part, on one or more of the first inner product and the first set of one or more additional inner products; and retrieving, from the vector database, a second set of one or more of the output vector and the one or more additional output vectors based on the second set of one or more additional inner products.Clause 20

[0083] The non-transitory computer-readable storage medium of any of clauses 17 to 19, further storing instructions that, when executed by one or more processors, cause the one or more processors to perform operations comprising: determining a number of vector components for computing the first inner product based, at least in part, on a rank preservation for the first inner product, wherein selecting the subset of the plurality of components of the projected vector is performed based, at least in part, on the number of vector components and selecting the subset of the plurality of components of the stored vector is performed based, at least in part, on the number of vector components.

[0084] Although the present disclosure and certain representative advantages have been described in detail, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the disclosure as defined by the appended claims. Moreover, the scope of the present application is not intended to be limited to the particular embodiments of the process, machine, manufacture, composition of matter, means, methods and steps described in the specification. For example, although processors are described throughout the detailed description, examples of the invention may be applied to the design of or implemented on different kinds of processors, such as graphics processing units (GPUs), central processing units (CPUs), and digital signal processors (DSPs). As another example, although processing of certain kinds of data may be described in example embodiments, other kinds or types of data may be processed through the methods and devices described above. As one of ordinary skill in the art will readily appreciate from the present disclosure, processes, machines, manufacture, compositions of matter, means, methods, or steps, presently existing or later to be developed that perform substantially the same function or achieve substantially the same result as the corresponding embodiments described herein may be utilized. Accordingly, the appended claims are intended to include within their scope such processes, machines, manufacture, compositions of matter, means, methods, or steps.

Claims

1. A method, comprising:receiving, by one or more processors, an input vector comprising a plurality of components;generating, by the one or more processors, a projected vector based on the received input vector;selecting, by the one or more processors, a subset of a plurality of components of the projected vector;selecting, by the one or more processors, a subset of a plurality of components of a stored vector of a projected vector database, different from the input vector and the projected vector, wherein the projected vector database is a projected version of a vector database;computing, by the one or more processors, a first inner product of the subset of the plurality of components of the projected vector and the subset of the plurality of components of the stored vector; andretrieving, by the one or more processors from the vector database, an output vector corresponding to the stored vector based on the first inner product.

2. The method of claim 1, further comprising:selecting, by the one or more processors, one or more additional subsets of one or more additional pluralities of components of one or more additional stored vectors of the projected vector database;computing, by the one or more processors, a first set of one or more additional inner products of the subset of the plurality of components of the projected vector and the respective one or more additional subsets of the one or more additional pluralities of components of the one or more additional stored vectors; andretrieving, by the one or more processors from the vector database, a first set of one or more additional output vectors corresponding to one or more of the one or more additional stored vectors based on the first set of one or more additional inner products.

3. The method of claim 2, further comprising:computing, by the one or more processors, a second set of one or more inner products of the input vector and one or more of the output vector and the one or more additional output vectors of the vector database based, at least in part, on one or more of the first inner product and the first set of one or more additional inner products; andretrieving, by the one or more processors from the vector database, a second set of one or more of the output vector and the one or more additional output vectors based on the second set of one or more additional inner products.

4. The method of claim 1, further comprising:generating, by the one or more processors, the projected vector database by performing one or more projection operations on the vector database.

5. The method of claim 1, further comprising:determining, by the one or more processors, a number of vector components for computing the first inner product based, at least in part, on a rank preservation for the first inner product, wherein selecting the subset of the plurality of components of the projected vector is performed based, at least in part, on the number of vector components and selecting the subset of the plurality of components of the stored vector is performed based, at least in part, on the number of vector components.

6. The method of claim 5, wherein the number of vector components is further determined based, at least in part, on at least one of a processing capacity of the one or more processors or a timing requirement.

7. The method of claim 1, wherein the input vector is associated with a financial transaction, wherein the plurality of components of the input vector are associated with a plurality of attributes of the financial transaction, and wherein the vector database includes a plurality of vectors associated with a plurality of financial transactions.

8. The method of claim 7, further comprisingdetermining, by the one or more processors, a likelihood that the transaction is a fraudulent transaction based on the retrieved vector of the vector database.

9. A system, comprising:a memory; andone or more processors communicatively coupled to the memory, the one or more processors configured to perform operations comprising:receiving an input vector comprising a plurality of components;generating a projected vector based on the received input vector;selecting a subset of a plurality of components of the projected vector;selecting a subset of a plurality of components of a stored vector of a projected vector database, different from the input vector and the projected vector, wherein the projected vector database is a projected version of a vector database;computing a first inner product of the subset of the plurality of components of the projected vector and the subset of the plurality of components of the stored vector; andretrieving, from the vector database, an output vector corresponding to the stored vector based on the first inner product.

10. The system of claim 9, wherein the one or more processors are further configured to perform operations comprising:selecting one or more additional subsets of one or more additional pluralities of components of one or more additional stored vectors of the projected vector database;computing a first set of one or more additional inner products of the subset of the plurality of components of the projected vector and the respective one or more additional subsets of the one or more additional pluralities of components of the one or more additional stored vectors; andretrieving, from the vector database, a first set of one or more additional output vectors corresponding to one or more of the one or more additional stored vectors based on the first set of one or more additional inner products.

11. The system of claim 10, wherein the one or more processors are further configured to perform operations comprising:computing a second set of one or more inner products of the input vector and one or more of the output vector and the one or more additional output vectors of the vector database based, at least in part, on one or more of the first inner product and the first set of one or more additional inner products; andretrieving, from the vector database, a second set of one or more of the output vector and the one or more additional output vectors based on the second set of one or more additional inner products.

12. The system of claim 9, wherein the one or more processors are further configured to perform operations comprising:generating the projected vector database by performing one or more projection operations on the vector database.

13. The system of claim 9, wherein the one or more processors are further configured to perform operations comprising:determining a number of vector components for computing the first inner product based, at least in part, on a rank preservation for the first inner product, wherein selecting the subset of the plurality of components of the projected vector is performed based, at least in part, on the number of vector components and selecting the subset of the plurality of components of the stored vector is performed based, at least in part, on the number of vector components.

14. The system of claim 13, wherein the number of vector components is further determined based, at least in part, on at least one of a processing capacity of the one or more processors or a timing requirement.

15. The system of claim 9, wherein the input vector is associated with a financial transaction, wherein the plurality of components of the input vector are associated with a plurality of attributes of the financial transaction, and wherein the vector database includes a plurality of vectors associated with a plurality of financial transactions.

16. The system of claim 15, wherein the one or more processors are further configured to perform operations comprising:determining a likelihood that the transaction is a fraudulent transaction based on the retrieved vector of the vector database.

17. A non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors, cause the one or more processors to perform operations comprising:receiving an input vector comprising a plurality of components;generating, by the one or more processors, a projected vector based on the received input vector;selecting a subset of a plurality of components of the projected vector;selecting a subset of a plurality of components of a stored vector of a projected vector database, different from the input vector and the projected vector, wherein the projected vector database is a projected version of a vector database;computing a first inner product of the subset of the plurality of components of the projected vector and the subset of the plurality of components of the stored vector; andretrieving, from the vector database, an output vector corresponding to the stored vector based on the first inner product.

18. The non-transitory computer-readable storage medium of claim 17, further storing instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:selecting one or more additional subsets of one or more additional pluralities of components of one or more additional stored vectors of the projected vector database;computing a first set of one or more additional inner products of the subset of the plurality of components of the projected vector and the respective one or more additional subsets of the one or more additional pluralities of components of the one or more additional stored vectors; andretrieving, from the vector database, a first set of one or more additional output vectors corresponding to one or more of the one or more additional stored vectors based on the first set of one or more additional inner products.

19. The non-transitory computer-readable storage medium of claim 18, further storing instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:computing a second set of one or more inner products of the input vector and one or more of the output vector and the one or more additional output vectors of the vector database based, at least in part, on one or more of the first inner product and the first set of one or more additional inner products; andretrieving, from the vector database, a second set of one or more of the output vector and the one or more additional output vectors based on the second set of one or more additional inner products.

20. The non-transitory computer-readable storage medium of claim 17, further storing instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:determining a number of vector components for computing the first inner product based, at least in part, on a rank preservation for the first inner product, wherein selecting the subset of the plurality of components of the projected vector is performed based, at least in part, on the number of vector components and selecting the subset of the plurality of components of the stored vector is performed based, at least in part, on the number of vector components.