{
  "id": 983,
  "kind": "paper",
  "title": "FlashHead: Efficient Drop-In Replacement for the Classification Head in Language Model Inference",
  "summary": "Argues growing vocabularies make the dense LM head a major param/compute bottleneck (up to ~60% params / ~50% decode compute on small models). FlashHead reframes next-token scoring as balanced-cluster multiprobe retrieval with sampling support and selective quantization, reporting up to ~1.75× model-level speedups (e.g. Llama-3.2-1B) with near-baseline accuracy; gains compound with W4A16.",
  "body": "",
  "notes": "Discord LocalLLaMA share mid 1451683615648776369. Distinct from SoulX-FlashHead/VividHead (id 845). Verified abs title/authors via arxiv.org/abs/2603.14591.",
  "url": "https://arxiv.org/abs/2603.14591",
  "links": [],
  "authors": [
    "Wilhelm Tranheden",
    "Shahnawaz Ahmed",
    "Devdatt Dubhashi",
    "Jonna Matthiesen",
    "Hannes von Essen"
  ],
  "tags": [
    "flashhead",
    "lm-head",
    "inference",
    "retrieval",
    "quantization",
    "vllm",
    "embedl",
    "decode-speed"
  ],
  "topics": "inference efficiency, LM head, retrieval, quantization, SLM decode",
  "venue": "arXiv / Embedl",
  "publisher": "arXiv / Embedl",
  "source": "arxiv",
  "language": "en",
  "access": "https://arxiv.org/abs/2603.14591 ; code https://github.com/Embedl/flash-head ; HF demo models under embedl/*-FlashHead-*",
  "license": "arXiv preprint (see paper); Embedl model/plugin licensing separate",
  "published_year": 2026,
  "added_at": "2026-09-16T17:18:32.000Z",
  "verified_at": "2026-09-16T17:18:32.000Z",
  "attrs": {
    "scale": "Benchmarks on Llama-3.2 / Gemma-3 / Qwen-3; up to 1.75× e2e (1B-class); ~1.13× at 8B",
    "domain": "inference efficiency, LM head, retrieval, quantization, SLM decode",
    "purpose": "Replace dense LM classification head with training-free clustered multi-probe retrieval for faster decode",
    "used_for": "Unknown",
    "author_type": "industry/academia",
    "time_period": "arXiv 2603.14591; LocalLLaMA/Embedl public posts ~2025-12"
  },
  "enrichment": {
    "s2": {
      "venue": "arXiv.org",
      "paper_id": "876ed6e2ae3c1c6c351b909a671bb4a5e669790a",
      "published": "2026-03-15",
      "fetched_at": "2026-10-03T14:59:36.047Z",
      "citation_count": 1,
      "reference_count": 44,
      "influential_citation_count": 0
    },
    "arxiv": {
      "id": "2603.14591",
      "title": "FlashHead: Efficient Drop-In Replacement for the Classification Head in Language Model Inference",
      "authors": [
        "Wilhelm Tranheden",
        "Shahnawaz Ahmed",
        "Devdatt Dubhashi",
        "Jonna Matthiesen",
        "Hannes von Essen"
      ],
      "comment": "A collection of models with FlashHead optimization can be found at: https://huggingface.co/collections/embedl/flashhead",
      "updated": "2026-03-15",
      "abstract": "Language models are increasingly adopting smaller architectures optimized for consumer devices. In this setting, inference efficiency is the primary constraint. Meanwhile, vocabulary sizes continue to grow rapidly, making the classification head a critical bottleneck that accounts for up to 60\\% of model parameters, and 50\\% of inference compute. We introduce FlashHead, the first efficient drop-in replacement for the dense classification head that is training-free and hardware-friendly. FlashHead builds on principles from information retrieval, reframing that computation at the output head as a retrieval problem rather than a dense classification over the full vocabulary. FlashHead introduces four key innovations: (1) a balanced clustering scheme that structures vocabulary partitions into compact hardware-efficient tensors, (2) extending multiprobe retrieval to language model heads, enabling thousands of clusters to be scored in parallel, (3) a novel inference-time sampling mechanism that extends retrieval beyond top tokens, enabling probabilistic sampling across the full vocabulary, and (4) selective quantization, enabling effective low-bit computation in the head. Experiments on Llama-3.2, Gemma-3, and Qwen-3 show that FlashHead delivers model-level inference speedups of up to \\textbf{1.75x} which maintaining output accuracy compared to the original head. By overcoming the classification head bottleneck, FlashHead establishes a new benchmark for efficient inference and removes a key barrier to developing smaller, capable models for consumer hardware.",
      "published": "2026-03-15",
      "categories": [
        "cs.LG",
        "cs.AI",
        "cs.IR"
      ],
      "fetched_at": "2026-10-03T14:59:36.047Z"
    }
  },
  "enriched_at": "2026-10-03T14:59:36.080Z",
  "license_class": "other",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "channel": "random-papers",
    "legacy_paper_id": "1382",
    "needs_deep_eval": "no",
    "pipeline_status": "done",
    "research_status": "done"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-03T12:29:06.561Z",
  "updated_at": "2026-10-03T12:29:06.561Z",
  "page": "https://papers.projxon.ai/entries/983",
  "markdown": "https://papers.projxon.ai/entries/983.md",
  "api": "https://papers.projxon.ai/api/entries/983",
  "relations": [
    {
      "relation": "cites",
      "direction": "out",
      "note": "",
      "via": "citations",
      "entry": {
        "id": 962,
        "kind": "paper",
        "title": "GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers",
        "summary": "Generative Pre-trained Transformer models, known as GPT or OPT, set themselves apart through breakthrough performance across complex language modelling tasks, but also by their extremely high computational and storage costs. Specifically, due to their massive size, even inference for large, highly-accurate GPT models m…",
        "url": "https://arxiv.org/abs/2210.17323",
        "authors": [
          "Frantar",
          "Elias",
          "Ashkboos",
          "Saleh",
          "Hoefler",
          "Torsten",
          "Alistarh",
          "Dan"
        ],
        "tags": [
          "arxiv",
          "2210-17323",
          "quantization-efficiency",
          "linkedin-thread"
        ],
        "venue": "arXiv 2210.17323",
        "source": "arxiv",
        "license": "",
        "published_year": 2022,
        "added_at": "2026-09-15T00:46:23.000Z",
        "has_dataset_profile": false,
        "license_class": "unknown",
        "langs": [],
        "modalities": [],
        "size_class": null,
        "citation_count": 2668,
        "downloads": null,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/962",
        "markdown": "https://papers.projxon.ai/entries/962.md",
        "api": "https://papers.projxon.ai/api/entries/962"
      }
    }
  ],
  "duplicates": [],
  "similar": [
    {
      "id": 984,
      "kind": "tool",
      "title": "FlashHead (Embedl) — vLLM plugin / flash-head",
      "summary": "Open implementation of FlashHead as a vLLM plugin: balanced vocabulary clustering + multiprobe retrieval head, optional W4A16 pairing. Documented install via pip/flash-head; demo models e.g. embedl/Llama-3.2-1B-Instruct-FlashHead-W4A16.",
      "url": "https://github.com/Embedl/flash-head",
      "authors": [
        "Embedl"
      ],
      "tags": [
        "flashhead",
        "vllm",
        "inference",
        "tool",
        "embedl"
      ],
      "venue": "GitHub / Embedl",
      "source": "github",
      "license": "See Embedl Models Community Licence / upstream Llama terms for converted weights",
      "published_year": 2026,
      "added_at": "2026-09-16T17:18:32.000Z",
      "has_dataset_profile": false,
      "license_class": "other",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": 12,
      "page": "https://papers.projxon.ai/entries/984",
      "markdown": "https://papers.projxon.ai/entries/984.md",
      "api": "https://papers.projxon.ai/api/entries/984"
    },
    {
      "id": 829,
      "kind": "paper",
      "title": "Disaggregated Quantization: Specializing LLM Prefill and Decode",
      "summary": "Disaggregated quantization (DQ): separate computation formats, weights, and storage placement specialized to prefill vs decode -- low-precision arithmetic accelerates prompt processing, compact weights reduce memory traffic during generation. Removing activation quantization on decode improves accuracy on decode-heavy tasks without added inference cost (Qwen 3, Gemma 3). Separate compute-native prefill weights accelerate prompt processing vs weight-only inference while matching/exceeding its accuracy at 2-3-bit decode. Training an NVFP4 prefiller improves 1-bit accuracy by 32.5 points on MMLU-Pro and 35.3 on MMMU-Pro without modifying the decode checkpoint (Qwen3.8-27B GGUF decoder). \"Offloaded disaggregated prefill\" (ODP) streams the extra prefill checkpoint from SSD, amortizing loading over prompt length: 1.78x time-to-first-token speedup over the weight-only baseline at 8K prompt length in llama.cpp. Accuracy evaluated under disaggregated serving in vLLM; shared-weight format disaggregation validated via PTQ on models up to 2.8T parameters.",
      "url": "https://huggingface.co/papers/2609.26333",
      "authors": [
        "Andrei Panferov",
        "Maximilian Kleinegger",
        "Sweta Priyadarshi",
        "Tijmen Blankevoort",
        "Dan Alistarh"
      ],
      "tags": [
        "quantization",
        "inference",
        "prefill",
        "decode",
        "nvfp4",
        "low-bit-inference",
        "serving"
      ],
      "venue": "IST Austria Distributed Algorithms and Systems Lab (arXiv 2026-09-21; HF #2 Paper of the Day)",
      "source": "paper_page",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-30T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/829",
      "markdown": "https://papers.projxon.ai/entries/829.md",
      "api": "https://papers.projxon.ai/api/entries/829"
    },
    {
      "id": 661,
      "kind": "code",
      "title": "SIE: Superlinked Inference Engine",
      "summary": "Apache-2.0 inference server (superlinked/sie). Argument: agent pipelines now run 4–5 small models, but one-server-per-model (vLLM + TEI + FastAPI wrappers) bills idle GPU time. SIE puts encode()/score()/extract()/generate() behind one API, loads models on first request, and evicts LRU so one GPU rotates the set. Catalog ~112 models with packaged serving configs. Plugs into Qdrant/Weaviate/Chroma/LanceDB/LangChain/LlamaIndex; OpenAI-compatible URL. Discord/X is Akshay Pachaar’s recap plus X article “How to serve 5 models on one GPU” walking a flood-insurance claim through Docling, GLiNER2, bge-reranker-v2-m3, Grounding DINO, and Qwen3.5-4B. pip sie-server[local]. Python.",
      "url": "https://github.com/superlinked/sie",
      "authors": [
        "Superlinked",
        "Akshay Pachaar"
      ],
      "tags": [
        "sie",
        "superlinked",
        "inference",
        "multi-model",
        "vllm",
        "tei",
        "x"
      ],
      "venue": "Superlinked (GitHub)",
      "source": "github",
      "license": "Apache-2.0",
      "published_year": 2023,
      "added_at": "2026-08-14T19:50:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": 3358,
      "page": "https://papers.projxon.ai/entries/661",
      "markdown": "https://papers.projxon.ai/entries/661.md",
      "api": "https://papers.projxon.ai/api/entries/661"
    },
    {
      "id": 570,
      "kind": "paper",
      "title": "SageAttention: Accurate 8-Bit Attention for Plug-and-play Inference Acceleration",
      "summary": "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.",
      "url": "https://arxiv.org/abs/2410.02367",
      "authors": [
        "Jintao Zhang",
        "Jia Wei",
        "Haofeng Huang",
        "Pengle Zhang",
        "Jun Zhu",
        "Jianfei Chen"
      ],
      "tags": [
        "sageattention",
        "int8",
        "flashattention",
        "quantization",
        "triton",
        "iclr",
        "tsinghua",
        "inference"
      ],
      "venue": "arXiv / Tsinghua University",
      "source": "",
      "license": "CC BY 4.0",
      "published_year": 2024,
      "added_at": "2026-10-01T16:45:06.278Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 185,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/570",
      "markdown": "https://papers.projxon.ai/entries/570.md",
      "api": "https://papers.projxon.ai/api/entries/570"
    },
    {
      "id": 631,
      "kind": "code",
      "title": "VBR: Variable Bit-Rate KV Cache for llama.cpp",
      "summary": "spiritbuun llama.cpp fork (buun-llama-cpp) ships VBR as the default KV cache. Cache starts FP16 and degrades one (layer, side) tensor at a time down a price-ordered ladder (f16 → turbo8 → turbo4 → turbo3_tcq → turbo2_tcq → turbo1_tcq) using TurboQuant/TCQ codecs, following per-model KLD degrade tables. Default implicit VBR floors at turbo4; explicit -ct vbr opens the full ladder to t1. Budget is leftover VRAM after weights/compute; -c caps context so the budget is spent on quality instead of max length. CUDA-first with ROCm/HIP mirror. Related to TurboQuant (papers_local 606/640) but this is a dynamic controller, not a new codec paper.",
      "url": "https://github.com/spiritbuun/buun-llama-cpp",
      "authors": [
        "buun"
      ],
      "tags": [
        "vbr",
        "kv-cache",
        "llama-cpp",
        "turboquant",
        "quantization",
        "inference",
        "x"
      ],
      "venue": "GitHub",
      "source": "web",
      "license": "MIT",
      "published_year": 2026,
      "added_at": "2026-08-14T19:35:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": 881,
      "page": "https://papers.projxon.ai/entries/631",
      "markdown": "https://papers.projxon.ai/entries/631.md",
      "api": "https://papers.projxon.ai/api/entries/631"
    },
    {
      "id": 653,
      "kind": "other",
      "title": "Photon 2.0: Inference engine for Physical AI",
      "summary": "Moondream launch blog (2026-08-03). Argument: chat engines (vLLM/SGLang) optimize large-batch tokens/s, while robots/cameras need low concurrency, tight p99, and several models sharing a GPU. A proprietary compiler traces the forward pass and emits one megakernel so the GPU runs the whole inference without CPU launch chatter. First matrix: Moondream 2/3, Qwen3.5/3.6 0.8B–9B, Gemma 4 E2B/E4B on NVIDIA H100. Matched ChartQA streams: Photon beats vLLM and SGLang on every batch 1/2/4/8 throughput test and on cold start. pip install moondream; md.photon(\"Qwen/Qwen3.5-4B\"). Engine Apache-2.0 and megakernels free to run; compiler closed. Discord/X is vikhyatk quoting the company thread.",
      "url": "https://moondream.ai/blog/photon-2-launch",
      "authors": [
        "Moondream"
      ],
      "tags": [
        "photon",
        "moondream",
        "megakernel",
        "inference",
        "physical-ai",
        "vllm",
        "x"
      ],
      "venue": "Moondream (M87 Labs)",
      "source": "web",
      "license": "Apache-2.0 (engine); compiler proprietary",
      "published_year": null,
      "added_at": "2026-08-14T19:25:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/653",
      "markdown": "https://papers.projxon.ai/entries/653.md",
      "api": "https://papers.projxon.ai/api/entries/653"
    }
  ]
}
