arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1806.01259cs.LGcs.ITmath.ITstat.ML
收藏

学习代码:用于近似非线性编码计算的机器学习

Learning a Code: Machine Learning for Approximate Non-Linear Coded Computation

Carnegie Mellon University(卡内基梅隆大学);Microsoft Research(微软研究院)

Jack Kosaian, K. V. Rashmi, Shivaram Venkataraman

摘要:

机器学习算法通常在大规模分布式计算基础设施上运行,这些基础设施经常面临许多不可用性,例如故障和临时减速。使用称为“码”的编码理论工具添加冗余计算是一种新兴的技术,以减轻这种不可用性的不利影响。一个代码由一个编码函数和一个解码函数组成,编码函数主动引入冗余计算,解码函数使用可用的输出重建不可用的输出。过去的工作主要集中在使用代码提供弹性的线性计算和特定的迭代优化算法。然而,为各种应用程序执行的计算,包括对最先进的机器学习算法(例如神经网络)的推理,通常不属于这个领域。在本文中,我们提出了一种基于学习的方法来设计可以处理非线性计算的代码。我们提出了精心设计的神经网络架构和学习编码和解码功能,产生不可用的计算结果的近似重建的训练方法。我们提出了广泛的实验结果表明,所提出的方法的有效性:我们表明,我们学习的代码可以准确地重建$64 - 98\%$的不可用的预测,从基于神经网络的图像分类器的MNIST,时尚MNIST,和CIFAR-10数据集。据我们所知,这项工作提出了第一个基于学习的方法来设计代码,并提出了第一个编码理论解决方案,可以为任何非线性(可微)计算提供弹性。我们的研究结果表明,学习可以是一种有效的技术设计的代码,学习代码是一个非常有前途的方法,使编码的好处,非线性计算。

英文摘要:

Machine learning algorithms are typically run on large scale, distributed compute infrastructure that routinely face a number of unavailabilities such as failures and temporary slowdowns. Adding redundant computations using coding-theoretic tools called "codes" is an emerging technique to alleviate the adverse effects of such unavailabilities. A code consists of an encoding function that proactively introduces redundant computation and a decoding function that reconstructs unavailable outputs using the available ones. Past work focuses on using codes to provide resilience for linear computations and specific iterative optimization algorithms. However, computations performed for a variety of applications including inference on state-of-the-art machine learning algorithms, such as neural networks, typically fall outside this realm. In this paper, we propose taking a learning-based approach to designing codes that can handle non-linear computations. We present carefully designed neural network architectures and a training methodology for learning encoding and decoding functions that produce approximate reconstructions of unavailable computation results. We present extensive experimental results demonstrating the effectiveness of the proposed approach: we show that the our learned codes can accurately reconstruct $64 - 98\%$ of the unavailable predictions from neural-network based image classifiers on the MNIST, Fashion-MNIST, and CIFAR-10 datasets. To the best of our knowledge, this work proposes the first learning-based approach for designing codes, and also presents the first coding-theoretic solution that can provide resilience for any non-linear (differentiable) computation. Our results show that learning can be an effective technique for designing codes, and that learned codes are a highly promising approach for bringing the benefits of coding to non-linear computations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑