Practical token pruning for foundation models in few-shot conversational virtual assistant systems

Haode Qi, Cheng Qian, Jian Ni, Pratyush Singh, Reza Fazeli +4 more
8/21/2024
cs.CL

No confident code implementation found for this paper.

Abstract

In an enterprise Virtual Assistant (VA) system, intent classification is the crucial component that determines how a user input is handled based on what the user wants. The VA system is expected to be a cost-efficient SaaS service with low training and inference time while achieving high accuracy even with a small number of training samples. We pretrain a transformer-based sentence embedding model with a contrastive learning objective and leverage the embedding of the model as features when training intent classification models. Our approach achieves the state-of-the-art results for few-shot scenarios and performs better than other commercial solutions on popular intent classification benchmarks. However, generating features via a transformer-based model increases the inference time, especially for longer user inputs, due to the quadratic runtime of the transformer's attention mechanism. On top of model distillation, we introduce a practical multi-task adaptation approach that configures dynamic token pruning without the need for task-specific training for intent classification. We demonstrate that this approach improves the inference speed of popular sentence transformer models without affecting model performance.

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{qi2024practical,
  title  = {Practical token pruning for foundation models in few-shot conversational virtual assistant systems},
  author = {Haode Qi and Cheng Qian and Jian Ni and Pratyush Singh and Reza Fazeli and Gengyu Wang and Zhongzheng Shu and Eric Wayne and Juergen Bross},
  year   = {2024},
  eprint = {2408.11799},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.11799v1}
}

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/2408.11799.svg)](https://codeofpaper.com/paper/2408.11799)

Discussion