TL;DR
JTok introduces token-indexed parameters as a novel, compute-efficient scaling axis for LLMs that decouples model capacity from FLOPs. By augmenting Transformer layers with lightweight, element-wise modulation vectors retrieved from auxiliary embedding tables, JTok and its sparse variant JTok-M significantly improve model quality and downstream task performance while saving up to 35% of compute relative to standard architectures.
What Problem Does This Paper Address?
Scaling large language models (LLMs) traditionally relies on two main approaches: dense scaling (increasing total parameters and training tokens) and sparse scaling (such as Mixture-of-Experts, or MoE). Dense scaling suffers from a tight coupling between model capacity and computational cost (FLOPs), leading to diminishing returns and high resource requirements as data limits are reached. MoE decouples capacity from compute but introduces massive memory footprints, routing imbalances, and hardware/communication inefficiencies.
The authors address this bottleneck by asking: Can we scale model capacity along an entirely different axis that injects substantial parameter capacity without increasing dense matrix multiplication costs (FLOPs)?
Methods
The authors propose Joint-Token (JTok) and its sparse variant Mixture of Joint-Token (JTok-M). Instead of scaling the vocabulary size ($V$) or adding large neural network experts, JTok scales along the hidden feature dimension ($d$) using token-indexed parameters.
- JTok: Each Transformer layer is equipped with a learnable embedding table. For each token, a modulation vector is retrieved based on its token ID. This vector undergoes normalization and learnable scaling, acting as a lightweight multiplicative gate applied via element-wise (Hadamard) products to the MLP residual stream.
- JTok-M: This generalizes JTok by maintaining a pool of token-indexed modulators per layer. A lightweight router uses the hidden state to dynamically select a sparse Top-K mixture of modulators per token instance, allowing context-aware, dynamic modulation.
To make this system practical, the authors design efficiency strategies to keep parameter retrieval off the critical path of General Matrix Multiplications (GEMMs). This includes asynchronous prefetching (overlapping memory access with backbone compute), token deduplication (exploiting Zipfian token distributions to avoid redundant reads), embedding parallelism across GPUs, and CPU offloading during inference.
Datasets
The models were pretrained and evaluated using several large-scale datasets and benchmarks:
- Pretraining Datasets: FineWeb-edu (100B tokens for small, medium, and large dense models) and a separate high-quality curated online corpus containing general text, code, math, and multilingual content (used for the XL dense model and all MoE models, ranging from 300B to 570B tokens).
- Evaluation Benchmarks: Evaluated via the OpenCompass framework across 14 comprehensive downstream tasks spanning four domains:
- Knowledge: MMLU, TriviaQA, ARC-C, GPQA
- Reasoning: Hellaswag, C3, BBH, SocialIQA
- Code: MBPP, HumanEval, LiveCodeBench (LCB)
- Math: MATH, GSM8K, DROP
- Trajectories on 17B MoE: Tracked using CMMLU, CEval, and Xiezhi.
Key Insights and Ideas
- Decoupling Capacity from FLOPs via Element-wise Ops: By replacing dense matrix multiplications with table lookups and element-wise operations, JTok injects billions of parameters with virtually zero FLOPs overhead.
- A Predictable New Scaling Law: The authors prove both theoretically and empirically that token-indexed parameters follow a predictable log-linear power-law scaling behavior (similar to dense parameters) relative to the parameter expansion ratio ($\eta$).
- Shifting the Pareto Frontier: Rigorous isoFLOPs analysis reveals that JTok-M doesn't just provide a minor boost; it fundamentally shifts the quality-compute Pareto frontier downward, meaning it achieves the same loss as vanilla architectures while using significantly less compute.
- The Power of Normalization: A key "aha" moment in their ablation studies showed that explicitly normalizing the retrieved modulation vectors onto a hypersphere decouples direction learning from scale. Without this normalization, token embeddings drift wildly, causing variance explosion and degrading performance.
Key Results
- Consistent Loss Reduction: Across all dense and MoE scales (from 190M to 17B active backbones), JTok and JTok-M consistently achieved lower training loss trajectories.
- Downstream Performance Boosts: On a 1.5B dense model, JTok improved the average downstream accuracy from 22.22% to 26.54%. On a large-scale 17B MoE backbone (with 44B embedding parameters), JTok-M delivered massive gains: +4.1 on MMLU, +8.3 on ARC-C, and +8.9 on CEval.
- 35% Compute Savings: IsoFLOPs profiles confirmed that JTok-M saves approximately 35% of the compute required to reach a target validation loss compared to a vanilla MoE architecture.
- Minimal System Overhead: Thanks to asynchronous prefetching and token deduplication, the training throughput drop was kept under 6.78%. For inference, CPU offloading resulted in zero additional GPU memory footprint, with a minor latency increase of $\le$ 7.3%.
Limitations and Future Work
- Memory vs. Compute Trade-off: While JTok bypasses compute bottlenecks, it shifts the system burden to memory access and storage footprint. Even with CPU offloading, scaling to massive embedding sizes requires careful memory management.
- Routing Complexity: JTok-M introduces an auxiliary load-balancing loss to ensure uniform expert utilization, adding minor complexity to the training pipeline.
- Future Directions: The authors suggest exploring token-indexed parameters as a standalone capacity axis for future model expansions and optimizing hardware-level kernel fusions to further minimize memory round-trips.
Summary updated