@article{Raff_Fleshman_Zak_Anderson_Filar_McLean_2021, title={Classifying Sequences of Extreme Length with Constant Memory Applied to Malware Detection}, volume={35}, url={https://ojs.aaai.org/index.php/AAAI/article/view/17131}, DOI={10.1609/aaai.v35i11.17131}, abstractNote={Recent works within machine learning have been tackling inputs of ever increasing size, with cyber security presenting sequence classification problems of particularly extreme lengths. In the case of Windows executable malware detection, an input executable could be >=100 MB, which would translate to a time series with T=100,000,000 steps. To date, the closest approach to handling such task is MalConv --- a convolutional neural network capable of processing T=2,000,000 steps. Because the memory used by CNNs is O(T), this has prevented many from processing all executables or further extending the MalConv approach. In this work, we develop a new approach to temporal max pooling that makes the required memory invariant to the sequence length T. This makes MalConv 116x more memory efficient, and up to 25.8x faster to train, while removing the input length restrictions to MalConv. We re-invest these gains into improving the MalConv architecture by developing a new Global Channel Gating design, giving us an attention mechanism capable of learning feature interactions across 100 million time steps in an efficient manner, a capability lacked by the original MalConv approach.}, number={11}, journal={Proceedings of the AAAI Conference on Artificial Intelligence}, author={Raff, Edward and Fleshman, William and Zak, Richard and Anderson, Hyrum S. and Filar, Bobby and McLean, Mark}, year={2021}, month={May}, pages={9386-9394} }