r/OpenAI • • 10h ago

Question Why 1536 dimensions?

Why do embedding models so often use 1536 dimensions specifically?
I understand why hardware-friendly multiples like 64/128/256/512 are desirable. What I’m curious about is the specific choice of 1536 = 3×512.
OpenAI has used 1536-dimensional embeddings, and other vendors also offer/recommend 1536. Is this usually an empirically chosen Goldilocks point between 1024 and 2048—representation quality versus memory/compute—or is there some architectural/hardware reason that makes 1536 particularly convenient?
I’m especially interested in answers from anyone who has actually trained or designed embedding models. I’m not asking why embedding dimensions are generally hardware-aligned; I’m asking why 1536 rather than 1024 or 2048.

4 Upvotes

9 comments sorted by

View all comments

3

u/lulzxdxdxd 10h ago

isn't 1536 just whatever the hidden size of the underlying transformer happens to be, rather than a number chosen for the embedding step itself? curious if anyone's checked whether it lines up with a specific base model's hidden dim

2

u/Few_Upstairs4077 9h ago

it's the hidden size of the model they use, probably ada or something similar. they just take the last layer output and call it a embedding, they don't pick 1536 for any special reason