System, method, and computer program product for generating embeddings for lattice data structures
By generating embeddings with adjustable dimensions using a transformer-based neural network, the method addresses collision issues in probabilistic lookup systems, ensuring efficient and accurate data retrieval in lattice data structures.
Patent Information
- Application Number
- PCT/US2026/029421
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-23
- Filing Date
- 2026-05-22
- Publication Date
- 2026-11-26
AI Technical Summary
Current data retrieval systems using probabilistic memory-efficient lookup structures like Bloom filters suffer from collision problems, leading to false positives and inefficiencies due to their static nature, which does not adapt to dynamic data growth and varying access patterns.
A method and system that generates embeddings with adjustable dimensions, using a neural network like a transformer to expand embeddings when collisions occur, ensuring efficient storage and retrieval in a lattice data structure by dynamically adapting to data growth and access patterns.
This approach reduces false positives and optimizes memory usage, providing robust and scalable data management with near-zero false positive rates, maintaining efficiency and accuracy as data evolves.
Smart Images

Figure US2026029421_26112026_PF_FP_ABST
Abstract
Description
Attorney Docket No. 08223- 2600485 (9936WO01)SYSTEM, METHOD, AND COMPUTER PROGRAM PRODUCT FOR GENERATING EMBEDDINGS FOR LATTICE DATA STRUCTURES CROSS-REFERENCE TO RELATED APPLICATION
[0001] This application claims priority to U.S. Provisional Patent Application No.63 / 810,947, filed May 23, 2025, the disclosure of which is hereby incorporated by reference in its entirety.BACKGROUND1. Technical Field
[0002] This disclosure relates generally to embeddings and, in non-limiting embodiments or aspects, to systems, methods, and computer program products for generating embeddings for lattice data structures.2. Technical Considerations
[0003] Managing efficient and reliable data retrieval has become increasingly complex and challenging. Probabilistic memory-efficient lookup systems, such as Bloom filters, have been widely used to manage large datasets. However, these systems suffer from collision problems, leading to false positives and unreliable lookups. Current approaches rely on static probabilistic data structures and hashbased mechanisms, which do not adapt to the dynamic nature of data growth and varying access patterns. These collisions result in suboptimal retrieval accuracy, increased error rates, and overall inefficiency in data management, compromising the reliability and performance of these systems.SUMMARY
[0004] According to non-limiting embodiments or aspects, provided is a method comprising: generating, with at least one processor, an embedding based on input data, the embedding having a number of dimensions; comparing, with at least one processor, the embedding to a plurality of embeddings stored in a lattice data structure; determining, with at least one processor, whether the embedding collides with at least one embedding of the plurality of embeddings; in response to determining that the embedding collides with the at least one embedding, generating, with at least one processor, an expanded embedding based on the input data, the expanded embedding having a new number of dimensions greater than the number of dimensions of the embedding; and storing, with at least one processor, the expanded embedding in the lattice data structure.6DG9875.DOCX Page 1 of 27Attorney Docket No. 08223- 2600485 (9936WO01)
[0005] In non-limiting embodiments or aspects, the method further includes: before storing the expanded embedding in the lattice data structure, comparing the expanded embedding to the plurality of embeddings; determining, with at least one processor, whether the expanded embedding collides with at least one other embedding of the plurality of embeddings; and in response to determining that the expanded embedding does not collide with the at least one other embedding, storing the expanded embedding in the lattice data structure. In non-limiting embodiments or aspects, the method further includes: before storing the expanded embedding in the lattice data structure, comparing the expanded embedding to the plurality of embeddings; determining, with at least one processor, whether the expanded embedding collides with at least one other embedding of the plurality of embeddings; and in response to determining that the expanded embedding collides with the at least one other embedding, generating, with at least one processor, a further expanded embedding based on the input data, the further expanded embedding having a new number of dimensions greater than the new number of dimensions of the expanded embedding, and storing the further expanded embedding in the lattice data structure. In nonlimiting embodiments or aspects, the method further includes: training a neural network based on historical data, the neural network generates the embedding. In non-limiting embodiments or aspects, the neural network comprises a transformer configured to generate the embedding based on relationships and dependencies within an input key. In non-limiting embodiments or aspects, the neural network is configured to: generate an nth dimensional vector representing the embedding; and select a first m dimensions of an input key where m < n. In non-limiting embodiments or aspects, where generating the expanded embedding comprises unmasking at least one additional dimension of the nth dimension vector.
[0006] According to non-limiting embodiments or aspects, provided is a system comprising: a lattice data structure comprising a plurality of embeddings; and at least one processor configured to: generate an embedding based on input data, the embedding having a number of dimensions; compare the embedding to a plurality of embeddings stored in the lattice data structure; determine whether the embedding collides with at least one embedding of the plurality of embeddings; in response to determining that the embedding collides with the at least one embedding, generate an expanded embedding based on the input data, the expanded embedding having a6DG9875.DOCX Page 2 of 27Attorney Docket No. 08223- 2600485 (9936WO01)new number of dimensions greater than the number of dimensions of the embedding; and store the expanded embedding in the lattice data structure.
[0007] In non-limiting embodiments or aspects, the at least one processor is further configured to: before storing the expanded embedding in the lattice data structure, compare the expanded embedding to the plurality of embeddings; determine whether the expanded embedding collides with at least one other embedding of the plurality of embeddings; and in response to determining that the expanded embedding does not collide with the at least one other embedding, store the expanded embedding in the lattice data structure. In non-limiting embodiments or aspects, the at least one processor is further configured to: before storing the expanded embedding in the lattice data structure, compare the expanded embedding to the plurality of embeddings; determine whether the expanded embedding collides with at least one other embedding of the plurality of embeddings; and in response to determining that the expanded embedding collides with the at least one other embedding, generate a further expanded embedding based on the input data, the further expanded embedding having a new number of dimensions greater than the new number of dimensions of the expanded embedding, and storing the further expanded embedding in the lattice data structure. In non-limiting embodiments or aspects, the at least one processor is further configured to: train a neural network based on historical data, the neural network generates the embedding. In non-limiting embodiments or aspects, the neural network comprises a transformer configured to generate the embedding based on relationships and dependencies within an input key. In non-limiting embodiments or aspects, the neural network is configured to: generate an nth dimensional vector representing the embedding; and select a first m dimensions of an input key where m < n. In non-limiting embodiments or aspects, where generating the expanded embedding comprises unmasking at least one additional dimension of the nth dimension vector.
[0008] According to non-limiting embodiments or aspects, provided is a computer program product comprising at least one non-transitory computer-readable medium including program instructions that, when executed by at least one processor, cause the at least one processor to: generate an embedding based on input data, the embedding having a number of dimensions; compare the embedding to a plurality of embeddings stored in a lattice data structure; determine whether the embedding collides with at least one embedding of the plurality of embeddings; in response to6DG9875.DOCX Page 3 of 27Attorney Docket No. 08223- 2600485 (9936WO01)determining that the embedding collides with the at least one embedding, generate an expanded embedding based on the input data, the expanded embedding having a new number of dimensions greater than the number of dimensions of the embedding; and store the expanded embedding in the lattice data structure.
[0009] In non-limiting embodiments or aspects, the program instructions further cause the at least one processor to: before storing the expanded embedding in the lattice data structure, compare the expanded embedding to the plurality of embeddings; determine whether the expanded embedding collides with at least one other embedding of the plurality of embeddings; and in response to determining that the expanded embedding does not collide with the at least one other embedding, store the expanded embedding in the lattice data structure. In non-limiting embodiments or aspects, the program instructions further cause the at least one processor to: before storing the expanded embedding in the lattice data structure, compare the expanded embedding to the plurality of embeddings; determine whether the expanded embedding collides with at least one other embedding of the plurality of embeddings; and in response to determining that the expanded embedding collides with the at least one other embedding, generate a further expanded embedding based on the input data, the further expanded embedding having a new number of dimensions greater than the new number of dimensions of the expanded embedding, and storing the further expanded embedding in the lattice data structure. In non-limiting embodiments or aspects, the program instructions further cause the at least one processor to: train a neural network based on historical data, the neural network generates the embedding. In non-limiting embodiments or aspects, the neural network comprises a transformer configured to generate the embedding based on relationships and dependencies within an input key. In non-limiting embodiments or aspects, the neural network is configured to: generate an nth dimensional vector representing the embedding; and select a first m dimensions of an input key where m < n.
[0010] Further non-limiting embodiments or aspects are set forth in the following numbered clauses:
[0011] Clause 1 : A method comprising: generating, with at least one processor, an embedding based on input data, the embedding having a number of dimensions; comparing, with at least one processor, the embedding to a plurality of embeddings stored in a lattice data structure; determining, with at least one processor, whether the embedding collides with at least one embedding of the plurality of embeddings; in6DG9875.DOCX Page 4 of 27Attorney Docket No. 08223- 2600485 (9936WO01)response to determining that the embedding collides with the at least one embedding, generating, with at least one processor, an expanded embedding based on the input data, the expanded embedding having a new number of dimensions greater than the number of dimensions of the embedding; and storing, with at least one processor, the expanded embedding in the lattice data structure.
[0012] Clause 2: The method of clause 1, further comprising: before storing the expanded embedding in the lattice data structure, comparing the expanded embedding to the plurality of embeddings; determining, with at least one processor, whether the expanded embedding collides with at least one other embedding of the plurality of embeddings; and in response to determining that the expanded embedding does not collide with the at least one other embedding, storing the expanded embedding in the lattice data structure.
[0013] Clause 3: The method of any of clauses 1-2, further comprising: before storing the expanded embedding in the lattice data structure, comparing the expanded embedding to the plurality of embeddings; determining, with at least one processor, whether the expanded embedding collides with at least one other embedding of the plurality of embeddings; and in response to determining that the expanded embedding collides with the at least one other embedding, generating, with at least one processor, a further expanded embedding based on the input data, the further expanded embedding having a new number of dimensions greater than the new number of dimensions of the expanded embedding, and storing the further expanded embedding in the lattice data structure.
[0014] Clause 4: The method of any of clauses 1-3, further comprising: training a neural network based on historical data, wherein the neural network generates the embedding.
[0015] Clause 5: The method of any of clauses 1-4, wherein the neural network comprises a transformer configured to generate the embedding based on relationships and dependencies within an input key.
[0016] Clause 6: The method of any of clauses 1-5, wherein the neural network is configured to: generate an nth dimensional vector representing the embedding; and select a first m dimensions of an input key where m < n.
[0017] Clause 7: The method of any of clauses 1-6, where generating the expanded embedding comprises unmasking at least one additional dimension of the nth dimension vector.6DG9875.DOCX Page 5 of 27Attorney Docket No. 08223- 2600485 (9936WO01)
[0018] Clause 8: A system comprising: a lattice data structure comprising a plurality of embeddings; and at least one processor configured to: generate an embedding based on input data, the embedding having a number of dimensions; compare the embedding to a plurality of embeddings stored in the lattice data structure; determine whether the embedding collides with at least one embedding of the plurality of embeddings; in response to determining that the embedding collides with the at least one embedding, generate an expanded embedding based on the input data, the expanded embedding having a new number of dimensions greater than the number of dimensions of the embedding; and store the expanded embedding in the lattice data structure.
[0019] Clause 9: The system of clause 8, wherein the at least one processor is further configured to: before storing the expanded embedding in the lattice data structure, compare the expanded embedding to the plurality of embeddings; determine whether the expanded embedding collides with at least one other embedding of the plurality of embeddings; and in response to determining that the expanded embedding does not collide with the at least one other embedding, store the expanded embedding in the lattice data structure.
[0020] Clause 10: The system of any of clauses 8-9, wherein the at least one processor is further configured to: before storing the expanded embedding in the lattice data structure, compare the expanded embedding to the plurality of embeddings; determine whether the expanded embedding collides with at least one other embedding of the plurality of embeddings; and in response to determining that the expanded embedding collides with the at least one other embedding, generate a further expanded embedding based on the input data, the further expanded embedding having a new number of dimensions greater than the new number of dimensions of the expanded embedding, and storing the further expanded embedding in the lattice data structure.
[0021] Clause 11: The system of any of clauses 8-10, wherein the at least one processor is further configured to: train a neural network based on historical data, wherein the neural network generates the embedding.
[0022] Clause 12: The system of any of clauses 8-11 , wherein the neural network comprises a transformer configured to generate the embedding based on relationships and dependencies within an input key.6DG9875.DOCX Page 6 of 27Attorney Docket No. 08223- 2600485 (9936WO01)
[0023] Clause 13: The system of any of clauses 8-12, wherein the neural network is configured to: generate an nth dimensional vector representing the embedding; and select a first m dimensions of an input key where m < n.
[0024] Clause 14: The system of any of clauses 8-13, where generating the expanded embedding comprises unmasking at least one additional dimension of the nth dimension vector.
[0025] Clause 15: A computer program product comprising at least one non-transitory computer-readable medium including program instructions that, when executed by at least one processor, cause the at least one processor to: generate an embedding based on input data, the embedding having a number of dimensions; compare the embedding to a plurality of embeddings stored in a lattice data structure; determine whether the embedding collides with at least one embedding of the plurality of embeddings; in response to determining that the embedding collides with the at least one embedding, generate an expanded embedding based on the input data, the expanded embedding having a new number of dimensions greater than the number of dimensions of the embedding; and store the expanded embedding in the lattice data structure.
[0026] Clause 16: The computer program product of clause 15, wherein the program instructions further cause the at least one processor to: before storing the expanded embedding in the lattice data structure, compare the expanded embedding to the plurality of embeddings; determine whether the expanded embedding collides with at least one other embedding of the plurality of embeddings; and in response to determining that the expanded embedding does not collide with the at least one other embedding, store the expanded embedding in the lattice data structure.
[0027] Clause 17: The computer program product of any of clauses 15-16, wherein the program instructions further cause the at least one processor to: before storing the expanded embedding in the lattice data structure, compare the expanded embedding to the plurality of embeddings; determine whether the expanded embedding collides with at least one other embedding of the plurality of embeddings; and in response to determining that the expanded embedding collides with the at least one other embedding, generate a further expanded embedding based on the input data, the further expanded embedding having a new number of dimensions greater than the new number of dimensions of the expanded embedding, and storing the further expanded embedding in the lattice data structure.6DG9875.DOCX Page 7 of 27Attorney Docket No. 08223- 2600485 (9936WO01)
[0028] Clause 18: The computer program product of any of clauses 15-17, wherein the program instructions further cause the at least one processor to: train a neural network based on historical data, wherein the neural network generates the embedding.
[0029] Clause 19: The computer program product of any of clauses 15-18, wherein the neural network comprises a transformer configured to generate the embedding based on relationships and dependencies within an input key.
[0030] Clause 20: The computer program product of any of clauses 15-19, wherein the neural network is configured to: generate an nth dimensional vector representing the embedding; and select a first m dimensions of an input key where m < n.
[0031] These and other features and characteristics of the present disclosure, as well as the methods of operation and functions of the related elements of structures and the combination of parts and economies of manufacture, will become more apparent upon consideration of the following description and the appended claims with reference to the accompanying drawings, all of which form a part of this specification, wherein like reference numerals designate corresponding parts in the various figures. It is to be expressly understood, however, that the drawings, are for the purpose of illustration and description only and are not intended as a definition of the limits of the disclosed subject matter.BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Additional advantages and details are explained in greater detail below with reference to the non-limiting, exemplary embodiments that are illustrated in the accompanying schematic figures, in which:
[0033] FIG. 1 is a schematic diagram of a system for generating embeddings for lattice data structures according to some non-limiting embodiments or aspects;
[0034] FIG. 2 is a flow diagram of a method for generating embeddings for lattice data structures according to some non-limiting embodiments or aspects;
[0035] FIG. 3 is a diagram of an embedding generator 300 according to non-limiting embodiments or aspects;
[0036] FIG. 4 illustrates a three-dimensional lattice space is shown according to non-limiting embodiments or aspects;
[0037] FIG. 5 is a diagram of an example payment processing network in which systems, methods, and / or computer program products, described herein, may be implemented, according to some non-limiting embodiments or aspects; and6DG9875.DOCX Page 8 of 27Attorney Docket No. 08223- 2600485 (9936WO01)
[0038] FIG. 6 is a schematic diagram of example components of one or more devices of FIG. 1 according to some non-limiting embodiments or aspects.DETAILED DESCRIPTION
[0039] For purposes of the description hereinafter, the terms “end,” “upper,” “lower,” “right,” “left,” “vertical,” “horizontal,” “top,” “bottom,” “lateral,” “longitudinal,” and derivatives thereof shall relate to the embodiments as they are oriented in the drawing figures. However, it is to be understood that the present disclosure may assume various alternative variations and step sequences, except where expressly specified to the contrary. It is also to be understood that the specific devices and processes illustrated in the attached drawings, and described in the following specification, are simply exemplary and non-limiting embodiments or aspects of the disclosed subject matter. Hence, specific dimensions and other physical characteristics related to the embodiments or aspects disclosed herein are not to be considered as limiting.
[0040] Some non-limiting embodiments or aspects are described herein in connection with thresholds. As used herein, satisfying a threshold may refer to a value being greater than the threshold, more than the threshold, higher than the threshold, greater than or equal to the threshold, less than the threshold, fewer than the threshold, lower than the threshold, less than or equal to the threshold, equal to the threshold, etc.
[0041] No aspect, component, element, structure, act, step, function, instruction, and / or the like used herein should be construed as critical or essential unless explicitly described as such. Also, as used herein, the articles “a” and “an” are intended to include one or more items and may be used interchangeably with “one or more” and “at least one.” Furthermore, as used herein, the term “set” is intended to include one or more items (e.g., related items, unrelated items, a combination of related and unrelated items, and / or the like) and may be used interchangeably with “one or more” or “at least one.” Where only one item is intended, the term “one” or similar language is used. Also, as used herein, the terms “has,” “have,” “having,” or the like are intended to be open-ended terms. Further, the phrase “based on” is intended to mean “based at least partially on” unless explicitly stated otherwise. In addition, reference to an action being “based on” a condition may refer to the action being “in response to” the condition. For example, the phrases “based on” and “in response to” may, in some non-limiting embodiments or aspects, refer to a condition for automatically triggering6DG9875.DOCX Page 9 of 27Attorney Docket No. 08223- 2600485 (9936WO01)an action (e.g., a specific operation of an electronic device, such as a computing device, a processor, and / or the like).
[0042] As used herein, the term “account identifier” may include one or more primary account numbers (PANs), tokens, or other identifiers associated with a customer account. The term “token” may refer to an identifier that is used as a substitute or replacement identifier for an original account identifier, such as a PAN. Account identifiers may be alphanumeric or any combination of characters and / or symbols. Tokens may be associated with a PAN or other original account identifier in one or more data structures (e.g., one or more databases, and / or the like) such that they may be used to conduct a transaction without directly using the original account identifier. In some examples, an original account identifier, such as a PAN, may be associated with a plurality of tokens for different individuals or purposes.
[0043] As used herein, the term “communication” may refer to the reception, receipt, transmission, transfer, provision, and / or the like of data (e.g., information, signals, messages, instructions, commands, and / or the like). For one unit (e.g., a device, a system, a component of a device or system, combinations thereof, and / or the like) to be in communication with another unit means that the one unit is able to directly or indirectly receive information from and / or transmit information to the other unit. This may refer to a direct or indirect connection (e.g., a direct communication connection, an indirect communication connection, and / or the like) that is wired and / or wireless in nature. Additionally, two units may be in communication with each other even though the information transmitted may be modified, processed, relayed, and / or routed between the first and second unit. For example, a first unit may be in communication with a second unit even though the first unit passively receives information and does not actively transmit information to the second unit. As another example, a first unit may be in communication with a second unit if at least one intermediary unit processes information received from the first unit and communicates the processed information to the second unit. In some non-limiting embodiments or aspects, a message may refer to a network packet (e.g., a data packet and / or the like) that includes data. It will be appreciated that numerous other arrangements are possible.
[0044] As used herein, the term “computing device” may refer to one or more electronic devices configured to process data. A computing device may, in some examples, include the necessary components to receive, process, and output data,6DG9875.DOCX Page 10 of 27Attorney Docket No. 08223- 2600485 (9936WO01)such as a processor, a display, a memory, an input device, a network interface, and / or the like. A computing device may be a mobile device. As an example, a mobile device may include a cellular phone (e.g., a smartphone or standard cellular phone), a portable computer, awearable device (e.g., watches, glasses, lenses, clothing, and / or the like), a personal digital assistant (PDA), and / or other like devices. A computing device may also be a desktop computer or other form of non-mobile computer.
[0045] As used herein, the term “server” may refer to or include one or more computing devices that are operated by or facilitate communication and processing for multiple parties in a network environment, such as the Internet, although it will be appreciated that communication may be facilitated over one or more public or private network environments and that various other arrangements are possible. Further, multiple computing devices (e.g., servers, point-of-sale (POS) devices, mobile devices, etc.) directly or indirectly communicating in the network environment may constitute a “system.”
[0046] As used herein, the term “system” may refer to one or more computing devices or combinations of computing devices and / or components of such (e.g., processors, servers, client devices, software applications, and / or the like). Reference to “a device,” “a server,” “a processor,” and / or the like, as used herein, may refer to a previously-recited device, server, or processor that is recited as performing a previous step or function, a different device, server, or processor, and / or a combination of devices, servers, and / or processors. For example, as used in the specification and the claims, a first device, a first server, or a first processor that is recited as performing a first step or a first function may refer to the same or different device, server, or processor recited as performing a second step or a second function.
[0047] Non-limiting embodiments described herein provide more accurate and resilient data lookup as compared to other data lookup and storage techniques. Nonlimiting embodiments optimize memory usage and adapts to the dynamic nature of data growth and varying access patterns, thereby providing a robust and scalable solution for modem data management challenges. Non-limiting embodiments provide for a method and system for searching for data in a data structure that reduces false positives (e.g., with a near-zero false positive rate). Non-limiting embodiments may improve system performance and speed in situations where there is a large volume of data to look up using cache memory. Further, non-limiting embodiments provide for a dynamic lattice storage system that efficiently manages high-dimensional embeddings6DG9875.DOCX Page 11 of 27Attorney Docket No. 08223- 2600485 (9936WO01)produced by machine-learning-based embedding generators. Through the use of a dynamic and flexible lattice structure, non-limiting embodiments allow for the lattice structure to be scaled and adapted to a dataset while it grows and changes. Through starting with a predefined number of dimensions and expanding the dimensions on an ad hoc basis, and monitoring collisions during the process, non-limiting embodiments provide one or more additional dimensions to create more space and reduce the likelihood of future collisions. This dynamic expansion ensures the system remains efficient and accurate, even as the dataset grows and evolves. Other technical advantages will be appreciated to those skilled in the art.
[0048] Referring now to FIG. 1 , shown is a system 1000 for generating embeddings for lattice data structures according to some non-limiting embodiments or aspects. As shown in FIG. 1, system 1000 may include an embedding generator 100, a collision detection engine 103, and a lattice data structure 106. The embedding generator 100 may include one or more computing devices and / or software applications executed by one or more computing devices for generating an embedding based on an input. The embedding may include a vector, as an example. The embedding generator may be configured to receive, as input, a number of dimensions for the embedding, such that the embedding generator 100 generates a vector of the specified number of dimensions. For example, the embedding generator 100 may generate a vector comprising n dimensions where only the first m dimensions are provided with values, such that m < n. In some examples the full vector of n dimensions may be generated and several dimensions, may be masked such that the output vector does not include values for those dimensions.
[0049] In non-limiting embodiments, the embedding generator 100 includes a deep learning model such as a transformer. As an example, a BERT model (Bidirectional Encoder Representations from Transformers) may be used to generate embeddings. The embedding generator 100 may include attention mechanisms configured to identify relationships and dependencies within an input to generate an informative and unique embedding. Non-limiting embodiments using a transformer model are able to dynamically weigh the importance of different parts of the input, thereby producing embeddings that are more nuanced and contextually aware than non-transformer, feature-based methods would produce. In non-limiting embodiments, the embedding generator 100 may be continuously and / or periodically fine-tuned with new data to adapt and improve the embedding generator 100 for handling evolving patterns and6DG9875.DOCX Page 12 of 27Attorney Docket No. 08223- 2600485 (9936WO01)to maintain the distinctiveness and accuracy of the embeddings. This continuous learning capability results in the embeddings being robust, even with changing data characteristics.
[0050] With continued reference to FIG. 1, the collision detection engine 104 may include one or more computing devices and / or software applications executed by one or more computing devices for detecting collisions between an embedding 102 output by the embedding generator 100 and one or more embeddings stored in a lattice data structure 106. As used herein, the term “collision” refers to a data element matching an existing stored data element such that the data elements are not differentiated (e.g., are not unique). If the collision detection engine 104 detects a collision, the collision detection engine 104 outputs feedback 108 that is received by the embedding generator to expand the embedding 102. For example, the feedback 108 may include the embedding 102 and an indication of one or more additional dimensions. In response to receiving the feedback 108, the embedding generator 100 may expand the embedding 102 to include one or more additional dimensions. The expanded embedding may then be input into the collision detection engine 104 which determines if the expanded embedding collides with one or more embeddings in the lattice data structure 106.
[0051] In non-limiting embodiments, the system 1000 may iteratively expand the embedding each time a collision is detected until a collision is not detected. For example, each time a collision is detected, the embedding generator 100 and / or collision detection engine 104 unmasks the next dimension (e.g., m+1, m+2, m+3, etc.), progressively increasing the number of dimensions used until the collisions are resolved. This process allows the system 1000 to be scaled efficiently as the number of keys (e.g., inputs) increases, thereby minimizing the collision rate without unnecessarily consuming computational resources. By initially using only a subset of dimensions, the system conserves memory and computational resources. In this way, the system 1000 can handle a growing number of keys without a significant increase in collisions, thereby maintaining high performance and accuracy.
[0052] For example, in a non-limiting implementation, the value of n may be 128 such that the embedding generator 100 generates a 128-dimensional embedding vector for each input key, and the value of m may be three (3). In such an example, the first three (3) dimensions of the vector may be used to represent a first key (e.g., k1) that is stored in the lattice data structure 106. As an example, k1 may have the6DG9875.DOCX Page 13 of 27Attorney Docket No. 08223- 2600485 (9936WO01)value of “Used 11” and may be represented sparsely in the vector as only three (3) dimensions. The next input key may be k2 (e.g., having a value of “Used 23”), which may collide with the three-dimensional representation of k1. In such an example, the fourth dimension of the 128-dimensional vector may be unmasked, expanding the vector to four (4) dimensions, and may then attempt to insert k2 into the lattice data structure 106. The process may continue with a next key (e.g., k3 having a value of “Used 34”).
[0053] Still referring to FIG. 1, the lattice data structure 106 may provide storage for efficiently managing high-dimensional embeddings. The lattice data structure 106 may be used as cache memory in some non-limiting embodiments. The lattice data structure 106 may be in the form of a multi-dimensional grid where each unit in the grid represents a possible coordinate of an embedding. Data may be stored in the lattice data structure 106 via quantization to transform continuous decimal-valued embeddings into discrete coordinates that can be represented within the lattice data structure 106. This process involves mapping the continuous decimal values of the embeddings to discrete grid points within the lattice. Non-limiting embodiments may apply uniform quantization in which the range of possible values for each dimension of the embedding is divided into equal-sized intervals or bins. Each decimal value in the embedding is mapped to the nearest bin center or a specific integer representing the bin. For example, if the embedding values range from zero (0) to one (1) and ten (10) bins are used, each bin would represent an interval of 0.1. A value of 0.35 would be mapped to the bin corresponding to 0.4. Once the embedding is quantized, it may be used as coordinates to be stored within the lattice data structure 106. Initially, all cells in the lattice may be set to zero. The quantized embedding values may serve as discrete coordinates, and a value of 1 may be placed at these coordinates to mark the presence of the embedding. For example, if the quantized embedding is ([2, 6, 4]), the lattice data structure may set the value of the unit as 1 at the coordinates (2, 6, 4), effectively marking the position of the embedding in the high-dimensional space. Further, smaller bins (e.g., higher resolution) reduce the likelihood of collisions because they provide more discrete points in the quantization process, allowing for finer distinctions between embeddings.
[0054] To search for (e.g., lookup) data in the lattice data structure 106, the lattice data structure 106 may be accessed using the coordinates derived from the quantized embedding. This may include quantizing the embedding to obtain the discrete6DG9875.DOCX Page 14 of 27Attorney Docket No. 08223- 2600485 (9936WO01)coordinates and then using the coordinates to access the corresponding cell in the lattice. For example, if the cell contains a value of one (1 ), it indicates the presence of the embedding (and therefore the key) in the lattice data structure 106.
[0055] The following is a non-limiting example for the purpose of illustration. It will be appreciated by those skilled in the art that numerous approaches may be taken to implement a system for generating embeddings for lattice data structures. In this example, there are three keys, k1, k2, and k3. The bin size for quantization may be set to 100. The initial value of m (e.g., initial number of dimensions) may be set to three (3). The key k3 [25,65,42] is set to the value of one (1 ) in the lattice data structure 106. In a first case, which may include an initial state (e.g., pre-expansion), the embedding generator 100 may create the following embedding as k1: [0.23, 0.67, 0.45]), as examples for illustration. The embedding values may be quantized based on the refined bin configuration. For purpose of explanation, uniform quantization may be assumed: 0.23 maps to bin 23 (because (0.23 \times 100 = 23)), 0.67 maps to bin 67, and 0.45 maps to bin 45. The cell at coordinates (23, 67, 45) is set to one (1) to mark the presence of the key k1. The lattice may be a three-dimensional lattice, allowing for a total of 1003discrete points in the lattice initially. In this example, when a query is made for k1 , the value is quantized and the system looks up the coordinates in the lattice if the value at that particular cell is set (e.g., set to one (1)). In this initial state, the system efficiently stores and retrieves embeddings by quantizing and mapping them to discrete lattice points in the lattice data structure. Each embedding is therefore uniquely identified within the 3-dimensional space.
[0056] In a second case, which may include a collision detection state, the embedding generator 100 may create the following embedding as key k2: [0.25, 0.65, 0.42], The new embedding values may be quantized as follows: (0.25) maps to bin (25), (0.65) maps to bin (65), and (0.42) maps to bin (42), as examples for illustration. The quantized embedding ([25, 65, 42]) matches an existing coordinate in the lattice, indicating a collision (since key k3 is already present in the lattice). The collision detection engine 104 detects the collision and triggers feedback 108 to unmask the m+1th dimension to resolve the conflict. These coordinates may be marked (e.g., flagged) for expansion within the lattice storage system as the system detects the need for additional space. This causes the system to expand the dimensionality of the vector to ensure distinct storage for future embeddings while maintaining the efficiency of the indexing and retrieval processes. Accordingly, if a query is received for k2 or k3, the6DG9875.DOCX Page 15 of 27Attorney Docket No. 08223- 2600485 (9936WO01)query is similarly quantized, and a look-up may be performed for the coordinates in the lattice of the value at that particular cell is set.
[0057] In a third case, which may include a final state (e.g., post expansion), the embedding generator 100 may create the following embedding with m+1 dimensions as key k4: [0.34, 0.54, 0.12, 0.28], as examples for illustration. Since the expansion in the lattice data structure 106 occurred only for the coordinate ([25, 65, 42]), the fourth dimension does not exist for the coordinate ([34, 54, 12]). Therefore, for the k4 insertion operation, the three-dimensional coordinate ([34, 54, 12]) is set to one (1) in the lattice data structure 106. The system 1000 may ignore new dimensions if they are not present (e.g., no collision) during the insertion operation into the lattice data structure. If a query is made for k1 after this occurs, and the dimension is set to m+1 (e.g., four (4)), the embedding generator 100 may generate the following embedding:[0.23, 0.67, 0.45, X] because m+1 dimensions are unmasked. For the lookup, if the fourth dimension is not available for the coordinate ([23, 67, 45]) and the three-dimensional cell for this coordinate has a value of one (1), it is determined that k1 exists in storage.
[0058] In some non-limiting implementations of the system 1000, multiple collisions might occur initially, causing the units of the lattice data structure 106 to expand several times. However, in non-limiting embodiments such occurrences may be effectively managed by generating unique embeddings with the embedding generator 100 and dynamically unmasking additional dimensions whenever collisions are detected. This adaptive approach ensures that the system 1000 can efficiently accommodate and differentiate between embeddings, maintaining its performance and accuracy even in challenging conditions.
[0059] Referring now to FIG. 2, shown is an example method for generating embeddings for lattice data structures according to some non-limiting embodiments or aspects. The steps shown in FIG. 2 are for example purposes only. It will be appreciated that additional, fewer, different, and / or a different order of steps may be used in non-limiting embodiments or aspects. In some non-limiting embodiments or aspects, a step may be automatically performed in response to performance and / or completion of a prior step. In some non-limiting embodiments or aspects, one or more of the steps of method 200 may be performed (e.g., completely, partially, and / or the like) by one or more computing devices. At step 200, an embedding is generated having m dimensions. The m dimensions may be the first m dimensions in an nth6DG9875.DOCX Page 16 of 27Attorney Docket No. 08223- 2600485 (9936WO01)dimensional vector, where m < n. As an example, the embedding may initially have three (3) dimensions. The dimensions from m to n may be masked.
[0060] At step 202, the generated embedding is compared to embeddings stored in a lattice data structure. If a collision is detected at step 204, the method may proceed to step 206 and the embedding may be expanded by an additional dimension (e.g., initially m+1). The expanded embedding may then be compared to the stored embeddings again at step 202 to detect a possible collision at step 204. Steps 202, 204, and 206 may continue repeatedly until a collision is not detected at step 204 and the embedding is stored in the lattice data structure at step 208.
[0061] Referring now to FIG. 3, shown is an example embedding generator 300 according to non-limiting embodiments. FIG. 3 shows different input keys 302, X1-X4, for a neural network 301. The output 304 is a vector having n dimensions (e.g., n output layers) where the embedding is represented by the first m layers and the remaining layers (n-m) are masked and not used. It will be appreciated that various neural network architectures may be used in non-limiting embodiments and that the example shown in FIG. 3 is for illustrative purposes only.
[0062] Referring now to FIG. 4, a three-dimensional lattice space is shown according to non-limiting embodiments. Input keys “User134”, “User123”, “King”, and “Apple” are shown spaced apart in the lattice space representing the embeddings. As can be seen, “User 134” and “User 123” are close together relative to other keys, leading to the possibility of a collision. It will be appreciated that the example of FIG.4 is for illustrative purposes only and that various other representations of a lattice storage space may be used.
[0063] Referring now to FIG. 5, depicted is an electronic payment processing network 1100 according to some non-limiting embodiments or aspects. The payment processing network 1100 may be used in conjunction with the systems and methods described herein. It will be appreciated that the particular arrangement of the electronic payment processing network 1100 shown is for example purposes only, and that various arrangements are possible. A transaction processing system 1101 (e.g., a transaction handler) is shown to be in communication with one or more issuer systems (e.g., such as an issuer system 1106) and one or more acquirer systems (e.g., such as an acquirer system 1108). Although only a single issuer system 1106 and single acquirer system 1108 are shown, it will be appreciated that the transaction processing system 1101 may be in communication with a plurality of issuer systems and / or6DG9875.DOCX Page 17 of 27Attorney Docket No. 08223- 2600485 (9936WO01)acquirer systems. In some embodiments, the transaction processing system 1101 may also operate as an issuer system such that both the transaction processing system 1101 and issuer system 1106 are a single system and / or controlled by a single entity.
[0064] In some non-limiting embodiments or aspects, the transaction processing system 1101 may communicate with a merchant system 1104 directly through a public or private network connection. Additionally, or alternatively, the transaction processing system 1101 may communicate with the merchant system 1104 through a payment gateway 1102 and / or the acquirer system 1108. In some non-limiting embodiments or aspects, the acquirer system 1108 associated with the merchant system 1104 may operate as the payment gateway 1102 to facilitate the communication of transaction requests from the merchant system 1104 to the transaction processing system 1101. The merchant system 1104 may communicate with the payment gateway 1102 through a public or private network connection. For example, a merchant system 1104 that includes a physical POS device may communicate with the payment gateway 1102 through a public or private network to conduct card-present transactions. As another example, a merchant system 1104 that includes a server (e.g., a web server) may communicate with the payment gateway 1102 through a public or private network, such as a public Internet connection, to conduct card-not-present transactions.
[0065] In some non-limiting embodiments or aspects, the transaction processing system 1101, after receiving a transaction request from the merchant system 1104 that identifies an account identifier of a payor (e.g., such as an account holder) associated with an issued payment device 1110, may generate an authorization request message to be communicated to the issuer system 1106 that issued the payment device 1110 and / or account identifier. The issuer system 1106 may then approve or decline the authorization request and, based on the approval or denial, generate an authorization response message that is communicated to the transaction processing system 1101. The transaction processing system 1101 may communicate an approval or denial to the merchant system 1104. When the issuer system 1106 approves the authorization request message, it may then clear and settle the payment transaction between the issuer system 1106 and acquirer system 1108.
[0066] Referring now to FIG. 6, shown is a diagram of example components of a device 400, according to non-limiting embodiments or aspects. Device 400 may correspond to embedding generator 100 and / or collision detection engine 104 of FIG.1 or any other computing device described herein, as an example. In some non-limiting6DG9875.DOCX Page 18 of 27Attorney Docket No. 08223- 2600485 (9936WO01)embodiments, such systems or devices may include at least one device 400 and / or at least one component of device 400. The number and arrangement of components shown are provided as an example. In some non-limiting embodiments, device 400 may include additional components, fewer components, different components, or differently arranged components than those shown. Additionally, or alternatively, a set of components (e.g., one or more components) of device 400 may perform one or more functions described as being performed by another set of components of device 400.
[0067] As shown in FIG. 6, device 400 may include a bus 402, a processor 404, memory 406, a storage component 408, an input component 410, an output component 412, and a communication interface 414. Bus 402 may include a component that permits communication among the components of device 400. In some non-limiting embodiments, processor 404 may be implemented in hardware, firmware, or a combination of hardware and software. For example, processor 404 may include a processor (e.g., a central processing unit (CPU), a graphics processing unit (GPU), an accelerated processing unit (APU), etc.), a microprocessor, a digital signal processor (DSP), and / or any processing component (e.g., a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), etc.) that can be programmed to perform a function. Memory 406 may include random access memory (RAM), read only memory (ROM), and / or another type of dynamic or static storage device (e.g., flash memory, magnetic memory, optical memory, etc.) that stores information and / or instructions for use by processor 404.
[0068] With continued reference to FIG. 6, storage component 408 may store information and / or software related to the operation and use of device 400. For example, storage component 408 may include a hard disk (e.g., a magnetic disk, an optical disk, a magneto-optic disk, a solid-state disk, etc.) and / or another type of computer-readable medium. Input component 410 may include a component that permits device 400 to receive information, such as via user input (e.g., a touch screen display, a keyboard, a keypad, a mouse, a button, a switch, a microphone, etc.). Additionally, or alternatively, input component 410 may include a sensor for sensing information (e.g., a global positioning system (GPS) component, an accelerometer, a gyroscope, an actuator, etc.). Output component 412 may include a component that provides output information from device 400 (e.g., a display, a speaker, one or more light-emitting diodes (LEDs), etc.). Communication interface 414 may include a6DG9875.DOCX Page 19 of 27Attorney Docket No. 08223- 2600485 (9936WO01)transceiver-like component (e.g., a transceiver, a separate receiver and transmitter, etc.) that enables device 400 to communicate with other devices, such as via a wired connection, a wireless connection, or a combination of wired and wireless connections. Communication interface 414 may permit device 400 to receive information from another device and / or provide information to another device. For example, communication interface 414 may include an Ethernet interface, an optical interface, a coaxial interface, an infrared interface, a radio frequency (RF) interface, a universal serial bus (USB) interface, a Wi-Fi® interface, a cellular network interface, and / or the like.
[0069] Device 400 may perform one or more processes described herein. Device 400 may perform these processes based on processor 404 executing software instructions stored by a computer-readable medium, such as memory 406 and / or storage component 408. A computer-readable medium may include any non-transitory memory device. A memory device includes memory space located inside of a single physical storage device or memory space spread across multiple physical storage devices. Software instructions may be read into memory 406 and / or storage component 408 from another computer-readable medium or from another device via communication interface 414. When executed, software instructions stored in memory 406 and / or storage component 408 may cause processor 404 to perform one or more processes described herein. Additionally, or alternatively, hardwired circuitry may be used in place of or in combination with software instructions to perform one or more processes described herein. Thus, embodiments described herein are not limited to any specific combination of hardware circuitry and software. The term “configured to,” as used herein, may refer to an arrangement of software, device(s), and / or hardware for performing and / or enabling one or more functions (e.g., actions, processes, steps of a process, and / or the like). For example, “a processor configured to” may refer to a processor that executes software instructions (e.g., program code) that cause the processor to perform one or more functions.
[0070] Although embodiments have been described in detail for the purpose of illustration, it is to be understood that such detail is solely for that purpose and that the disclosure is not limited to the disclosed embodiments or aspects, but, on the contrary, is intended to cover modifications and equivalent arrangements that are within the spirit and scope of the appended claims. For example, it is to be understood that the present disclosure contemplates that, to the extent possible, one or more features of6DG9875.DOCX Page 20 of 27Attorney Docket No. 08223- 2600485 (9936WO01)any embodiment or aspect can be combined with one or more features of any other embodiment or aspect.DG9875.DOCX Page 21 of 27
Claims
1. Attorney Docket No. 08223- 2600485 (9936WO01)WHAT IS CLAIMED IS:
1. A method comprising:generating, with at least one processor, an embedding based on input data, the embedding having a number of dimensions;comparing, with at least one processor, the embedding to a plurality of embeddings stored in a lattice data structure;determining, with at least one processor, whether the embedding collides with at least one embedding of the plurality of embeddings;in response to determining that the embedding collides with the at least one embedding, generating, with at least one processor, an expanded embedding based on the input data, the expanded embedding having a new number of dimensions greater than the number of dimensions of the embedding; andstoring, with at least one processor, the expanded embedding in the lattice data structure.
2. The method of claim 1 , further comprising:before storing the expanded embedding in the lattice data structure, comparing the expanded embedding to the plurality of embeddings;determining, with at least one processor, whether the expanded embedding collides with at least one other embedding of the plurality of embeddings; andin response to determining that the expanded embedding does not collide with the at least one other embedding, storing the expanded embedding in the lattice data structure.
3. The method of claim 1 , further comprising:before storing the expanded embedding in the lattice data structure, comparing the expanded embedding to the plurality of embeddings;determining, with at least one processor, whether the expanded embedding collides with at least one other embedding of the plurality of embeddings; andin response to determining that the expanded embedding collides with the at least one other embedding, generating, with at least one processor, a further expanded embedding based on the input data, the further expanded embedding having a new number of dimensions greater than the new number of dimensions of6DG9875.DOCX Page 22 of 27Attorney Docket No. 08223- 2600485 (9936WO01)the expanded embedding, and storing the further expanded embedding in the lattice data structure.
4. The method of claim 1 , further comprising:training a neural network based on historical data, wherein the neural network generates the embedding.
5. The method of claim 4, wherein the neural network comprises a transformer configured to generate the embedding based on relationships and dependencies within an input key.
6. The method of claim 4, wherein the neural network is configured to: generate an nth dimensional vector representing the embedding; and select a first m dimensions of an input key where m < n.
7. The method of claim 6, where generating the expanded embedding comprises unmasking at least one additional dimension of the nth dimension vector.
8. A system comprising:a lattice data structure comprising a plurality of embeddings; andat least one processor configured to:generate an embedding based on input data, the embedding having a number of dimensions;compare the embedding to a plurality of embeddings stored in the lattice data structure;determine whether the embedding collides with at least one embedding of the plurality of embeddings;in response to determining that the embedding collides with the at least one embedding, generate an expanded embedding based on the input data, the expanded embedding having a new number of dimensions greater than the number of dimensions of the embedding; andstore the expanded embedding in the lattice data structure.6DG9875.DOCX Page 23 of 27Attorney Docket No. 08223- 2600485 (9936WO01)9. The system of claim 8, wherein the at least one processor is further configured to:before storing the expanded embedding in the lattice data structure, compare the expanded embedding to the plurality of embeddings;determine whether the expanded embedding collides with at least one other embedding of the plurality of embeddings; andin response to determining that the expanded embedding does not collide with the at least one other embedding, store the expanded embedding in the lattice data structure.
10. The system of claim 8, wherein the at least one processor is further configured to:before storing the expanded embedding in the lattice data structure, compare the expanded embedding to the plurality of embeddings;determine whether the expanded embedding collides with at least one other embedding of the plurality of embeddings; andin response to determining that the expanded embedding collides with the at least one other embedding, generate a further expanded embedding based on the input data, the further expanded embedding having a new number of dimensions greater than the new number of dimensions of the expanded embedding, and storing the further expanded embedding in the lattice data structure.
11. The system of claim 8, wherein the at least one processor is further configured to:train a neural network based on historical data, wherein the neural network generates the embedding.
12. The system of claim 11, wherein the neural network comprises a transformer configured to generate the embedding based on relationships and dependencies within an input key.
13. The system of claim 11 , wherein the neural network is configured to: generate an nth dimensional vector representing the embedding; and select a first m dimensions of an input key where m < n.6DG9875.DOCX Page 24 of 27Attorney Docket No. 08223- 2600485 (9936WO01)14. The system of claim 13, where generating the expanded embedding comprises unmasking at least one additional dimension of the nth dimension vector.
15. A computer program product comprising at least one non-transitory computer-readable medium including program instructions that, when executed by at least one processor, cause the at least one processor to:generate an embedding based on input data, the embedding having a number of dimensions;compare the embedding to a plurality of embeddings stored in a lattice data structure;determine whether the embedding collides with at least one embedding of the plurality of embeddings;in response to determining that the embedding collides with the at least one embedding, generate an expanded embedding based on the input data, the expanded embedding having a new number of dimensions greater than the number of dimensions of the embedding; andstore the expanded embedding in the lattice data structure.
16. The computer program product of claim 15, wherein the program instructions further cause the at least one processor to:before storing the expanded embedding in the lattice data structure, compare the expanded embedding to the plurality of embeddings;determine whether the expanded embedding collides with at least one other embedding of the plurality of embeddings; andin response to determining that the expanded embedding does not collide with the at least one other embedding, store the expanded embedding in the lattice data structure.
17. The computer program product of claim 15, wherein the program instructions further cause the at least one processor to:before storing the expanded embedding in the lattice data structure, compare the expanded embedding to the plurality of embeddings;6DG9875.DOCX Page 25 of 27Attorney Docket No. 08223- 2600485 (9936WO01)determine whether the expanded embedding collides with at least one other embedding of the plurality of embeddings; andin response to determining that the expanded embedding collides with the at least one other embedding, generate a further expanded embedding based on the input data, the further expanded embedding having a new number of dimensions greater than the new number of dimensions of the expanded embedding, and storing the further expanded embedding in the lattice data structure.
18. The computer program product of claim 15, wherein the program instructions further cause the at least one processor to:train a neural network based on historical data, wherein the neural network generates the embedding.
19. The computer program product of claim 18, wherein the neural network comprises a transformer configured to generate the embedding based on relationships and dependencies within an input key.
20. The computer program product of claim 18, wherein the neural network is configured to:generate an nth dimensional vector representing the embedding; and select a first m dimensions of an input key where m < n.6DG9875.DOCX Page 26 of 27
