Skip to content

Perturbation Confusion (Nested Differentiation Bug) #45

Open

Description

@jrevels

I already mention this in ReverseDiff's documentation, but I'm opening this issue to increase visibility and track progress.

ReverseDiff has the same perturbation confusion issue as ForwardDiff. My plan to solve this in ReverseDiff is the same as my plan to solve this in ForwardDiff; the tag will be added to the TrackedArray/TrackedReal types (and possibly the tape types, I'm not sure yet).

Activity

  1. MikeInnes commented on Jun 28, 2018

    @MikeInnes

    Here's a simple test case, if anyone is interested:

    D(f, x) = ReverseDiff.gradient(x->f(x[1]), [x])[1]
    
    D(x -> x * D(y -> x * y, 3), 5) # 3
    D(x -> x * D(y -> y * x, 3), 5) # 5

    (the correct answer is 2x, or 10).

  2. yangky11 commented on Apr 27, 2021

    @yangky11

    Hi,

    Any luck in fixing this bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions