paper-with-me

홈 › Papers

The Unreasonable Ineffectiveness of Nucleus Sampling on Mitigating Text Memorization

2024-08-29 · Luka Borec, Philipp Sadler, David Schlangen

This work analyses the text memorization behavior of large language models (LLMs) when subjected to nucleus sampling. Stochastic decoding methods like nucleus sampling are typically applied to overcome issues such as monotonous and repetitive text generation, which are often observed with maximization-based decoding techniques. We hypothesize that nucleus sampling might also reduce the occurrence of memorization patterns, because it could lead to the selection of tokens outside the memorized sequence. To test this hypothesis we create a diagnostic dataset with a known distribution of duplicates that gives us some control over the likelihood of memorization of certain parts of the training data. Our analysis of two GPT-Neo models fine-tuned on this dataset interestingly shows that (i) an increase of the nucleus size reduces memorization only modestly, and (ii) even when models do not engage in "hard" memorization -- a verbatim reproduction of training samples -- they may still display "soft" memorization whereby they generate outputs that echo the training data but without a complete one-by-one resemblance.

📄 PDF Abstract BibTeX arXiv:2408.16345

Code (1)

lukaborec/memorization-nucleus-sampling 공식 구현

Tasks

DiagnosticMemorizationText Generation

Methods 이 논문이 사용한 방법론

GPT-Neo An implementation of model & data parallel GPT3-like models using the mesh-tensorflow…

Similar Papers 제목 키워드 기반

Conformal Nucleus Sampling

2023-05-04 · Shauli Ravfogel, Yoav Goldberg, Jacob Goldberger

Language models generate text based on successively sampling the next word. A decoding procedure based on nucleus (top-$p$) sampling chooses from the smallest possible set of words whose cumulative probability exceeds th…

Conformal Prediction

What Do You Get When You Cross Beam Search with Nucleus Sampling?

2021-07-20 · insights (ACL) 2022 5 · Uri Shaham, Omer Levy

We combine beam search with the probabilistic pruning technique of nucleus sampling to create two deterministic nucleus search algorithms for natural language generation. The first algorithm, p-exact search, locally prun…

Machine TranslationText GenerationTranslation

Impact of Decoding Methods on Human Alignment of Conversational LLMs

2024-07-28 · Shaz Furniturewala, Kokil Jaidka, Yashvardhan Sharma

To be included into chatbot systems, Large language models (LLMs) must be aligned with human conversational conventions. However, being trained mainly on web-scraped data gives existing LLMs a voice closer to information…

Chatbot

REAL Sampling: Boosting Factuality and Diversity of Open-Ended Generation via Asymptotic Entropy

2024-06-11 · Haw-Shiuan Chang, Nanyun Peng, Mohit Bansal, Anil Ramakrishna 외

Decoding methods for large language models (LLMs) usually struggle with the tradeoff between ensuring factuality and maintaining diversity. For example, a higher p threshold in the nucleus (top-p) sampling increases the …

DiversityHallucination

De-Anonymizing Text by Fingerprinting Language Generation

2020-06-17 · NeurIPS 2020 12 · Zhen Sun, Roei Schuster, Vitaly Shmatikov

Components of machine learning systems are not (yet) perceived as security hotspots. Secure coding practices, such as ensuring that no execution paths depend on confidential inputs, have not yet been adopted by ML develo…

Text Generation