Incrementally-Computable Neural Networks: Efficient Inference for Dynamic Inputs

Or Sharir, Anima Anandkumar
7/27/2023
cs.LGcs.CLstat.ML

No confident code implementation found for this paper.

Abstract

Deep learning often faces the challenge of efficiently processing dynamic inputs, such as sensor data or user inputs. For example, an AI writing assistant is required to update its suggestions in real time as a document is edited. Re-running the model each time is expensive, even with compression techniques like knowledge distillation, pruning, or quantization. Instead, we take an incremental computing approach, looking to reuse calculations as the inputs change. However, the dense connectivity of conventional architectures poses a major obstacle to incremental computation, as even minor input changes cascade through the network and restrict information reuse. To address this, we use vector quantization to discretize intermediate values in the network, which filters out noisy and unnecessary modifications to hidden neurons, facilitating the reuse of their values. We apply this approach to the transformers architecture, creating an efficient incremental inference algorithm with complexity proportional to the fraction of the modified inputs. Our experiments with adapting the OPT-125M pre-trained language model demonstrate comparable accuracy on document classification while requiring 12.1X (median) fewer operations for processing sequences of atomic edits.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sharir2023incrementallycomputable,
  title  = {Incrementally-Computable Neural Networks: Efficient Inference for Dynamic Inputs},
  author = {Or Sharir and Anima Anandkumar},
  year   = {2023},
  eprint = {2307.14988},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.14988v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.14988.svg)](https://codeofpaper.com/paper/2307.14988)

Discussion