Key value neural network architecture
AssigneeWriter, Inc.
InventorsUmar Jamil, Waseem AlShikh
Life of this patent
Estimating the term…
Loading patent…
AssigneeWriter, Inc.
InventorsUmar Jamil, Waseem AlShikh
Estimating the term…
The present disclosure relates to techniques for improving inference efficiency and memory utilization in transformer-based neural networks. A modified architectural design is introduced that decouples key and value matrix generation from inter-layer dependencies, enabling statically computed or parallelizable projections across layers. The disclosed approach may eliminate the need for layer-wise prefilling, support linear-time inference, and substantially reduce the memory footprint associated with key-value (KV) caching. The disclosed architecture may use shared or layer-specific projections, with a single KV-cache serving all or subsets of layers. In some embodiments, a non-linear transformation (e.g., implemented via a feed-forward network), may preprocess input embeddings prior to query, key, and value generation. A lookup table of transformed embeddings may be precomputed to further accelerate inference. The disclosed system can enhance scalability and may allow deployment of large models on resource-constrained hardware, offering practical benefits for latency-sensitive applications and long-context processing in transformer-based models.
A computer-implemented method comprising:
A system comprising:
A computer-program product tangibly embodied in a non-transitory machine-readable storage medium, including instructions configured to cause one or more data processors to perform a set of operations comprising:
Dependencies are inferred from the claim text.