Voyager
An LSTM prefetcher that predicts the next memory address as a page plus an offset, not one raw address.
27 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 9.8M
- Operations
- 27
- Framework
- PyTorch
- Recurrent
- No
- Published
- ASPLOS 2021
- Cited by
- 124 (as of 4 October 2026)
- Authors
- Zhan Shi, Akanksha Jain, Kevin Swersky and others
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m14363
- Graph hash
- f5fb5e782774f308a60509805a77ffff4e58c11360b481cd00bfb39e5812032d
- Skeleton hash
- 1084ecd2bf4aeb6fcb76a0412e2b71c5445193b8d3655a29aba0a0d86200cf94
- Architecture hash
- 0f82e999134555b0c3a5d25c49de7f66b3fd25416f78c78c7d98e2f610233398
- Diagram SHA-256
- 9b578f92b9018327d72681e81bf2ca4634689dfcf54eb737683292ee7640663a
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
Voyager is a neural network for data prefetching that takes as input a sequence of memory accesses and produces as output the next address to be prefetched. Unlike previous neural prefetchers, which were limited to learning delta correlations, it can also learn address correlations, which matter for irregular sequences of memory accesses. The key is a hierarchical structure that separates addresses into pages and offsets and learns important relations among them. The motivation is class explosion: the number of unique addresses in the benchmark programs ranges from hundreds of thousands to tens of millions, far beyond the typical 100K vocabulary of natural language processing.
Each memory access is represented by a PC and an address, and each address is split into a page address and an offset within the page. Since those inputs have no numerical meaning, a first embedding layer computes independent embeddings for PCs, pages and offsets. A second, page-aware offset embedding layer revises the offset's representation to depend on the page. Two separate LSTMs then predict the embeddings for candidate output pages and offsets, and a linear layer with a softmax over each produces a probability distribution over predicted pages and offsets. The page and offset pair with the highest probability is chosen as the address to prefetch. Those two distributions are the outputs the traced member returns. To emulate a hardware prefetcher, the entire model is trained online, continuously as the program runs.
Across irregular programs from the SPEC 2006 and GAP suites, Voyager sees an average IPC improvement of 41.6% over a system with no prefetcher, compared with 21.7% and 28.2% for idealized Domino and ISB prefetchers. It outperforms previous neural prefetchers too, with accuracy/coverage of 79.6% against Delta-LSTM's 56.8%. Storage overhead is reduced by 110-200× relative to previous neural models. The first author's released code has the basic skeleton of the hierarchical structure without the multi-labeling scheme. A TensorFlow 2 reimplementation adds the multi-labeling scheme with PC localization, deltas and spatial localization.
Key idea. A prefetcher that sidesteps the address-vocabulary explosion by predicting page and offset separately with two LSTMs over page-aware embeddings, learning address correlations and not just deltas.
- Voyager
- Voyager prefetcher
- neural prefetcher
- neural data prefetching
- hierarchical neural model of data prefetching
- neural_hierarchical_sequence
- LSTM prefetcher
- memory access prediction
- address correlation
- page-aware offset embedding
- ASPLOS 2021
- Shi Jain Swersky Hashemi Ranganathan Lin
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@inproceedings{Shi_2021, series={ASPLOS ’21}, title={A hierarchical neural model of data prefetching}, url={http://dx.doi.org/10.1145/3445814.3446752}, DOI={10.1145/3445814.3446752}, booktitle={Proceedings of the 26th ACM International Conference on Architectural Support for Programming Languages and Operating Systems}, publisher={ACM}, author={Shi, Zhan and Jain, Akanksha and Swersky, Kevin and Hashemi, Milad and Ranganathan, Parthasarathy and Lin, Calvin}, year={2021}, month=Apr, pages={861–873}, collection={ASPLOS ’21} }