Live data from Hacker News

Automatic Differentiation in Machine Learning: A Survey (2018) [pdf]

jmlr.org

41–50 of 51 posts

Re: Automatic Differentiation in Machine Learning: A Survey (2018) [pdf]

#41
post #25

Earlier quoted context omitted.

I’m not sure. I’m not entirely convinced that discrete and continuous spaces are dual spaces. They are connected, but they are not duals. Same with sampling vs continuous. One cannot interchange the order of the composing morphisms while preserving the properties of the original. The sampled object cannot reconstruct the continuous object in all situations due to effects like aliasing. In optimization, the concept of…

Look into Chu spaces. > One cannot interchange the order of the composing morphisms while preserving the properties of the original. Good observation one really can't but that was never a hard requirement, right? Ordering becomes actually more interesting because you can have interesting properties like anti-commutativity ( https://en.wikipedia.org/wiki/Anticommutativity ) which is a lot more useful than commutativit…

But it is. Duality requires commutativity of composition.

It sounds like the ideas that you’ve put forward confounds duality with something else, perhaps transformations. You may be digging a hole here.

Re: Automatic Differentiation in Machine Learning: A Survey (2018) [pdf]

#42
post #41

Earlier quoted context omitted.

Look into Chu spaces. > One cannot interchange the order of the composing morphisms while preserving the properties of the original. Good observation one really can't but that was never a hard requirement, right? Ordering becomes actually more interesting because you can have interesting properties like anti-commutativity ( https://en.wikipedia.org/wiki/Anticommutativity ) which is a lot more useful than commutativit…

But it is. Duality requires commutativity of composition. It sounds like the ideas that you’ve put forward confounds duality with something else, perhaps transformations. You may be digging a hole here.

> Duality requires commutativity of composition.

Not necessarily.

No, I’m not confounding it.

Re: Automatic Differentiation in Machine Learning: A Survey (2018) [pdf]

#43

Earlier quoted context omitted.

Forward AD is the pushforward of a tangent vector (an element of the tangent space), Reverse AD is a pullback of a cotangent vector (an element of the cotangent space). The duality notion between tangent and cotangent spaces is the same as the duality notion of spaces in optimization. Unfortunately, I'm only passingly familiar with discrete optimization, but I would suspect the notion extends from optimization. That'…

Yeah, but all you're really describing here is linear algebra. Vector spaces and linearity are a significant part of every single discipline the grandparent commenter mentioned, but they picked out duality. I would agree with the critique: I don't think highlighting duality here is particularly useful. For example, the way dual numbers are used to extend the reals for automatic differentiation doesn't have a deep con…

> For example, the way dual numbers are used to extend the reals for automatic differentiation doesn't have a deep connection to duality in vector spaces.

Yes, the right way to think about dual numbers (esp once you generalize them beyond just the single e^2=0), is to think of them as tangent vectors (sections of the tangent bundle). I've never really liked the "dual number" terminology here. That's why I deliberately chose to use the duality of forward and reverse mode AD, because that notion of duality agrees with the underlying linear algebra (or in general differential geometry). I do agree it's a mess of terminology.

Re: Automatic Differentiation in Machine Learning: A Survey (2018) [pdf]

#44
post #40

Earlier quoted context omitted.

You don't lose information if you pick your points correctly (you store only the extrema). In the cubic case, you need the two extrema (one minimum and one maximum and you need to know whether each extremum is a min or max) and then interpolate between them.

Unfortunately this is incorrect. Extrema do not always exist (consider y=x^3) and they do not uniquely define a polynomial (y=x^2 and y=x^4 both have minima at x=0).

Unfortunately this is incorrect. Those minima are not the same. Remember that dual points have a real part and a dual part that indicates the rate of change at that point. The real part is the same but the dual is different.

Re: Automatic Differentiation in Machine Learning: A Survey (2018) [pdf]

#45
post #39

I'm trembling with excitement at the prospect that easy-to-use high-performance automatic differentiation looks likely to become a "must have" capability for more and more computer languages. It's going to become easier and easier to specify objective functions and have the computer optimize programs for a wider range of application.

I work on non-linear optimization problems for most of my work projects, and I know exactly what you mean. One of these years we'll be freed from remembering calculus I :)

Re: Automatic Differentiation in Machine Learning: A Survey (2018) [pdf]

#46
post #40

Earlier quoted context omitted.

Unfortunately this is incorrect. Extrema do not always exist (consider y=x^3) and they do not uniquely define a polynomial (y=x^2 and y=x^4 both have minima at x=0).

Unfortunately this is incorrect. Those minima are not the same. Remember that dual points have a real part and a dual part that indicates the rate of change at that point. The real part is the same but the dual is different.

My point is it’s not possible to uniquely reconstruct an arbitrary polynomial by just knowing the extrema because there may be information loss in the general case. I will stop here.

Re: Automatic Differentiation in Machine Learning: A Survey (2018) [pdf]

#47
post #46

Earlier quoted context omitted.

Unfortunately this is incorrect. Those minima are not the same. Remember that dual points have a real part and a dual part that indicates the rate of change at that point. The real part is the same but the dual is different.

My point is it’s not possible to uniquely reconstruct an arbitrary polynomial by just knowing the extrema because there may be information loss in the general case. I will stop here.

It is possible if you know the rate of change which you do with dual points. Like you don’t interpolate just position but also the dual parts I.e. rate of change.

Re: Automatic Differentiation in Machine Learning: A Survey (2018) [pdf]

#48
post #45
post #39

I'm trembling with excitement at the prospect that easy-to-use high-performance automatic differentiation looks likely to become a "must have" capability for more and more computer languages. It's going to become easier and easier to specify objective functions and have the computer optimize programs for a wider range of application.

I work on non-linear optimization problems for most of my work projects, and I know exactly what you mean. One of these years we'll be freed from remembering calculus I :)

right after the year of the Linux desktop, eh?

Re: Automatic Differentiation in Machine Learning: A Survey (2018) [pdf]

#49
post #3

Earlier quoted context omitted.

For those of us who are not aware of duality in auto differentiation (and haven't had a chance to read the above review), could you introduce the idea? Are you talking about forward mode vs reverse mode -- since I haven't pondered, what's interesting/deep about that?

AD relies on dual numbers. Dual numbers are more suited for doing calculus. Structurally, dual numbers are numbers of the form a + b * e (where e is epsilon s.t. e^2 = 0 but e != 0. Think of it as the imaginary constant but instead of i^2 = -1, you have e^2=0). For example, multiplication of two dual numbers (a + b * e)(c + d * e) = (ac + ad * e + bc * e +bd * e^2). Since e^2 = 0, you end up with (ac + (ad + bc) * e)…

Before looking at the wiki I thought, huh, Grassmann numbers on HN?

Re: Automatic Differentiation in Machine Learning: A Survey (2018) [pdf]

#50
post #46

Earlier quoted context omitted.

My point is it’s not possible to uniquely reconstruct an arbitrary polynomial by just knowing the extrema because there may be information loss in the general case. I will stop here.

It is possible if you know the rate of change which you do with dual points. Like you don’t interpolate just position but also the dual parts I.e. rate of change.

[deleted]
Post reply on HN