High-level static optimizations for efficient differentiable programming in MLIR
Bibliographic record
Abstract
Automatic differentiation (AD) is ubiquitous in the training of deep neural networks and other machine learning tasks.The emerging field of differentiable programming has recently found success in generalizing deep learning by applying gradient-based optimization via AD to increasingly sophisticated applications in a diverse array of fields [1][2][3][4][5].However, the most popular tools for AD are hyper-specialized to deep learning workloads.The performance of both the AD process itself and the resulting differentiated code suffer as applications veer further away from deep neural networks.The most popular AD tools also perform differentiation at runtime, which incurs runtime overhead with each of the potential millions of gradient descent steps.Some of these issues can be mitigated through performing ahead-of-time AD in a compiler.However, existing compiler-based methods predominantly operate on low-level compiler intermediate representations (IRs) that lose context and information after being lowered from the original program.Additionally, the most common form of AD incurs an asymptotically large memory cost relative to the original program, regardless of if the AD procedure is done at compile time or run time.To address these challenges, this thesis introduces LAGrad, a reverse-mode, compile time AD system that leverages high-level information in MLIR to produce efficient differentiated code.LAGrad employs a collection of novel static optimizations that benefit from the semantics of high-level MLIR dialects to exploit the sparsity and structured control flow of generated code.Using these, LAGrad is able to achieve speedups of up to 2.8 and use 35 less memory relative to state of the art AD systems on real-world machine learning and computer vision benchmarks.LAGrad is the first tool to the authors' knowledge to exploit the structure and sparsity inherent in AD through static optimizations in a compiler.I would like to extend my deepest gratitude to my advisor, Professor Christophe Dubach, for his wisdom and continued support throughout my Master's degree.His guidance was instrumental in shaping me into the researcher that I am today,
Fetched live from OpenAlex and de-inverted. Abstracts are not stored in this database: the inverted indexes are 8.6 GB of the frame’s 9.3 GB of text, and the host has 13 GB free.
How this classification was reachedexpand
Full frame distilled prediction
Teacher imitationNot calibrated prevalence, not ground truth. Human validation pending. Learned from the 10,348 direct Codex labels and 10,348 direct Gemma labels. Candidate is the union of thresholded teacher heads; consensus is their intersection. These outputs are machine_predicted_unvalidated and are not human labels or direct frontier model labels.
Codex and Gemma teacher scores by category
| Category | Codex | Gemma |
|---|---|---|
| Metaresearch | 0.001 | 0.001 |
| Meta-epidemiology (narrow) | 0.001 | 0.001 |
| Meta-epidemiology (broad) | 0.001 | 0.000 |
| Bibliometrics | 0.001 | 0.001 |
| Science and technology studies | 0.001 | 0.000 |
| Scholarly communication | 0.000 | 0.001 |
| Open science | 0.001 | 0.000 |
| Research integrity | 0.000 | 0.001 |
| Insufficient payload (model declined to judge) | 0.000 | 0.000 |
Machine scores (provisional)
The two teacher heads of the student model, read on this work. A score orders the frame for review; it never asserts a category, and the validation status ships verbatim with every row.
Baseline scores from an immature model (maturity gate not passed, 7 training rounds). Scores rank; they never assert a category.
score_only:v0-immature-baseline · verbatim from the scoring run: score_only means the number may rank works, and no category label ships from itClassification
machine, unvalidatedMachine predicted; a candidate call from one teacher head, not a consensus.
How this classification was reached, model by model and score by score, is at the end of the page under "How this classification was reached".