Answer the following expert-level machine learning question. Background: Large language…
- User
Answer the following expert-level machine learning question. Background: Large language models, such as GPT-3, typically use Byte-Pair Encoding (BPE) as tokenizers, resulting in a fixed vocabulary size of around 50,000 tokens (source: GPT-2 paper). However, the embedding dimension of these large language models keeps growing, from 512 in the original Transformer model (2017), to 1,600 in the GPT-2 model (2019), then to 12,288 in the GPT-3 model (2020), and seems to strongly correlate with model performance. Question:
- What are the benefits of using a super high dimensional space (e.g. dimensionality > 10k) to embed 50k tokens?
- Can you explain Johnson–Lindenstrauss lemma to me? Does the observed phenomenon of ever-increasing embedding dimension contradict Johnson–Lindenstrauss lemma?
- Given enough training data, computing power and storage access, will it be beneficial to use even higher embedding dimensions (e.g. embedding dimensionality larger than vocabulary size, say 100k vs. 50k) in large language models?
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.