Switchable Decision: Dynamic Neural Generation Networks

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Zhang, Shujian, Tanwisuth, Korawat, Gong, Chengyue, He, Pengcheng, Zhou, Mingyuan
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866929337231474688
author Zhang, Shujian
Tanwisuth, Korawat
Gong, Chengyue
He, Pengcheng
Zhou, Mingyuan
author_facet Zhang, Shujian
Tanwisuth, Korawat
Gong, Chengyue
He, Pengcheng
Zhou, Mingyuan
contents Auto-regressive generation models achieve competitive performance across many different NLP tasks such as summarization, question answering, and classifications. However, they are also known for being slow in inference, which makes them challenging to deploy in real-time applications. We propose a switchable decision to accelerate inference by dynamically assigning computation resources for each data instance. Automatically making decisions on where to skip and how to balance quality and computation cost with constrained optimization, our dynamic neural generation networks enforce the efficient inference path and determine the optimized trade-off. Experiments across question answering, summarization, and classification benchmarks show that our method benefits from less computation cost during inference while keeping the same accuracy. Extensive experiments and ablation studies demonstrate that our method can be general, effective, and beneficial for many NLP tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2405_04513
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Switchable Decision: Dynamic Neural Generation Networks
Zhang, Shujian
Tanwisuth, Korawat
Gong, Chengyue
He, Pengcheng
Zhou, Mingyuan
Computation and Language
Artificial Intelligence
Machine Learning
Auto-regressive generation models achieve competitive performance across many different NLP tasks such as summarization, question answering, and classifications. However, they are also known for being slow in inference, which makes them challenging to deploy in real-time applications. We propose a switchable decision to accelerate inference by dynamically assigning computation resources for each data instance. Automatically making decisions on where to skip and how to balance quality and computation cost with constrained optimization, our dynamic neural generation networks enforce the efficient inference path and determine the optimized trade-off. Experiments across question answering, summarization, and classification benchmarks show that our method benefits from less computation cost during inference while keeping the same accuracy. Extensive experiments and ablation studies demonstrate that our method can be general, effective, and beneficial for many NLP tasks.
title Switchable Decision: Dynamic Neural Generation Networks
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2405.04513