WebLLM: A High-Performance In-Browser LLM Inference Engine
On the map: Efficient LLM inference and serving → Serving systems and request scheduling
Abstract (arXiv)
Advancements in large language models (LLMs) have unlocked remarkable capabilities. While deploying these models typically requires server-grade GPUs and cloud-based inference, the recent emergence of smaller open-source models and increasingly powerful consumer devices have made on-device deployment practical. The web browser as a platform for on-device deployment is universally accessible, provides a natural agentic environment, and conveniently abstracts out the different backends from diverse device vendors. To address this opportunity, we introduce WebLLM, an open-source JavaScript framework that enables high-performance LLM inference entirely within web browsers. WebLLM provides an OpenAI-style API for seamless integration into web applications, and leverages WebGPU for efficient local GPU acceleration and WebAssembly for performant CPU computation. With machine learning compilers MLC-LLM and Apache TVM, WebLLM leverages optimized WebGPU kernels, overcoming the absence of performant WebGPU kernel libraries. Evaluations show that WebLLM can retain up to 80% native performance on the same device, with room to further close the gap. WebLLM paves the way for universally accessible, privacy-preserving, personalized, and locally powered LLM applications in web browsers. The code is available at: https://github.com/mlc-ai/web-llm.
Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Placed in Serving systems and request scheduling, one of 12 directions in Efficient LLM inference and serving. Builds on 9 of its 17 references that are in the map. First posted on arXiv 20 Dec 2024.
Builds on
9 of 17 references.
Closest ancestors · 1
Same direction, newest first
Other references · 8
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 2,006
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
- 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,917
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
Built on by
Citing papers per year: 2025: 4; 2026: 10.
14 papers.
Sort:
By area:
- 2025Position: Privacy Is Not Just Memorization!cited by 17
- 2025Cognitive Edge Computing: A Comprehensive Survey on Optimizing Large Models and AI Agents for Pervasive Deploymentcited by 10
- 2026HoneyTrap: Deceiving Large Language Model Attackers to Honeypot Traps with Resilient Multi-Agent Defensecited by 8
- 2025Scaling On-Device GPU Inference for Large Generative Modelscited by 3
- 2026The Cognitive Firewall:Securing Browser Based AI Agents Against Indirect Prompt Injection Via Hybrid Edge Cloud Defensecited by 3
- 2025Energy-Efficient and Dequantization-Free Q-LLMs: A Spiking Neural Network Approach to Salient Value Mitigationcited by 2
- 2026Characterizing WebGPU Dispatch Overhead for LLM Inference Across Four GPU Vendors, Three Backends, and Three Browserscited by 2
- 2026Llamas on the Web: Memory-Efficient, Performance-Portable, and Multi-Precision LLM Inference with WebGPUcited by 2
- 2026In-Browser Agents for Search Assistancecited by 0
- 2026VIGIL: An Extensible System for Real-Time Detection and Mitigation of Cognitive Bias Triggerscited by 0
- 2026Meganeura: Portable GPU Training and Inference through Vulkan and Metalcited by 0
- 2026Measuring and Reducing WebGPU Dispatch Overhead for LLM Inferencecited by 0
2 more
- 2026GPU Goldmines: Tunable WebGPU Kernels for Edge LLM Inference12 Oct 2026
- 2026GenomeOcean Anywhere: Private WebGPU Inference for Genome MoEs27 Sep 2026
- 2026Measuring and Reducing WebGPU Dispatch Overhead for LLM Inference9 Aug 2026
- 2026Meganeura: Portable GPU Training and Inference through Vulkan and Metal3 Aug 2026
- 2026Llamas on the Web: Memory-Efficient, Performance-Portable, and Multi-Precision LLM Inference with WebGPU20 May 2026
- 2026The Cognitive Firewall:Securing Browser Based AI Agents Against Indirect Prompt Injection Via Hybrid Edge Cloud Defense24 Mar 2026
- 2026VIGIL: An Extensible System for Real-Time Detection and Mitigation of Cognitive Bias Triggers12 Mar 2026
- 2026Characterizing WebGPU Dispatch Overhead for LLM Inference Across Four GPU Vendors, Three Backends, and Three Browsers9 Feb 2026
- 2026In-Browser Agents for Search Assistance14 Jan 2026
- 2026HoneyTrap: Deceiving Large Language Model Attackers to Honeypot Traps with Resilient Multi-Agent Defense7 Jan 2026
- 2025Energy-Efficient and Dequantization-Free Q-LLMs: A Spiking Neural Network Approach to Salient Value Mitigation22 Oct 2025
- 2025Position: Privacy Is Not Just Memorization!2 Oct 2025
- 2026HoneyTrap: Deceiving Large Language Model Attackers to Honeypot Traps with Resilient Multi-Agent Defensecited by 8
- 2026The Cognitive Firewall:Securing Browser Based AI Agents Against Indirect Prompt Injection Via Hybrid Edge Cloud Defensecited by 3
- 2026In-Browser Agents for Search Assistancecited by 0
- 2026The Cognitive Firewall:Securing Browser Based AI Agents Against Indirect Prompt Injection Via Hybrid Edge Cloud Defense24 Mar 2026
- 2026In-Browser Agents for Search Assistance14 Jan 2026
- 2026HoneyTrap: Deceiving Large Language Model Attackers to Honeypot Traps with Resilient Multi-Agent Defense7 Jan 2026
- 2025Position: Privacy Is Not Just Memorization!cited by 17
- 2025Scaling On-Device GPU Inference for Large Generative Modelscited by 3
- 2025Energy-Efficient and Dequantization-Free Q-LLMs: A Spiking Neural Network Approach to Salient Value Mitigationcited by 2
- 2026Characterizing WebGPU Dispatch Overhead for LLM Inference Across Four GPU Vendors, Three Backends, and Three Browserscited by 2
- 2026Llamas on the Web: Memory-Efficient, Performance-Portable, and Multi-Precision LLM Inference with WebGPUcited by 2
- 2026VIGIL: An Extensible System for Real-Time Detection and Mitigation of Cognitive Bias Triggerscited by 0
- 2026Meganeura: Portable GPU Training and Inference through Vulkan and Metalcited by 0
- 2026Measuring and Reducing WebGPU Dispatch Overhead for LLM Inferencecited by 0
- 2026GPU Goldmines: Tunable WebGPU Kernels for Edge LLM Inferencecited by 0
- 2026GPU Goldmines: Tunable WebGPU Kernels for Edge LLM Inference12 Oct 2026
- 2026Measuring and Reducing WebGPU Dispatch Overhead for LLM Inference9 Aug 2026
- 2026Meganeura: Portable GPU Training and Inference through Vulkan and Metal3 Aug 2026
- 2026Llamas on the Web: Memory-Efficient, Performance-Portable, and Multi-Precision LLM Inference with WebGPU20 May 2026
- 2026VIGIL: An Extensible System for Real-Time Detection and Mitigation of Cognitive Bias Triggers12 Mar 2026
- 2026Characterizing WebGPU Dispatch Overhead for LLM Inference Across Four GPU Vendors, Three Backends, and Three Browsers9 Feb 2026
- 2025Energy-Efficient and Dequantization-Free Q-LLMs: A Spiking Neural Network Approach to Salient Value Mitigation22 Oct 2025
- 2025Position: Privacy Is Not Just Memorization!2 Oct 2025
- 2025Scaling On-Device GPU Inference for Large Generative Models1 May 2025
Similar, not cited
Close in wording, no citation either way
- 2024DynamoLLM: Designing LLM Inference Clusters for Performance and Energy Efficiency
- 2024GUIDE: A Global Unified Inference Engine for Deploying Large Language Models in Heterogeneous Environments
- 2026A Measurement Study of LLM Inference Trade-offs Across Edge Continuum Hardware
- 2023Efficient LLM Inference on CPUs
- 2025Bench360: Benchmarking Local LLM Inference from 360 Degrees
- 2025MNN-LLM: A Generic Inference Engine for Fast Large Language Model Deployment on Mobile Devices
- 2025Forecasting LLM Inference Performance via Hardware-Agnostic Analytical Modeling
- 2024Demystifying AI Platform Design for Distributed Inference of Next-Generation LLM models