FPGA-Accelerated Dense Linear Machine Learning: A Precision-Convergence Trade-Off
Authors:
- Kaan KaraKKKaan Kara
- Dan AlistarhDADan Alistarh
- Gustavo AlonsoGAGustavo Alonso
- Onur MutluOMOnur Mutlu
- Ce ZhangCZCe Zhang
- 1 April 2017
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 160-167
Abstract
Stochastic gradient descent (SGD) is a commonly used algorithm for training linear machine learning models. Based on vector algebra, it benefits from the inherent parallelism available in an FPGA. In this paper, we first present a single-precision floating-point SGD implementation on an FPGA that provides similar performance as a 10-core CPU. We then adapt the design to make it capable of processing low-precision data. The low-precision data is obtained from a novel compression scheme-called stochastic quantization, specifically designed for machine learning applications. We test both full-precision and low-precision designs on various regression and classification data sets. We achieve up to an order of magnitude training speedup when using low-precision data compared to a full-precision SGD on the same FPGA and a state-of-the-art multi-core solution, while maintaining the quality of training. We open source the designs presented in this paper.Keywords
This publication has 12 references indexed in Scilit:
- TABLA: A unified template-based framework for accelerating statistical machine learning2016
- Embedded Hardware-Efficient Real-Time Classification With Cascade Support Vector MachinesIEEE Transactions on Neural Networks and Learning Systems, 2015
- Pipelined compressor tree optimization using integer linear programming2014
- A Massively Parallel, Energy Efficient Programmable Accelerator for Learning and ClassificationACM Transactions on Architecture and Code Optimization, 2012
- Large-Scale FPGA-Based Convolutional Networks2011
- A Reconfigurable Computing System Based on a Cache-Coherent Fabric2011
- Hardware acceleration of iterative image reconstruction for X-ray computed tomography2011
- Peak Performance Model for a Custom Precision Floating-Point Dot Product on FPGAsLecture Notes in Computer Science, 2011
- Effects of Reduced Precision on Floating-Point SVM Classification AccuracyProcedia Computer Science, 2011
- A Massively Parallel FPGA-Based Coprocessor for Support Vector Machines2009