Designing Deep Learning Frameworks for LLMs:Challenges, Expectations, and Opportunities

Yanzhou Mu, Rong Wang, Juan Zhai, Chunrong Fang, Xiang Chen, Jiacong Wu, An Guo, Jiawei Shen, Bingzhuo Li, Zhenyu Chen · OpenReview

Abstract

Large language models (LLMs) have driven significant progress across a wide range of real-world applications. Realizing such models requires substantial system-level support. Deep learning (DL) frameworks provide this foundation by enabling efficient model construction, distributed execution, and optimized deployment. The large parameter scale and extended execution cycles impose exacting demands on deep learning frameworks, particularly in terms of scalability, stability, and efficiency. Therefore, poor usability, limited functionality, and subtle bugs in DL frameworks may hinder development efficiency and cause severe failures or resource waste. However, a fundamental question has not been thoroughly investigated in previous studies, i.e., what challenges do DL frameworks face in supporting LLMs? To answer this question, we analyze issue reports from three major DL frameworks (i.e., MindSpore, PyTorch, and TensorFlow) and eight associated LLM toolkits such as Megatron. Based on a manual review of these reports, we construct a taxonomy that captures LLM-centric framework bugs, user requirements, and user questions. We then refine and enrich this taxonomy through interviews with 11 LLM users and eight DL framework developers. Based on the constructed taxonomy and findings summarized from interviews, our study further reveals key technical challenges and mismatches between LLM user needs and developer priorities.

Introduction

Deep Learning (DL) frameworks were largely designed during the era of "small" models like ResNet or BERT. The advent of Large Language Models (LLMs) has fundamentally shifted the requirements, demanding massive distributed training, hybrid parallelism, and aggressive quantization. When these massive workloads meet traditional frameworks, they often break in expensive and non-obvious ways. This study aims to identify the specific "pain points" for both LLM practitioners and framework developers.

Methodology

The researchers employed a two-stage approach to systematically analyze the challenges posed by LLMs to DL frameworks.

Overview of the study methodology, including taxonomy construction and expert interviews.

In Stage I, the team mined issue reports from January 2023 to April 2025 across three major frameworks (PyTorch, TensorFlow, MindSpore) and eight specialized LLM toolkits (including DeepSpeed, Megatron, and vLLM). A keyword-based filtering system, validated by ChatGPT and human experts, distilled these into 38,742 LLM-centric cases to build a preliminary taxonomy.

In Stage II, the taxonomy was refined through semi-structured interviews with 19 experts: 11 LLM practitioners and 8 framework maintainers from leading tech companies. This allowed the researchers to rank the severity and priority of different challenges and identify gaps between user needs and developer focus.

Key Findings and Taxonomy

The study resulted in a three-level taxonomy comprising 3 issue types, 20 themes, and 75 sub-themes.

Distribution of Issues

  • Bugs (66.36%): The majority of reports involve functional failures.
  • Requirements (32.24%): Users requesting new features or optimizations.
  • Questions (1.40%): General inquiries about framework usage.

The most frequent bug categories were "System Compatibility and Integration" (18.21%) and "Training and Inference Control Logic" (16.78%).

The "Silent Failure" Nightmare

One of the most striking findings is the prevalence of "silent" bugs. Unlike traditional software that crashes, LLM training might continue for weeks while producing incorrect results or failing to learn due to subtle interactions between mixed-precision scaling and gradient partitioning. Both users and developers identified these silent failures and a lack of observability tools as the most critical technical gaps.

Knowledge and Priority Mismatch

There is a clear shift in user expectations; practitioners no longer want just a library of mathematical operators but an "engineering platform" that handles distributed orchestration and memory management transparently. However, framework developers often focus on low-level optimizations (like operator portability), while users struggle with high-level "strategy confusion," such as how to effectively combine LoRA with ZeRO-3.

Future Optimization Strategies

Based on the findings, the authors propose five actionable strategies for next-generation frameworks:

  1. Simplify Setup: Provide hardware-specific "deployment kits" (e.g., Docker/Conda) that auto-verify compatibility.
  2. Cohesive Abstractions: Create structured APIs for common LLM tasks like checkpointing and parameter freezing.
  3. Runtime Guardrails: Implement "consistency checks" to catch NaNs or divergence patterns early in the training process.
  4. Lightweight Observability: Build-in memory profilers and kernel trackers that are accessible to non-systems experts.
  5. Task-Oriented Documentation: Shift from API references toward complete, runnable workflow tutorials.

Conclusion

This empirical study highlights the fragility of the current LLM development stack, often described as a "chain of invisible assumptions." By addressing the identified mismatches and technical gaps, the community can build more robust frameworks that better support the evolving needs of large-scale AI development.

Summary updated

BibTeX
@misc{mu2025designing,
  author = {Yanzhou Mu and Rong Wang and Juan Zhai and Chunrong Fang and Xiang Chen and Jiacong Wu and An Guo and Jiawei Shen and Bingzhuo Li and Zhenyu Chen},
  title = {{Designing Deep Learning Frameworks for LLMs:Challenges, Expectations, and Opportunities}},
  year = {2025},
  eprint = {2506.13114},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.13114},
}
Figure