paper-with-me

홈 › Papers

Cheaply Estimating Inference Efficiency Metrics for Autoregressive Transformer Models

2023-09-21 · NeurIPS 2023 11

Large language models (LLMs) are highly capable but also computationally expensive. Characterizing the _fundamental tradeoff_ between inference efficiency and model capabilities requires a metric that is comparable across models from different providers. Unfortunately, raw runtimes measured through black-box APIs do not satisfy this property: model providers can implement software and hardware optimizations orthogonal to the model, and shared infrastructure introduces performance contention. We propose a new metric for inference efficiency called _idealized runtime_, that puts models on equal footing as though they were served on uniform hardware and software without performance contention, and a cost model to efficiently estimate this metric for autoregressive Transformer models. We also propose variants of the idealized runtime that incorporate the number and type of accelerators needed to serve the model. Using these metrics, we compare ten LLMs developed in 2022 to provide the first analysis of inference efficiency-capability tradeoffs; we make several observations from this analysis, including the fact that the superior inference runtime performance of certain APIs is often a byproduct of optimizations within the API rather than the underlying model. Our code is open sourced at https://github.com/stanford-crfm/helm-efficiency.Submission Number: 5135

📄 PDF Abstract BibTeX

Code (1)

stanford-crfm/helm-efficiency 공식 구현

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…

Similar Papers 제목 키워드 기반

Cheaply Evaluating Inference Efficiency Metrics for Autoregressive Transformer APIs

2023-05-03 · Deepak Narayanan, Keshav Santhanam, Peter Henderson, Rishi Bommasani 외

Large language models (LLMs) power many state-of-the-art systems in natural language processing. However, these models are extremely computationally expensive, even at inference time, raising the natural question: when i…

Text Generation

Variable Skipping for Autoregressive Range Density Estimation

2020-07-10 · ICML 2020 1 · Eric Liang, Zongheng Yang, Ion Stoica, Pieter Abbeel 외

Deep autoregressive models compute point likelihood estimates of individual data points. However, many applications (i.e., database cardinality estimation) require estimating range densities, a capability that is under-e…

Data AugmentationDensity Estimation

Variational Bayesian inference of hidden stochastic processes with unknown parameters

2019-11-02 · Komlan Atitey, Pavel Loskot, Lyudmila Mihaylova

Estimating hidden processes from non-linear noisy observations is particularly difficult when the parameters of these processes are not known. This paper adopts a machine learning approach to devise variational Bayesian …

Bayesian InferenceMissing ValuesTime SeriesTime Series Analysis

HAINAN: Fast and Accurate Transducer for Hybrid-Autoregressive ASR

2024-10-03 · Hainan Xu, Travis M. Bartley, Vladimir Bataev, Boris Ginsburg

We present Hybrid-Autoregressive INference TrANsducers (HAINAN), a novel architecture for speech recognition that extends the Token-and-Duration Transducer (TDT) model. Trained with randomly masked predictor network outp…

speech-recognitionSpeech Recognition

Masked Audio Generation using a Single Non-Autoregressive Transformer

2024-01-09 · Alon Ziv, Itai Gat, Gael Le Lan, Tal Remez 외

We introduce MAGNeT, a masked generative sequence modeling method that operates directly over several streams of audio tokens. Unlike prior work, MAGNeT is comprised of a single-stage, non-autoregressive transformer. Dur…

Audio Generation