Tensor language model enables generative scheduling for efficient tensor compilation

The high rate of increase in the deep learning tasks as well as heterogeneous computing systems necessitates compilers that achieve low compile time and high performance. The current state of the art in the use of tensor compilers is based on exhaustive search, a slow and prohibitive process, or heuristics at the expense of generality and quality of optimisation. The paper presents the Tensor Language Model (TLM), a generative framework of a compiler that redefines the optimisation of tensor programmes as a language modelling problem. TLM is also based on a GPT-2 architecture that is pre-trained on millions of tensor programs coded as compact tensor code capturing operator graphs, hardware metadata, and reconfiguration choices as a sequence of tokens. The model creates optimised schedules of tensors, thus avoiding any search or reinforcement learning at run time. Experimental results using ResNet-50, BERT, GPT-2 and LLAMA-7B indicate that TLM compiles up to 61 times faster than search-based compilers (e.g., Ansor, MetaSchedule) and is up to 2.25 times faster than heuristic models (e.g. Roller), and has similar runtime efficiency. TLM then selects a trade-off seemingly traditional between compilation time and execution performance, a scalable, hardware-agnostic and reproducible generative paradigm of next-generation deep learning compilers.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-05-18
DOI
https://doi.org/10.1038/s41598-026-41392-8
Primary Topic
Parallel Computing and Optimization Techniques
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Tensor language model enables generative scheduling for efficient tensor compilation

Sabeen Masood, Adnan Akhunzada, Muhammad Dilshad Sabir, Samera Batool et al.
Scientific Reports
Parallel Computing and Optimization Techniques
article

Tensor language model enables generative scheduling for efficient tensor compilation

Sabeen Masood, Adnan Akhunzada, Muhammad Dilshad Sabir, Samera Batool, Ahmad Sami Al‐Shamayleh, Sajid Mehmood, Aqleema Arooj, Inayat Ur-Rehman
article en

Abstract

The high rate of increase in the deep learning tasks as well as heterogeneous computing systems necessitates compilers that achieve low compile time and high performance. The current state of the art in the use of tensor compilers is based on exhaustive search, a slow and prohibitive process, or heuristics at the expense of generality and quality of optimisation. The paper presents the Tensor Language Model (TLM), a generative framework of a compiler that redefines the optimisation of tensor programmes as a language modelling problem. TLM is also based on a GPT-2 architecture that is pre-trained on millions of tensor programs coded as compact tensor code capturing operator graphs, hardware metadata, and reconfiguration choices as a sequence of tokens. The model creates optimised schedules of tensors, thus avoiding any search or reinforcement learning at run time. Experimental results using ResNet-50, BERT, GPT-2 and LLAMA-7B indicate that TLM compiles up to 61 times faster than search-based compilers (e.g., Ansor, MetaSchedule) and is up to 2.25 times faster than heuristic models (e.g. Roller), and has similar runtime efficiency. TLM then selects a trade-off seemingly traditional between compilation time and execution performance, a scalable, hardware-agnostic and reproducible generative paradigm of next-generation deep learning compilers.

Scientific ReportsVol. 16(1)
Al-Ahliyya Amman University (JO), COMSATS University Islamabad (PK), University of Engineering and Technology Taxila (PK), Capital University of Science and Technology (PK), Qatar Science and Technology Park (QA)
Qatar National Library
Openalex Percentile: Top 3%
Parallel Computing and Optimization Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.