日本フィジカルAI新聞

世界のフィジカルAIを、日本語で。

ライブラリ/微分可能3D変換arXiv:2511.18157

SciPyの3D変換を微分可能でフレームワーク非依存に

scipy.spatial.transform: Differentiable Framework-Agnostic 3D Transformations in Python

シェア:XThreadsFacebookLINEはてブBluesky

SciPyのspatial.transformをArray API対応にし、JAXやPyTorchなどでGPU実行・自動微分・JITを可能にした。

詳しい要約

1. どんなもの?

- SciPy の `scipy.spatial.transform` を全面的に刷新し、Python array API に準拠した任意の array library で動くようにしたフレームワーク非依存の 3D rigid-body transform(回転・並進)実装 - 対象 library として JAX, PyTorch, CuPy などを想定し、GPU/TPU 実行、JIT コンパイル、vectorized batching、backend ネイティブの autodiff による微分を可能にする - 既存の SciPy interface を維持したまま、robotics・vision・simulation の differentiable ML pipeline で使える production-grade な基盤を提供する - 貢献は SciPy main に merge 済みで次回 release で ship 予定

2. 先行研究と比べてどこがすごい?

- 従来の SciPy `spatial.transform` は厳密にテストされた Python 実装だが NumPy のみ対応で、GPU 加速や autodiff ベースの workflow への採用が制限されていた - 本研究はこれを任意の Python array API 準拠 library に対応させ、JAX・PyTorch・CuPy 上での実行を可能にした点が新しい - 数値的に頑健で数学的に正しい SO(3) 実装(axis convention、normalization、composition consistency、edge case の微妙な誤りへの対処)を維持しつつ framework-agnostic 化した点が差分 - 既存 interface を保つため、既存ユーザーの移行コストを抑えつつ backend ネイティブの autodiff・JIT・batching を享受できる

3. 技術・手法の肝は?

- Python array API 標準に準拠するよう `spatial.transform` の実装を書き換え、array library 非依存のコードパスを実現 - SciPy の確立された interface を維持し、backend 側の autodiff・JIT・vectorized batching をそのまま利用可能にする設計 - SO(3) 上の回転表現における axis convention、normalization、composition consistency、edge case の数値的頑健性を保持 - GPU/TPU 実行を可能にし、backend ネイティブの自動微分に委ねることで differentiable 化を実現

4. どうやって有効だと検証した?

- 2 つの case study で有効性を提示 - (i) 3D transform と回転のスケーラビリティ検証 - (ii) SciPy の `Rotation` を用いて回転 dynamics を正確に積分する JAX drone simulation - 上記により differentiable scientific computing の基盤として機能することを示す - 定量的な benchmark 数値や比較対象の詳細は要旨からは不明

5. 議論はある?

- 数値的頑健性・数学的正しさ・edge case の扱いが SO(3) 実装の主要な課題として挙げられている - NumPy 限定だったことが GPU 加速・autodiff workflow での採用を妨げていたという制約が議論の出発点 - 具体的な限界、失敗事例、性能 overhead、未対応 backend などについての議論は要旨からは不明

6. 次に読むべき論文は?

- SciPy `spatial.transform` の元実装(NumPy 版) - Python array API standard - JAX, PyTorch, CuPy の autodiff / JIT / vectorized batching 機構 - JAX を用いた drone simulation 関連研究 - differentiable robotics / simulation における SO(3) 回転表現(quaternion, rotation matrix, Euler angle など)の関連手法

※ AIが要旨から生成した要約です。正確性は原文をご確認ください。

著者: Martin Schuck, Alexander von Rohr, Angela P. Schoellig

分類: cs.LG, cs.RO

原文アブストラクト

Three-dimensional rigid-body transforms, i.e. rotations and translations, are central to modern differentiable machine learning pipelines in robotics, vision, and simulation. However, numerically robust and mathematically correct implementations, particularly on SO(3), are error-prone due to issues such as axis conventions, normalizations, composition consistency and subtle errors that only appear in edge cases. SciPy's spatial$.$transform module is a rigorously tested Python implementation. However, it historically only supported NumPy, limiting adoption in GPU-accelerated and autodiff-based workflows. We present a complete overhaul of SciPy's spatial$.$transform functionality that makes it compatible with any array library implementing the Python array API, including JAX, PyTorch, and CuPy. The revised implementation preserves the established SciPy interface while enabling GPU/TPU execution, JIT compilation, vectorized batching, and differentiation via native autodiff of the chosen backend. We demonstrate how this foundation supports differentiable scientific computing through two case studies: (i) scalability of 3D transforms and rotations and (ii) a JAX drone simulation that leverages SciPy's Rotation for accurate integration of rotational dynamics. Our contributions have been merged into SciPy main and will ship in the next release, providing a framework-agnostic, production-grade basis for 3D spatial math in differentiable systems and ML.

  1. 1Boston Dynamics、車輪付きAtlasの研究試作機を紹介研究・技術
  2. 2GXOとApptronik、Apolloの物流現場試験を拡大 最大1,000台の展開を構想量産・展開
  3. 3newmoとKDDIが資本業務提携 2028年に堺市で自動運転タクシー商用化目指す提携・買収
  4. 4NVIDIA、CoRLでGR00T 2とIsaac Lab 3.0を発表新製品・発表
  5. 5UC BerkeleyとNVIDIAの研究者、AIエージェントでロボット制御コードを仮想環境で改善研究・技術

PR・アフィリエイト広告

MINISFORUM(ミニPC)

MINISFORUM(ミニPC)の公式広告バナーMINISFORUM公式ストアを見る ↗
PR本紙発行元 EmplifAI