Encoder-decoder networks keep fine detail such as tumor boundaries or thin structures by passing early, high-resolution feature maps directly to the decoder. These shortcuts are called skip connections. They have a cost on small devices that rarely gets counted. A skip tensor made at the first encoder stage has to stay in memory while every deeper layer runs, so the finest skips set the network's peak on-chip memory. In a variational autoencoder, which compresses the input into a regularized random code and decodes from it, skips cause a second problem. If they are plain copies, the decoder can ignore the compressed code, and the model loses the ability to synthesize missing inputs. We propose to search, per resolution level, how many channels and how many bits each skip gets, and whether it exists at all. The search runs under a hard peak-memory budget, using a memory model that tracks how long each skip tensor stays alive.
The starting point is the variational skip connection introduced in Hetero-Modal Variational Encoder-Decoder for Joint Modality Completion and Segmentation (U-HVED). U-HVED puts a Gaussian distribution on each skip, so every skip carries a measurable information rate: the KL divergence, i.e. how far the skip's distribution departs from its prior. That rate is a natural price tag for spending memory. The question we ask is simple. When skips are forced to be both informative and cheap, how should a fixed kilobyte budget be divided across scales? And does the answer beat compressing a hand-designed network after the fact?
Core Claim
Existing hardware-aware architecture search, meaning automated design that optimizes accuracy against measured device cost, assumes that cost adds up layer by layer. That holds for latency lookup tables (SqueezeNAS, MoGA). It also holds for the per-layer buffer constraints in DUCCIO. Peak memory in a U-shaped network does not add up this way. It is a maximum over execution time of the sum of all live tensors, and the finest skips are live for almost the entire run. Our claim has two parts. First, making skip width, skip bit-width, and skip presence searchable under a liveness-aware peak-memory constraint gives better detail-preservation and modality-completion trade-offs than either post-hoc compression of U-HVED or search methods that ignore liveness. Second, the variational skips keep the searched network generative. Under a tight budget, the search should move information into the regularized bottleneck rather than letting it leak through deterministic shortcuts.
The objective combines U-HVED's segmentation-plus-ELBO loss $\mathcal{L}_{\text{task}}$ with DUCCIO-style hinge penalties. The penalties are zero inside the budget and grow once it is exceeded:
$$\mathcal{L} = \mathcal{L}_{\text{task}} + \lambda_M \max(0, \mathbb{E}[M_{\text{peak}}] - T_M) + \lambda_L \max(0, \mathbb{E}[\text{Lat}] - T_L),$$
where $T_M$ and $T_L$ are the device's memory and latency budgets. The expected peak memory under the sampled architecture is computed from
$$M_{\text{peak}} = \max_{t} \Big( A_t + \sum_{s \,:\, \text{live at } t} \frac{C_s H_s W_s D_s\, b_s}{8} \Big).$$
Here $t$ indexes execution steps and $A_t$ is the working activation memory of the layer running at step $t$. A skip $s$ is live from its creation in the encoder until its use in the decoder. It has $C_s$ channels, spatial size $H_s W_s D_s$, and $b_s$ bits per element. The max is not smooth, so we will use a log-sum-exp relaxation during search and the exact max for final checks against memory measured on the device.
Research Program
The search space is a U-HVED-style multi-modal encoder-decoder with four resolution levels. Each skip level can choose its channel count from a small set, its storage precision from 4, 8, or 16 bits, its presence, and whether it is variational or deterministic. The last choice lets the search show whether regularization is worth its cost. Encoder and decoder blocks have searchable kernel size and expansion ratio, as in SqueezeNAS. The raw space grows combinatorially. Following the finding in CompOFA that coupling dimensions cuts supernet interference and search cost, we tie encoder width to decoder width at each level and search the skip dimensions independently. We will report the size of the resulting space before search begins.
The search itself is one-shot and differentiable. Discrete choices are sampled with the discretized Gumbel-Softmax approach from DUCCIO so that the architecture found during search matches the one deployed. We will anneal $\lambda$ linearly, also as in DUCCIO. Latency comes from per-block lookup tables measured on each target. Memory comes from the liveness model above, calibrated against the memory planner's output on the device.
There are two targets. The first is an embedded GPU of the kind SqueezeNAS used, the NVIDIA AGX Xavier. The second is a microcontroller-class device, the GAP8 RISC-V chip used by DUCCIO. Full 3D BraTS volumes will not fit on GAP8, so there the task is tiled 2D axial-slice segmentation and completion, and on Xavier it is 3D patches. We report both settings rather than hide the gap between them.
The analysis has three parts. We will map where the searched networks spend memory across scales at each budget. We will test whether the per-scale KL rates of a trained unconstrained U-HVED predict that allocation. We will also measure whether the bottleneck latent stays informative. The informativeness probe resamples the bottleneck with the skips held fixed and measures how much the modality synthesis changes.
Baselines
The naive reference point is U-HVED as published, run at float precision. Its peak memory and latency are measured on each device, and where it does not fit, that is reported as failure. The file gives no Dice numbers for U-HVED. Its reported result is that it outperformed HeMIS in 13 of 15 modality combinations on BraTS 2018 for complete-tumor segmentation and matched networks trained for single fixed subsets. For scale, the original BRATS benchmark reports the best algorithms at about 0.80 whole-tumor Dice, comparable to inter-rater agreement of 74–85% (BRATS). That was a different data release, so it is context rather than a target.
The strongest practical competitor is U-HVED compressed after training. We quantize all weights and activations to 8 bits, apply structured channel pruning uniformly, and prune further until each memory budget is met. Its accuracy is recovered by fine-tuning for the same number of GPU-hours the search consumes. A second strong competitor is liveness-blind hardware-aware search. This is our own search with the peak-memory term replaced by DUCCIO's per-layer buffer constraint, run with the same space, data, seeds, and compute.
Two ablations isolate the key ingredients. One uses deterministic skips everywhere, which tests the variational part. The other fixes skip bit-width at 8 bits, which tests whether precision allocation matters beyond channel allocation.
Beating the baselines means the following. At every memory budget where U-HVED no longer fits, the searched model must dominate the compressed and liveness-blind alternatives on the three-way trade-off between boundary accuracy, completion quality, and measured peak memory. It must do so across at least three seeds and most of the 15 modality subsets.
Why not just…?
Why not just quantize and prune U-HVED? This is the most serious threat, because 8-bit quantization alone shrinks every skip fourfold. The argument against it is that uniform compression keeps the hand-designed ratio between scales. DUCCIO's 54–61% Tiny ImageNet speedups came from reshaping layers so tensors fit the GAP8 L2 buffer, which uniform shrinking cannot reproduce. Still, that evidence comes from classification networks. If the compressed U-HVED lands on our Pareto front, the honest conclusion is that skip allocation is not the bottleneck, and the fine-tuning-matched baseline exists to test exactly that.
Why not just drop the finest skip or recompute it instead of caching it? Dropping the highest-resolution skip is the obvious hand rule. It should hurt thin structures and boundaries, which is why we report boundary distance and not only Dice. Recomputing skip features trades memory for latency, and we will run it as a baseline under the same latency budget. If recomputation fits the budget at acceptable latency on Xavier, search is unnecessary on that device. We expect it to break the latency budget on GAP8.
Why not just set skip widths from U-HVED's per-scale KL rates, with no search? A trained variational skip already reports how much information each scale carries, so a proportional rule is cheap. We treat it as a baseline and a hypothesis, not a strawman. If it matches the searched allocation, that is a useful finding in itself, since it would make rate a train-once design rule. The search would then be justified only where latency and memory interact in ways the rule cannot see.
Why not a deterministic network with zero-filled missing modalities? U-HVED beat HeMIS, which fuses modalities by feature averaging, and matched per-subset networks that would otherwise require $2^M-1$ separate models for $M$ modalities. Our deterministic-skip ablation checks whether that advantage survives tight memory budgets.
Proposed Experiments
We train on BraTS 2018 with U-HVED's protocol, evaluating all 15 modality subsets. Metrics are whole-tumor, tumor-core, and enhancing-tumor Dice, 95th-percentile boundary distance, PSNR and SSIM of the completed missing modality, and measured peak memory and latency on Xavier and GAP8. We sweep four memory budgets from "U-HVED barely fits on Xavier" down to "fits GAP8 L2 with 2D tiles."
Three outcomes would decide the question. The first is whether the searched model dominates compressed U-HVED at the two tightest budgets. The second is whether the peak memory predicted by the liveness model is within a few percent of the device-measured value while the per-layer model misses badly. That gap is the mechanism the proposal rests on. The third is whether, under tight budgets, the bottleneck latent in searched models stays at least as informative as in unconstrained U-HVED, as measured by completion quality and the resampling probe. If it becomes less informative, memory pressure is pushing the network toward trivial shortcuts, and the variational skips are not doing their job.
References
- Hetero-Modal Variational Encoder-Decoder for Joint Modality Completion and Segmentation
- SqueezeNAS: Fast neural architecture search for faster semantic segmentation.
- MoGA: Searching Beyond Mobilenetv3
- Enhancing Neural Architecture Search With Multiple Hardware Constraints for Deep Learning Model Deployment on Tiny IoT Devices
- CompOFA - Compound Once-For-All Networks for Faster Multi-Platform Deployment
- The Multimodal Brain Tumor Image Segmentation Benchmark (BRATS)