GRADSOLVE: GPU에서 ODE 앙상블의 빠른 정확 그래디언트
GRADSOLVE: fast exact gradients for ODE ensembles on GPUs
한국어 초록
상미분방정식(ODE)은 과학·공학 모델의 기반이 되며, 많은 응용에서 해에 대한 매개변수별 도함수가 필요하다. 서로 독립인 궤적의 앙상블은 그래픽 처리 장치(GPU)에 잘 맞지만, 현재 GPU 소프트웨어는 트레이드오프를 강요한다. 가장 빠른 앙상블 솔버는 풀이 속도만큼 역방향 모드에서 미분할 수 없고, 미분을 위해 설계된 솔버는 더 느리게 푼다. 아직 어떤 단일 도구도 융합 커널 풀이 수준의 속도로 역방향 모드 그래디언트를 제공하지 못했다. 우리는 NVIDIA GPU에서 저차원 ODE 앙상블을 풀고 역방향 모드로 미분하는 오픈소스 JAX 라이브러리 GRADSOLVE를 제안한다. 적응형 솔버가 채택한 스텝을 기록한 뒤, 이를 고정 스텝 재생(replay)으로 미분한다. 반환되는 그래디언트는 그 스텝들에 대한 정확한 이산 adjoint이며, Diffrax가 기본으로 반환하는 것과 동일한 도함수를 적응형 루프보다 고정 길이 체인에서 더 저렴하게 얻는다. 한 번 기록된 메시에 대해 여러 번 미분하는 앙상블을 주 대상으로 하며, Diffrax를 폴백으로 두고 explicit 및 Rosenbrock 적분기를 지원한다. 솔버로 쓸 때 GRADSOLVE의 순방향 전용 커널은 DiffEqGPU.jl보다 2.8배 빠랐고, 그래디언트 계산에서는 기록이 있으면 세 GPU 세대에서 순방향 상태 정확도를 맞춘 조건에서 Diffrax의 체크포인트 adjoint보다 5.6–14.1배 빠르게 계산했다. 큰 앙상블에서는 이 이점이 줄어들고, 강성(stiff) 계열에서는 엄격한 정확도에서 동등 수준까지 좁혀진다. GRADSOLVE는 https://github.com/ECLIPSE-AI4Science/gradsolve 에서 공개된다.
원문 초록
Ordinary differential equations (ODEs) underlie models in science and engineering, and many applications need derivatives of their solutions with respect to parameters. Ensembles of independent trajectories suit graphics processing units (GPUs), but current GPU software forces a trade-off: the fastest ensemble solvers cannot be differentiated in reverse mode at the speed they solve, and the solvers built for differentiation solve more slowly. No single tool has yet offered a reverse-mode gradient at the speed of a fused-kernel solve. We present GRADSOLVE, an open-source JAX library for solving and reverse-mode differentiating low-dimensional ODE ensembles on NVIDIA GPUs. It records the steps an adaptive solver accepts and differentiates a fixed-step replay of them; the returned gradient is the exact discrete adjoint of those steps, the same derivative Diffrax returns by default, obtained more cheaply from a fixed-length chain than from an adaptive loop. It targets ensembles differentiated many times against one recorded mesh, keeps Diffrax as a fallback, and supports explicit and Rosenbrock integrators. Used as a solver, GRADSOLVE's forward-only kernel ran 2.8x faster than DiffEqGPU.jl; used for gradients, once a record exists, it computed them 5.6-14.1x faster than Diffrax's checkpointed adjoint at matched forward-state accuracy across three GPU generations, the advantage narrowing on large ensembles and, on stiff systems, down to parity at tight accuracy. GRADSOLVE is released at https://github.com/ECLIPSE-AI4Science/gradsolve.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2609.02876v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.