Why Deep Learning Frameworks Are Still Hard to Rebuild in the LLM Era
As large language models scale, many teams wonder whether top training stacks still rely on classic deep learning frameworks—and why those frameworks are not rebuilt from scratch. This article explains the layered training stack, the costs of a full rewrite, and why real progress looks more like decoupling than replacement.
As large-model capability rises quickly, a common technical question is whether the teams training leading models still use the “classic” deep learning frameworks. If they do not, why don’t those frameworks take new ideas and rebuild themselves completely? The question looks simple, but it involves software engineering, the hardware ecosystem, and community inertia. This article breaks it down.
1. First, the training stack is multi-layered
Many people picture “training a large model” as calling a framework API. In practice, a modern training stack is layered:
- Top layer: model definition and training orchestration, including distributed strategies, parallel partitioning, and scheduling pipelines
- Middle layer: operator libraries and kernel implementations, especially fused operators heavily optimized for specific accelerators
- Compiler layer: graph optimization, operator fusion, memory planning, and automatic differentiation
- Bottom layer: communication libraries, collective primitives, drivers, and hardware abstraction
Classic frameworks mainly cover the compiler layer and part of the upper layer. The real edge of a large-model team often sits in custom code at the bottom and the top. That answers the first question: leading teams do not rely entirely on a general-purpose framework because its abstraction is too coarse for extreme performance.
2. Why frameworks are not torn down and rebuilt
If older frameworks carry historical baggage, why not rebuild them around a new architecture? Four reasons dominate.
2.1 Ecosystem migration cost is extremely high
A framework’s value is not the code itself. It is the tens of thousands of model implementations, tutorials, pretrained weights, debugging experience, and engineers’ muscle memory around it. A rewrite breaks those assets. For enterprise users, migrating a stable production training pipeline usually carries more risk than reward. A plain engineering rule applies: if a problem can evolve incrementally, do not rewrite it aggressively.
2.2 Compatibility is an implicit contract
Once business systems depend heavily on a framework API, that API becomes a de facto contract. Breaking changes cascade. Mainstream frameworks therefore tend to “add new capabilities outside and swap implementations inside”: keep the public API stable and replace the execution engine gradually. A typical pattern is a new execution mode or compiler subsystem that users enable with a switch, rather than a one-shot generation change.
2.3 Rewrite gains diminish quickly
At framework level, optimization headroom is often not the bottleneck in large-model training. Bottlenecks more often sit in:
- cross-machine bandwidth and topology
- the memory wall and activation recomputation
- data loading and preprocessing pipelines
- extreme tuning of hardware utilization (MFU)
These problems are solved in parallel strategies and operators. Rebuilding the graph engine alone yields limited returns.
2.4 Hardware heterogeneity makes a single unified framework harder
Accelerators differ sharply in instruction sets, memory hierarchies, and communication primitives. Supporting many of them efficiently requires a large investment in kernels and compilers. That pressure encourages another path: push hardware-specific work down into independent compiler and kernel layers, and keep the framework itself thinner.
3. The real path: layered decoupling, not wholesale replacement
Recent community practice shows a clear line of evolution:
Old model: framework = frontend API + graph engine + operator library + hardware adapters (tightly coupled)New model:Frontend API layer (keeps usability)Intermediate representation and compiler layer (evolves independently; graph optimization and code generation)Kernel/operator layer (can be extended per hardware target)Communication and runtime layer (designed specifically for large models)
Decoupling means a “rewrite” does not have to happen all at once. New compiler techniques can be used first on new models, while the old execution path continues to serve existing workloads. The two lines run in parallel and converge over time. What we see is not “one framework replaced by another,” but internal components becoming modular step by step.
4. What this means for enterprise developers
For most enterprise users, the practical point is how to choose technology:
- Do not chase “newest” for its own sake. Judge ecosystem completeness, long-term maintenance commitment, and migration cost—not a single performance number.
- Watch the decoupling trend. Prefer frameworks with clear extension points in the compiler and operator layers, so adopting new hardware or model structures costs less later.
- Locate the layer before you optimize. Slow training is not automatically the framework’s fault. Use profiling to see whether the bottleneck is communication, operators, or the data pipeline, then optimize at that layer.
- Use managed cloud capabilities where they fit. For many teams, building and tuning training infrastructure in-house is expensive. Containerized training, distributed acceleration, monitoring and alerting, and object storage from a cloud platform let the team focus on the model itself.
5. Closing
“Why not rebuild old frameworks with new ideas?” is the standing tension in software engineering between an ideal architecture and real constraints. The large-model era did not produce a full framework generation change. It produced finer layering and decoupling—which is a sign of engineering maturity. Understanding that is more useful than chasing any single framework version number.
