Obstacle-Aware Cost-to-Go Fields Solved by Circuit Physics

Robot planners need a sense of "how far is the goal, really." Most use straight-line (Euclidean) distance because it is free to compute. That number lies whenever a wall, a narrow door, or a car's turning radius sits in the way: the agent is rewarded for pressing against the wall instead of going around it. The honest alternative is an obstacle-aware distance, and computing it is a large linear-algebra problem that must be redone every time the map changes. This note proposes computing that distance with an electrical circuit. We encode the free space of the map as a grid of conductances, with obstacles as open switches and the goal as a current source. Kirchhoff's laws then settle the circuit into a voltage field. A digital controller toggles the switches when the map changes, reads the voltage field, and turns it into a heuristic for search or a reward for learning. The digital side also keeps every collision check exact.

The opportunity is that two literatures have each solved half the problem without meeting. Work on Euclidean distance bias shows that resistance-like and reachability-aware metrics fix deceptive guidance but are expensive to compute online. Work on hybrid analog-digital chips shows that analog arrays can do linear algebra at very low energy, provided digital logic handles everything else. We combine them under one design rule. The analog side produces only the guidance, never the safety decision. As a result, analog noise can cost planning efficiency but cannot cause collisions.

Core Claim

A single circuit solve of a "leaky" grid Laplacian gives a cost-to-go field over the whole map, valid from every start state at once. The leakage is a conductance from each node to ground, written $\lambda$. Write $L$ for the weighted graph Laplacian of the free-space lattice, $D$ for the diagonal degree matrix, $b$ for a unit current injected at the goal node, and $v$ for the node voltages. The circuit settles to

$$(L + \lambda D)\, v = b .$$

At small $\lambda$ the field behaves like effective resistance: it rewards regions with many parallel routes and penalizes bottlenecks, which is the property that Graph-Theoretic Intrinsic Reward: Guiding RL with Effective Resistance exploits. At large $\lambda$ the voltage decays roughly exponentially along the shortest obstacle-free path. The source of this decay is the exponentially decaying response of the screened Laplacian. In that regime $-\log v / \sqrt{\lambda}$ approximates geodesic distance. The leak is a single analog knob, so one circuit interpolates between "count all routes" and "shortest route."

The field has two useful properties: it has no spurious local minima in free space, and it is recomputed in circuit settling time after any local change to the obstacles. We claim that hybrid hardware can deliver it at a latency and energy cost that makes per-cycle replanning in changing environments practical. We further claim that low-precision, noisy analog solves are good enough because the planner uses the field only to rank candidate moves.

The pieces exist separately. Resistive grids that solve variational problems in milliseconds at about 100 µW were built for optical flow in Computing Motion Using Resistive Networks. That work used digital "line process" switches that break connections at motion boundaries, the same mechanism we reuse for obstacle boundaries. It never addressed planning or reachability. GIR computes effective resistance digitally with a Laplacian pseudoinverse and names its $O(n^3)$ cost as a limitation. It also works only on small clustered LiDAR graphs. What is new here is all three pieces together: the obstacle-switched, leak-tunable circuit used as a planning heuristic; its hybrid partition with an exact digital safety check; and a measured account of how much analog imprecision planning can tolerate.

Research Program

The work proceeds along two hardware routes that share one algorithmic interface.

The first route is a direct resistive lattice in the style of Koch and Mead. Each cell of an occupancy map is a node, and neighboring cells are joined through switchable conductances. A digital controller writes the occupancy map into the switches and samples the node voltages through an analog-to-digital converter. For a car, the lattice lives over $(x, y, \theta)$, and its edges are short feasible motion primitives rather than grid adjacencies. Cells that are close in space but require a three-point turn are therefore far apart in circuit terms. This targets the non-holonomic distance problem described in RL-RRT: Kinodynamic Motion Planning via Learning Reachability Estimators From RL Policies.

The second route uses existing in-memory compute tiles of the kind characterized in A 64-core mixed-signal in-memory compute chip based on phase-change memory for deep neural network inference and End-to-end 100-TOPS/W Inference With Analog In-Memory Computing: Are We There Yet?. These are memory arrays that perform matrix-vector multiplication in place via Ohm's and Kirchhoff's laws. Here the analog array runs cheap low-precision relaxation sweeps on the stencil. Digital cores compute the residual at high precision and apply corrections, in the style of mixed-precision iterative refinement. This follows the division of labor those papers found necessary: dense linear work goes to the analog array, while nonlinearities and control stay digital. Obstacle changes are applied by masking rows in the digital domain rather than reprogramming conductances, which sidesteps the slow and drift-prone writes those papers report.

On top of either route, the digital side uses the field in three planners. In grid A*, it serves as a heuristic; because it may be inadmissible, we pair it with a bounded-suboptimality search. In kinodynamic RRT, it biases sampling and node selection toward low cost-to-go. In PPO, change in the field supplies a shaped reward, as GIR uses change in effective resistance. In every case, collision checking stays digital and exact, so a noisy field can make paths longer or slower to find but cannot make them unsafe.

That design rule is the analytical core of the project. It turns the gap in noise tolerance into a measurable question. The question is not "is the analog output accurate," but "how often does noise reorder the best neighbor." We will study this order-flip rate as a function of device variability, bit precision, and drift. We will also measure whether the Lipschitz regularization and small digital correction layers of CorrectNet: Robustness Enhancement of Analog In-Memory Computing for Neural Networks by Error Suppression and Compensation have an analogue here, for instance a digital smoothing pass over the sampled field.

Hardware is evaluated in three ways. We run circuit-level simulation of the resistive lattice, including settling time, mismatch, and converter quantization. We run a device-noise simulation of the in-memory route, with weight noise levels taken from the CorrectNet sweep and 3–4 bit effective precision as reported for Hermes. Latency and energy are projected from the published throughput and efficiency figures of those chips. We will clearly separate projected numbers from measured ones.

Baselines

The naive reference point is the Euclidean heuristic itself: straight-line distance as the A* heuristic, as the RRT goal bias, and as the PPO shaping reward. Every planner is run identically except for the guidance signal. This anchors the claim that the obstacle-aware field matters at all. The literature reports that it should: GIR reports success improvements of up to 59% over baselines in Safety-Gymnasium (Safety-Gymnasium: A Unified Safe Reinforcement Learning Benchmark).

The strongest competitor on accuracy, and the hardest one to beat, is the same field computed digitally by a well-engineered sparse solver. Concretely, this is a warm-started geometric multigrid solve of the identical leaky Laplacian on a CPU and on an embedded GPU, given the same map updates. Multigrid solves grid Laplacians in time linear in grid size, not cubic, so it removes most of the complexity argument GIR's pseudoinverse invites. A fair comparison gives the digital solver the same tolerance, the same warm start from the previous field, and its best tuned smoother. We report wall-clock latency per map update and energy per update. We found no reported result on Lacuna for multigrid cost-to-go fields in these benchmarks, so we will establish this baseline ourselves. Beating it means matching its downstream planning success within noise while delivering lower update latency or lower energy per update at equal grid size. If the analog route wins neither on latency nor on energy, the hardware half of the proposal fails.

The strongest existing method for raw query latency is Jump Spanning Tree Search from Sub-Microsecond Grid Path Planning, at What Cost?. On the Grid-Based Path Planning Competition benchmark it reports an average of 0.3 microseconds per path, about 300,000 times faster than A*, after preprocessing that takes seconds to minutes per map. We will not try to beat its static query time. We compare on time-to-first-valid-path after an obstacle change, which includes JSTS's rebuild. Beating it means a lower end-to-end latency at obstacle-change rates above some crossover, and we will report where that crossover lies.

For kinodynamic planning, the strongest learned competitor is RL-RRT's neural time-to-reach estimator, which reports being up to 2.3 times more likely than SST to find a path within a fixed time budget. We run it on its own Kinematic Car setting with the same RRT budget and wall-clock limit. Our field replaces its learned estimator as the selection metric, without any retraining. Beating it means comparable success under the budget without retraining when the map changes.

Two ablations isolate the key ingredients. The first sweeps the leak $\lambda$ from the resistance-like to the geodesic regime, testing whether the "parallel routes" property contributes anything beyond shortest-path distance. The second replaces the motion-primitive lattice with a plain $(x, y)$ grid for the car, testing whether encoding kinematics into the conductances is what removes the non-holonomic version of Euclidean bias.

Why not just…?

Why not just compute a shortest-path distance field with Dijkstra or a wavefront on a CPU? This is a real threat. A breadth-first distance transform also has no local minima and updates incrementally. The leak sweep settles the question directly, because the large-$\lambda$ end of our circuit is a geodesic field. If the small-$\lambda$, resistance-like end never beats it on downstream success or steps to goal, then the resistance property contributes nothing. In that case we would reframe the contribution as fast analog geodesic fields and compare against incremental wavefront updates on latency and energy alone. GIR's gains over shortest-path-style guidance on bottleneck-heavy Safety-Gymnasium levels are the motivating evidence that the low-$\lambda$ regime matters, but we treat this as a hypothesis to test.

Why not just precompute, as JSTS does? Precomputation wins outright on static 2D maps. Its own authors note, however, that rebuilds take seconds to minutes, and its trees do not capture turning-radius constraints. Our dynamic GPPC variant and the car lattice test exactly these two weaknesses. If obstacle changes are rare, JSTS remains the right choice, and the crossover experiment will say so quantitatively.

Why not just learn a reachability embedding and run it on a GPU? Learned metrics such as Laplacian representations (The Laplacian in RL: Learning Representations with Efficient Approximations) or RL-RRT's time-to-reach network absorb the environment's structure into trained weights. When walls move, they must be retrained or must generalize. The circuit takes the current map as an input instead. The RL-RRT comparison under map changes measures how much this matters. If the learned estimator generalizes well to new layouts, the advantage narrows to energy, and we will report that honestly.

Why not just run everything in analog? Prior hybrid work rules this out. The end-to-end in-memory study found that forcing ill-fitting operations onto analog arrays wasted over 20 times the needed area. CorrectNet shows that unprotected analog inference can collapse, with VGG16 on CIFAR-100 dropping to 1.69% at heavy noise. For this reason, collision checking and search control stay digital by design, and we never evaluate an all-analog variant as a candidate system.

Proposed Experiments

The first decisive check is the noise-tolerance curve. On GPPC Maze and Random maps, which are the narrow-corridor stress cases, we measure the order-flip rate of best-neighbor choices and the resulting path-length suboptimality as weight noise increases through the CorrectNet range and precision drops to 3–4 bits. The hypothesis is that suboptimality stays within a few percent until noise approaches the regime where CorrectNet reports classification collapse. The experiment fails if order flips concentrate in narrow passages, which is exactly where the boundary problem of Harnessing Reinforcement Learning for Neural Motion Planning. predicts trouble.

The second check is a dynamic grid benchmark built from GPPC maps, in which random obstacles appear at a controlled rate. We compare time-to-valid-path for JSTS with rebuild, digital multigrid A, and the analog field with A.

The third check uses the Kinematic Car setting from RL-RRT. We measure success within a fixed budget and executed trajectory time against SST, the original RL-RRT, and the field-guided RRT, both with and without the motion-primitive lattice.

The fourth check uses the Safety-Gymnasium Navigation, Building, and Fading levels where GIR was evaluated. We train PPO with Euclidean, GIR-style digital effective resistance, and analog-field shaping, reporting success, steps to goal, and wall-clock time per training step. This shows whether the analog route keeps GIR's gains while removing its pseudoinverse cost on larger graphs than clustered LiDAR allows.

As a stretch experiment, we will use the field's gradient as the goal term in the latent optimizer of Leveraging Scene Embeddings for Gradient-Based Motion Planning in Latent Space. That optimizer reports a normalized path length of 3.61 against 2.17 for RRT-Connect, and the test is whether an obstacle-aware goal term shortens its paths. This applies only where its workspace can be voxelized at a tractable resolution.