Skip to main content
QUICK REVIEW

[Paper Review] Efficient Multitask Learning on Resource-Constrained Systems

Yubo Luo, Le Zhang|arXiv (Cornell University)|Feb 25, 2023
Advanced Neural Network ApplicationsComputer Science7 citations
TL;DR

Antler is a novel system that optimizes multitask inference on resource-constrained devices by exploiting task affinity and dependency to construct a compact task graph and determine an optimal execution order. By reusing shared subtasks and minimizing context switches, it reduces inference time by 2.3X–4.6X and energy consumption by 56%–78% compared to state-of-the-art methods.

ABSTRACT

We present Antler, which exploits the affinity between all pairs of tasks in a multitask inference system to construct a compact graph representation of the task set and finds an optimal order of execution of the tasks such that the end-to-end time and energy cost of inference is reduced while the accuracy remains similar to the state-of-the-art. The design of Antler is based on two observations: first, tasks running on the same platform shows affinity, which is leveraged to find a compact graph representation of the tasks that helps avoid unnecessary computations of overlapping subtasks in the task set; and second, tasks that run on the same system may have dependencies, which is leveraged to find an optimal ordering of the tasks that helps avoid unnecessary computations of the dependent tasks or the remaining portion of a task. We implement two systems: a 16-bit TI MSP430FR5994-based custom-designed ultra-low-power system, and a 32-bit ARM Cortex M4/M7-based off-the-shelf STM32H747 board. We conduct both dataset-driven experiments as well as real-world deployments with these systems. We observe that Antler's execution time and energy consumption are the lowest compared to all baseline systems and by leveraging the similarity of tasks and by reusing the intermediate results from previous task, Antler reduces the inference time by 2.3X -- 4.6X and saves 56\% -- 78\% energy, when compared to the state-of-the-art.

Motivation & Objective

  • To address the high inference time and energy cost of multitask learning on resource-constrained embedded systems.
  • To exploit task affinity—shared subtasks across related inference tasks—to eliminate redundant computation.
  • To model and enforce inter-task and intra-task dependencies to avoid unnecessary execution of subtasks.
  • To minimize end-to-end inference time and energy consumption while preserving model accuracy.
  • To formally prove that optimal task ordering is NP-Complete and provide scalable solutions using integer programming and genetic algorithms.

Proposed method

  • Constructs a compact graph representation of a multitask system based on pairwise task affinity, capturing shared substructures across tasks.
  • Models task execution cost using a switching cost function that accounts for context switch overhead between tasks.
  • Uses integer linear programming (ILP) to solve the optimal task ordering problem under precedence and dependency constraints.
  • Employs a genetic algorithm to scale the solution to larger task sets where brute-force ILP is infeasible.
  • Retrains the task graph to maintain accuracy after reordering and subtask sharing.
  • Validates the approach on two ultra-low-power platforms: a 16-bit TI MSP430FR5994 and a 32-bit ARM Cortex-M4/M7 STM32H747.

Experimental results

Research questions

  • RQ1Can task affinity across multiple inference tasks be leveraged to reduce redundant computation in multitask learning on embedded systems?
  • RQ2How can task ordering be optimized to minimize end-to-end inference time and energy consumption in a multitask system?
  • RQ3What is the computational complexity of the optimal task ordering problem in multitask learning, and how can it be solved efficiently?
  • RQ4Can genetic algorithms effectively scale the solution to large task sets while respecting task dependencies and minimizing overhead?
  • RQ5To what extent can shared subtasks and optimal ordering reduce inference time and energy without degrading accuracy?

Key findings

  • Antler reduces inference time by 2.3X to 4.6X compared to state-of-the-art multitask learning systems on resource-constrained platforms.
  • Energy consumption is reduced by 56% to 78% through subtask reuse and optimized task ordering.
  • The optimal task ordering problem is formally proven to be NP-Complete, justifying the need for heuristic and ILP-based solutions.
  • The genetic algorithm solver achieves near-optimal performance and scales effectively to larger task sets.
  • The system maintains accuracy comparable to state-of-the-art models while significantly reducing computational and energy overhead.
  • Real-world deployments on MSP430 and STM32H747 platforms confirm consistent performance gains across diverse workloads.

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.