Skip to main content
QUICK REVIEW

[Paper Review] POET: Training Neural Networks on Tiny Devices with Integrated Rematerialization and Paging

Shishir G. Patil, Paras Jain|arXiv (Cornell University)|Jul 15, 2022
Advanced Neural Network ApplicationsComputer Science6 citations
TL;DR

POET introduces a mixed-integer linear programming (MILP)-based framework to enable energy-optimal training of large neural networks on memory-constrained edge devices by jointly optimizing rematerialization and paging. It achieves up to 40% lower energy consumption than standalone methods and enables training ResNet-18 and BERT on Cortex-M-class devices with as little as 32 KB RAM, outperforming existing edge training approaches in energy efficiency and scalability.

ABSTRACT

Fine-tuning models on edge devices like mobile phones would enable privacy-preserving personalization over sensitive data. However, edge training has historically been limited to relatively small models with simple architectures because training is both memory and energy intensive. We present POET, an algorithm to enable training large neural networks on memory-scarce battery-operated edge devices. POET jointly optimizes the integrated search search spaces of rematerialization and paging, two algorithms to reduce the memory consumption of backpropagation. Given a memory budget and a run-time constraint, we formulate a mixed-integer linear program (MILP) for energy-optimal training. Our approach enables training significantly larger models on embedded devices while reducing energy consumption while not modifying mathematical correctness of backpropagation. We demonstrate that it is possible to fine-tune both ResNet-18 and BERT within the memory constraints of a Cortex-M class embedded device while outperforming current edge training methods in energy efficiency. POET is an open-source project available at https://github.com/ShishirPatil/poet

Motivation & Objective

  • To enable training of large, modern neural networks on memory-scarce, battery-powered edge devices such as mobile phones and microcontrollers.
  • To address the high memory and energy demands of backpropagation in edge training, which currently limit models to small architectures like logistic regression.
  • To jointly optimize rematerialization and paging—two activation memory reduction techniques—within a unified energy-minimization framework.
  • To satisfy hard runtime constraints typical of real-world edge deployments, such as training during idle periods or charging.
  • To provide a mathematically correct, value-preserving solution that works with existing deep learning models without architectural modifications.

Proposed method

  • Formulates edge training as a mixed-integer linear program (MILP) that jointly optimizes rematerialization and paging decisions under memory and runtime constraints.
  • Profiles model operators on target hardware to build a fine-grained cost model for energy, memory, and execution time.
  • Uses a MILP solver to find energy-optimal schedules that minimize total energy consumption while respecting memory and timing budgets.
  • Integrates pipelining of paging operations with rematerialization to hide latency and meet tight runtime constraints.
  • Supports both linear and non-linear models, including ResNet-18 and BERT, by generalizing over operator-level cost profiles.
  • Employs a unified search space combining rematerialization of cheap operations (e.g., ReLU) and paging of expensive ones (e.g., convolutions) to reduce energy overhead.

Experimental results

Research questions

  • RQ1Can rematerialization and paging be jointly optimized to achieve lower energy consumption than using either technique in isolation on edge devices?
  • RQ2Is it possible to train complex models like BERT and ResNet-18 on edge devices with as little as 32 KB of RAM while meeting strict runtime constraints?
  • RQ3How does the integration of rematerialization and paging affect energy efficiency and memory usage compared to heuristic or sequential approaches?
  • RQ4Can a MILP-based formulation find provably optimal training schedules for edge training under realistic hardware constraints?
  • RQ5What is the trade-off between energy efficiency and runtime performance when varying memory and timing budgets?

Key findings

  • POET achieves up to 141% lower energy overhead than a baseline with full memory when training ResNet-18 on the A72 platform under tight memory budgets.
  • POET incurs less than 1% energy overhead compared to full-memory training, while Capuchin (a heuristic-based method) incurs 73% to 141% higher energy consumption under the same conditions.
  • On the Jetson TX2, POET reduces peak memory consumption by 8.3% and improves throughput by 13% compared to POFO, a prior method limited to linear models.
  • POET’s integrated solution consumes up to 40% less energy than using rematerialization or paging alone, especially under tight runtime constraints (e.g., 0.5 ms per epoch).
  • The MILP solver finds optimal solutions in under ten minutes on commodity hardware, even for complex models like BERT and ResNet-18.
  • POET successfully trains ResNet-18 and BERT on Cortex-M-class devices with only 32 KB of RAM, demonstrating feasibility for privacy-preserving on-device personalization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.