Explore the research collection
3 entries · Follow this search
- Paper
You Need Better Attention Priors
Generalizes attention through the lens of Entropic Optimal Transport (EOT): standard attention corresponds to a transport problem regularized by an implicit uniform prior. GOAT (Generalized Optimal Transport Attention with Trainable priors) replaces that naive assumption with a learnable, continuous prior that decouples spatial geometry from token semantics — standard positional encodings (e.g., RoPE) entangle position with meaning and corrupt semantic representations when forced to handle structural biases like attention sinks. The prior maintains full compatibility with optimized kernels like FlashAttention (zero compute overhead). GOAT also provides an EOT-based explanation of attention sinks and a solution that avoids standard attention's representational trade-offs. By absorbing spatial information into the core attention computation, GOAT learns an extrapolatable prior combining the flexibility of learned positional embeddings with the length generalization of fixed encodings — strong long-context extrapolation beyond training length.
- Paper
Liger Kernel: Efficient Triton Kernels for LLM Training
Open-source Triton kernels (RMSNorm, LayerNorm, RoPE, SwiGLU/GeGLU, CrossEntropy, FusedLinearCrossEntropy) using fusion and input chunking. Reports ~20% higher training throughput and ~60% less GPU memory vs HuggingFace implementations. 4×A100 Alpaca seq-512: Llama 3-8B +42.8% throughput / −54.8% memory at batch 64; Qwen2 +25.5% / −56.8% at batch 48. Also Gemma, Mistral, Phi-3. AutoLigerKernelForCausalLM plus HF Trainer/TRL/Axolotl/LLaMA-Factory hooks. Code https://github.com/linkedin/Liger-Kernel.
- Paper
Cross-Model KV Cache Transfer in LLM Families: A Closed-Form Linear Mapping for Prefill Reuse
Shows within-family matched-KV pairs (shared KV head count and head dim) have substantial linear structure: on Qwen3 14B->32B one source layer explains 56%/32% of target key/value variance, 79%/65% with multiple layers. A closed-form per-head ridge mapper with top-k cross-layer source selection and RoPE-stripped content-space keys retains 73-98% of standalone-prefill accuracy on four of six pairs (Qwen3, Llama 3.1, Ministral 3) and is 2.7-25x faster than re-prefill; two Ministral pairs collapse and a nonlinear MLP recovers up to +37 pp HellaSwag. Attention-output cosine predicts retention better than reconstruction R^2.