Scope is all you need: Transforming LLMs for HPC Code
Not on the map. Why?
Abstract (arXiv)
With easier access to powerful compute resources, there is a growing trend in the field of AI for software development to develop larger and larger language models (LLMs) to address a variety of programming tasks. Even LLMs applied to tasks from the high-performance computing (HPC) domain are huge in size (e.g., billions of parameters) and demand expensive compute resources for training. We found this design choice confusing - why do we need large LLMs trained on natural languages and programming languages unrelated to HPC for HPC-specific tasks? In this line of work, we aim to question design choices made by existing LLMs by developing smaller LLMs for specific domains - we call them domain-specific LLMs. Specifically, we start off with HPC as a domain and propose a novel tokenizer named Tokompiler, designed specifically for preprocessing code in HPC and compilation-centric tasks. Tokompiler leverages knowledge of language primitives to generate language-oriented tokens, providing a context-aware understanding of code structure while avoiding human semantics attributed to code structures completely. We applied Tokompiler to pre-train two state-of-the-art models, SPT-Code and Polycoder, for a Fortran code corpus mined from GitHub. We evaluate the performance of these models against the conventional LLMs. Results demonstrate that Tokompiler significantly enhances code completion accuracy and semantic understanding compared to traditional tokenizers in normalized-perplexity tests, down to ~1 perplexity score. This research opens avenues for further advancements in domain-specific LLMs, catering to the unique demands of HPC and compilation tasks.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 25 of its 46 references that are in the map. First posted on arXiv 18 Aug 2023.
Builds on
25 of 46 references.
References · 25
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
- 2023A Survey of Large Language Modelscited by 2,537
- 2023StarCoder: may the source be with you!cited by 790
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2021Recent Advances in Natural Language Processing via Large Pre-Trained Language Models: A Surveycited by 457
- 2022A Systematic Evaluation of Large Language Models of Codecited by 360
- 2023A Comprehensive Capability Analysis of GPT-3 and GPT-3.5 Series Modelscited by 244
- 2022Code Translation with Compiler Representationscited by 42
13 more
- 2022SPT-Code: Sequence-to-Sequence Pre-Training for Learning Source Code Representationscited by 35
- 2023CodeTF: One-stop Transformer Library for State-of-the-art Code LLMscited by 21
- 2023LM4HPC: Towards Effective Language Model Application in High-Performance Computingcited by 18
- 2023Learning to Parallelize with OpenMP by Augmented Heterogeneous AST Representationcited by 14
- 2022A Survey on Pretrained Language Models for Neural Code Intelligencecited by 13
- 2023HPC-Coder: Modeling Parallel Programs using Large Language Modelscited by 11
- 2022Learning to Parallelize in a Shared-Memory Environment with Transformerscited by 10
- 2023Advising OpenMP Parallelization via a Graph-Based Approach with Transformerscited by 10
- 2023Quantifying OpenMP: Statistical Insights into Usage and Adoptioncited by 9
- 2020ComPar: Optimized Multi-Compiler for Automatic OpenMP S2S Parallelizationcited by 8
- 2022Reinventing High Performance Computing: Challenges and Opportunitiescited by 6
- 2023MPI-rical: Data-Driven MPI Distributed Parallelism Assistance with Transformerscited by 5
- 2023Neural Machine Translation for Code Generationcited by 3
Built on by
Citing papers per year: 2023: 1; 2024: 5; 2025: 3; 2026: 3.
12 papers.
- 2024Can Large Language Models Write Parallel Code?cited by 36
- 2024The Landscape and Challenges of HPC Research and LLMscited by 22
- 2023LLM4VV: Developing LLM-Driven Testsuite for Compiler Validationcited by 15
- 2024HPC-Coder-V2: Studying Code LLMs Across Low-Resource Parallel Languagescited by 8
- 2025LLM & HPC:Benchmarking DeepSeek's Performance in High-Performance Computing Taskscited by 8
- 2024MPIrigen: MPI Code Generation through Domain-Specific Language Modelscited by 5
- 2024LLM as HPC Expert: Extending RAG Architecture for HPC Datacited by 5
- 2025MARCO: Multi-Agent Code Optimization with Real-Time Knowledge Integration for High-Performance Computingcited by 5
- 2025EPIC: Generative AI Platform for Accelerating HPC Operational Data Analyticscited by 0
- 2026AstraAI: LLMs, Retrieval, and AST-Guided Assistance for HPC Codebasescited by 0
- 2026Cross-Model Cross-Language AI Coding Agent Performance: Accuracy and Speed of Parallel CLRS Algorithmscited by 0
- 2026HARGO: Heterogeneity-Aware Reward-Guided Optimization for RL Post-Training of LLMs on HPC Taskscited by 0
- 2026HARGO: Heterogeneity-Aware Reward-Guided Optimization for RL Post-Training of LLMs on HPC Tasks30 Jul 2026
- 2026Cross-Model Cross-Language AI Coding Agent Performance: Accuracy and Speed of Parallel CLRS Algorithms26 Jul 2026
- 2026AstraAI: LLMs, Retrieval, and AST-Guided Assistance for HPC Codebases28 Mar 2026
- 2025EPIC: Generative AI Platform for Accelerating HPC Operational Data Analytics29 Aug 2025
- 2025MARCO: Multi-Agent Code Optimization with Real-Time Knowledge Integration for High-Performance Computing6 May 2025
- 2025LLM & HPC:Benchmarking DeepSeek's Performance in High-Performance Computing Tasks15 Mar 2025
- 2024HPC-Coder-V2: Studying Code LLMs Across Low-Resource Parallel Languages19 Dec 2024
- 2024LLM as HPC Expert: Extending RAG Architecture for HPC Data9 Dec 2024
- 2024MPIrigen: MPI Code Generation through Domain-Specific Language Models14 Feb 2024
- 2024The Landscape and Challenges of HPC Research and LLMs3 Feb 2024
- 2024Can Large Language Models Write Parallel Code?23 Jan 2024
- 2023LLM4VV: Developing LLM-Driven Testsuite for Compiler Validation8 Oct 2023