arXiv:2609.08231cs.DCSep 2026

Manuscript Offprint

arXiv:2609.08231

SemBridge: Compiling Consumer Observations into Cross-Stack Communication Plans

Genlang Chen, Junyi Zhu, Yuanshan Lin

Abstract

Distributed-tensor systems specify where values reside, while collective systems optimize how requested operations execute. At a boundary between vendor runtimes that cannot share a native communicator, neither abstraction states what a remote consumer must observe. SemBridge fills this gap by compiling graph and runtime facts into a typed contract for the consumer-visible result and its delivery obligations. The contract captures provenance, substitutability, completion, authority, demand, and native-domain locality. A deterministic lowerer constructs backend-neutral communication plans, and a symbolic checker validates each plan before execution across CUDA/NCCL and CANN/HCCL. An independent layout-only planner handles all 72 structural transitions but establishes only 54 complete obligations; a byte-only minimizer proposes 40 semantically invalid candidates, all rejected by SemBridge. On nine real edges, SemBridge produces distinct observation-aware plans that reduce startups on all nine and payload bytes on the three result edges. A live CUDA/CANN run derives and executes full-logit reconstruction, source projection, and owner-token delivery from log-probability, token-only, and owner-scoped requests. On a measured two-host 1-GbE capacity-spillover deployment, source projection cuts result traffic by more than 99.97% and increases throughput by 8.92–80.20% across Dense, MoE, and MiniMax workloads. All 18 MiniMax restart pairs at concurrency 1, 8, and 16 favor source projection. A Qwen3-14B MLP slice additionally verifies bitwise activation-shard delivery and HCCL completion of row-parallel partials. These results establish consumer observation as a semantic layer between placement and collective execution.

1 Introduction

Large language models increasingly exceed the capacity of one accelerator pool, while available resources can belong to distinct hardware and software stacks. Heterogeneous inference systems respond by selecting model placements, parallelism strategies, and request routes over devices with different compute, memory, and network characteristics [10, 11, 15]. Phase-disaggregated serving further transfers request state between specialized prefill and decode pools [17, 34]. These systems make heterogeneous placement practical. Across CUDA/NCCL and CANN/HCCL, however, endpoints remain in disjoint native communicator domains.

Once a partition is fixed across them, what must cross the boundary for remote consumers to observe the correct value?

Distributed-tensor compilers describe layouts, propagate sharding, and generate parallel programs [2, 23, 31]. Placement systems search over inter- and intra-operator parallelism [8, 9, 33], and cross-mesh resharding optimizes transfers between layouts [35]. Collective systems synthesize or tune a physical algorithm for a requested AllReduce, All-Gather, broadcast, or related primitive [3, 5, 22, 30]. Mixed-vendor substrates can realize such collectives through cross-domain point-to-point transport and vendor-local combining operations [28]. SemBridge augments these layout and collective abstractions with the result a remote consumer observes: a projection, one substitutable replica, a completed value, or an owner-issued decision. It lowers that requirement before physical collective selection.

Autoregressive result transfer makes the gap concrete. In our integration, the native tail output head materializes full logits. A layout-directed plan slices the tensor by TP lane, transfers the shards, reconstructs the full value with All-Gather, and then samples. A token-only request can apply the same deterministic sampler before the boundary and communicate int32 token IDs; a log-probability request still requires complete logits. Selected homogeneous serving paths already communicate compact sampler outputs [25, 26]. SemBridge generalizes this path-specific choice into a derived cross-stack transformation: the serving API determines the consumer surface, the graph and runtime determine its delivery obligations, and the checker validates the resulting plan. The same contract composes projection with lane-preserving shards, partial completion, substitutable replicas, authoritative decisions, and native-domain constraints. Thus identical endpoints can admit different legal payloads and communication graphs.

Figure 1 separates two decisions: which result the consumer observes and how that result must be delivered. For a token-only request, full-logit transfer and source-side projection expose the same token surface; they differ only in where argmax runs. Log-probability requests retain complete-logit transfer. Delivery rules separately preserve shard mappings, complete partials, select representatives from derived replica classes, and source decisions from their owner. SBP and DTensor encode shard, replicate, and partial states [18, 32]; SemBridge adds the consumer surface, demand, substitutability, authority, execution identity, and native-domain facts.

Figure

Figure 1. Consumer-observation-guided lowering. (a) Graph and runtime facts form a typed boundary contract; an ordered lowerer and symbolic checker produce a checked plan. (b) The dashed line separates producer and consumer domains under one fixed placement. Full-logit transfer (R0), source projection (P0), and owner-token delivery (S1) preserve the same requested token ID. R0 transfers V logit elements in k remote frames, P0 transfers k int32 IDs in k frames, and S1 transfers one ID in one remote frame followed by local Broadcast.

An independent planner isolates what layout information alone can establish. It receives shape, dtype, meshes, domains, and Shard/Replicate/Partial placements. Although it supports all 72 layout transitions, it establishes only 54 complete application obligations. On those 54 cases, Sem-Bridge reduces bytes in 30 and startups in 35. Authority adds another 10 byte and 13 startup reductions across the remaining 18 cases. On nine real edges, SemBridge changes every plan, reducing startups on all nine and bytes on the three result edges. A shared-IR oracle matches the production lowerer throughout the bounded family; a byte-only minimizer proposes 40 semantically invalid candidates, all rejected by SemBridge.

All plans run through the same persistent transport and vendor-local collectives. In the projection-placement comparison, forward traffic and result-frame counts match. Source-side projection reduces result traffic by 99.979–99.996% and improves throughput by 8.92% on Dense TP4 and 26.39–62.87% on MoE TP2. On MiniMax, it improves throughput by 18.64–80.20% across concurrency 1, 8, and 16, with all 18 restart pairs positive. Separate controls show that fewer forward startups help Dense, while owner-token fanout helps MoE when result synchronization lies on the critical path.

This work makes three contributions:

  • A typed boundary contract separates the consumer-visible result from delivery obligations over provenance, substitution, completion, and authority, while retaining demand and native-domain locality.
  • A deterministic lowerer compiles the contract into a backend-neutral graph. A symbolic checker validates coverage, surface, completeness, provenance, authority, and domain locality before runtime realization.
  • A plan-parametric CUDA/NCCL-CANN/HCCL runtime executes API-selected full-logit, projected-token, and owner-token plans together with representative, exact-shard, and partial-completion plans. Experiments cover three model families and MiniMax concurrency from 1 to 16.