Definitionadvanced
Log-sum-exp wirelength
Also called LSE wirelength model.
The smooth bound gamma times the log of the sum of exp(x_i/gamma), and its counterpart for the minimum, that approximates the half-perimeter wire length.
The log-sum-exp (LSE) wirelength is a smooth function of the pin positions of a net that approximates its half-perimeter wirelength (HPWL) from above. It replaces the maximum of the pin coordinates by and the minimum by , where is a smoothing length. For a net of pins it is never below the HPWL and at most above it. It is convex, has a gradient everywhere, and its gradient is Lipschitz with a constant of order , so gradient methods can minimize it. Nonlinear analytical placers such as NTUplace3 use it as their wirelength term; they start with a large and make it smaller as the cells spread.
Definition
Let a net have pins at , and let . Write
The LSE wirelength of is
and the total for a netlist is , with the pins at the cell centers unless pin offsets are given. Pads give fixed terms. The part and the part are independent; below, only the part is shown.
Bounds. Let and . The sum has one term and terms of at most , so
So , and with the part, . The upper bound holds with equality when all are equal and all are equal. As , .
Gradient. With and ,
The weights are the softmax of , and the softmax of . Each sums to 1, so the gradient sums to 0 over the pins: moving all pins of a net by the same amount does not change the value. Each partial derivative lies in , so the function is 1-Lipschitz in each coordinate. For a cell, add over the pins of the cell.
Convexity and smoothness. The Hessian of is . For a vector , , the variance of under the weights , so is convex. In row the diagonal entry is and the other entries have absolute values summing to , so by Gershgorin's theorem every eigenvalue is at most . The same holds for with . So the part of is convex, and its gradient is Lipschitz with constant at most in the Euclidean norm.
Computation. For a small , overflows. Compute , where every exponent is at most 0, and likewise for with ; this is the log-sum-exp trick. One net costs time for the value and the gradient together, and a netlist costs for pins.
Examples and non-examples
- Three pins, several . Pins at , so . The part of LSE, its excess over 4, the bound , and the gradient , rounded to 4 places:
| part of LSE | excess | bound | gradient at | |
|---|---|---|---|---|
| 2 | 5.7226 | 1.7226 | 4.3944 | |
| 1 | 4.3924 | 0.3924 | 2.1972 | |
| 0.5 | 4.0650 | 0.0650 | 1.0986 | |
| 0.25 | 4.0045 | 0.0045 | 0.5493 |
As falls, the value tends to 4 and the gradient tends to the subgradient of , which pulls only the outer pins. With a large the middle pin also feels a pull.
- All pins at one point. Three pins at with : the HPWL is 0, but the part of LSE is , the full bound. LSE never reaches 0 for , so it does not measure the length of a net whose pins coincide.
- Two pins. Pins at and with : the value is . The excess shrinks fast as the pins move apart, since only the far terms are small.
- Not the length of a route. LSE is a smooth stand-in for HPWL, and HPWL is a lower bound on the routed length; LSE is not an upper bound on the routed length.
Related definitions
- Half-perimeter wirelength. The limit of LSE as ; convex and piecewise linear, but not differentiable where two pins tie for the extreme.
- Weighted average (WA) model. Replace the maximum by and the minimum by (Hsu, Chang and Balabanov 2011). Each is a weighted mean of the , so the WA value is at most ; the first mean puts more weight on large than the plain mean and the second less, so the value is at least 0. With and it is 3.4733, against 4.3924 for LSE. ePlace and later placers use WA. WA is not convex in general.
- Lp-norm model. Replace the maximum by for a large and positive coordinates. It is another smooth bound used in some placers.
- Quadratic net models. The clique net model and the star model use squared distances. They are smooth and lead to linear systems, as in quadratic placement, but they are not close to HPWL for nets of many pins.
- Softmax and the log-sum-exp trick. The gradient of is the softmax of , and its stable evaluation is the log-sum-exp trick.
- Smoothing of a nonsmooth convex function. is the standard smooth approximation of the maximum, with the trade-off of error against smoothness that governs how fast gradient methods converge.
References
- William C. Naylor, Ross Donelly and Lu Sha, Non-linear optimization system and method for wire length and delay optimization for an automatic electric circuit placer, United States Patent 6,301,693, 2001, the smooth log-sum-exp form of the bounding box length of a net (general locator)
- Tung-Chieh Chen, Zhe-Wei Jiang, Tien-Chang Hsu, Hsin-Chen Chen and Yao-Wen Chang, NTUplace3, an analytical placer for large-scale mixed-size designs with preplaced blocks and density constraints, IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 27(7), 1228 to 1240, 2008, the log-sum-exp wirelength model and its smoothing parameter in the objective of the analytical placer
- Stephen Boyd and Lieven Vandenberghe, Convex Optimization, Cambridge University Press, 2004, Chapter 3, the log-sum-exp function as an example of a convex function, with its Hessian
- Jingwei Lu, Pengwen Chen, Chin-Chih Chang, Lu Sha, Dennis Jen-Hsin Huang, Chin-Chi Teng and Chung-Kuan Cheng, ePlace, electrostatics-based placement using fast Fourier transform and Nesterov's method, ACM Transactions on Design Automation of Electronic Systems 20(2), article 17, 2015, the weighted average wirelength model used in place of log-sum-exp
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag VR19M7 Edit this page History Report an error Markdown