paper-with-me

Papers

Word Embeddings Are Steers for Language Models

2023-05-22 · Chi Han, Jialiang Xu, Manling Li, Yi Fung, Chenkai Sun, Nan Jiang, Tarek Abdelzaher, Heng Ji

Language models (LMs) automatically learn word embeddings during pre-training on language corpora. Although word embeddings are usually interpreted as feature vectors for individual words, their roles in language model generation remain underexplored. In this work, we theoretically and empirically revisit output word embeddings and find that their linear transformations are equivalent to steering language model generation styles. We name such steers LM-Steers and find them existing in LMs of all sizes. It requires learning parameters equal to 0.2% of the original LMs' size for steering each style. On tasks such as language model detoxification and sentiment control, LM-Steers can achieve comparable or superior performance compared with state-of-the-art controlled generation methods while maintaining a better balance with generation quality. The learned LM-Steer serves as a lens in text styles: it reveals that word embeddings are interpretable when associated with language model generations and can highlight text spans that most indicate the style differences. An LM-Steer is transferrable between different language models by an explicit form calculation. One can also continuously steer LMs simply by scaling the LM-Steer or compose multiple LM-Steers by adding their transformations. Our codes are publicly available at \url{https://github.com/Glaciohound/LM-Steer}.

📄 PDF Abstract BibTeX arXiv:2305.12798

Code (1)

glaciohound/lm-steer 공식 구현 pytorch

Tasks

Language ModelingLanguage ModellingWord Embeddings

Methods 이 논문이 사용한 방법론

BASE 설명 없음

Similar Papers 제목 키워드 기반

Evaluating Sub-word Embeddings in Cross-lingual Models

2020-05-01 · LREC 2020 5 · Ali Hakimi Parizi, Paul Cook

Cross-lingual word embeddings create a shared space for embeddings in two languages, and enable knowledge to be transferred between languages for tasks such as bilingual lexicon induction. One problem, however, is out-of…

Bilingual Lexicon InductionCross-Lingual Word EmbeddingsWord Embeddings

Sub-Word Similarity based Search for Embeddings: Inducing Rare-Word Embeddings for Word Similarity Tasks and Language Modelling

2016-12-01 · COLING 2016 12 · Mittul Singh, Clayton Greenberg, Youssef Oualil, Dietrich Klakow

Training good word embeddings requires large amounts of data. Out-of-vocabulary words will still be encountered at test-time, leaving these words without embeddings. To overcome this lack of embeddings for rare words, ex…

Language ModelingLanguage ModellingMorphological AnalysisWord Embeddings+1

Injecting Word Embeddings with Another Language's Resource : An Application of Bilingual Embeddings

2017-11-01 · IJCNLP 2017 11 · P, Prakhar ey, Vikram Pudi, Manish Shrivastava

Word embeddings learned from text corpus can be improved by injecting knowledge from external resources, while at the same time also specializing them for similarity or relatedness. These knowledge resources (like WordNe…

Learning Word EmbeddingsWord EmbeddingsWord Similarity

A Survey On Neural Word Embeddings

2021-10-05 · Erhan Sezerer, Selma Tekir

Understanding human language has been a sub-challenge on the way of intelligent machines. The study of meaning in natural language processing (NLP) relies on the distributional hypothesis where language elements get mean…

Language ModellingRetrievalSurveyWord Embeddings

A Distribution-based Model to Learn Bilingual Word Embeddings

2016-12-01 · COLING 2016 12 · Hailong Cao, Tiejun Zhao, Shu Zhang, Yao Meng

We introduce a distribution based model to learn bilingual word embeddings from monolingual data. It is simple, effective and does not require any parallel data or any seed lexicon. We take advantage of the fact that wor…

Machine TranslationWord Embeddings