Empowering Sentence Encoders with Prompting and Label Retrieval for Zero-shot Text Classification
With contrastive pre-training, sentence encoders are generally optimized to locate semantically similar samples closer to each other in their embedding spaces. In this work, we focus on the potential of their embedding spaces to be readily adapted to zero-shot text classification, as semantically distinct samples are already well-separated. Our framework, RaLP (Retrieval augmented Label Prompts for sentence encoder), encodes prompted label candidates with a sentence encoder, then assigns the label whose prompt embedding has the highest similarity with the input text embedding. In order to compensate for the potentially poorly descriptive labels in their original format, RaLP retrieves sentences that are semantically similar to the original label prompt from external corpora and use them as additional pseudo-label prompts. RaLP achieves competitive or stronger performance than much larger baselines on various closed-set classification and multiple-choice QA datasets under zero-shot settings. We show that the retrieval component plays a pivotal role in RaLP's success, and its results are robustly attained regardless of verbalizer variations.
Code (0)
등록된 구현이 없습니다.
Tasks
ClassificationDescriptiveMultiple-choicePseudo LabelRetrievalSentencetext-classificationText Classificationtext similarityZero-Shot LearningZero-Shot Text ClassificationSimilar Papers 제목 키워드 기반
Training Effective Neural Sentence Encoders from Automatically Mined Paraphrases
Sentence embeddings are commonly used in text clustering and semantic retrieval tasks. State-of-the-art sentence representation methods are based on artificial neural networks fine-tuned on large collections of manually …
Language ModelingLanguage ModellingRetrievalSemantic Retrieval+3SEA: Sentence Encoder Assembly for Video Retrieval by Textual Queries
Retrieving unlabeled videos by textual queries, known as Ad-hoc Video Search (AVS), is a core theme in multimedia data management and retrieval. The success of AVS counts on cross-modal representation learning that encod…
Ad-hoc video searchManagementRepresentation LearningRetrieval+4SenTest: Evaluating Robustness of Sentence Encoders
Contrastive learning has proven to be an effective method for pre-training models using weakly labeled data in the vision domain. Sentence transformers are the NLP counterparts to this architecture, and have been growing…
Contrastive LearningFormInformation RetrievalRAG+3Robust Fragment-Based Framework for Cross-lingual Sentence Retrieval
Cross-lingual Sentence Retrieval (CLSR) aims at retrieving parallel sentence pairs that are translations of each other from a multilingual set of comparable documents. The retrieved parallel sentence pairs can be used in…
Machine TranslationRetrievalSentenceSentence Retrieval+2Map of Encoders -- Mapping Sentence Encoders using Quantum Relative Entropy
We propose a method to compare and visualise sentence encoders at scale by creating a map of encoders where each sentence encoder is represented in relation to the other sentence encoders. Specifically, we first represen…