Elamur Research

Map-and-Conquer: Energy-Efficient Mapping of Dynamic Neural Nets onto Heterogeneous MPSoCs

Paper · 2023 · Halima Bouzidi, Mohanad Odema, Hamza Ouarnoughi et al.

Summary

A chip can contain a fast graphics processor and specialized accelerators that use less energy for neural inference. Choosing a single processor for the whole network leaves the other units idle. Using several units raises a different question. Which parts of the network can run together, and how much intermediate data must move between them before they can finish? Map-and-Conquer tackles those decisions jointly with early exiting, which lets an input receive a prediction before the entire network has run.

The authors split layers along their width. A convolutional layer can contribute different groups of channels to different processors, and an attention layer can be divided by its heads. The groups assigned to a processor form a stage that runs through the network and ends in a classifier. Earlier stages receive the most important channels so that they can handle as many inputs as possible on their own. When an input requires additional stages, those stages can overlap in time. Each waits for the intermediate features it actually needs. A search chooses the split, the features to carry across stage boundaries, the processor assignment, and the hardware’s voltage and frequency settings.

The experiments use Visformer and VGG19 for CIFAR-100 image classification on an NVIDIA Jetson AGX Xavier. For Visformer, the authors highlight energy gains of up to 2.1x over GPU-only execution and a speedup of up to 1.7x over execution on the specialized deep learning accelerators. Those comparisons use different baselines, and the search yields separate configurations for emphasizing energy or latency. The VGG19 experiments show that the same procedure can find useful mappings for a convolutional network.

How much information the stages share matters. Some Visformer configurations retain accuracy comparable to the baseline while reusing 60% of the intermediate feature maps, but tighter reuse limits can reduce accuracy. The hardware estimates also assume that the number of stages an input needs is known before execution. The experiments therefore show what the partitioning and mapping can achieve with that information available. A deployed system would have to decide which stages to run for each input.

Deep dive: Map-and-Conquer: Energy-Efficient Mapping of Dynamic Neural Nets onto Heterogeneous MPSoCs

Map-and-Conquer splits neural networks across a chip’s processors and uses early exits to reduce inference energy and latency. · about 31 minutes to read

The problem and its context

Different processors favor different workloads

A multiprocessor system on a chip, or MPSoC, contains several computing units. In the kind of system studied here, units with different capabilities share system memory. A graphics processing unit, or GPU, can execute a network quickly and still use substantial energy per inference. A deep learning accelerator, or DLA, can use less energy and take longer. The paper treats such tradeoffs as properties of a particular workload and hardware assignment. The question is where to put the operations of the network so that the units can contribute where they are useful.

Energy and latency describe different aspects of the same execution. Latency is how long the system waits for a result. Energy is how much it consumes while getting that result. Assigning work to a faster unit can shorten the wait while increasing consumption. Assigning it to a lower-power accelerator can reduce consumption even when the work takes longer. A mapping that uses both units can change both quantities, through the work each performs and through the time they spend waiting for data from each other.

The simplest assignments in the paper put the whole network on one kind of processor. These give meaningful baselines because they reveal the tradeoff a user faces without partitioning. They also leave open the possibility of assigning separate portions of an inference to different units. An assignment of successive layers can use multiple processors over the course of the computation. A layer that needs the previous layer’s complete output still has to wait for it. To shorten the time for an individual inference through overlap, the mapping has to expose parts of the computation that can advance before all work in a preceding part is complete.

Convolutions and multi-head attention offer opportunities of that kind. A convolutional layer produces several output channels, and different groups of those channels can contribute to one result. In multi-head attention, the heads offer another way to divide work within a layer. The paper calls these ways of dividing a layer splits along its width. Width here refers to parallel components within the layer. Depth refers to the succession of layers through which the data passes. A cut across width can give several processors work at the same depth, with the amount of possible overlap determined by the dependencies between their portions.

The dependency question becomes important as soon as the network advances beyond the split layer. A group of channels may need features computed by another group at the preceding layer. Shared system memory makes collaborative execution possible, but the receiving unit still needs the required features to be available for its own computation. If the mapping creates many such requirements, a processor can spend time waiting despite having work assigned to it. This is why the paper puts intermediate data reuse alongside processor placement in the search.

Earlier approaches to mapping and dynamic inference

The paper describes earlier MPSoC work that estimates latency and energy for hardware assignments. AxoNN and MEPHESTO are examples of work on characterizing deployment on the AGX Xavier. Such characterization helps a mapping procedure determine whether a layer or computation is likely to run well on a particular unit. The authors describe sequential pipelines as a common use of these estimates. Their own timing question concerns how work on different units can overlap within an inference, given what each unit must receive from the others.

Other earlier work already uses parallelism, with objectives and settings that differ from those of Map-and-Conquer. The authors describe Jedi as a TensorRT-based framework that uses network parallelism to raise throughput for batched inference. Throughput measures how much work a system completes over time. That can improve when different inputs keep different processors occupied, even when the time to finish a given input is governed by a sequence of dependent operations. The focus here is the time and energy for an input whose inference may also end early.

The paper also discusses evolutionary scheduling for heterogeneous processors with dynamic voltage and frequency scaling, or DVFS. DVFS makes a processor’s operating point another choice in the deployment. The scheduling studies described by the authors exploit parallelism across work items and within the network to improve throughput. DistrEdge studies ways of partitioning computations across distributed edge devices. Map-and-Conquer brings the partitioning question to units on a shared-memory chip, where different work can proceed concurrently but feature dependencies still affect when a receiving unit can start.

A second line of research changes the amount of work according to the input. In early-exit inference, the network offers an intermediate prediction and can stop if that prediction is sufficient. Earlier work discussed in the paper includes exits placed along the depth of convolutional networks and the width-based approach of S2DNAS. In the latter kind of approach, a narrower path can produce a prediction after traversing its layers. The remaining width can supply more computation for inputs that need it. The paper also describes work on dynamic vision transformers, including MIA-Former’s adjustment of the number of active attention heads. For a reader new to attention, the relevant property is that a layer can have several heads whose outputs contribute to the layer’s computation. Those heads give the mapping something to divide.

The authors’ motivating question arises where these lines of work meet. Once inference can stop early, the first part of the network receives more work across the input set than the later parts. Its processor assignment matters for every input that starts with it. For inputs that need several stages, the timing depends on where those stages run and which features they share. A split that is attractive for a static execution can therefore have a different value when the network is allowed to stop. Likewise, a split chosen for early classification can be less attractive if its stages keep waiting for features on other processors. The authors formulate a single search that can account for both effects.

The method, step by step

From a full-width network to stages with exits

Start with a pretrained neural network and a description of the computing units on the chip. For each layer, choose how much of its width belongs to each stage. A stage is the sequence of portions assigned to it across the layers. In a convolutional network, it might take a group of channels from one layer, continue through its group from the next layer, and end with a classifier. Another stage takes other portions of those layers and has its own classifier. The stage index specifies the order of the exits. It also specifies which earlier stages may provide intermediate features to later ones.

Before dividing a layer, the procedure orders its channels by estimated importance. The intuition is that the features with the greatest influence on the network’s predictions should be available on the path used by the most inputs. Once channels are ordered, a proposed partition can give an earlier stage a contiguous group from the important end of the ordering. The fraction of the layer assigned to that stage determines the size of the group. The authors use a channel-ranking approach from prior work on pruning, where the related question is which parts of a network matter most to the prediction. Importance Estimation for Neural Network Pruning

A later stage has its own features from the preceding layer. Depending on the candidate configuration, it can also use intermediate features produced at that layer by earlier stages. The paper calls this concatenation. The receiving computation takes the selected features together as inputs, so it can draw on the earlier stage while computing its own portion of the next layer. The choice of which features to share gives the search a way to control communication and preserve information useful for classification.

The classifier at the end of each stage makes it possible to complete an inference there. For an input handled by the earliest exit, the later stages need never run. For an input assigned to a later exit, the hardware calculation assumes that the required stages can start and overlap wherever the feature dependencies allow. The stages can consequently be ordered for the purpose of exiting while making progress concurrently at intermediate layers. The experiment’s assumption about knowing the required exit in advance is what allows those two descriptions to fit together.

How Map-and-Conquer builds and evaluates a deployment

The steps in order.

How Map-and-Conquer builds and evaluates a deploymentStep 1: Start with a pretrained network and target chip1. Start with a pretrained network and target chipStep 2: Rank the channels within each layer2. Rank the channels within each layerStep 3: Split layer width into stages with classifiers3. Split layer width into stages with classifiersStep 4: Choose which earlier features later stages receive4. Choose which earlier features later stages receiveStep 5: Assign stages and hardware scaling settings5. Assign stages and hardware scaling settingsStep 6: Estimate timing, energy, and validation accuracy6. Estimate timing, energy, and validation accuracyStep 7: Evolve candidates and retain Pareto-efficient mappings7. Evolve candidates and retain Pareto-efficient mappings

Describing a partition precisely

The paper represents the original network as a composition of layers.

NN = Lₙ ∘ Lₙ₋₁ ∘ … ∘ L₁

NN is the original network, L denotes a layer, and its subscript gives the position in the sequence. n is the total number of layers. The composition sign ∘ says that the output of one layer becomes the input to the next, so L₁ acts first in this expression. The ellipsis stands for the intervening layers.

Each layer is then described by its width components.

Lⱼ = {C₁ʲ, C₂ʲ, …, C_Wʲ}

Lⱼ is the layer at position j. Cᵢʲ means channel i of layer j, and W is the width of the layer being described. The braces collect those components. The paper uses channel as its general term in the formalism. For the Visformer example, the attention heads illustrate how a width component can correspond to something other than a convolutional channel.

After partitioning, the same layer can be written as a collection of sublayers.

Lⱼ = {l₁ʲ, l₂ʲ, …, l_Mʲ}

Lⱼ still refers to layer j. Each lᵢʲ is the portion of that layer allocated to stage i. M counts the chip’s computing units and gives the number of stages in the formulation. The braces now enclose groups of channels. Changing a group’s size changes the work assigned to that stage at layer j, with corresponding effects on what its processor has to compute and on the features the group can produce.

The partitioning and feature choices can be recorded by specifying the entries of two matrices.

P = [pᵢʲ]ᵢ₌₁,…,M; ⱼ₌₁,…,n

P is the partitioning matrix. Its entry pᵢʲ is the fraction of the width of layer j assigned to stage i. The brackets denote a matrix, with a row for each of the M stages and a column for each of the n layer positions. The index ranges give the rows and columns over which these entries are defined. A row lets the search specify the width of a stage at each successive layer.

I = [Iᵢʲ]ᵢ₌₁,…,M; ⱼ₌₁,…,n,  Iᵢʲ ∈ {0, 1}

I is the feature reuse indicator matrix, indexed by stage i and layer j, with the same stage and layer ranges as P. The sign ∈ means that the entry takes one of the values between braces. With Iᵢʲ set to 1, the features produced by stage i at layer j are available for the next layer in subsequent stages. A 0 omits that reuse. The feature group itself is denoted by Fᵢʲ, where the indices identify its producer. In this formulation the indicator belongs to the producing stage and layer. It describes whether that output is reused downstream, with fewer degrees of freedom than a separate switch for every possible sender and receiver.

Following the sublayers of one stage through the original depth gives the stage’s computation.

Sᵢ = lᵢⁿ ∘ lᵢⁿ⁻¹ ∘ … ∘ lᵢ¹

Sᵢ names stage i, and each lᵢʲ is its portion of layer j. The superscripts mark layer positions, including n for the final layer and n−1 for the preceding one. They do not represent powers. The composition signs describe the order of processing within the stage. The timing calculation also accounts for the features that can arrive from other stages. The classifier attached at the tail makes the output of this chain usable as an exit.

S = {S₁, S₂, …, S_M}

S is the collection of stages, Sᵢ is one member of it, and M is the number of stages. The index on a stage determines its place in the exit order. A candidate can change the hardware assigned to that index while preserving what the index means for downstream feature reuse.

The hardware assignment is stored separately from the partition.

𝐌 = [π₁, …, π_M],  πₖ ≠ πₖ′ for distinct k and k′

𝐌 is the assignment vector, while ordinary M gives the number of units. An entry πₖ names the computing unit on which stage k runs. k′ denotes a different stage index, and ≠ requires the assigned units to be different. The distinctness condition is what allows different stages to execute on separate hardware resources. Widths, sharing decisions, and assignments together determine how much work each unit performs and when it can start.

Estimating time from feature readiness

The latency calculation follows the progress of a stage layer by layer. Suppose a later stage is about to execute a sublayer. Its previous sublayer must have completed. If it also needs features from an earlier stage, those features must have been produced and transferred to the receiving unit. The latest arrival determines the earliest start time. Once the inputs are ready, the sublayer’s own execution time is added.

Tᵢʲ = τᵢʲ + max({Tᵢʲ⁻¹} ∪ {Tₖʲ⁻¹ + uₖ→ᵢʲ⁻¹ | Iₖʲ⁻¹ = 1, 1 ≤ k < i})

Tᵢʲ is the cumulative completion time through layer j of stage i. The Greek letter τᵢʲ is the execution time of that sublayer once its inputs are ready. Tᵢʲ⁻¹ is the completion time of its own previous sublayer. For an earlier stage k, Tₖʲ⁻¹ is when that stage produces the relevant features, and uₖ→ᵢʲ⁻¹ is the time to deliver those features from k to i. The arrow in the subscript gives the transfer direction. The vertical bar introduces the conditions for including a term. The indicator must be 1, and the inequalities restrict k to stages preceding i. The union sign ∪ collects the local and remote readiness times, and max selects the latest.

The maximum is what permits overlap in the estimate. If the receiving stage is still working on its own previous sublayer, some remote data can arrive during that time. In that case the transfer does not extend the wait unless its arrival falls after the other required inputs. If a remote feature arrives last, it determines the start even if the local path was fast. This allows partitioning to change latency by altering both the processor work and which path governs completion. For instance, speeding up a sublayer that already finishes before the features it needs arrive will help only if the change moves a completion time that another operation is waiting for.

The completion time at the last layer gives the stage timing used by the objective.

T_Sᵢ = Tᵢⁿ

T_Sᵢ is the latency assigned to stage Sᵢ. Tᵢⁿ is the cumulative time at layer n, the final layer of that stage. Since the earlier readiness terms recur at successive layers, this quantity already reflects the relevant waits from earlier portions of the computation.

For the concurrent deployment, the paper expresses total latency through the slowest completion among the relevant stages.

T_P,I,𝐌,ϑ = max{T_Sᵢ | Sᵢ ∈ S}

T_P,I,𝐌,ϑ is the latency for the configuration specified by the partition P, reuse indicators I, assignment 𝐌, and hardware scaling choices ϑ. The expression on the right takes the largest stage latency T_Sᵢ over the stage set S. In the overall characterization, the set appearing in the maximum is written as the full set of stages. For an input assigned to an earlier exit, the objective below uses the timing at its selected stage. A later exit does not incur a sum of every previous stage’s elapsed time. The recurrence captures the portions of those executions that the last stage depends on.

Accounting for power and energy

For a processor, the paper separates static power from a dynamic component that depends on its operating point. It then uses an affine approximation, with a constant part and a part that varies linearly with a scaling factor.

Pₘ = Pₘˢ + Pₘᵈ(ϑₘ) ≈ αₘ + βₘ · ϑₘ

Pₘ is the power of computing unit m. Pₘˢ is its static component, identified by s, and Pₘᵈ(ϑₘ) is the dynamic component, identified by d, at scaling factor ϑₘ. The factor describes the unit’s DVFS setting. αₘ and βₘ are constants for the unit, with αₘ setting the intercept and βₘ the coefficient of the scaling factor. The approximation sign indicates that this expression simplifies the dependence of power on the setting. The P for a unit’s power is separate from the partition matrix.

A sublayer’s energy is then written as the product of its execution time and the power of the unit carrying it out.

eᵢʲ = τᵢʲ · Pₘ

eᵢʲ is the energy for the sublayer in stage i at layer j. τᵢʲ is its execution duration, and Pₘ is the power of the unit m to which that stage has been assigned. The centered dot denotes multiplication. The expression uses the time spent executing the sublayer, whereas the latency recurrence also includes the time spent waiting for required data.

E_Sᵢ = Σⱼ₌₁ⁿ eᵢʲ

E_Sᵢ is the energy of stage Sᵢ. The sum Σ adds its sublayer energies eᵢʲ across the n layer positions indexed by j. A stage with a larger share of width can have a different energy cost at each layer, depending on the operation, the assigned unit, and its setting.

E_P,I,𝐌,ϑ = Σᵢ₌₁ᴹ′ E_Sᵢ

E_P,I,𝐌,ϑ is the total energy for an input under the configuration. P, I, 𝐌, and ϑ specify the same choices as in the latency expression. M′ is the number of stages run for that input, so it is at least 1 and at most M. The sum over i adds the energy of every participating stage. Two stages can contribute energy over the same period of time, which is why the total is a sum even though the timing calculation takes account of overlap. An early exit saves the energy attributed to the stages that are never started.

Scoring a candidate across inputs

The search considers all deployment settings together as a candidate configuration.

Π = (P, I, 𝐌, ϑ)

Π names a candidate. The tuple contains the width fractions P, reuse indicators I, processor assignment 𝐌, and scaling settings ϑ. The search space is the collection of allowed tuples, built from the network’s layer widths and depth, the chip’s computing units, and its supported operating settings. The paper’s Visformer example gives a per-layer search-space scale of O(1.5×10⁵) with 8 channel partitioning ratios, 3 computing units, and 50 choices for ϑ. Here the O notation conveys the scale of the space in the example. Allowing layer-by-layer choices makes it impractical to treat the deployment as a short list of hardware placements.

The optimization asks for the feasible candidate with the smallest objective.

Π* = arg min_Π 𝒫(Π)

Π* denotes a preferred feasible candidate. arg min selects the configuration Π at which the score 𝒫(Π) is smallest. 𝒫 is the performance objective, distinct from both the partition matrix P and the power Pₘ. The evolutionary procedure searches for good configurations under a budget, so this expression states the goal of the search.

T_Π* < T_TRG

T_Π* is the latency of the selected configuration and T_TRG is the target latency set for the search. The less-than sign requires the configuration’s value to lie below the target.

E_Π* < E_TRG

E_Π* is the selected configuration’s energy, and E_TRG is its target energy. Again the strict inequality expresses the target as an upper limit.

size_Π*(F, I) < ℳ

size_Π*(F, I) is the memory required by the intermediate features for the selected configuration. F denotes the intermediate features and I identifies the retained reuse connections. ℳ denotes the capacity of the shared memory. The condition makes a distinction between the usefulness of a feature connection and whether the system can keep its data available. The feature reuse limits used for the experiments are additional choices about how much sharing to permit.

The paper’s objective brings classification and hardware cost together using the following expression.

𝒫 = (Acc_base / Acc_S_M) × (Σᵢ₌₁ᴹ T_Sᵢ · Nᵢ) × (Σᵢ₌₁ᴹ E_S₁:ᵢ · Nᵢ)

𝒫 is the candidate’s score. Acc_base is the pretrained network’s baseline classification accuracy, and Acc_S_M is the accuracy of the final stage in the dynamic network. The slash denotes division. In each sum, i indexes the exit stages from 1 through M. Nᵢ is the number of validation inputs whose first correct classification occurs at stage i, meaning that all earlier stages misclassified them. T_Sᵢ is the latency to stage i under the timing calculation, and E_S₁:ᵢ is the combined energy of the stages through i. The centered dot multiplies each cost by its input count, and the multiplication signs combine the accuracy ratio and the two weighted totals.

Consider two hypothetical candidates with similar final-stage accuracy and similar cost for running through the final exit. If more inputs are correctly handled early by one of them, that candidate can put more weight on lower-energy, lower-latency outcomes. A mapping whose last stage is fast can also score well, but its effect depends on how often the validation inputs need that stage. The two traffic patterns are distinguishable because the objective groups inputs by their earliest correct predictions. It would be less informative to use only the last exit’s latency when comparing partitions that differ in how many correct predictions they can produce early.

The accuracy ratio grows as final-stage accuracy falls relative to the original network. That is how the objective gives the search a reason to preserve the predictive value of the reused features. It remains a term in a product with costs that also change. The results can therefore contain candidates with lower final accuracy and cheaper inference. A practitioner’s choice from the search results can account for the acceptable accuracy change separately. The weighted sums in the expression are totals using validation counts. The reported average latency and energy in the experiments are separate from that optimization score.

Profiling the hardware and evolving the population

Evaluating a large set of candidates by building and timing every complete deployment would make the hardware characterization part of every search step. The authors instead benchmark individual layer configurations with TensorRT. Their profiling data cover different layer specifications, computing units, and DVFS settings. They use those observations to train a predictor for sublayer latency and energy. The predictor supplies the cost estimates for candidate configurations and the dependency calculation assembles those costs into timings for the stages. XGBoost

The roles of the datasets differ. Hardware profiling produces observations about how operations run on the processors under particular settings. The validation images supply the correctness outcomes used to count how many inputs each exit can handle. One dataset informs the cost of executing a sublayer. The other determines how much of the network an input would have to use under the paper’s exit assumption. A narrow, fast stage can therefore contribute little to the final score if few inputs receive their first correct prediction there.

In each generation, the search samples a population of candidate configurations. For every candidate, the authors partition the ordered channels using the proposed widths, define the features available to later stages, and evaluate the resulting inference paths and costs. Candidates that violate the applicable constraints are removed. The remainder are ranked by the objective, and the search selects an elite subset. Mutation changes candidate settings, and crossover combines settings associated with selected candidates to produce the next generation.

When the budget ends, the paper obtains a Pareto set from the explored populations. A Pareto comparison keeps a configuration when another available option does not improve the criteria together. The distinction matters in a deployment with multiple goals. A configuration that saves the most energy may take longer than another one, and a latency-oriented option may share more features or give up more accuracy. The search thus returns options that expose the tradeoffs, with particular candidates selected for closer comparison in the experiments.

Experiments and results

The platform, dataset, and comparisons

The experiments use NVIDIA’s Jetson AGX Xavier. Its CPU, GPU, and DLA cores share system memory. The Visformer motivation describes the setup with a single GPU and two DLAs. For deployment on the DLA, the authors build inference engines from PyTorch using TensorRT and ONNX. Across the experiments they use Visformer to represent a vision transformer and VGG19 to represent a convolutional network. The two have different ways of organizing their computation, giving the search distinct kinds of layers and widths to assign to the same hardware. Very Deep Convolutional Networks for Large-Scale Image Recognition

The classification dataset is CIFAR-100. The paper’s main breakdown reports top-1 accuracy, average inference energy in millijoules, average inference latency in milliseconds, and the percentage of intermediate feature maps reused across stages. Top-1 accuracy counts an image as correct when the highest-ranked class is its label. Average energy and latency reflect the cost of inference over inputs under the chosen deployment. Feature reuse describes how much of the cross-stage feature sharing the mapping retains. The objective specifically defines its exit counts on validation inputs. The results table identifies the accuracy dataset and metric without giving a separate test-split designation for the listed rows.

The search runs for 200 generations with a population of 60 and reports 12K evaluations in all. Evaluation takes place on a cluster of 12 GPUs, with the paper reporting up to ∼ 10 GPU hours for the optimization process. Those figures describe the work to find a deployment. The millisecond and millijoule figures describe an inference under a deployment found by that process. The distinction matters when interpreting the efficiency claim. The search incurs an offline cost before the inference savings are available.

The main single-hardware baselines put the full network on the GPU or the DLAs. The authors also include a motivating comparison with a distributed static mapping for Visformer. That version splits work across the hardware and uses concurrent execution without conditional early exits. The main search then considers a case with no extra limit on feature reuse and cases with 75% and 50% reuse limits. Within each case the paper reports a latency-oriented configuration and an energy-oriented configuration. A reuse limit describes the permissible search space. The reported reuse percentage describes the particular setting returned by the search.

Visformer on the Xavier

For Visformer, the paper gives 88.09% top-1 accuracy for the original network on CIFAR-100. Its GPU-only deployment averages 15.01 ms and 197.35 mJ, while DLA-only execution averages 53.71 ms and 69.22 mJ. The GPU sets the faster timing baseline, and the DLA sets the lower energy baseline. A mixed deployment can improve the GPU comparison on energy and the DLA comparison on latency even if its own latency remains above the GPU’s.

The authors summarize the Visformer search as delivering up to ∼ 2.1x energy gain over GPU-only mapping at the same baseline accuracy, and up to ∼ 1.7x speedup over DLA-only execution with comparable energy efficiency. These are reported comparisons from the search analysis. The rows below describe selected configurations from the Pareto breakdown and show how the energy result varies with the reuse limit.

Average inference energy for Visformer mappings on CIFAR-100

The energy-oriented mapping without an added reuse cap has the lowest energy among these settings.

Average inference energy for Visformer mappings on CIFAR-100GPU-only: 197.35GPU-only197.35DLA-only: 69.22DLA-only69.22Map-and-Conquer, energy-oriented, no reuse cap (this paper): 59.21Map-and-Conquer, energy-oriented, noreuse cap (this paper)59.21Map-and-Conquer, energy-oriented, 75% reuse cap: 65.12Map-and-Conquer, energy-oriented, 75%reuse cap65.12Map-and-Conquer, energy-oriented, 50% reuse cap: 82.44Map-and-Conquer, energy-oriented, 50%reuse cap82.44
The numbers
System or settingmJ
GPU-only197.35
DLA-only69.22
Map-and-Conquer, energy-oriented, no reuse cap (this paper)59.21
Map-and-Conquer, energy-oriented, 75% reuse cap65.12
Map-and-Conquer, energy-oriented, 50% reuse cap82.44

The energy-oriented configuration with no extra reuse cap averages 59.21 mJ and 30.40 ms, with 87.58% top-1 accuracy and 61.25% feature reuse. This setting uses less energy than either single-hardware baseline in the table and completes more quickly than DLA-only execution. Its accuracy is below the original network’s reported accuracy. Its hardware results describe the setting with its own accuracy and reuse choices, so the baseline-accuracy comparison from the broader search is a separate observation.

With the 75% limit, the energy-oriented configuration averages 65.12 mJ and 29.46 ms at 87.67% top-1 accuracy. Its reuse is reported as 75.00%. This configuration is quicker than the no-cap energy-oriented one and uses more energy. With the 50% limit, the energy-oriented choice has 84.16% top-1 accuracy, 82.44 mJ average energy, and 32.70 ms average latency. That row still has a shorter latency than DLA-only execution, while its energy is above the DLA-only baseline. The effect of reducing reuse depends on which alternative the search can find within the new constraint.

The latency-oriented options show a different balance. With no reuse cap the selected setting averages 25.58 ms and 108.44 mJ, with 86.12% accuracy and 68.75% reuse. At the 75% cap, the corresponding averages are 24.65 ms and 102.67 mJ, with 84.64% accuracy and 65.00% reuse. At the 50% cap, the latency-oriented option reaches 24.51 ms, with 116.00 mJ and 82.69% accuracy. A reader interested in the quickest mixed execution among these entries would find it under the tightest cap, alongside the lowest accuracy of the listed Visformer configurations. The table gives the accuracy and energy needed to interpret that latency.

The authors make a narrower comparison between the energy-oriented configurations and the full Visformer running on the DLA. They report a latency speedup of ∼ 1.83x and an energy gain of up to ∼ 14.4% in that analysis. The latency and energy extrema need to be read as properties of the reported comparison across settings. The no-cap energy-oriented configuration has the lower average energy of the energy-oriented entries, while the entry with the 75% cap has the shorter average latency.

VGG19 on the same platform

The original VGG19 network has 80.55% top-1 accuracy on CIFAR-100 in the paper’s breakdown. GPU-only execution averages 630.11 mJ and 25.23 ms. DLA-only execution averages 164.89 mJ and 114.41 ms. The authors attribute the hardware cost of this network to its large feature maps and many weights. They also describe redundancy in those weights as a possible source of opportunity for assigning less computation to early stages.

Average inference energy for VGG19 mappings on CIFAR-100

The lowest-energy entry is the energy-oriented mapping under the intermediate reuse cap.

Average inference energy for VGG19 mappings on CIFAR-100GPU-only: 630.11GPU-only630.11DLA-only: 164.89DLA-only164.89Map-and-Conquer, energy-oriented, no reuse cap: 153.97Map-and-Conquer, energy-oriented, noreuse cap153.97Map-and-Conquer, energy-oriented, 75% reuse cap (this paper): 136.31Map-and-Conquer, energy-oriented, 75%reuse cap (this paper)136.31Map-and-Conquer, energy-oriented, 50% reuse cap: 136.41Map-and-Conquer, energy-oriented, 50%reuse cap136.41
The numbers
System or settingmJ
GPU-only630.11
DLA-only164.89
Map-and-Conquer, energy-oriented, no reuse cap153.97
Map-and-Conquer, energy-oriented, 75% reuse cap (this paper)136.31
Map-and-Conquer, energy-oriented, 50% reuse cap136.41

The energy-oriented configuration with the 75% cap averages 136.31 mJ and 37.22 ms, with 82.64% top-1 accuracy and 47.05% reuse. The nearby energy-oriented setting with the 50% cap averages 136.41 mJ and 37.24 ms, with 82.53% accuracy and 50.00% reuse. With no reuse cap, the energy-oriented choice averages 153.97 mJ and 34.02 ms at 84.63% top-1 accuracy, while reusing 70.58% of its feature maps. The entries illustrate the freedom the search has within a cap. The configuration selected from the 75% search reuses fewer features than the one selected from the 50% search.

Average inference latency for VGG19 mappings on CIFAR-100

The fastest mixed mapping is close to GPU-only latency and finishes sooner than DLA-only execution.

Average inference latency for VGG19 mappings on CIFAR-100GPU-only: 25.23GPU-only25.23DLA-only: 114.41DLA-only114.41Map-and-Conquer, latency-oriented, no reuse cap (this paper): 25.67Map-and-Conquer, latency-oriented, noreuse cap (this paper)25.67Map-and-Conquer, latency-oriented, 75% reuse cap: 26.07Map-and-Conquer, latency-oriented, 75%reuse cap26.07Map-and-Conquer, latency-oriented, 50% reuse cap: 25.83Map-and-Conquer, latency-oriented, 50%reuse cap25.83
The numbers
System or settingms
GPU-only25.23
DLA-only114.41
Map-and-Conquer, latency-oriented, no reuse cap (this paper)25.67
Map-and-Conquer, latency-oriented, 75% reuse cap26.07
Map-and-Conquer, latency-oriented, 50% reuse cap25.83

The latency-oriented VGG19 configuration without a reuse cap averages 25.67 ms and 251.63 mJ. Its top-1 accuracy is 84.81%, with 52.94% feature reuse. The 75% and 50% latency-oriented cases average 247.34 mJ and 250.80 mJ, with top-1 accuracies of 84.76% and 84.62%, respectively. These configurations approach the GPU-only latency while using less energy than that baseline. For lower energy than DLA-only, the relevant entries are the energy-oriented ones, which take longer than the fastest mixed VGG19 execution.

The reported VGG19 gains reach up to ∼ 4.62x for energy relative to GPU-only deployment and ∼ 4.44x for latency relative to DLA-only deployment. The selected configurations make clear why both numbers matter as separate comparisons. Lower energy points toward the energy-oriented search results, while lower latency points toward the latency-oriented ones. The paper also reports that more than 80% of VGG19 inputs were correctly classified at earlier stages with fewer channels. That observation connects the hardware results to the frequency with which inputs can avoid the cost of the full computation.

What the ablations show

Joint execution before and after early exits

The paper offers controlled comparisons of deployment strategies and feature reuse constraints, alongside an analysis of selected Pareto configurations. Its opening Visformer example fixes the network, dataset, and chip while comparing single-hardware execution with a distributed static deployment. The latter partitions the network along its width and makes the parts available to separate units. The authors report a 42.6% speedup over DLA-only execution and 11.1% energy gains over GPU-only execution. This establishes that width partitioning with several units changes the hardware tradeoff even when all inputs require the full static computation.

The dynamic version in the same example introduces exits. Against DLA-only execution, the authors report a 44.4% speedup and a 14.5% energy gain. They also compare feature reuse with the static deployment, which exchanges all needed features in that comparison. The dynamic strategy uses 40% less feature reuse at the expense of a 0.5% accuracy drop. The comparison shows how a deployment that recognizes different paths through the network can reduce both the computation an input needs and the cross-unit features retained by the configuration. Since the dynamic version also changes the sharing strategy, the comparison measures the combined transformation. It cannot assign the reported gains to early exiting alone.

The main tables highlight another aspect of the choice between static and dynamic execution. When every input completes the same pipeline, the hardware cost of the final operations applies to the whole workload. When many inputs end after a narrow stage, the cost of later stages applies only to those assigned to them. The VGG19 observation that more than 80% were correctly classified in earlier stages supplies evidence for the second pattern in that architecture. It measures the opportunity according to correctness at the early stages. It does not measure how often a practical controller would know when to use that opportunity.

What changes when feature reuse is capped

The closest thing to an ablation of feature sharing is the repeated search at different reuse limits. A low limit forces the optimizer to consider configurations that retain fewer cross-stage features. A higher limit gives it room to keep groups that may help later predictions. Each search can adjust the other deployment choices within its space, so the comparison shows what configurations the optimizer can find under each restriction. It gives a different kind of evidence from taking one chosen deployment and individually turning off its connections.

For Visformer, the paper reports an accuracy drop of ∼ 6% among the configurations found under the hard 50% reuse restriction. This is an observation about the search under that limit. The configurations selected for the table have their own individual accuracies. In Figure 6, the authors also highlight search outcomes that keep the accuracy drop below 0.5%, viewing accuracy alongside latency and energy as they compare configurations. The different views help separate what the search space contains from the particular settings singled out for one objective.

The paper’s Visformer comparison of energy-oriented outcomes shows that some configurations can reach accuracy comparable to the baseline at 60% reuse. The authors associate these cases with searches that allow more sharing, including the no-cap and 75% settings. That observation bears on the value of the selection procedure. It is possible to omit some cross-stage features while keeping the ones that later stages rely on for accurate predictions. Once the cap is tight, both the amount of available information and the specific groups retained can limit classification.

The VGG19 rows help qualify the interpretation of a reuse limit. Its energy-oriented selections under the two capped searches are close in reported energy and latency, with distinct reuse percentages. That outcome is consistent with the search choosing among multiple widths, assignments, feature connections, and operating points. A cap on sharing is therefore a restriction on the options evaluated. It does not act as a direct setting for energy or latency. Reducing the number of permitted features can relieve some transfers while narrowing the ways to build an accurate early or late path.

There is a related timing effect that can be understood from the recurrence. Removing a dependency can let a sublayer start sooner if the removed features had been the last to arrive. Removing some other dependency may lower the amount of data delivered without changing the critical arrival time. The reuse analysis supports the importance of deciding what to share, but its aggregate percentages do not identify which connections delayed particular sublayers. The paper also does not present separate controlled runs that remove channel ranking, disable DVFS, or hold every other setting fixed while changing only the processor placement. The results establish the value of configurations found by the combined search and show how sensitive those configurations can be to a restriction on sharing.

Limitations

Limits stated by the authors

The authors explicitly assume ideal input mapping. The required number of stages is known before the inference begins. The validation grouping also uses the true class to decide where an input is first correctly classified. Under the assumption, the hardware can launch the required work and let the stages proceed as soon as their features are ready. A real decision mechanism would have to estimate the adequacy of an early prediction from the information available at runtime. The authors point to work on runtime controllers for that decision and leave their use outside the experiment.

This assumption concerns timing as well as accuracy. A controller that waits for the prediction at the end of one stage before starting another would lose some of the opportunity for concurrent execution. A controller that starts additional stages in advance could preserve overlap and spend energy on inputs that would have exited earlier. The reported timing and energy characterize the case in which the right amount of work is already known. They provide a target for understanding the benefit of the partition, with the costs of making the decision left open.

The authors also identify the tradeoff between sharing fewer features and maintaining accuracy. A tight cap can reduce inter-unit transmission while depriving later stages of information they need. The search includes a memory constraint because intermediate features have to remain available in shared memory while the inference proceeds. These choices depend on the workload and hardware. Reuse decisions that preserve a desired accuracy on Visformer are evidenced by the configurations found in those experiments, and the VGG19 results show a different balance.

Limits visible in the evaluation

The generalization test varies the architecture, from Visformer to VGG19. Both are evaluated on CIFAR-100 and on the same Jetson AGX Xavier. That is evidence that the procedure can work for both an attention-based and a convolutional image classifier on one hardware platform. It leaves open how the same tradeoffs would look on a chip with other accelerator capabilities, different transfer costs, or a different number of computing units. The formulation sets a distinct computing unit for each stage. Other deployment schemes could place several stages on the same unit, but such assignments are outside the search as defined here.

The headline results compare a dynamic mixed deployment with full-network single-hardware baselines. This is appropriate for asking how much a user might gain by choosing the proposed deployment over those simpler options. For attributing the gains, the comparison changes several things at once. The dynamic deployment changes which computation is executed for some inputs, how width is split, where parts of the network run, and which outputs are transferred. The static motivation and reuse searches illuminate part of that structure. Separate comparisons would be needed to estimate the contribution of the channel ranking, hardware scaling, or the choice of placement under otherwise identical conditions.

There is also a distinction between profiling operations and validating an entire concurrent deployment. The authors benchmark layer configurations and train a predictor to supply latency and energy estimates during the search. The timing recurrence adds transfers and dependencies to those estimates. A layer-level predictor is a practical way to explore many settings, but the evaluation does not give a separate breakdown of its prediction error for complete concurrent executions. Accesses from multiple units can interact through shared resources, and the accuracy of a predicted tradeoff depends on how well the profiling and timing assumptions account for the relevant interactions. The paper’s energy equations similarly express stage energy through its sublayers. They do not provide a separate experimental breakdown of energy spent waiting or delivering intermediate features.

The reported averages describe expected behavior over the evaluated inputs under the exit assumption. They do not give latency distributions for the cases that need all stages. For a system with strict deadlines, the difference between average latency and the latency of the slowest cases can change which deployment is appropriate. The study also does not give uncertainty across repeat searches or repeated inference measurements for the listed configurations. The reported accuracies, energy values, and timings let readers compare the displayed settings at the precision given, without establishing how stable small differences would be on repetition.

Finally, the Pareto results come from an evolutionary search with a fixed budget. They demonstrate feasible tradeoffs the procedure found among the configurations explored. The size of the search space is the reason to use the heuristic, and it also limits the claim that can be made about global optimality. The chosen objective gives accuracy, timing, and energy a particular relationship through its product of terms. A setting that looks attractive under that score could rank differently under a hard accuracy requirement or an emphasis on the inputs that reach the final stage. The separate results for energy- and latency-oriented selections preserve those distinctions when interpreting the paper’s gains.

What came after

The subsequent research record is open. No later citing work is documented here, so there is no follow-up result to attribute to Map-and-Conquer.

Cite

Cite as Halima Bouzidi, Mohanad Odema, Hamza Ouarnoughi, Smail Niar and Mohammad Abdullah Al Faruque. 2023. Map-and-Conquer: Energy-Efficient Mapping of Dynamic Neural Nets onto Heterogeneous MPSoCs. arXiv:2302.12926.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.2302.12926 · arXiv 2302.12926

@misc{bouzidi2023map,
  title = {{Map-and-Conquer: Energy-Efficient Mapping of Dynamic Neural Nets onto Heterogeneous MPSoCs}},
  author = {Halima Bouzidi, Mohanad Odema, Hamza Ouarnoughi, Smail Niar and Mohammad Abdullah {Al Faruque}},
  year = {2023},
  doi = {10.48550/arxiv.2302.12926},
  eprint = {2302.12926},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2302.12926}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bouzidi-2023-map-conquer-energy-efficient-mapping/