IP Library Granted Patent US 12,443,851
Granted Patent B2
US 12,443,851 · App. 18/486,060 · Granted Oct 14, 2025

Augmenting attention-based neural networks to selectively attend to past inputs

Inventors: Jack William Rae (London, GB); Anna Potapenko (London, GB); Timothy Paul Lillicrap (London, GB)
Assignee: GDM Holding LLC
G06N3/084G06F18/2148G06N3/047G06N3/08
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,443,851
App. No.
18/486,060
Granted
Oct 14, 2025
Kind
B2
Abstract

Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for performing a machine learning task on a network input that is a sequence to generate a network output. In one aspect, one of the methods includes, for each particular sequence of layer inputs: for each attention layer in the neural network: maintaining episodic memory data; maintaining compressed memory data; receiving a layer input to be processed by the attention layer; and applying an attention mechanism over (i) the compressed representation in the compressed memory data for the layer, (ii) the hidden states in the episodic memory data for the layer, and (iii) the respective hidden state at each of the plurality of input positions in the particular network input to generate a respective activation for each input position in the layer input.

Claims (49)

1. A computer-implemented method comprising:

receiving a sequence of network inputs, wherein each network input is an input sequence that comprises a plurality of input positions;

processing the sequence of network inputs using a neural network to generate a network output, wherein the neural network comprises an attention layer associated with a short-term, episodic memory and a long-term, compressed memory, and wherein the processing comprises, for a particular network input in the sequence of network inputs:

updating the short-term, episodic memory to include new data, the new data comprising respective hidden states that were processed by the attention layer for a plurality of input positions in the particular network input;

determining a compression rate for a portion of existing data stored in the short-term, episodic memory, the portion of existing data comprising respective hidden states that were processed by the attention layer for a plurality of input positions in each of one or more previous network inputs that precede the particular network input in the sequence of network inputs;

compressing, in accordance with the compression rate, the portion of existing data to generate a compressed representation for the portion of existing data; and

updating the long-term, compressed memory to include the compressed representation for the portion of existing data.

2. The method of claim 1 , further comprising deleting the portion of existing data from the short-term, episodic memory.

3. The method of claim 1 , wherein the processing comprises, for each input position in the plurality of input positions included in the particular network input:

applying an attention mechanism over (i) data stored in the long-term, compressed memory associated with the attention layer, (ii) data stored in the short-term, episodic memory associated with the attention layer, and (iii) respective hidden states that were processed by the attention layer for one or more input positions that precede the input position in the plurality of input positions, to generate an activation for the input position.

4. The method of claim 1 , wherein compressing, in accordance with the compression rate, the portion of existing data comprises:

applying a max pooling function to the portion of existing data with a stride equal to the compression rate.

5. The method of claim 1 , wherein compressing, in accordance with the compression rate, the portion of existing data comprises:

applying a mean pooling function to the portion of existing data with a stride equal to the compression rate.

6. The method of claim 1 , wherein compressing, in accordance with the compression rate, the portion of existing data comprises:

determining a kernel size for a 1D convolution function; and

applying the 1D convolution function to the portion of existing data with a stride equal to the compression rate and a kernel size equal to the determined kernel size.

7. The method of claim 1 , wherein compressing, in accordance with the compression rate, the portion of existing data comprises:

applying a multi-layer dilated 1D convolution function to the portion of existing data.

8. The method of claim 1 , wherein the one or more previous network inputs further precede one or more other network inputs that precede the particular network input in the sequence of network inputs.

9. The method of claim 8 , wherein a number of the one or more other network inputs is dependent on a predetermined size of the short-term, episodic memory.

10. The method of claim 1 , wherein the processing comprises:

processing activations generated by the attention layer for the plurality of input positions using one or more fully connected layers and one or more layer normalization layers included in the neural network.

11. The method of claim 1 , wherein the sequence of network inputs comprises data derived from a sequence of multiple articles from a text document.

12. The method of claim 1 , wherein the sequence of network inputs comprises data derived from a sequence of multiple observations generated while an agent interacts with an environment.

13. A system comprising:

one or more computers; and

one or more storage devices storing instructions that, when executed by the one or more computers, cause the one or more computers to perform operations comprising:

receiving a sequence of network inputs, wherein each network input is an input sequence that comprises a plurality of input positions;

processing the sequence of network inputs using a neural network to generate a network output, wherein the neural network comprises an attention layer associated with a short-term, episodic memory and a long-term, compressed memory, and wherein the processing comprises, for a particular network input in the sequence of network inputs:

updating the short-term, episodic memory to include new data, the new data comprising respective hidden states that were processed by the attention layer for a plurality of input positions in the particular network input;

determining a compression rate for a portion of existing data stored in the short-term, episodic memory, the portion of existing data comprising respective hidden states that were processed by the attention layer for a plurality of input positions in each of one or more previous network inputs that precede the particular network input in the sequence of network inputs;

compressing, in accordance with the compression rate, the portion of existing data to generate a compressed representation for the portion of existing data; and

updating the long-term, compressed memory to include the compressed representation for the portion of existing data.

14. The system of claim 13 , wherein the processing comprises:

processing activations generated by the attention layer for the plurality of input positions using one or more fully connected layers and one or more layer normalization layers included in the neural network.

15. The system of claim 13 , wherein the sequence of network inputs comprises data derived from a sequence of multiple articles from a text document.

16. The system of claim 13 , wherein the sequence of network inputs comprises data derived from a sequence of multiple observations generated while an agent interacts with an environment.

17. One or more non-transitory computer-readable storage media storing instructions that when executed by one or more computers cause the one or more computers to perform operations comprising:

receiving a sequence of network inputs, wherein each network input is an input sequence that comprises a plurality of input positions;

processing the sequence of network inputs using a neural network to generate a network output, wherein the neural network comprises an attention layer associated with a short-term, episodic memory and a long-term, compressed memory, and wherein the processing comprises, for a particular network input in the sequence of network inputs:

updating the short-term, episodic memory to include new data, the new data comprising respective hidden states that were processed by the attention layer for a plurality of input positions in the particular network input;

determining a compression rate for a portion of existing data stored in the short-term, episodic memory, the portion of existing data comprising respective hidden states that were processed by the attention layer for a plurality of input positions in each of one or more previous network inputs that precede the particular network input in the sequence of network inputs;

compressing, in accordance with the compression rate, the portion of existing data to generate a compressed representation for the portion of existing data; and

updating the long-term, compressed memory to include the compressed representation for the portion of existing data.

18. The non-transitory computer-readable storage media of claim 17 , wherein the processing comprises:

processing activations generated by the attention layer for the plurality of input positions using one or more fully connected layers and one or more layer normalization layers included in the neural network.

19. The non-transitory computer-readable storage media of claim 17 , wherein the sequence of network inputs comprises data derived from a sequence of multiple articles from a text document.

20. The non-transitory computer-readable storage media of claim 17 , wherein the sequence of network inputs comprises data derived from a sequence of multiple observations generated while an agent interacts with an environment.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 6, 2025
From: DEEPMIND TECHNOLOGIES LIMITED
To: GDM HOLDING LLC
Reel/Frame 071498/0210 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 19, 2023
From: RAE, JACK WILLIAM; POTAPENKO, ANNA; LILLICRAP, TIMOTHY PAUL
To: DEEPMIND TECHNOLOGIES LIMITED
Reel/Frame 065283/0705 →
Continuity (3)
Continuation 17033396 · Sep 25, 2020
Provisional Application 62906078 · Sep 25, 2019
Related Publication 20240046103A1 · Feb 8, 2024
References Cited (36)
US 20170200077A1 · Weston et al. · 2017 [cited by applicant]
US 20180336884A1 · Sriram et al. · 2018 [cited by applicant]
US 20190251439A1 · Zoph et al. · 2019 [cited by applicant]
US 20200184327A1 · Dey et al. · 2020 [cited by applicant]
US 20210089867A1 · Byeon et al. · 2021 [cited by applicant]
CN 110168573A · 2019 [cited by applicant]
CN 110192206A · 2019 [cited by applicant]
JP 201975088 · 2019 [cited by applicant]
WO WO2017201444 · 2017 [cited by applicant]
WO WO2018212710A1 · 2018 [cited by applicant]
WO WO2019081782 · 2019 [cited by applicant]
Ba et al., “Layer Normalization,” CoRR, Jul. 2016, arxiv.org/abs/1607.06450, 14 pages. [cited by applicant]
Child et al., “Generating long sequences with sparse transformers,” CoRR, Apr. 2019, arXiv:1904.10509, 10 pages. [cited by applicant]
Dai et al., “Transformer-XL: Attentive language models beyond a fixed-length context,” CoRR, Jan. 2019, arxiv.org/abs/1901.02860, 20 pages. [cited by applicant]
Decision to Grant Patent in Japanese Appln. No. 2022-519300, dated Nov. 20, 2023, 5 pages (with English translation). [cited by applicant]
Devlin et al., “Bert: Pre-training of deep bidirectional transformers for language understanding,” CoRR, Oct. 2018, arxiv.org/abs/1810.04805, 16 pages. [cited by applicant]
International Preliminary Report on Patentability in Appln. No. PCT/EP2020/076759, dated Mar. 15, 2022, 10 pages. [cited by applicant]
Ke et al., “Sparse Attentive Backtracking: Temporal Credit Assignment Through Reminding,” CoRR, Sep. 2018, arxiv.org/abs/1809.03702, 13 pages. [cited by applicant]
Lazaridis et al., “Capturing sensor-generated time series with quality guarantees,” Proceedings 19th International Conference on Data Engineering (Cat. No. 03CH37405), Mar. 2003, 13 pages. [cited by applicant]
Li et al., “Enhancing the Locality and Breaking the Memory Bottleneck of Transformer on Time Series Series Forecasting,” CoRR, Jun. 2019, arxiv.org/abs/1907.00235, 13 pages. [cited by applicant]
Notice of Acceptance for Patent Application in Australian Appln. No. 2020352594, dated Sep. 11, 2023, 3 pages. [cited by applicant]
Office Action in Australian Appln. No. 2020352594, dated Jan. 31, 2023, 3 pages. [cited by applicant]
Office Action in Australian Appln. No. 2020352594, dated Jun. 13, 2023, 2023, 4 pages. [cited by applicant]
Office Action in Canadian Appln. No. 3,155,096, dated May 19, 2023, 4 pages. [cited by applicant]
Office Action in European Appln. No. 20781464.1, dated Nov. 27, 2023, 12 pages. [cited by applicant]
Office Action in Japanese Appln. No. 2022-519300, dated Jul. 18, 2023, 5 pages (with English translation). [cited by applicant]
PCT International Search Report and Written Opinion in Appln. No. PCT/EP2020/076759, dated Feb. 1, 2021, 16 pages. [cited by applicant]
Pengfei et al., “Multi-timescale long short-term memory neural network for modelling sentences and documents,” Proceedings of the 2015 conference on empirical methods in natural language processing, Sep. 17-21, 2015, pp… [cited by applicant]
Shiyang et al., “Enhancing the Locality and Breaking the Memory Bottleneck of Transformer on Time Series Forecasting,” Advances in Neural Information Processing Systems 32 (NeurIPS 2019), 2019, 11 pages. [cited by applicant]
Soltani et al., “Higher order recurrent neural networks,” CoRR, Apr. 30, 2016, arXiv:1605.00064, 9 pages. [cited by applicant]
Sukhbaatar et al., “Adaptive attention span in transformers,” CoRR, May 2019, arxiv.org/abs/1905.07799, 5 pages. [cited by applicant]
Vaswani et al., “Attention is all you need,” Advances in Neural Information Processing Systems 30, 2017, 11 pages. [cited by applicant]
Wu et al., “Pay less attention with lightweight and dynamic convolutions,” CoRR, Jan. 2019, arXiv:1901.10430, 14 pages. [cited by applicant]
Office Action in Israel Appln. No. 291346, dated May 15, 2024, 4. [cited by applicant]
Office Action in Chinese Appln. No. 202080067175.8, dated Oct. 31, 2024, 33 pages (with English translation). [cited by applicant]
Notice of Allowance in Chinese Appln. No. 202080067175.8, mailed on Jun. 2, 2025, 6 pages (with English translation). [cited by applicant]