Google is improving its malware detection capabilities for Gmail with the addition of deep learning to its document scanner. The new technology is currently used to scan Office documents only for now.