Vocab expansion on Gemma 4 E2B: what to do with per-layer embeddings (PLE)?

Hello,

I’m trying to add a language to Gemma 4 E2B by expanding the vocabulary, and I plan to use QLoRA CPT, training only the embeddings first.

My question is about per-layer embeddings (PLE):

  1. When I resize embed_tokens, do the PLE tables also need to be resized for the new tokens?
  2. If yes, how should the new PLE rows be initialized (mean of existing rows, average of old subword pieces, zeros)?
  3. Should PLE be trained in the embedding-only stage, or can it stay frozen?
  4. If PLE needs to be trained, with QLoRA, how do I target PLE as well?

Has anyone done vocab expansion on E2B/E4B and can share any tips? Thanks you!

1 Like