# Imperial College Uses PyTorch to Solve Climate Models Without Hand-Coded Adjoints

> Source: <https://alphasignal.ai/news/imperial-college-uses-pytorch-to-solve-climate-models-without-hand-coded>
> Published: 2026-11-13 12:02:10+00:00

# Imperial College Uses PyTorch to Solve Climate Models Without Hand-Coded Adjoints

A differentiable physics model written as convolutions in PyTorch recovers soil and flux parameters from urban temperature data, no training required.

- Imperial College team expresses a land-surface model as PyTorch convolutions, making it fully differentiable without adjoint code.
- Approach is [training-free](https://arxiv.org/abs/2505.02979?utm_source=alphasignal) : the forward model stays physics-based, autograd only handles gradients.
- Synthetic tests show single-depth soil temperature data cannot uniquely identify LSM parameters.
- Two-depth observations recover parameters reliably but cannot separate latent from sensible heat fluxes.
- On Phoenix urban flux tower data, thermal conductivity, heat capacity and combined heat transfer coefficient are recovered.
- Code released as [SEB-model on GitHub](https://github.com/RuiyueH/SEB-model?utm_source=alphasignal) , published in Geoscientific Model Development.

Climate and weather models use land-surface models to calculate how heat, water, and radiation move between the ground and atmosphere. Parameters such as thermal conductivity, heat capacity, and surface albedo are difficult to measure and costly to infer. Imperial College London researchers report in a [journal article](https://gmd.copernicus.org/articles/19/8801/2026/?utm_source=alphasignal) that they can estimate these parameters by implementing the governing equations in PyTorch and differentiating the solver with autograd.

The approach, called Neural Physics in the [arXiv preprint](https://arxiv.org/abs/2505.02979?utm_source=alphasignal), represents finite-difference stencils as convolution operations. The forward pass still solves the discretized physical equations. PyTorch supplies tensor operations, gradient propagation, and optimizers. The authors call the method training-free because the convolution kernels encode numerical operators and no network weights learn a surrogate from examples. The inversion still uses iterative gradient descent to estimate physical parameters.

## One backward pass replaces an adjoint

Inverse problems estimate physical parameters by minimizing the difference between model outputs and observations. Gradient-based methods need the derivative of that loss with respect to every unknown parameter. Geoscience codes traditionally obtain those derivatives from an adjoint, a separate sensitivity model that must remain synchronized with the forward solver as equations and numerical schemes change.

A finite-difference heat solver already applies small numerical stencils across a grid. In one dimension, a three-point stencil approximates the second spatial derivative at each soil level; a `conv1d` operation can apply the same calculation. PyTorch records how parameters affect each operation and propagates the loss backward through the time steps. The resulting gradients correspond to the discretized solver that ran, keeping the derivative aligned with differentiable changes to the code.

## This story is for Pro members

You've reached the end of the free preview. Upgrade to AlphaSignal Pro to read the full article - and everything else behind the paywall.
