---
title: "TIDE: Every Layer Knows the Token Beneath the Context"
description: "Standard transformers look up a token's embedding once at the input layer and then discard the token identity, which causes two failures: rare tokens get under-trained embeddings because of Zipf-distributed gradient signal, and small models collapse distributionally similar tokens into indistinguishable hidden states."
url: "https://swe.quest/articles/tide-every-layer-knows-the-token-beneath-the-context-c66a27a495a95a2f"
canonical: "https://machinelearning.apple.com/research/tide-token-embedding"
source: "Apple Machine Learning Research"
published: "2026-11-11"
difficulty: "hard"
kind: "Research"
reading_minutes: 1
tags: ["llms","model-training","machine-learning"]
---

# TIDE: Every Layer Knows the Token Beneath the Context

A post on [Apple Machine Learning Research](https://swe.quest/sources/apple-ml.md), published 2026-11-11, 1 min read, Research. Original: [https://machinelearning.apple.com/research/tide-token-embedding](https://machinelearning.apple.com/research/tide-token-embedding)

## Summary

Standard transformers look up a token's embedding once at the input layer and then discard the token identity, which causes two failures: rare tokens get under-trained embeddings because of Zipf-distributed gradient signal, and small models collapse distributionally similar tokens into indistinguishable hidden states. TIDE addresses both with EmbeddingMemory, an ensemble of K independent MemoryBlocks that map token indices to context-free semantic vectors. These vectors are computed once and injected into every layer through a depth-conditioned softmax router with a learnable null bank. The authors report theoretical and empirical gains across language modeling and downstream tasks.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)

## Prerequisites

- transformer architecture ([easy posts on System design](https://swe.quest/tags/system-design.md?difficulty=easy))
- token embeddings ([easy posts on RAG & retrieval](https://swe.quest/tags/rag.md?difficulty=easy))
- LLM pre-training ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

TIDE, EmbeddingMemory, NeurIPS, Apple

## Related posts

- [Tokenization in Transformers v5: Simpler, Clearer, and More Modular](https://swe.quest/articles/tokenization-in-transformers-v5-simpler-clearer-and-more-modular-71df3b1e7d817d35.md): Hugging Face · 2025-12-18 · Medium · 14 min read · LLMs, Python, Open source
  Transformers v5 redesigns tokenizers so that tokenizer architecture (normalizer, pre-tokenizer, model, post-processor, decoder) is separated from the trained vocabulary, much as PyTorch separates model architecture from weights.
- [Train 400x faster Static Embedding Models with Sentence Transformers](https://swe.quest/articles/train-400x-faster-static-embedding-models-with-sentence-transformers-9f174d4b1294477b.md): Hugging Face · 2025-01-15 · Hard · 39 min read · Model training, Machine learning, Search, Python, Performance engineering
  Static embedding models, which replace the attention-based encoder with a token embedding lookup plus mean pooling (an EmbeddingBag), can be trained with modern contrastive losses and Matryoshka Representation Learning to run 100x to 400x faster on CPU than models like all-mpnet-base-v2 and multilingual-e5-small, while keeping at least 85% of their benchmark quality.
- [Keep the Tokens Flowing: Lessons from 16 Open-Source RL Libraries](https://swe.quest/articles/keep-the-tokens-flowing-lessons-from-16-open-source-rl-libraries-14bbb97951dedd55.md): Hugging Face · 2026-03-10 · Hard · 45 min read · Model training, Distributed systems, Inference & serving, LLMs
  Async RL post-training libraries have converged on one architecture: disaggregate inference and training onto separate GPU pools, connect them with a rollout buffer, and push weights asynchronously so generation never stops and training never waits.
- [Welcome EmbeddingGemma, Google's new efficient embedding model](https://swe.quest/articles/welcome-embeddinggemma-google-s-new-efficient-embedding-model-6dfba9cbb9b4eedd.md): Hugging Face · 2025-09-04 · Medium · 30 min read · RAG & retrieval, Vector search, Model training, LLMs, Python
  EmbeddingGemma is Google's 308M-parameter multilingual text embedding model.
- [Accelerating Transformers Fine-Tuning with NVIDIA NeMo AutoModel](https://swe.quest/articles/accelerating-transformers-fine-tuning-with-nvidia-nemo-automodel-c196d721b8de0a9a.md): Hugging Face · 2026-06-24 · Hard · 10 min read · Model training, Performance engineering, LLMs, Python
  NeMo AutoModel subclasses Transformers v5's AutoModelForCausalLM and adds Expert Parallelism as a dedicated mesh orthogonal to data parallelism, DeepEP fused all-to-all dispatch, and TransformerEngine kernels.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
