DeepLOB-Attention
Convolutions, an Inception Module and an LSTM that predict price movements from limit order books.
Time series · 53 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
- Task
- Time series
- Parameters
- 75.5K
- Operations
- 53
- Framework
- PyTorch
- Recurrent
- No
- Published
- RePEc: Research Papers in Economics (arXiv 2018)
- Authors
- Zihao Zhang, Stefan Zohren, Stephen Roberts
- 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
- m11620
- Graph hash
- 7571235257342634d56aeebea8a08a06716a2cadea55aa0eb272b6f4abde3cb1
- Skeleton hash
- 5913cbbfe4bd9b6e6e0036aa7871396026ce91aa066cfb470872882e46b0ea3d
- Architecture hash
- 23d41f6165c8d11dbfb7b4891d7f19ebc72b0a3f2b8777491ee72dca4e743190
- Diagram SHA-256
- 051b5a9811555eb600ddcd0fa41c18a3125bf3921a9b297ed5f15868fb9cabe6
- TorchLens version
- 2.35.3
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
How this diagram was made
menagerie.classics.deeplob_attention:build: build({}) What it is
DeepLOB is a deep learning model that predicts stock price movements from limit order book (LOB) data. A LOB is a record of all resting limit orders at a given point in time. The model takes only the history of LOB prices and sizes as input, in place of handcrafted features.
The paper describes three building blocks: standard convolutional layers, an Inception Module and an LSTM layer. In the paper a single input is the 100 most recent updates of an order book with 40 features per time stamp. The Inception Module wraps several convolutions together so the network can pick up behavior over multiple timescales. The LSTM stands in for fully connected layers; the paper uses 64 LSTM units and reports about 60,000 parameters, 10 times fewer. A softmax output gives the probability of each price movement class. The paper labels each movement as up, down or stationary.
Beyond the FI-2010 benchmark, the paper tests the model on one year of order book data for 5 stocks from the London Stock Exchange. The authors report good results on stocks that were not part of the training set and read this as a sign of universal features in the order book. They use the LIME method to highlight which components of the order book are most relevant to a prediction.
Key idea. The paper combines convolutional filters that capture the spatial structure of limit order books with LSTM modules for longer time dependencies to predict price movements.
- DeepLOB
- DeepLOB-Attention
- limit order book
- LOB
- price movement prediction
- stock price prediction
- high-frequency trading
- FI-2010
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zhang2020deeplobdeepconvolutionalneural,
title={DeepLOB: Deep Convolutional Neural Networks for Limit Order Books},
author={Zihao Zhang and Stefan Zohren and Stephen Roberts},
year={2020},
eprint={1808.03668},
archivePrefix={arXiv},
primaryClass={q-fin.CP},
doi={https://doi.org/10.1109/TSP.2019.2907260},
url={https://arxiv.org/abs/1808.03668},
}