TIDE: Every Layer Knows the Token Beneath the Context
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.
Related posts
- Tokenization in Transformers v5: Simpler, Clearer, and More Modular
Hugging Face mediumAdeptTransformers 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. The walkthrough covers the tokenization pipeline stages, the BPE, Unigram and WordPiece algorithms, and how the transformers wrapper adds chat templates, special tokens, truncation and padding on top of the Rust tokenizers library. It also lays out the class hierarchy: PreTrainedTokenizerBase as the common interface, with TokenizersBackend, PythonBackend and SentencePieceBackend beneath it. The v5 changes consolidate on a single fast backend and make tokenizers easier to inspect, customize and train from scratch.
- Train 400x faster Static Embedding Models with Sentence Transformers
Hugging Face hardMasterStatic 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. The recipe trains two 1024-dimensional models from randomly initialized weights using BERT tokenizers and Sentence Transformers' StaticEmbedding module: an English retrieval model trained on 13 QA datasets chosen to avoid overlap with BEIR, and a multilingual similarity model trained on parallel-sentence and positive-pair datasets. The post covers dataset selection, loss choice, training arguments, evaluators, NanoBEIR results on CPU and GPU, and Matryoshka truncation tradeoffs. The resulting models suit on-device, in-browser and edge workloads.
- Keep the Tokens Flowing: Lessons from 16 Open-Source RL Libraries
Hugging Face hardMasterAsync 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. A survey of 16 open-source libraries (verl, AReaL, SLIME, PRIME-RL, NeMo-RL and others) compares them on seven axes: orchestration, buffer design, weight sync, staleness management, partial rollouts, LoRA support and training parallelism. Ray dominates orchestration, NCCL broadcast is the default weight-transfer method, staleness handling ranges from dropping samples to importance-sampling correction, LoRA support is sparse, and distributed MoE support is emerging as the differentiator. Throughput math shows why this matters, with 32K-token rollouts on a 32B model taking hours per step on one H100. The findings shape TRL's new async trainer, which uses a bounded queue with per-token model versions, packed NCCL weight sync and partial rollout support.
- Welcome EmbeddingGemma, Google's new efficient embedding model
Hugging Face mediumAdeptEmbeddingGemma is Google's 308M-parameter multilingual text embedding model. It is built on a Gemma3 backbone modified to use bidirectional attention, with mean pooling and two dense layers producing 768-dimensional vectors. It supports a 2K-token context and over 100 languages, runs in under 200 MB of RAM when quantized, and ranks highest among text-only multilingual models under 500M parameters on MMTEB. Because it was trained with Matryoshka Representation Learning, embeddings can be truncated to 512, 256 or 128 dimensions, and inputs need task-specific prompts such as "task: search result | query: " to get correct results. Code examples cover Sentence Transformers, LangChain, LlamaIndex, Haystack, txtai, Transformers.js, TEI and ONNX, plus a finetuning walkthrough on the MIRIAD medical dataset whose resulting model outperforms models twice its size on that task.
- Accelerating Transformers Fine-Tuning with NVIDIA NeMo AutoModel
Hugging Face hardMasterNeMo 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. Users swap one import and get 3.4-3.7x higher MoE fine-tuning throughput and 29-32% lower peak memory on Qwen3-30B-A3B and Nemotron 3 Nano on 8 H100s. NeMo AutoModel's benchmarks used a balanced routing gate while v4/v5 ran their native routers. The same path enables full fine-tuning of the 550B Nemotron 3 Ultra across 128 GPUs, where v5 runs out of memory. Explanations cover why v4 deadlocks under FSDP (data-dependent per-expert loops cause mismatched collectives), v5's expert backends (eager, batched_mm, grouped_mm), and reversible dynamic weight loading that keeps checkpoints in standard HF format.