paper-with-me

Papers

Simply Trainable Nearest Neighbour Machine Translation with GPU Inference

2024-07-29 · Hossam Amer, Abdelrahman Abouelenin, Mohamed Maher, Evram Narouz, Mohamed Afify, Hany Awadallah

Nearest neighbor machine translation is a successful approach for fast domain adaption, which interpolates the pre-trained transformers with domain-specific token-level k-nearest-neighbor (kNN) retrieval without retraining. Despite kNN MT's success, searching large reference corpus and fixed interpolation between the kNN and pre-trained model led to computational complexity and translation quality challenges. Among other papers, Dai et al. proposed methods to obtain a small number of reference samples dynamically for which they introduced a distance-aware interpolation method using an equation that includes free parameters. This paper proposes a simply trainable nearest neighbor machine translation and carry out inference experiments on GPU. Similar to Dai et al., we first adaptively construct a small datastore for each input sentence. Second, we train a single-layer network for the interpolation coefficient between the knnMT and pre-trained result to automatically interpolate in different domains. Experimental results on different domains show that our proposed method either improves or sometimes maintain the translation quality of methods in Dai et al. while being automatic. In addition, our GPU inference results demonstrate that knnMT can be integrated into GPUs with a drop of only 5% in terms of speed.

📄 PDF Abstract BibTeX arXiv:2407.19965

Code (0)

등록된 구현이 없습니다.

Tasks

Domain AdaptationGPUMachine TranslationSentenceTranslation

Similar Papers 제목 키워드 기반

Learning Decoupled Retrieval Representation for Nearest Neighbour Neural Machine Translation

2022-09-19 · COLING 2022 10 · Qiang Wang, Rongxiang Weng, Ming Chen

K-Nearest Neighbor Neural Machine Translation (kNN-MT) successfully incorporates external corpus by retrieving word-level representations at test time. Generally, kNN-MT borrows the off-the-shelf context representation i…

Contrastive LearningDecoderMachine TranslationRetrieval+1

Transductive Confidence Machine and its application to Medical Data Sets

2024-05-25 · David Lindsay

The Transductive Confidence Machine Nearest Neighbours (TCMNN) algorithm and a supporting, simple user interface was developed. Different settings of the TCMNN algorithms' parameters were tested on medical data sets, in …

k-Nearest Neighbour Classifiers: 2nd Edition (with Python examples)

2020-04-09 · Padraig Cunningham, Sarah Jane Delany

Perhaps the most straightforward classifier in the arsenal or machine learning techniques is the Nearest Neighbour Classifier -- classification is achieved by identifying the nearest neighbours to a query example and usi…

ClassificationGeneral ClassificationRetrievalTime Series+1

Using Enriched Category Theory to Construct the Nearest Neighbour Classification Algorithm

2023-12-27 · Matthew Pugh, Jo Grundy, Corina Cirstea, Nick Harris

This paper is the first to construct and motivate a Machine Learning algorithm solely with Enriched Category Theory, supplementing evidence that Category Theory can provide valuable insights into the construction and exp…

Nearest Neighbor Machine Translation

2020-10-01 · ICLR 2021 1 · Urvashi Khandelwal, Angela Fan, Dan Jurafsky, Luke Zettlemoyer 외

We introduce $k$-nearest-neighbor machine translation ($k$NN-MT), which predicts tokens with a nearest neighbor classifier over a large datastore of cached examples, using representations from a neural translation model …

DecoderMachine TranslationTranslation