cs.AIAug 21, 2026

Data-Driven Dynamic Algorithm Dispatch with Large Language Models

Authors: Rushil Shah, Emmanuel Lujan, Rabab Alomairy, Alan Edelman

Organizations: Computer Science & Artificial Intelligence Laboratory, Massachusetts Institute of Technology, USA.

Abstract

We introduce a large language model (LLM)-driven approach for generating dynamic algorithmic dispatch heuristics in high-performance linear algebra. By combining prompt engineering with LLaMA 3 and a curated performance database, the model learns to synthesize selection heuristics that exploit structural patterns to identify fast algorithmic choices. A case study on LU factorization demonstrates the model's ability to replicate expert-designed strategies. This work, developed as part of the DARPA-MIT SmartSolve project, highlights the promise of LLMs for algorithmic discovery and the development of more adaptive, fast linear algebra software.

Figures & tables

Explore similar work

CardsList
  1. RL4RLA: Teaching ML to Discover Randomized Linear Algebra Algorithms Through Curriculum Design and Graph-Based Search

    May 18, 2026Jinglong Xiong, Xiaotian Liu, Ruoxin Wang +4Reinforcement LearningAutomated Algorithm Discovery

  2. LLMs Can Design Near-Optimal OR Algorithms

    Aug 27, 2026Jackie BaekInventory ControlAutomated Algorithm Discovery

  3. Position: LLM Serving Needs Mathematical Optimization and Algorithmic Foundations, Not Just Heuristics

    May 2, 2026Zijie ZhouLLM ServingLLM Inference