Grid pathfinders that allow straight shortcuts at any angle are now very good on maps where every free cell costs the same to cross. Theta* is the standard example: it lets a search node point straight back to an earlier node whenever the line between them is clear. On such maps these methods land within about 1% of the true continuous shortest path. They break down on terrain where the cost of moving varies from place to place, such as mud next to road or a smooth risk field. There the cheapest route is curved, not straight, and neither the search nor the user can tell how wrong a straight shortcut is. We propose to bring over the central habit of effective field theory, the physicist's practice of replacing unresolved fine detail with a truncated expansion in a small ratio and tracking the size of the dropped terms. With it we can decide, segment by segment, when a straight shortcut is trustworthy, when it needs a one-parameter bending correction, and when it must be split at a sharp cost boundary.
The core claim is simple enough to state in two sentences. On a smoothly varying cost field, a straight segment of length $L$ overpays relative to the true cheapest curve by a predictable amount that grows like $L^3$ times the squared sideways gradient of the log-cost. That gives a computable per-segment error budget, with which an any-angle search can return paths with a user-set relative cost tolerance. Where the cost jumps abruptly, the expansion fails in a detectable way, much as a contact-operator description fails when a heavy particle is produced on-shell. The search then resolves the boundary explicitly with a refraction point instead of trusting the expansion.
Core Claim
Let $n(x)$ be the travel cost per unit length, and let $\kappa = |\partial_\perp \ln n|$ be the gradient of its logarithm perpendicular to a candidate segment. Expanding the path cost to second order around the straight line and solving the resulting Euler–Lagrange equation gives the excess cost of the straight chord over the locally optimal curve:
$$\Delta C \approx \frac{\bar n\,\kappa^2 L^3}{24}, \qquad \frac{\Delta C}{\bar n L} \approx \frac{(\kappa L)^2}{24},$$
where $\bar n$ is the mean cost along the segment. The optimal curve is, at this order, a parabola with maximum sideways offset $\kappa L^2/8$. Three things follow. The dimensionless ratio $\kappa L$ plays the role that energy over cutoff plays in an effective field theory: it controls the error and tells the search how long a straight shortcut may be. Adding the parabolic bend removes the leading error, so that what remains depends on second derivatives of the cost field, a "next-order matched" segment. Where $n$ jumps within a cell, $\kappa L$ is not small for any useful $L$, and the right move is to place an explicit vertex on the boundary and choose the crossing by minimizing over one variable, which is Snell's law in discrete form.
Physics also supplies a warning about where the expansion is evaluated. Pushing Higgs effective theory to its limits found that truncated Higgs effective theories fail mainly through an expansion in the Higgs background value, not through the obvious energy ratio. Matching that accounts for the background extends their validity down to new-physics scales of 300–500 GeV, and default matching can err by 30–70% on rates. The analogous risk for us is that measuring $\kappa$ at a segment's endpoints, the cheap default, misjudges segments that cross a gradient ridge. We will therefore test endpoint-based estimates against segment-averaged ones. This is the only part of the physics we borrow. We claim a borrowed method of error control, not a deep identity between the domains.
Why This Gap Is Real
The Theta* papers (AAAI 2007, arXiv 2014) and the survey Any-Angle Path Planning present line-of-sight shortcutting and explicitly list non-uniform terrain costs as unresolved. Their shortcut rule relies on straight lines being optimal in a uniform medium, which is exactly the assumption we relax. Lazy Theta* defers line-of-sight checks until a node is expanded, giving about 1.66x speedup and 13x fewer checks in 3D. We reuse its defer-and-repair structure, so our more expensive weighted segment checks run only on nodes the search actually expands. Path Planning on Grids: The Effect of Vertex Placement on Path Length proves that vertices at cell corners make shortest vertex paths equal to true shortest paths on uniform polygonal maps. That result motivates placing refraction vertices on cell boundaries, but it is also a limit: on weighted terrain, corner vertices plus straight segments are no longer exact, and our method has to prove its worth here.
On the weighted side, Optimal Pathfinding on Weighted Grid Maps extends Jump Point Search to weighted grids (JPSW) and runs 4.5x–8x faster than A on game maps and up to 30x faster on synthetic Stripes maps. Its paths are still restricted to the eight grid directions, so it speeds up the wrong-shaped answer. The hierarchical subgoal methods in Speeding-Up Any-Angle Path-Planning on Grids and An Empirical Comparison of Any-Angle Path-Planning Algorithms rest on the guarantee that two reachable corners see each other in a uniform medium. That guarantee does not hold under varying cost, so they do not transfer directly. The research file reports no prior work connecting effective field theory with pathfinding. Its suggested connections, such as running Theta on a Fisher-information manifold or treating flat directions as multi-agent conflicts, struck us as analogies without a mechanism. We deliberately chose the one link where the physics contributes a working tool, the power-counted truncation error.
Research Program
We will build Power-Counted Theta on top of Lazy Theta over a corner-vertex 8-neighbor grid. When a node's parent would be reset to an earlier ancestor, the candidate segment is costed by integrating $n$ along it with the same exact cell-traversal routine every method uses. Along the way the routine records the segment-averaged sideways log-gradient and any cost jumps above a threshold. If no jump is found and the estimated relative excess $(\kappa L)^2/24$ is below a tolerance $\varepsilon$, the segment is accepted. Between $\varepsilon$ and a hard limit, the parabolic bend is applied and costed exactly. Above the hard limit, or when a jump is detected, the shortcut is refused and the path keeps the grid vertex. If a jump lies on a cell boundary, a boundary vertex is inserted at the crossing point that minimizes cost along that edge. Accepted segments carry their estimated residual, so the returned path comes with an error certificate. That certificate bounds error against the locally optimal curve within the topological corridor the search found. It does not bound error against the global optimum. We will measure how often that distinction matters.
The analysis component checks the expansion itself. We will measure per-segment excess cost against a high-resolution reference geodesic and plot it against $\kappa L$, expecting slope 2 on a log-log plot for the relative excess and a coefficient near 1/24. We will also measure the residual after bending, to see whether it scales with the second-derivative term as predicted. If these scalings fail on realistic fields, the certificate is meaningless, and we would report that negative result.
As a small, explicitly secondary transfer test, we will run the same planner on a two-coefficient plane of Wilson coefficients, the parameters that weight new-physics interactions in the Standard Model effective theory. The cost field there is the square root of the Fisher information along the direction of travel, a measure of how distinguishable nearby parameter values are, estimated as in Benchmarking simplified template cross sections in WH production. The test asks whether information-distance paths can be computed with certified error around regions where the truncated theory is invalid. These regions are treated as hard obstacles in the sense of Pushing Higgs effective theory to its limits. This test is optional and does not carry the main claim.
Baselines
The naive reference point is weighted 8-neighbor A, which returns the cheapest path along grid edges. Any method claiming value must beat its cost while staying within a small runtime factor of it. JPSW from Optimal Pathfinding on Weighted Grid Maps returns the same costs as A, much faster, and is the strongest existing speed baseline. Its reported speedup is 4.5x–8x over A* on Dragon Age and StarCraft maps and up to 30x on Stripes. Beating it on speed is not our goal. We beat it if our paths are cheaper at a runtime the user would accept.
The strongest quality competitor is weighted Theta: the same Lazy Theta skeleton, accepting a straight shortcut whenever its exactly integrated cost is lower than the grid alternative, with no error estimate, no bending and no boundary vertices. It isolates our key ingredient, because everything else is identical. We also run weighted A followed by string pulling with exact integrated cost, and Field D, the interpolation-based planner that natively handles weighted cells. For path quality on weighted terrain we found no reported result on Lacuna for any any-angle method. The only reported anchor for the unweighted special case is that Theta* paths are within 1% of the true shortest path (Theta*).
All methods share one C++ code base, one cell-traversal integrator, the octile-times-minimum-cost heuristic, corner vertices, a single thread, and identical scenario files. Thresholds are tuned for every method on a held-out set of maps with the same number of trials. Ground truth comes from a fast-marching Eikonal solve on an 8x refined grid, with straight-line continuation near the source. Beating weighted Theta* means lower mean and 99th-percentile relative excess over the reference on smooth and mixed fields, with the certificate holding on at least 95% of queries, at no more than twice its runtime.
Three ablations isolate the parts. Splitting without bending tests whether the estimator alone helps. Bending without boundary vertices tests whether jumps need explicit resolution. Endpoint versus segment-averaged gradient estimation tests the matching-scale question raised above.
Why not just…?
Why not just run weighted A* or JPSW and pull the string afterwards? Smoothing can only straighten within the corridor the grid search chose. Theta* shows that on uniform random grids at 20% obstacles, Theta already beats A plus smoothing in 95% of cases for this reason. An Empirical Comparison shows that in benign maps smoothing costs under 1% of runtime and gets within 0.5% of optimal. On weighted terrain the corridor problem should get worse, because grid paths hug the eight directions through low-cost bands. Even so, smoothing is a real threat on simple maps. We run it on every map family and report exactly where it ties us.
Why not just use weighted Theta* with exact integrated cost? This is the most serious alternative, and on piecewise-constant game maps with large uniform regions it may match us, since $\kappa$ is zero inside each region. Our prediction is narrower: its error grows as $(\kappa L)^2$ on smooth fields because its parent-resetting deliberately makes $L$ long, and it mishandles boundary crossings. The per-segment scaling plot and the smooth-field results settle this. If weighted Theta* stays within our tolerance there, we will report that the certificate is the only contribution.
Why not just solve the continuous problem with fast marching or Field D*? Fast marching solves the travel-time (Eikonal) equation over the whole grid and is the right tool when one source serves many goals. We use it as ground truth for that reason. For single queries it does work everywhere instead of being goal-directed, and it has first-order discretization error. We found no reported comparison on Lacuna. The runtime-per-query experiment below decides this. Field D* is documented to produce frequent small heading changes, or micro-turns, that need smoothing (An Empirical Comparison). We count heading changes alongside cost.
Proposed Experiments
Map geometry comes from the Moving AI benchmark game maps, random-obstacle grids and the Stripes maps. On these we place three cost families. The first is piecewise-constant terrain weights following the JPSW setup. The second is smooth Gaussian random log-cost fields at correlation lengths of 4, 16 and 64 cells and two amplitudes. The third is a mixed family adding random sharp bands to the smooth fields. Metrics are relative excess cost over the refined fast-marching reference (mean and 99th percentile), certificate coverage, wall-clock time per query, node expansions, segment integrations, and heading changes per path.
Three checks decide the proposal. First, the measured per-segment relative excess must follow $(\kappa L)^2/24$ with slope near 2 across correlation lengths. If it does not, the power counting is wrong and the method has no basis. Second, on smooth and mixed fields the method must cut 99th-percentile excess clearly below weighted Theta* at comparable runtime. Its advantage should grow as the correlation length shrinks toward typical segment lengths and vanish on piecewise-constant maps; that pattern is a falsifiable signature of the mechanism. Third, segment-averaged gradient estimation should beat endpoint estimation mainly on segments that cross gradient ridges. If the two are indistinguishable, the matching analogy adds nothing, and we will say so.
References
- Pushing Higgs effective theory to its limits
- Theta*: Any-Angle Path Planning on Grids
- Theta*: Any-Angle Path Planning on Grids
- Any-Angle Path Planning
- Lazy Theta*: Any-Angle Path Planning and Path Length Analysis in 3D
- Path Planning on Grids: The Effect of Vertex Placement on Path Length
- Optimal Pathfinding on Weighted Grid Maps
- Speeding-Up Any-Angle Path-Planning on Grids
- An Empirical Comparison of Any-Angle Path-Planning Algorithms
- Benchmarking simplified template cross sections in W H production
- Benchmarks for Grid-Based Pathfinding