Skip to content

Option for Native AD backend APIs to offer direct stability guarantees ? #993

@AstitvaAggarwal

Description

@AstitvaAggarwal

Native AD backend APIs often provide better stability and stronger correctness guarantees than DI's layer around them.
eg: chalk-lab/Mooncake.jl#992 - a frule!!/rrule!! inconsistency in nan_tangent_guard causes forward-mode to return NaNwhere reverse-mode returns 0.0. This kind of edge-case divergence between modes is invisible to DI, which wraps each mode independently.

Broadly the concerns are:

Is there a path toward DI where we can either :

  • (a) call native backend APIs more directly where they exist, or
  • (b) expose a "native-first" mode that bypasses the wrapper for backends that have the latest stable and correct API?

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendRelated to one or more autodiff backendscoreRelated to the core utilities of the package

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions