跳到主要内容Skip to main content

嵌入层Embedding Layer

Embedding Layer

  • 核心概念Core concepts
  • 第四段 · 看懂Stage 4 · Under the Hood
  • 引用核验 2026-11-09refs checked 2026-11-09
解决什么问题What problem it solves

把词变成数字向量的第一步,模型内部只认数字。The first step of turning words into numeric vectors — models only work in numbers internally.

这是什么What it is

模型内部把每个 token 映射成高维向量的那一层,是向量检索技术的源头。

The layer mapping each token to a high-dimensional vector inside the model — the origin of vector retrieval.

An embedding table maps token IDs to dense vectors; semantically similar vectors sit closer (2D is illustrative).
嵌入表把 token ID 查成稠密向量,语义相近的向量在空间中更靠近(二维仅为示意)。An embedding table maps token IDs to dense vectors; semantically similar vectors sit closer (2D is illustrative).
为什么需要知道Why it matters

它连接「看懂站」和「用深站」。你理解的 embedding 概念,和这里的实现是同一个东西。It connects the conceptual layer to the applied one: the embedding you use in practice is this.

出处Sources
  • Word2Vec(论文)Word2Vec: Efficient Estimation of Word Representations ↗
用这个术语做任务Use this term in a task

别停在定义:去任务手册看按什么顺序做、验收什么;或者按你手头的任务,筛 3 个工具候选。Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.

任务手册 →Task handbooks → · 按任务筛 3 个候选 →Filter three candidates →