Coloring-Aware Placement Forces from a Warm-Started Semidefinite Relaxation

Modern chips print their densest layers with triple patterning: features that sit too close to share one photomask are split across three masks. Deciding which feature goes on which mask is a 3-coloring problem on a "conflict graph," with one node per feature and an edge between any two features closer than the minimum spacing. It is NP-hard, and today it is solved only after cells have been placed and wires routed. When placement creates an odd tangle of mutually close features, the decomposer can only report conflicts or insert stitches. A stitch is a deliberate split of one feature across two masks, and it costs yield. This note proposes to let the placer feel the coloring problem while it is still moving cells. The idea is to relax the coloring into a semidefinite program, in which each feature's mask choice becomes a unit vector and conflicting features try to point away from each other. The optimal value of that relaxation is then used as a smooth penalty on cell positions.

The useful fact is that the gradient of this penalty comes almost for free. By the envelope theorem, the derivative of the relaxation's optimal value with respect to an edge weight is the optimal inner product of the two features' vectors. Close pairs that the relaxation can already separate onto different masks therefore exert no force. Only pairs that the relaxation is forced to put on the same mask, which are the pairs inside odd cycles and 4-cliques, push their cells apart. A plain spacing penalty cannot draw this distinction. The open engineering question is latency, since the placer calls the penalty thousands of times. We answer it by warm-starting a sparsity-exploiting first-order solver across placement iterations, and we test whether learning its iteration schedule, in the style of deep unfolding, adds anything beyond the warm start.

Core Claim

We use the vector-programming relaxation of triple-patterning decomposition from Layout Decomposition for Triple Patterning Lithography, which maps mask colors to unit vectors and rounds the continuous solution back to masks. We make its conflict-edge weights depend smoothly on cell positions $p$:

$$ L(p) = \min_{X \succeq 0,\; X_{ii}=1,\; X_{ij}\ge -\tfrac12} \;\sum_{(i,j)\in E_c} w_{ij}(p)\,\tfrac23\big(X_{ij}+\tfrac12\big) \;+\; \alpha \sum_{(i,j)\in E_s} \tfrac23\big(1-X_{ij}\big). $$

In this expression, $X$ is the Gram matrix of feature vectors, $E_c$ are candidate conflict pairs, and $E_s$ are stitch edges. The weight $w_{ij}(p)=\sigma\big((s_{\min}-d_{ij}(p))/\tau\big)$ is a sigmoid of how far the pair's spacing $d_{ij}$ falls below the minimum $s_{\min}$, with temperature $\tau$, and $\alpha$ is the stitch weight. Because the feasible set does not depend on $p$, Danskin's theorem gives

$$ \nabla_p L(p) = \sum_{(i,j)\in E_c} \tfrac23\big(X^*_{ij}+\tfrac12\big)\,\nabla_p w_{ij}(p), $$

where $X^*$ is the optimal Gram matrix. The force on a close pair is proportional to how strongly the relaxation is forced to give the two features the same color. When $X^*_{ij}=-\tfrac12$ the pair is cleanly separable and contributes nothing. If $X^*$ is not unique, the expression is a subgradient.

The claim has three parts. First, adding $\lambda L(p)$ to detailed and late-global placement removes inter-cell coloring conflicts while spending less wirelength and displacement than spacing-based penalties, because it pushes only on uncolorable structure. Second, the penalty can be evaluated in milliseconds per placement iteration on local windows, because placement changes $X^*$ slowly and the previous solution is a near-optimal starting point. Third, the latency gain is decided by warm-starting and chordal decomposition, and whether a learned schedule helps is an empirical question that we test rather than assume.

Positioning Against Prior Work

Three papers motivate the gap. Methodology for Standard Cell Compliance and Detailed Placement for Triple Patterning Lithography co-optimizes row placement and stitches through a shortest-path formulation over pre-colored cell lookup tables. It reports zero conflicts, but only after manually removing native conflicts from cells, and it splits coloring and shifting into two stages to avoid runtime blowup. Mr.TPL tracks color states during routing search and treats cell positions as fixed. RoutePlacer shows that a placer can descend on gradients from a differentiable routing proxy, but its proxy models congestion only, not mask parity. Our proposal shares RoutePlacer's architectural move of injecting a differentiable penalty into gradient-based placement. The difference is that our penalty is a convex relaxation of the decomposition problem itself rather than a learned predictor, and it needs no cell-library modification or precomputed tables.

Three papers supply the method. The relaxation comes from Yu et al. above. OpenMPL supplies exact ILP and SDP decomposers that we use as ground truth. Fast ADMM for semidefinite programs with chordal sparsity splits one large semidefinite constraint into small per-clique ones solved by the alternating direction method of multipliers (ADMM), a first-order splitting algorithm. Conflict graphs are sparse and near-planar, so they suit this decomposition.

Two papers constrain the design. A unified framework for simultaneous layout decomposition and mask optimization already couples a semidefinite decomposition with continuous gradient optimization, but for post-routing contact masks, and it identifies the SDP solve as its main runtime cost. That is the bottleneck we must beat. The other is the unfolding literature: Deep FlexQP learns ADMM penalty schedules with an LSTM for quadratic programs, and Deep Unfolding: Recent Developments, Theory, and Design Guidelines surveys how unrolled solvers cut iteration counts. Neither paper treats semidefinite cones, and neither has a warm-start regime like the one placement provides. We treat their technique as a hypothesis to be tested against plain warm-starting, not as the core contribution.

Research Program

The first component is the windowed relaxation. Cells near each other define local windows. The window's conflict graph on the contact and first-metal layers, including the boundary features of adjacent cells, is first simplified with the published reductions: independent components, removal of nodes of degree two or less, and bridge splitting. The resulting graph is then chordally extended so that ADMM works on small clique blocks. Simplification matters here for a specific reason. Removed low-degree nodes are always colorable, so their gradient is exactly zero, and dropping them loses no information.

The second component is the solver. We run chordal ADMM for $K$ iterations per placement step, starting from the previous step's primal and dual variables. Three variants share the same code path. One uses a fixed penalty parameter. One uses a residual-balancing heuristic. The third uses an unfolded schedule in which $K$ per-iteration penalty and relaxation parameters, or a small recurrent policy on residuals as in Deep FlexQP, are trained offline. The training loss is the gradient error against a converged solve, measured along recorded placement trajectories. We measure how gradient direction error, as cosine against the converged $\nabla_p L$, falls with $K$ under each variant. Placement needs good gradient directions, not exact optimal values.

The third component is integration. The penalty enters a Nesterov-style detailed-placement refinement, and a temperature schedule on $\tau$ anneals the weights toward hard spacing. Final layouts are decomposed with OpenMPL's ILP where it terminates, and with its SDP decomposer otherwise. Every reported conflict and stitch count therefore comes from the same independent decomposer, not from our own relaxation.

Baselines

The naive reference is a conventional placement followed by post-placement decomposition with OpenMPL. For this setting, Methodology for Standard Cell Compliance and Detailed Placement for Triple Patterning Lithography reports an average of 1700 conflicts on its OpenSPARC T1 benchmarks. Any method must cut this sharply to matter.

The strongest existing method is TPLPlacer-SPD from the same paper. It reports zero conflicts on all benchmarks, 5% fewer stitches than the optimal combined-graph TPLPlacer, a 14x speedup over it, and timing impact within 0.5% of original delay. Matching zero conflicts is the floor, so our method cannot win on conflicts. It must instead match zero conflicts with lower stitch count, lower wirelength or displacement, or lower runtime. Alternatively, it must keep near-zero conflicts on a library where native in-cell conflicts have not been hand-removed, a regime the lookup-table method does not address. We will reimplement TPLPlacer-SPD on identical inputs, the NanGate library scaled to 16nm with OpenSPARC T1 blocks, with the same starting placement and the same downstream decomposer.

A spacing-penalty placer adds $\lambda \sum w_{ij}(p)$ over all close pairs. It uses the same optimizer and the same tuning budget for $\lambda$ and $\tau$, with an equal number of grid points as our method. This is the ablation that isolates the key ingredient: the per-edge factor $(X^*_{ij}+\tfrac12)$ from the relaxation.

For solver latency, the reference points are the published decomposition results. On ISCAS-derived benchmarks, Yu et al. report that their SDP gives a 42% runtime reduction over accelerated ILP at the cost of 7% more stitches and 9% more conflicts, and a 140x speedup on the dense C1–C4 cases. OpenMPL reports SDP decomposition cost 21.7% above ILP on average. Chordal ADMM reports roughly 10x over SeDuMi at accuracy within 0.02% to 2% of optimal. We will run a cold-started, converged chordal ADMM solve per call as the solver baseline. Our warm-started variants must reach equal final placement quality with at least an order of magnitude fewer total ADMM iterations to count as a latency win.

Why not just…?

Why not just use a pairwise spacing penalty? It is the cheapest option and might suffice if most conflicts sit in short, easily broken chains. Our hypothesis is that it overpays: it pushes apart every close pair, including the many that three masks already separate, and so inflates wirelength and displacement. The matched-budget ablation settles this directly. If spacing penalties reach the same conflict and stitch counts at equal wirelength, the semidefinite machinery is unjustified and we will say so.

Why not just leave it to TPL-aware detailed placement and routing downstream? TPLPlacer-SPD and Mr.TPL are strong. Mr.TPL reports 98.66% fewer conflicts than post-routing OpenMPL. However, the placer depends on manually conflict-free cells and two-stage heuristics, and the router cannot move cells. This alternative is a real threat on compliant libraries, where conflicts are already zero. Our case rests on non-compliant libraries and on secondary metrics, and the head-to-head comparison above decides it.

Why not just train a black-box network to predict conflicts, as RoutePlacer does for congestion? A learned predictor would be fast, but nothing in the file shows it could represent odd-cycle structure or generalize across cell topologies. The unfolding survey and the GNN-based unfolding work of Chowdhury et al. argue that structured solvers generalize with fewer parameters. We will train a graph network on the same windows to regress $L(p)$ and compare the gradient cosine of its derivatives against the converged gradient on held-out designs.

Why not just warm-start a fixed-schedule ADMM and skip learning? This is the most plausible threat, and the program is designed around it: unfolding is an arm of the experiment, not the core claim. If the fixed-parameter or residual-balanced warm start matches the learned schedule's gradient error at equal $K$, we will drop learning and report that warm-starting alone closes the latency gap.

Proposed Experiments

The decisive check is a placement study on the scaled NanGate/OpenSPARC T1 blocks. It compares post-decomposition, TPLPlacer-SPD, the spacing penalty, and our relaxation penalty under each solver variant. We report conflicts and stitches from OpenMPL's decomposer, wirelength, maximum and average displacement, and wall-clock time per placement iteration. A second run repeats the study with native in-cell conflicts left in place.

A solver study on the ISCAS-derived and dense C1–C4 graphs measures the cost of the rounded decomposition and the gradient cosine as functions of $K$. It compares cold-started against warm-started solves along perturbation trajectories that mimic placement moves.

A mechanistic check tests whether the forces target the right pairs. Using exact ILP on small windows, we measure what fraction of the force magnitude lands on edges that belong to at least one minimal non-3-colorable subgraph, and compare this with the spacing penalty.

The idea fails if the spacing penalty matches us at equal wirelength, or if per-iteration evaluation cannot stay within a small multiple of the placer's own gradient step.