Papers
Topics
Authors
Recent
Search
2000 character limit reached

Localized Cost Functions: Theory & Applications

Updated 5 July 2026
  • Localized cost functions are objective formulations that limit cost evaluation to specific subsets of variables, coordinates, orbitals, or samples.
  • They are applied in distributed optimization, cost function networks, Wannier orbital localization, and high-dimensional regression to exploit local structure while solving global problems.
  • These methods balance local computational benefits with global consistency, addressing trade-offs in tractability, communication overhead, and practical convergence.

Searching arXiv for the cited papers to ground the article in current records. Localized cost functions are objective constructions in which cost evaluation, optimization, or consistency enforcement is restricted to a subset of variables, coordinates, orbitals, or samples rather than being expressed only as a single globally coupled term. In the literature considered here, the notion appears in at least four technically distinct forms: distributed convex optimization with local domains, global cost functions in cost function networks under local transformations, selectively localized spread functionals for Wannier orbitals, and sample-wise local regression objectives coupled by graph regularization (Mota et al., 2013, Allouche et al., 2015, Wang et al., 2014, Yamada et al., 2016). The common theme is not a single formalism but a recurring design principle: exploit structure that is intrinsically local while still solving a global optimization or inference problem.

1. Conceptual scope and formal uses

In distributed optimization, locality is defined by a family of index sets Sp{1,,n}S_p \subseteq \{1,\dots,n\}, one per node pp, so that each local function fpf_p depends only on xSpx_{S_p}. The resulting problem is

minxp=1Pfp(xSp),\min_x \sum_{p=1}^P f_p(x_{S_p}),

with xRnx \in \mathbb{R}^n, and is explicitly described as a “localized” or “partial-variable” optimization problem (Mota et al., 2013).

In cost function networks, the relevant object is a global cost function: a mapping assigning an integer cost to every assignment of an unbounded set of variables. Locality enters through scope-restricted cost functions WSW_S, unary costs, and Equivalence Preserving Transformations (EPTs), which shift cost between a scope S1S_1 and a sub-scope S2S1S_2 \subset S_1 without changing the cost of any full assignment (Allouche et al., 2015).

In electronic-structure theory, localization refers to the spread functional of Wannier functions. The standard Marzari–Vanderbilt spread ΩMV\Omega_{MV} is replaced by a selectively localized functional pp0 that minimizes spread only for a chosen subset pp1 of “objective Wannier functions,” while the remaining functions are left as spectators (Wang et al., 2014).

In high-dimensional regression, the “localized Lasso” assigns a distinct coefficient vector pp2 to each sample pp3. Its objective combines per-sample squared loss, sample-wise network regularization, and sample-wise exclusive group sparsity: pp4 Here locality is sample-indexed rather than coordinate-indexed (Yamada et al., 2016).

A plausible implication is that “localized cost function” is best understood as a family resemblance term. Across these domains, locality may refer to restricted scope, restricted transformation, restricted orbital subset, or restricted sample-specific parametrization.

2. Partial-variable objectives in distributed optimization

The distributed optimization formulation of "Distributed Optimization With Local Domains: Applications in MPC and Network Flows" begins with a connected communication graph pp5, pp6, and local functions pp7 that are closed, proper, convex, and known only to node pp8 (Mota et al., 2013). The assumption pp9 excludes the case in which every node depends on the same coordinate. Because each fpf_p0 depends only on some components of fpf_p1, each node is interested only in some components of the optimizer fpf_p2, not the entire vector.

For each coordinate fpf_p3, the paper defines

fpf_p4

and the induced subgraph fpf_p5. A coordinate is called connected if fpf_p6 is connected and non-connected otherwise. This coordinate-wise notion of locality governs both storage and communication: node fpf_p7 stores its private function fpf_p8, its index set fpf_p9, and estimates xSpx_{S_p}0 for xSpx_{S_p}1; at each iteration it sends neighbor xSpx_{S_p}2 only those components for which xSpx_{S_p}3. The paper’s communication model is therefore not based on broadcasting the full decision vector, but on exchanging only shared coordinates.

The connected-variable case is rewritten by introducing local copies xSpx_{S_p}4 and enforcing equality along edges of each xSpx_{S_p}5: xSpx_{S_p}6 A proper coloring of xSpx_{S_p}7 partitions the nodes into color classes xSpx_{S_p}8, after which the reformulation becomes suitable for Extended ADMM. With condensed dual variables xSpx_{S_p}9, each color class updates in parallel, computes

minxp=1Pfp(xSp),\min_x \sum_{p=1}^P f_p(x_{S_p}),0

solves

minxp=1Pfp(xSp),\min_x \sum_{p=1}^P f_p(x_{S_p}),1

and then exchanges the updated coordinate copies with neighbors. After all colors update, the dual step is

minxp=1Pfp(xSp),\min_x \sum_{p=1}^P f_p(x_{S_p}),2

For non-connected variables, the method introduces Steiner paths by solving a centralized minimum-Steiner-tree problem with terminals minxp=1Pfp(xSp),\min_x \sum_{p=1}^P f_p(x_{S_p}),3, producing an augmented induced subgraph minxp=1Pfp(xSp),\min_x \sum_{p=1}^P f_p(x_{S_p}),4. The same color-ADMM scheme is then applied on enlarged local domains minxp=1Pfp(xSp),\min_x \sum_{p=1}^P f_p(x_{S_p}),5. For Steiner nodes, the corresponding coordinate update reduces to a simple quadratic and has closed form because minxp=1Pfp(xSp),\min_x \sum_{p=1}^P f_p(x_{S_p}),6 does not depend on that coordinate.

The convergence theorem states that, under the standing convexity assumptions and assuming either minxp=1Pfp(xSp),\min_x \sum_{p=1}^P f_p(x_{S_p}),7 or strong convexity of each group-cost minxp=1Pfp(xSp),\min_x \sum_{p=1}^P f_p(x_{S_p}),8, the Extended ADMM scheme converges to a primal–dual solution. Communication complexity is described in terms of locality: per iteration each node minxp=1Pfp(xSp),\min_x \sum_{p=1}^P f_p(x_{S_p}),9 sends xRnx \in \mathbb{R}^n0 real numbers to each neighbor in xRnx \in \mathbb{R}^n1, only for shared coordinates, so one ADMM iteration costs xRnx \in \mathbb{R}^n2 scalar transmissions. In the reported experiments, the algorithm required fewer communications to converge than prior distributed methods.

3. Local transformations and tractability in cost function networks

The theory developed in "Tractability and Decompositions of Global Cost Functions" places locality at the level of cost scope and cost movement rather than distributed communication (Allouche et al., 2015). A Cost Function Network is xRnx \in \mathbb{R}^n3, where xRnx \in \mathbb{R}^n4 is a set of discrete variables with domains xRnx \in \mathbb{R}^n5, and xRnx \in \mathbb{R}^n6 contains a zero-arity constant xRnx \in \mathbb{R}^n7, unary costs xRnx \in \mathbb{R}^n8, and higher-arity cost functions xRnx \in \mathbb{R}^n9. The cost of a full assignment WSW_S0 is

WSW_S1

with WSW_S2 defined by WSW_S3.

Locality is operationalized through EPTs. An WSW_S4-EPT shifts cost between a larger scope WSW_S5 and a sub-scope WSW_S6 with WSW_S7, while preserving the cost of every complete assignment. In the Project operation, for a tuple WSW_S8 and shift amount WSW_S9 satisfying

S1S_10

one updates

S1S_11

and

S1S_12

for every S1S_13 extending S1S_14, where S1S_15 if S1S_16, else S1S_17.

The central question is tractable projection-safety. A global cost function S1S_18 is tractable if minimizing S1S_19 can be done in polynomial time, and it is tractable S2S1S_2 \subset S_10-projection-safe if it remains tractable after any sequence of S2S1S_2 \subset S_11-EPTs. The paper gives a sharp dependence on S2S1S_2 \subset S_12. Any tractable global cost function is S2S1S_2 \subset S_13-projection-safe. If S2S1S_2 \subset S_14 is tractable and returns only finite costs, then for any S2S1S_2 \subset S_15, S2S1S_2 \subset S_16 is not S2S1S_2 \subset S_17-projection-safe unless S2S1S_2 \subset S_18. The case S2S1S_2 \subset S_19 is explicitly identified as borderline: some tractable global cost functions remain tractable after unary EPTs, others do not.

The positive side of the ΩMV\Omega_{MV}0 boundary is represented by flow-based global cost functions such as soft AllDifferent variable-based and soft GCC, which remain flow-based after unary EPTs and therefore are tractable ΩMV\Omega_{MV}1-projection-safe. The negative side is illustrated by a cost function ΩMV\Omega_{MV}2 encoding Max-2-SAT: minimizing ΩMV\Omega_{MV}3 is polynomial, but ΩMV\Omega_{MV}4-extensions can encode Weighted-SAT with weight limit ΩMV\Omega_{MV}5, which is NP-complete. Local cost movement is therefore not innocuous; its tractability depends decisively on the arity of the scope onto which cost is projected.

Two structural mechanisms preserve tractability. The first is polynomial DAG-filterability. A safe DAG-filter represents a cost function ΩMV\Omega_{MV}6 as a directed acyclic graph whose internal nodes aggregate sub-costs through associative–commutative functions and whose leaves are unary costs. If the graph is polynomial in ΩMV\Omega_{MV}7 and projections and extensions distribute safely through the DAG, then minimization can be done by bottom-up dynamic programming and tractability is preserved under unary EPTs. The paper provides examples based on soft grammar cost, soft Among cost, soft Regular cost, and ΩMV\Omega_{MV}8, with explicit polynomial complexities.

The second mechanism is decomposition into a Berge-acyclic bounded-arity network. A ΩMV\Omega_{MV}9-network-decomposition of pp00 is a polynomial-size CFN over pp01 with cost functions of arity at most pp02 such that

pp03

Under this form, soft local consistencies such as Terminal Directional Arc Consistency (T-DAC*) and Virtual Arc Consistency (VAC) can emulate dynamic programming. The paper proves that, with a suitable variable order, T-DAC* on pp04 yields the same updated unary cost on the last variable as T-DAC* on the full decomposition, and that VAC yields the same lower bound pp05 on either representation.

A plausible implication is that locality in cost function networks is ambivalent: it can be the source of tractability when confined to unary projections or safe decompositions, but it can also destroy tractability when cost is pushed onto larger scopes.

4. Selective localization of spread functionals in Wannier theory

In "Selectively Localized Wannier Functions," localization is not attached to variable subsets in an optimization network, but to the spatial spread of a chosen orbital subspace (Wang et al., 2014). The standard Marzari–Vanderbilt spread functional for pp06 Wannier functions pp07 is

pp08

with pp09 and pp10. On a discrete pp11-mesh,

pp12

where

pp13

pp14

and pp15.

The selectively localized functional restricts the outer summation to a subset pp16 of “objective Wannier functions”: pp17 Only the objective orbitals are optimized for maximal localization; the remaining pp18 orbitals are unconstrained spectators. This is a localized cost function in the sense that the spread penalty acts on a designated subfamily of orbitals rather than on the full basis.

The framework then introduces localized constraints. To fix centers pp19 at prescribed positions pp20, the cost is augmented as

pp21

For one-dimensional point-group symmetry about pp22, a further term is added: pp23 Here pp24 is reflection about pp25, and the first pp26 objective Wannier functions are chosen to be even while the rest are odd.

Optimization proceeds through infinitesimal unitary rotations pp27 with pp28. Writing

pp29

the gradient pp30 is used in the update

pp31

with pp32 in practice, pp33. The implementation embeds this step in a nonlinear conjugate-gradient line-search scheme and declares convergence when pp34 falls below a chosen tolerance, for example pp35.

The reported material examples show how selective localization changes the balance between target and spectator orbitals. In GaAs with pp36 bands and pp37, MLWF spreads are all approximately pp38; under SLWF the objective spread decreases to pp39 while the remaining three spreads increase to approximately pp40; under SLWF+C centered at As the objective spread is approximately pp41. The center ratio pp42 shifts from pp43 for MLWF to pp44 for SLWF and to pp45 for SLWF+C. In SrMnOpp46, the reported reductions are small: MLWF pp47-spreads are pp48 and pp49, while SLWF gives pp50 and pp51. In Co, the method materially alters the pp52-subspace: MLWF pp53-spreads are pp54 and pp55, while SLWF gives pp56 and pp57. The paper states that SLWF preserves clean pp58 symmetry and reduces unwanted pp59 hybridization.

These results show a domain-specific meaning of localization: not decomposition of a sum over local functions, but selective concentration of the cost functional on orbitals of interest, together with optional center and symmetry constraints.

5. Sample-wise localized objectives in high-dimensional regression

The localized Lasso introduces one linear model per sample rather than one model per dataset (Yamada et al., 2016). For samples pp60, features pp61, responses pp62, coefficient vectors pp63, and a symmetric nonnegative similarity matrix pp64 with pp65, the objective is

pp66

Each term has a distinct localized interpretation. The squared loss fits each local linear model to its own sample. The network regularizer pp67 borrows strength across neighboring samples and induces a soft clustering of local models. The exclusive group-sparsity penalty pp68, also described as pp69, promotes sparsity within each pp70 while encouraging diversity of supports across samples and avoiding the trivial all-zeros solution.

The objective is convex. The squared loss is convex and smooth, and both pp71 and pp72 are convex though non-smooth. The paper states that the cost function is convex and thus has a globally optimal solution; the solution is unique under strict convexity in the loss term, for example if the pp73 are linearly independent.

Optimization is carried out by an iterative least-squares scheme rather than a generic ADMM. Stacking the coefficients into pp74, the method forms at iteration pp75 two weighting matrices, pp76 from the network regularizer and pp77 from the exclusive group-sparsity term, and solves

pp78

where pp79 is a suitable block-diagonal design matrix built from the pp80. The paper describes the procedure as simple, efficient, parameter-free, monotonically convergent, and guaranteed to converge to a globally optimal solution. With the Woodbury identity, the cost of the linear solve is pp81 rather than pp82. Forming pp83 and pp84 costs pp85, so the total per-iteration cost is pp86, and the total cost is pp87, where pp88 is the number of iterations to convergence.

The empirical results reported in the paper are explicitly tied to both prediction and interpretability. On synthetic high-dimensional regression with pp89 samples, pp90 true features, and pp91 clusters of pp92 samples each, Localized Lasso recovers the three true support patterns almost perfectly, while Network Lasso without pp93 is dense and Network Lasso+pp94 either fails or shrinks entire models to zero under heavy regularization. The method converges in approximately pp95 iterations, and runtime scales linearly in pp96. In personalized medicine using toxicogenomics data with pp97-drug activity prediction based on pp98 gene expressions, the reported RMSE is approximately pp99, compared with fpf_p00 for Network Lasso, fpf_p01 for Lasso, fpf_p02 for FORMULA, and fpf_p03 for a kernel method; the average number of selected genes is approximately fpf_p04, compared with approximately fpf_p05 for Network Lasso, fpf_p06 for FORMULA, and fpf_p07 for Elastic Net. The paper also reports higher Adjusted Rand Index on synthetic convex clustering and real-world clustering benchmarks such as COIL20 and NCII lymphoma gene data.

In this setting, localization is explicitly sample-specific. The model does not merely impose local penalties on a global parameter vector; it instantiates a collection of local sparse models connected by graph regularization.

6. Common patterns, distinctions, and recurring misconceptions

Across these four literatures, localized cost functions share a common structural objective: exploit partial dependence while preserving a meaningful notion of global solution. In distributed optimization, the global minimizer is reconstructed from coordinate copies constrained to agree on induced subgraphs (Mota et al., 2013). In cost function networks, local transformations preserve the value of full assignments while potentially changing tractability (Allouche et al., 2015). In Wannier theory, a subset of orbitals is designated for localization while the optimization still proceeds over the gauge degrees of freedom of the full subspace (Wang et al., 2014). In localized Lasso, every sample receives its own coefficient vector, but these vectors are tied by a network regularizer and solved jointly in one convex objective (Yamada et al., 2016).

One recurring misconception is to treat “localized” as synonymous with “approximate” or “heuristic.” The sources do not support that identification. The distributed ADMM method has formal convergence under stated assumptions. The Localized Lasso objective is convex and has a globally optimal solution. In the cost-function-network setting, locality may preserve tractability exactly for fpf_p08 and for some fpf_p09 classes, while for fpf_p10 it can render a previously tractable class non-projection-safe unless fpf_p11. In the Wannier setting, selective localization is still implemented by an explicit gradient-based variational procedure.

A second misconception is that localization always decreases computational burden without trade-offs. The evidence is more specific. In distributed optimization, communication is reduced because each node exchanges only shared coordinates, and the reported benchmarks show fewer communication rounds than several alternatives. In Wannier optimization, concentrating the spread objective on a subset of orbitals can decrease the spread of those orbitals while increasing the spreads of spectator orbitals, as the GaAs example makes explicit. In cost function networks, local transformations can either preserve or destroy tractability depending on the projection arity. In localized Lasso, interpretability arises from sparse local models, but the optimization still requires repeated solution of a regularized least-squares system.

A plausible implication is that the principal scientific value of localized cost functions lies less in a single canonical definition than in a methodological pattern: identify the part of the model where locality is structurally meaningful, localize the objective or transformation there, and then recover global coherence through consensus constraints, decomposition theorems, variational gauge updates, or coupled convex regularization.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Localized Cost Functions.