VECTOR DATABASE SIMILARITY RETRIEVAL
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.
Latest The Bank of New York Mellon Patents:
- SYSTEMS AND METHODS FOR MAPPING COMPUTER NETWORK WORKFLOWS FOR REAL-TIME CONTENT RETRIEVAL
- Resource address shortening utilizing search trends
- Artificial intelligence rule heuristics and distillation
- Network service access control
- Systems and methods for item matching using implicit representations of items
The instant disclosure relates to vector database utilization and more particularly to systems and methods for rapid vector database similarity analysis and retrieval.
BACKGROUNDOrganizations 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.
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.
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.
SUMMARYTo 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
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
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
A projected database, such as described with respect to
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
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
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.
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.
A block diagram illustrating a system 500 for dual stage rapid vector database similarity retrieval is shown in
The system 500 may include similar functionality to the system 400 of
A flow chart of an example method 600 for rapid vector database similarity retrieval is shown in
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
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.
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
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
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
A flow chart of an example method 700 for rapid vector database similarity retrieval is shown in
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
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.
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.
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
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
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.
An example graph 1100 showing vector database similarity retrieval time for different modes of inner product computation is shown in
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
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
A block diagram illustrating an example computing device 1400 is shown in
The schematic or flow chart diagram
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.
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.
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 1A 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 2The 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 3The 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 4The 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 5The 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 6The 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 7The 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 8the 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 9A 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 10The 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 11The 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 12The 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 13The 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 14The 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 15The 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 16The 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 17A 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 18The 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 19The 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 20The 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.
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; 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.
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; 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.
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; 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.
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 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.
9. 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.
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; 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.
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; 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.
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; and
- retrieving, 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; 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.
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; 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.
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.
Type: Application
Filed: May 23, 2025
Publication Date: Nov 26, 2026
Applicant: The Bank of New York Mellon (New York, NY)
Inventors: Filipe Joao Cabrita Condessa (Pittsburgh, PA), Vadim Pertsovskiy (Pittsburgh, PA)
Application Number: 19/217,787