Constarium
← Search

Data · dataset · 2026

TorchFDTD: Differentiable FDTD on a single GPU

Listed in ZivaHub and Deakin Research Online and DMU Figshare — shown once because both records carry DOI 10.48550/arxiv.2609.30039

Gradient-based photonic design needs full-wave derivatives with respect to millions of parameters, but on a single GPU workstation the time-domain adjoint is limited by device memory and by the incompatibility of fused update kernels with automatic differentiation.

Description

Here, we present TorchFDTD, an open-source finite-difference time-domain (FDTD) package that addresses both limits. Its Yee, absorber and dispersion updates execute as fused CUDA kernels captured in a CUDA graph, and every kernel is paired with a transpose kernel derived from its update, so material and geometry derivatives are obtained by a discrete adjoint that PyTorch chains with differentiable objectives built from the supported observations.

For problems that exceed the device, a streamed mode advances the domain one causal slab at a time and keeps the global state and the checkpoints in host memory, which lowers the device allocation while preserving the resident discretization. We validate the package against analytic solutions, against Meep, FDTDX and a rigorous coupled-wave solver, and against automatic differentiation and finite differences. Against FDTDX on the same GPU its forward solves are 6.4 to 7.3 times faster and gradients 2.0 to 52 times faster, and in double precision on an A100 its solves are 49 to 59 times faster than Meep on a workstation CPU.

Read the rest (2 more)

On an RTX 3060, host streaming of $256^3$ and $320^3$ adjoints costs 3.1 and 2.7 times the resident time and lowers the peak device allocation by 56% and 65%. A 54-million-cell pillar-array lens coupled to an angular-spectrum objective yields an adjoint derivative within 0.78% of a central difference. The time-domain adjoint of a device with billions of cells thus becomes available on a single workstation GPU.

Overlapping lateral tiles with angular-spectrum propagation evaluate a 1 mm $\times$ 1 mm metalens of $1.2\times10^{7}$ posts on one 48 GB GPU in 6.4 h.

Links

Where it is published

Catalogue records · 1

Topics

Provenance · 3 source records, 12 field assertions
SourceKeyLast seenRaw
ZivaHuboai:figshare.com:article/3400359312 d agoJSON v1
Deakin Research Onlineoai:figshare.com:article/3400359312 d agoJSON v1
DMU Figshareoai:figshare.com:article/3400359312 d agoJSON v1
FieldAssertionExtractorEvidence
access_levelsource · zivahub uct ac zaconnector:zivahub_uct_ac_za@1.0.0
concepts[field].anzsrc:group:5102enrichment · zivahub uct ac zataxonomy-embedding@1.1.0title+keywords+description (73%)
concepts[field].local:field:earth-environmentalmapping · zivahub uct ac zaconnector:zivahub_uct_ac_za@1.0.0
concepts[field].local:field:earth-environmentalmapping · figshare dmu ac ukconnector:figshare_dmu_ac_uk@1.0.0
concepts[field].local:field:earth-environmentalmapping · dro deakin edu auconnector:dro_deakin_edu_au@1.0.0
concepts[field].local:field:physicsmapping · zivahub uct ac zaconnector:zivahub_uct_ac_za@1.0.0
concepts[field].local:field:physicsmapping · dro deakin edu auconnector:dro_deakin_edu_au@1.0.0
concepts[field].local:field:physicsmapping · figshare dmu ac ukconnector:figshare_dmu_ac_uk@1.0.0
descriptionsource · zivahub uct ac zaconnector:zivahub_uct_ac_za@1.0.0/metadata/dc/description
licensesource · zivahub uct ac zaconnector:zivahub_uct_ac_za@1.0.0/metadata/dc/rights
publication_datesource · zivahub uct ac zaconnector:zivahub_uct_ac_za@1.0.0
titlesource · zivahub uct ac zaconnector:zivahub_uct_ac_za@1.0.0/metadata/dc/title