arXiv:2610.24974cs.DCOct 2026

Manuscript Offprint

arXiv:2610.24974

BitPCE: Batched Multi-Dimensional PolicyResolution with GPU Bitmap Algebra

Shengwei Wang

Shengwei Wang

Illumio

Abstract—Policy controllers must determine which workloads match rules spanning several label dimensions. Hash sets, compressed bitmaps, and GPU set-processing primitives address the underlying set operations. However, intermediate results, repeated scope evaluations, dependent policy updates, and host transfers can dominate the cost of a heterogeneous batch. We study this problem as batched intersection-of-unions (IoU).

Our design exploits independent scope-word tasks, reusable endpoint expressions, and policy dependencies. The challenges are preserving wildcard, empty-group, and exclusion semantics, recognizing equal scopes, and retaining unchanged recipients affected by source edits. BitPCE addresses them with register-resident GPU evaluation, canonical scope compilation, and dependency-complete candidate selection under a stated rendering contract. IP-only changes reuse cached memberships. We establish correctness and word-work bounds.

On a four-vCPU A10G host, resident GPU execution is 3.46–36.60× faster than the best tested native CPU path, including CRoaring, and 1.14–2.22× faster than an adapted operand-parallel GPU reduction. Gains narrow at the host-output boundary: on an eight-vCPU host, including upload and compact identifier output, resolution takes 16.3 ms versus 19.3 ms for CPU at 100K objects and 500 scopes. Sparse labels and small batches can favor CPU execution. Scope reuse, candidate selection, and incremental transfers are measured as components; complete update-to-enforcement latency remains unevaluated.

Index Terms—GPU computing, set intersection, bitmap index, policy resolution, CUDA, parallel algorithms

I. INTRODUCTION

Network policy controllers translate application intent into the workloads to which a rule applies. For example, “allow production web servers to reach production databases on TCP port 5432” requires finding both endpoint sets from role and environment labels. Workload arrivals, label edits, and policy changes can require these sets to be refreshed across many rules. This paper addresses that bulk membership-resolution step, which also appears in access control and categorical content filtering.

The core expression is intersection-of-unions (IoU): a scope accepts any listed label within a dimension and requires a match in every constrained dimension. For groups of workload sets Gi={Si,1,Si,2,…}G_i = \{S_{i,1}, S_{i,2}, \ldots\},

IoU(G1,…,GK)=⋂i=1K(⋃S∈GiS).(1)\mathrm{IoU}(G_{1},\ldots,G_{K})=\bigcap_{i=1}^{K}\Big(\bigcup_{S\in G_{i}}S\Big). \tag{1}

The desired output is the matching workload set for each scope; rendering and delivering the resulting policies add further work.

a) How the problem is addressed today: Industry uses label selectors to express policy: Kubernetes delegates enforcement to network plugins [1], while Cilium uses label-derived identities to separate security from IP addressing [2]. For explicit membership sets, Redis provides unions and intersections [3]; selective hash filtering can start from a small candidate set. Dense bitmaps exploit word-level parallelism, and Roaring adapts storage to density [4]. Academic work accelerates GPU set intersection [5], bitmap reductions [6], and reusable query processing [7].

b) The remaining difficulty: However, a fast primitive alone does not determine the best execution plan for a batch of heterogeneous scopes. Hash unions construct intermediate sets; selective filtering trades those unions for irregular probes. Dense bitmaps scan words even for sparse labels. Operand-parallel GPU reductions avoid global intermediates but require coordination; staged evaluation instead materializes group results. Launches, index upload, and host-readable output can outweigh GPU computation. Repeated scopes and dependencies between policy recipients create further work beyond an isolated intersection. The question is therefore how to exploit a whole batch's structure, preserve its semantics, and establish when the benefit survives the required input/output costs.

c) Insights, challenges, and approach: Building on these techniques, three observations guide BitPCE:

  1. Keep the expression factored and parallelize its words. Factoring is standard set algebra; the opportunity is to evaluate independent scope-word pairs without storing each group union. The challenge is to fuse heterogeneous groups while preserving wildcards, empty groups, exclusions, and partial-word semantics. We establish the bitmap equivalence and work bounds (Section III) and implement register-resident fused CUDA evaluation with early termination (Section IV).

  2. Reuse membership expressions across rules. Rules with different services can share endpoint scopes. The challenge is to recognize equal scopes without losing group boundaries or exclusions, and to distinguish shared output from its expansion. A CPU compiler produces canonical scopes and a reference map with a correctness argument (Section IV-B).

  3. Follow policy dependencies when membership changes. An unchanged database recipient still needs an update when its allowed web-source set changes. The challenge is complete candidate selection across source, recipient, and service edits. We derive a candidate set under an explicit rendering contract and separate IP-only changes from label changes (Section V).

The evaluation compares matched native CPU, compressed-bitmap, and Redis paths, tests fusion and scope reuse, and measures transfer costs, including cases favoring CPU (Section VII).