- The paper introduces a joint ILP formulation and a BCD-based heuristic to minimize end-to-end latency by optimizing model splitting, placement, and chaining for multi-hop split learning and inference.
- It demonstrates near-optimal performance with the heuristic achieving latencies within 1% of the ILP benchmark while drastically reducing computational overhead.
- The results highlight scalability for distributed AI deployments, enabling efficient model partitioning across edge and cloud resources under realistic resource constraints.
Optimization of Model Splitting, Placement, and Chaining for Multi-hop Split Learning and Inference
Introduction and Context
This work systematically addresses joint optimization for split learning (SL) and split inference (SI) in multi-hop, distributed environments, extending previous single-hop SL/SI paradigms to a general Service Function Chaining (SFC)-based architecture. The primary contributions are a rigorous Integer Linear Programming (ILP) formulation for minimizing latency via joint model splitting, placement, and chaining (data routing), and a Block Coordinate Descent (BCD)-based heuristic that achieves near-optimal performance with vastly reduced computational complexity.
Traditional SL/SI approaches operate under the premise of direct client-server communications, failing to account for the complex routing and placement decisions inherent in multi-hop, resource-constrained networks. The SFC-based MSL/MSI (Multi-hop Split Learning/Multi-hop Split Inference) framework conceptualizes partitioned sub-models as chained network functions over arbitrary directed graphs representing physical networks, bringing the problem into alignment with network function virtualization literature but introducing unique challenges due to neural model resource demands and chain execution order.
SFC-based MSL/MSI Architecture
The physical network is modeled as a directed graph G=(V,E), with computing resources (CPU and GPUs) distributed across vertices. Each node is annotated with finite memory and storage, and links carry asymmetric bandwidth and propagation delays. Sub-model placements are encoded by an augmented network G+, adding 'imaginary' nodes representing candidate sub-model deployments and their feasible mappings.
A service chain request R=(id,s,d,b,mode) specifies a global model F (composed of L layers), source/dest nodes, mini-batch size b, and execution mode (inference or training). The model is to be partitioned (split) at optimal points (K splits), with each sub-model assigned to feasible nodes.
Figure 1: System model of SFC-based MSL/MSI, depicting split points, sub-model assignments, and routing via virtualized nodes and links.
Joint Optimization via ILP
The ILP objective is to minimize total end-to-end latency (aggregate computation and communication, potentially bidirectional for training), subject to:
- Binary variables for split points (yv^k​,l​) and placement/routing (xi,jk​)
- Resource constraints: memory, storage, bandwidth, and per-node model processing capability
- Layer assignment and contiguity: every layer is allocated to exactly one sub-model, and splits must yield contiguous model fragments
- Path constraints: sub-paths must begin and terminate in correct order, traversing selected nodes/links only
Novel constraints ensure that model assignment adheres strictly to feasible resource envelopes and sequential order across splits. The objective function intricately models both computation (layer-wise FLOPs, I/O) and communication (activation/gradient size, transmission delays, propagation delays per path segment).
Figure 2: Relationship between model splitting variable yv^k​,l​ and valid model segmentation.
Algorithmic Framework
While ILP delivers ground-truth optimality, its scaling limitations (combinatorial explosion in binary variables with G+0, G+1, G+2) necessitate heuristics for practical deployment. The BCD-based method alternates between optimizing model splitting (minimizing per-segment latency for a fixed path/placement via G+3-Sequence Segmentation) and placement/chaining (optimizing placement given a fixed split using an augmented DFTS/Dijkstra search). Iteration continues until convergence (change in latency below threshold G+4), guaranteeing local optimality in practice.
Evaluation and Results
Experimental Setting
- Model: ResNet101 (G+5), metrics measured per building block and executed on a mixed CPU/GPU NSFNET topology (14 nodes, 42 links)
- Parameters: Mini-batch size G+6, chain length G+7
- Benchmarks: Full ILP ('oracle'), BCD, computation-minimizing (COMP-MS), communication-minimizing (COMM-MS)
- Constraints: Practical per-node resources, realistic PyTorch-computed FLOPs, activations, gradients
Latency/Scaling Results
Both inference and training latencies are strongly superlinear in mini-batch size G+8, with communication overheads dominating at higher G+9 due to cascading smashed data transmissions. Notably, the optimal R=(id,s,d,b,mode)0 is not monotonic: minimal R=(id,s,d,b,mode)1 is best for small R=(id,s,d,b,mode)2, but R=(id,s,d,b,mode)3 is empirically superior for large R=(id,s,d,b,mode)4 or training, balancing computation parallelism against communication bloat.



Figure 3: Inference latency per batch across K and b, highlighting the computation/communication tradeoff landscape.


Figure 4: Training latency per batch dissects computation, transmission, and propagation contributions.
Model splitting points (Fig.~6 and Fig.~7) adapt to minimize the largest per-node delay, with early layers (large smashed data) typically retained on resource-constrained ingress nodes, while deep-layer, parameter-rich blocks migrate to GPUs nearer the egress. This behavior is systematically observed for both inference and training, but training imposes tighter memory constraints, amplifying the need for careful split point selection.



Figure 5: Optimal service path and model splitting for MSI (R=(id,s,d,b,mode)5, R=(id,s,d,b,mode)6) shows dominant allocation of early layers to source CPU and mid-late layers to GPUs.


Figure 6: Training setting (R=(id,s,d,b,mode)7, R=(id,s,d,b,mode)8) shifts more layers to GPUs due to computation/memory bottlenecks.
BCD achieves latencies within 1% of ILP solutions across all configurations, at R=(id,s,d,b,mode)9 lower runtime. COMP-MS and COMM-MS, in contrast, incur major penalties: COMP-MS overlooks communication, leading to oversized smashed activations; COMM-MS overloads ingress nodes, yielding excessive computation and memory usage—undesirable in realistic resource-constrained devices.
Scalability analysis underscores the BCD approach: as F0 and F1 increase, execution time for BCD grows polynomially, while ILP scaling is exponential, making BCD the only practical choice for large-scale deployments.

Figure 7: Execution time as a function of F2, demonstrating the scalability gulf between ILP and BCD.
Implications and Future Work
The ILP abstraction captures the fundamental tradeoff in SFC-based distributed inference/training between latency-critical computation and inter-node communication, accounting for both placement flexibility and heterogeneous resource constraints. The BCD heuristic's performance indicates that near-optimal chain construction is achievable well beyond small, toy networks, laying the groundwork for scalable edge/cloud collaborative learning infrastructures.
Practically, these results facilitate the deployment of large models on federated or resource-constrained edge domains, reducing latency without requiring homogeneous hardware. The methodology can be extended to incorporate privacy preservation (e.g., differentially private split assignment), multi-path chain layouts for load balancing/fault tolerance, and federated model update or aggregation in hybrid FL-SL settings.
Conclusion
This study presents a rigorous and general joint optimization framework for multi-hop split learning and inference over arbitrary networks. The presented ILP models the complex interplay of computation, communication, and resource constraints, while the BCD-based algorithm demonstrates state-of-the-art scalability with near-optimal quality. This work provides both a theoretical foundation and a practical algorithmic toolset for scalable AI deployment in heterogeneous, distributed settings.