Explore the research collection
9 entries · Follow this search
- Paper
ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators
Replaced token detection: a small MLM generator fills 15% masks; the discriminator classifies every token as original vs replaced (MLE generator, not adversarial). Learns from all positions. ELECTRA-Small (14M, 4 days on 1 V100) GLUE 79.9 vs BERT-Small 75.1 and GPT 78.8. ELECTRA-Base 85.1 vs BERT-Base 82.2. ELECTRA-400K Large (335M, ~1/4 RoBERTa compute) GLUE 89.0 vs RoBERTa-500K 88.9; ELECTRA-1.75M 89.5 and SQuAD 2.0 test 88.7/91.4. ICLR 2020. Code https://github.com/google-research/electra.
- Paper
GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Models
100 GSM8K-test questions become symbolic templates (names, numbers, conditions); 50 instantiations each (5,000 eval items) plus harder P1/P2 clause variants and GSM-NoOp (irrelevant but topical clauses). Across 25 open/closed models, accuracy is a wide distribution; GSM8K often sits >1σ above the GSM-Symbolic mean. Models are more robust to name swaps than number swaps. Difficulty M1→P2 shifts the mean down and variance up. GSM-NoOp drops SOTA models up to 65% (Phi-3-mini) even with 8 shots of the same question. Hypothesis: pattern-matching, not formal reasoning. ICLR 2025. Data https://github.com/apple/ml-gsm-symbolic and HF apple/GSM-Symbolic.
- Paper
SageAttention: Accurate 8-Bit Attention for Plug-and-play Inference Acceleration
PTQ attention: subtract the token-mean of K to smooth channel outliers so QK can be INT8, and keep PV in FP16 with an FP16 accumulator (INT8 PV is too noisy on some layers). Triton kernels on RTX4090/3090; peak ~341 TOPS at headdim 64/128 vs FlashAttention2 ~165. ~2.1× FA2 and ~2.7× xformers. Plug-and-play: Llama2-7B WikiText 5.824 vs FP 5.823, MMLU 0.46=FP; CogVideoX/Unidiffuser/UltraPixel/TIMM/Llava1.6 near-parity. ICLR 2025. Code https://github.com/thu-ml/SageAttention.
- Paper
Charformer: Fast Character Transformers via Gradient-based Subword Tokenization
GBST scores candidate byte n-gram blocks (max width 4) position-wise and mixes them, then mean-pools (ds=2–3). Charformer is a T5-style encoder-decoder on the 256-byte vocab. CharformerSBase (134M, deep encoder): English GLUE avg 83.6 vs T5-Base 84.3 / Byte-T5 81.5; Civil Comments 83.0 vs T5 81.2; IMDb 94.4 vs T5 94.2. Multilingual long-PT: TyDiQA-GoldP 81.2/71.3 vs mT5-Base 80.8/70.0, 28% faster with ~3× fewer params. ICLR 2022 camera-ready. Implementation https://github.com/google-research/google-research/tree/master/charformer.
- Paper
Language Models Are Implicitly Continuous
Defines a Continuous Causal Transformer (integral attention) that recovers discrete Transformers at unit duration. On Llama2/3, Phi-3, Gemma 1/2, and Mistral, shrinking token or sentence duration smoothly changes counts (about 190–205% more unique numeric peaks than a discrete model would allow). Linear interpolations of embeddings (apples–bananas) are treated as valid concepts (color, fruit-ness) even when they map to no vocabulary token. Shift-invariant, not scale-invariant. Published at ICLR 2025. Code https://github.com/samuelemarro/continuous-llm-experiments.
- Paper
The Illusion of Diminishing Returns: Measuring Long Horizon Execution in LLMs
Gives the model the knowledge and plan, then measures retrieve-then-compose over a key→int dictionary. Horizon length Hs=ln(s)/ln(p) grows hyperbolically; short-task benches can hide compounding. Qwen3/Gemma3: near-perfect first-step accuracy but Qwen3-32B drops below 50% by ~15 turns; larger models execute more turns. Per-step accuracy degrades via self-conditioning on own errors, not just long context; scaling size does not fix it, thinking/RL does. Single-turn without CoT: even DeepSeek-V3/Kimi-K2 fail past ~6 steps; GPT-5 thinking 2176 steps vs Claude-4 Sonnet 432 / Grok 4 384 / Gemini 2.5 Pro 120. Published at ICLR 2026. Code https://github.com/long-horizon-execution/measuring-execution.
- Paper
Dr.LLM: Dynamic Layer Routing in LLMs
Attaches a tiny MLP router to each frozen block; routers are supervised on 4k length-aware MCTS paths (skip/execute/repeat) from ARC and DART-Math, then run search-free at inference. On six LLaMA-3.2/Qwen-2.5 models, in-domain accuracy rises in all cases (up to +3.4%p / +4.0%p on DART) with ~3–11 fewer layers per query; OOD drop 0.85%p average. Beats LayerSkip/ShortGPT/MindSkip/FlexiDepth by up to +7.7%p avg on GSM8k/MMLU/HellaSwag/HumanEval. Code https://github.com/parameterlab/dr-llm.
- Paper
Dynamic Mixture of Experts: An Auto-Tuning Approach for Efficient Transformer Models
DynMoE replaces fixed top-k with top-any gating (cosine similarity vs a trainable per-expert threshold) so tokens activate a variable number of experts, plus an adaptive add/remove process when tokens activate none or experts go unused. A diversity+simplicity auxiliary loss encourages sparse orthogonal expert representations. Competitive with tuned GMoE on DomainBed and MoE-LLaVA on VQA-style benches while activating fewer params (StableLM-1.6B: avg k=1.25 / 1.75B vs k=2 / 2.06B). Visualizations suggest bottom layers need MoE more than top layers and a shared easy-to-activate expert per layer. Code https://github.com/LINs-lab/DynMoE.
- Paper
DiffusionBlocks: Block-wise Neural Network Training via Diffusion Interpretation
Interprets residual updates as Euler steps of a probability-flow ODE, partitions layers into B blocks each assigned an equi-probability noise range, and trains one block at a time with score matching (Bx memory cut). Matches or beats end-to-end on ViT CIFAR-100 (59.30 vs 60.25), DiT CIFAR-10/ImageNet FID, MD4 text8 BPC 1.45 vs 1.56, Llama-2-style LM1B/OWT, and Huginn recurrent-depth (single-pass vs 32 iterations). Also beats NoProp variants on CIFAR-100. Code https://github.com/SakanaAI/DiffusionBlocks.