Pith. sign in

REVIEW 1 cited by

ad-trait: A Fast and Flexible Automatic Differentiation Library in Rust

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2504.15976 v1 pith:4GOVK6GM submitted 2025-04-22 cs.RO

classification cs.RO
keywords libraryrustad-traitautomaticdifferentiationbroadercomputationdata
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

The Rust programming language is an attractive choice for robotics and related fields, offering highly efficient and memory-safe code. However, a key limitation preventing its broader adoption in these domains is the lack of high-quality, well-supported Automatic Differentiation (AD)-a fundamental technique that enables convenient derivative computation by systematically accumulating data during function evaluation. In this work, we introduce ad-trait, a new Rust-based AD library. Our implementation overloads Rust's standard floating-point type with a flexible trait that can efficiently accumulate necessary information for derivative computation. The library supports both forward-mode and reverse-mode automatic differentiation, making it the first operator-overloading AD implementation in Rust to offer both options. Additionally, ad-trait leverages Rust's performance-oriented features, such as Single Instruction, Multiple Data acceleration in forward-mode AD, to enhance efficiency. Through benchmarking experiments, we show that our library is among the fastest AD implementations across several programming languages for computing derivatives. Moreover, it is already integrated into a Rust-based robotics library, where we showcase its ability to facilitate fast optimization procedures. We conclude with a discussion of the limitations and broader implications of our work.

Discussion (0). Sign in to comment.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Robust and Efficient MuJoCo-based Model Predictive Control via Web of Affine Spaces Derivatives

    cs.RO 2025-12 conditional novelty 6.0 of 10

    WASP derivative reuse speeds up MuJoCo MPC by 1.26–2.08x versus finite differences on selected locomotion tasks, with comparable task costs.

Pith tools