Systems and methods for transformer integration into dynamic schema databases
AssigneeMongoDB, Inc.
InventorsThomas Rueckstiess, Yixuan Huang
Life of this patent
Estimating the term…
Loading patent…
AssigneeMongoDB, Inc.
InventorsThomas Rueckstiess, Yixuan Huang
Estimating the term…
Provided is a system for processing semi-structured data, comprising a tokenization module configured to convert JSON objects into token sequences by recursively traversing keys and values (e.g., in depth-first order) and generating sequences of key tokens, value tokens, and grammatical tokens, wherein key tokens are distinguished from value tokens through a transformation that wraps original key strings in a special token format. The system includes a positional encoding module configured to generate hierarchical position embeddings using a PDA that maintains a stack reflecting parsing state, wherein the positional encoding module computes position embeddings by summing embeddings of stack symbols present at each sequence position. A transformer architecture comprising multiple layers of self-attention mechanisms is configured to process combined token and position embeddings. A grammar validation module is configured to enforce valid token sequences by suppressing logits corresponding to invalid transitions according to JSON grammar rules encoded in the PDA.
A system for integrating transformer architecture, the system comprising:
A computer-implemented method for integrating transformer architecture, the method comprising:
Dependencies are inferred from the claim text.