English

MCTensor: A High-Precision Deep Learning Library with Multi-Component Floating-Point

Machine Learning 2022-08-31 v2 Mathematical Software

Abstract

In this paper, we introduce MCTensor, a library based on PyTorch for providing general-purpose and high-precision arithmetic for DL training. MCTensor is used in the same way as PyTorch Tensor: we implement multiple basic, matrix-level computation operators and NN modules for MCTensor with identical PyTorch interface. Our algorithms achieve high precision computation and also benefits from heavily-optimized PyTorch floating-point arithmetic. We evaluate MCTensor arithmetic against PyTorch native arithmetic for a series of tasks, where models using MCTensor in float16 would match or outperform the PyTorch model with float32 or float64 precision.

Keywords

Cite

@article{arxiv.2207.08867,
  title  = {MCTensor: A High-Precision Deep Learning Library with Multi-Component Floating-Point},
  author = {Tao Yu and Wentao Guo and Jianan Canal Li and Tiancheng Yuan and Christopher De Sa},
  journal= {arXiv preprint arXiv:2207.08867},
  year   = {2022}
}

Comments

HATE2022 in ICML2022

R2 v1 2026-06-25T01:01:46.102Z