LATTICE: Constraint-Directed Scheduling, Memory Planning, and Pipeline Refinement for NPUs
RLRunhao LiuMinnan PeiFei DingGuangzhen YaoYou LiPeng XiaoGang LiPeng Zhang
RLRunhao Liu
Minnan Pei
Fei Ding
Guangzhen Yao
You Li
Peng Xiao
Gang Li
Peng Zhang
+8
LATTICE is a deterministic compiler pipeline for NPUs that treats scheduling, memory planning, and pipeline refinement as interdependent phases. Its central contribution is a constraint-directed approach: Memory-Pressure-Aware Topological Scheduling reshapes command lifetimes before address binding, Deterministic Linear Repackaging materializes tiered placement and reuse constraints, and Critical Path Enhancement recovers parallelism under the fixed memory plan. Across six Da Vinci NPU traces, LATTICE achieves best or tied-best results in all 24 workload-metric comparisons, reducing peak memory, extra DDR traffic, spill count, and modeled makespan by 18.3%, 20.4%, 14.1%, and 16.3% respectively versus the best baseline per metric.

arXiv ·
· July 19, 2026