News for hackers. Stuff that matters.
Re:What is backpropagation and what is it doing? [video] by phreeza on Saturday November 04, 2017 @01:21PM (#15625984)
This can also go wrong, for example visualising probability distributions in low dimensions leads to very wrong intuitions about the behavior of high-dimensional dimensional distributions.
Re:What is backpropagation and what is it doing? [video] by kahoon on Saturday November 04, 2017 @07:21PM (#15627354)
I think this is a very good point. Years ago people were worried about gradient descent getting stuck at a local minima, plausibly because this problem is very obvious in a 3 dimensional space. In higher dimensions however this problem seems to go away more or less and a lot of worrying about the issue seems to be the result of lower dimensional intuitions wrongly extrapolated to higher dimensions.
Re:What is backpropagation and what is it doing? [video] by Eliezer on Saturday November 04, 2017 @11:00PM (#15627978)
Stuff got stuck in local minima for years before we learned about stuff like momentum and dropout and dropped a ton of GPU power on it.
Re:What is backpropagation and what is it doing? [video] by llamaz on Saturday November 04, 2017 @11:25PM (#15628049)
When I was implementing a neural network for a university assignment (2 years ago so my memory might fail me), we had to run our algorithm multiple time with different starting positions, then take the minimum of those local minima.

I'm not sure what momentum and dropout are, but I agree with Eleizer, without these things (which I didn't use) local minima are a problem.

Re:What is backpropagation and what is it doing? [video] by eat_veggies on Saturday November 04, 2017 @11:43PM (#15628095)
Dropout is where you randomly remove neurons from your network during training, which prevents them from depending too much on specific neurons (making the output more generalizable). It was developed in 2014 so it would have been brand new tech back when you were in your class.
Re:What is backpropagation and what is it doing? [video] by alexcnwy on Sunday November 05, 2017 @03:58AM (#15628747)
I think you're misinterpreting the parent who is saying that local minima are not a problem in high dimensions because there is always a dimension to move in that reduces the loss (unlike in lower dimensions where you can get stuck in a point across all dimensions that cannot be locally improved upon)
Re:What is backpropagation and what is it doing? [video] by llamaz on Sunday November 05, 2017 @08:47AM (#15629338)
I still don't understand what the parent is talking about then. Could you please restate the explanation using math notation/terminology?
[dead]
Re:What is backpropagation and what is it doing? [video] by david-gpu on Sunday November 05, 2017 @08:36AM (#15629302)
Not the person you replied to, but your comment was both rude and incorrect enough that I feel the need to reply. See for example http://www.offconvex.org/2016/03/22/saddlepoints/ for some discussion on this.
Re:What is backpropagation and what is it doing? [video] by bovine3dom on Sunday November 05, 2017 @01:05PM (#15630655)
Say you have N random walks.

The probability that the second derivative at any point is of the same sign for all walks decreases with N.

Right?

Re:What is backpropagation and what is it doing? [video] by tankenmate on Sunday November 05, 2017 @06:41AM (#15629016)
Here is a good short document[0] that can help unlock the missing visual intuition of high dimensional data. It does require a lot more thinking than 3d space, but eventually along side the maths it help you to get a "feel" for it.

[0] https://www.cs.cmu.edu/~venkatg/teaching/CStheory-infoage/ch...

Re:What is backpropagation and what is it doing? [video] by zardo on Saturday November 04, 2017 @01:49PM (#15626095)
That means you need to keep track of what properties actually hold under projection to lower dimensions.
Re:What is backpropagation and what is it doing? [video] by smallnamespace on Saturday November 04, 2017 @03:13PM (#15626426)
Keeping track of properties is not really something 'visualization' necessarily helps with though, more symbolic reasoning through proofs.
Re:What is backpropagation and what is it doing? [video] by dmritard96 on Saturday November 04, 2017 @08:35PM (#15627571)
I agree it isn't 100% perfect for every situation. But I can think of plenty of instances where ditching colors, lowering resolution, etc. have been totally fine (and often essential) for gaining a level of intuition. As some other comments noted, this intuition may be flawed, mostly because it's hard to know what you don't know. As a result, you are still more informed than you might have been before, but you also might not know much more.

however, being able to mix and match properties is really what most good plotting and visualization is all about. having done a bunch of ray tracing, my intuition around lighting and light is much better. I am not even good 'anechdata' so take that for what its worth, but I found visualization to be much more intuitive than reading e&m textbooks/lectures. I'm not sure if knowing a phenomena as bottom up or top down is really a guarantee (nor am I suggesting that symbolic reasoning is bottom up or down), but seeing something is just so efficient for some people. Like anything powerful, it just needs to be used judiciously and with asterisks.

Re:What is backpropagation and what is it doing? [video] by zardo on Saturday November 04, 2017 @05:17PM (#15626942)
I don't mean that spatial reasoning helps with that, I mean that if you do it, you can still apply your spatial reasoning where it's appropriate.
Re:What is backpropagation and what is it doing? [video] by adamnemecek on Saturday November 04, 2017 @01:43PM (#15626079)
I'm not sure I know what you are talking about but let's not throw away the baby with the bath water.
Re:What is backpropagation and what is it doing? [video] by kobeya on Saturday November 04, 2017 @02:08PM (#15626176)
What he means is that we only really have intuition for 1, 2, and 2.5D visuals, but many areas of mathematics don’t map into low dimensions very well, or do but lose essential properties in the process. Building a low dimensional projection of he problem might prime intuition, but it will also introduce fundamental biases as well.

For example, learning geography by flat map projections only. No matter what projection you use there is a trade off, and you end up instilling both the pro and the con of that trade off as intuition.

Re:What is backpropagation and what is it doing? [video] by Retric on Saturday November 04, 2017 @05:37PM (#15627030)
Flat map projections work fine if you provide enough of them.

A video from LEO or a rotating map projection provides very different intuition than a single static map. https://www.youtube.com/watch?v=EPyl1LgNtoQ

Very high zoom levels also work out nicely.

Re:What is backpropagation and what is it doing? [video] by posterboy on Sunday November 05, 2017 @03:50AM (#15628733)
yeah, as I ad-hoc-ly commented. It's all about compression.
Re:What is backpropagation and what is it doing? [video] by darkmighty on Saturday November 04, 2017 @09:16PM (#15627681)
I would reiterate that simply because there are problems with naive visualization, we shouldn't discredit visual thinking.

There are several key elements to effective visual thinking. The primary importance is to keep it grounded in proofs and theorems, so you know exactly what are your limitations. Often you can use a geometric argument on top of a few theorems and you get a very strong result intuitively, and then use this intuition with a tiny amount of algebra to prove it (which might take you forever to arrive from a purely algebraic perspective). Another key is that there are several ways of visualizing things. You can almost always transform a problem into an equivalent one that is easy to visualize (just need a little bit of care with the transformation, etc).

---

For example, you can show functions form a vector space, visualizing some interesting algebraic properties about them, even if it constitutes an infinite-dimensional space.

You can show several operators (such as d/dx) are linear, you can give it a norm, internal product, etc. This trick lets you use visual tools (and linear algebra tools) with arbitrary functions. You can visualize projection of a function into a subspace, or into some non-canonical basis -- yielding useful applications -- such as Fourier analysis.

Fourier analysis itself is a fertile ground for visual thinking. You'll be finding trivial arguments for seemingly difficult decisions such as "Does this linear system have a bounded output for any bounded input?". There isn't one right way of thinking about anything.

---

On the other hand, it can't be stressed enough the importance of keeping track of formal assumptions, axioms, definitions, theorems to construct valid, correct proofs. That way you minimize the risk of fooling yourself, and can safely use your intuition.

This 3B1B video exemplifies many of those elements:

https://www.youtube.com/watch?v=zwAD6dRSVyI&t=633s

Re:What is backpropagation and what is it doing? [video] by phreeza on Saturday November 04, 2017 @02:30PM (#15626265)
Yes, exactly, thanks.
Re:What is backpropagation and what is it doing? [video] by adamnemecek on Saturday November 04, 2017 @03:58PM (#15626604)
I didn't understand the distributions part.
Re:What is backpropagation and what is it doing? [video] by nitrogen on Saturday November 04, 2017 @06:10PM (#15627150)
Part of it may be that in higher dimensions the bulk of a volume is concentrated near the surface.

I found https://blogs.msdn.microsoft.com/ericlippert/2005/05/13/high... with a quick search.

Re:What is backpropagation and what is it doing? [video] by nkurz on Saturday November 04, 2017 @06:56PM (#15627287)
The article here (and the links in the comments) might clarify the connection to machine learning:

http://www.penzba.co.uk/cgi-bin/PvsNP.py?SpikeySpheres

https://news.ycombinator.com/item?id=3995615

Re:What is backpropagation and what is it doing? [video] by posterboy on Sunday November 05, 2017 @04:13AM (#15628767)
interesting

the volume of an n-ball peaks at n=4 dimensions and quickly drops to zero around n=20. cf. https://news.ycombinator.com/item?id=3995930

The comment refers to lebesgue measure (I don't even what), but I'd intuitively and ignorantly assume we count all faces of all n-1 balls (recursively) whereas the Volumes overlap and so the total (in lebesgue ...space?) is less than the sum of it's parts (in euclidean space) - how far off am I? (will delete if too far)

Re:What is backpropagation and what is it doing? [video] by chestervonwinch on Saturday November 04, 2017 @05:44PM (#15627050)
It's related to the geometric problems the parent described because probability distributions roughly describe geometric regions (of high probability density) where observations are likely.
Re:What is backpropagation and what is it doing? [video] by posterboy on Sunday November 05, 2017 @03:08AM (#15628643)
> learning geography by flat map projections only

well, the map is flat more or less at closer zoom levels, so the general problem seems to be purely about lossy compression.

Re:What is backpropagation and what is it doing? [video] by kobeya on Tuesday November 07, 2017 @12:38PM (#15645535)
...what? I don’t understand. It’s accurate at “close zoom” because the limit as you scale in to the surface of a sphere is a flat surface. I’m not sure what compression of any sort has to do with this.
Re:What is backpropagation and what is it doing? [video] by decisiveness on Saturday November 04, 2017 @02:36PM (#15626289)
I don't think knowing exactly what parent comment is talking about is required to see that they weren't suggesting we should do away with all visualizations just because there are some cases where they might not be the best tool for teaching.
Re:What is backpropagation and what is it doing? [video] by vbuwivbiu on Saturday November 04, 2017 @01:35PM (#15626046)
please elaborate - are you thinking of the curse of dimensionality ?
Re:What is backpropagation and what is it doing? [video] by phreeza on Saturday November 04, 2017 @02:29PM (#15626261)
There are many examples, one I came across recently is that the large majority of the probability mass of a high-dimensional gaussian distribution is in a shell at a distance from the mean, the mass at the center is actually quite low.

Also anything related to topology, which is important when you are looking at decision boundaries, becomes counterintuitive in high dimensions, because so many things can be adjacent at the same time.

Re:What is backpropagation and what is it doing? [video] by jstanley on Saturday November 04, 2017 @02:46PM (#15626336)
Can you please try and explain why that is?

If true, you're very correct that lower-dimensional intuition does not transfer into higher-dimensional spaces: my intuition tells me that a Gaussian distribution drops off as you fall away from the mean, and it's quite easy for me to imagine that in 2 dimensions, 3 dimensions (e.g. by imagining a mound on a plane) and 4 dimensions (e.g. a cloud in 3-space with increased density around the mean).

Is my intuition wrong in any of those cases? If so, why? If not, how many dimensions do we need before it becomes wrong?

Re:What is backpropagation and what is it doing? [video] by orangecat on Saturday November 04, 2017 @03:27PM (#15626482)
Because an outlier in any single dimension will put the point outside the "center" of the distribution, and as the number of dimensions increases there's more of a chance of that happening.

Say you have an N-dimensional gaussian where each dimension has mean 0 and standard deviation 1. Define the center as the N-dimensional cube whose edges go from -3 to +3 in each dimension. A normally distributed value is within 3 standard deviations of the mean with probability 0.9973, so the probability that an N-dimensional point being in the center is 0.9973^N. With N=4 that's 0.989 which matches your intuition, but at N=1000 it's 0.067 and at N=10000 it's 1.81e-12.

Re:What is backpropagation and what is it doing? [video] by smallnamespace on Saturday November 04, 2017 @03:18PM (#15626438)
The center of the distribution always has the highest density, but the ratio of 'probability mass close to centroid' / 'total probability mass' drops off as number of dimensions grows.

This is somewhat related to another 'curse of dimensionality' observation, which is that the volume of a hyperball / volume of hyperspace tends towards zero as dimensions grow -- there's just a lot more volume that's in some sense 'far' from the center.

Re:What is backpropagation and what is it doing? [video] by eli_gottlieb on Saturday November 04, 2017 @08:14PM (#15627504)
>If true, you're very correct that lower-dimensional intuition does not transfer into higher-dimensional spaces: my intuition tells me that a Gaussian distribution drops off as you fall away from the mean, and it's quite easy for me to imagine that in 2 dimensions, 3 dimensions (e.g. by imagining a mound on a plane) and 4 dimensions (e.g. a cloud in 3-space with increased density around the mean).

Density is different from mass. Namely, mass is the integral of density. So your intuition is roughly correct for density, but you need to make it accord with a good intuition for mass.

Since getting the mass requires an integral, getting the mass over N-dimensional distributions requires integrating an N-dimensional region, which means N integrations for N dimensions. Each integration is, intuitively, a kind of sum. Integrating out many dimensions happens recursively; looped or recursive addition is multiplication. So on some level, to take the probability mass of a region in N-dimensional space, you need to "multiply" a density.

Since the total probability mass is fixed (1.0), adding more dimensions means you need to "multiply" the density by a larger number to get the mass, which means you need to divide the mass by a larger number to get the density, which means that despite the density peaking at the mean, the available density at any given point gets smaller as the dimensionality rises.

Re:What is backpropagation and what is it doing? [video] by nabla9 on Saturday November 04, 2017 @06:18PM (#15627175)
> it's quite easy for me to imagine that in 2 dimensions

It starts to fail really badly when dimension grows.

Two simple examples:

1) Consider 3 dimensional unit sphere centered at origin and unit cube centered at origin. Cube is clearly completely inside the sphere. Now generalize to n-dimensions. Hyperdimensional volume of hypercube with side length 1 moves almost completely outside the n-sphere with radius 1 when n-grows.

2) Alternatively almost all volume of n-sphere is close to the surface.

These are all very counterintuitive, yet simple to check toy examples. When you start to integrate over more complex multidimensional function, things get weird really fast.

Re:What is backpropagation and what is it doing? [video] by tzahola on Sunday November 05, 2017 @08:30AM (#15629288)
>Alternatively almost all volume of n-sphere is close to the surface.

How does this go against intuition?

Intuition from 1/2/3d tells me that the volume of an N-ball is O(r^N), and indeed it is the case in higher dimensions. Therefore it’s easy to see that the difference between the volume of an N-ball of radius r and an N-ball of radius (r + epsilon) will grow exponentially with N.

Re:What is backpropagation and what is it doing? [video] by vbuwivbiu on Monday November 06, 2017 @09:31AM (#15635657)
isn't this just because we're comparing n-dimensional objects by a 2-norm ? i.e. the dimension of the space grows but we're keeping the dimension of the norm fixed, but if we used the p-norm of the same dimension as the space, then maybe that would return intuitive results ?
Re:What is backpropagation and what is it doing? [video] by alan-crowe on Sunday November 05, 2017 @07:05AM (#15629066)
This is the problem that makes my brain melt when I try to think about genetics and mutational load. The naive idea is that a species, S, has a correct genome, G, but mutations build up, increasing with each generation. Presumably mutations build up until they are common enough that back-mutations are a thing. Then there is an equilibrium. In a fecund species, each individual has many children, but most have a higher mutational load, many have the save mutational load, and a lucky few have a smaller mutational load, closer to G, the correct genome. Differential reproductive success then maintains the equilibrium.

I don't see how the numbers are supposed to work out for large mammals, with each female having under a dozen offspring. To have a decent chance of a back-mutation, the typical member of the species would need one twelfth of their genome to be deleterious mutations.

Meanwhile, people are thinking about using CRISPR to correct the human genome, creating unusually happy, healthy people. The underlying thought is that the correct genome is best. But why do we think that the correct genome works at all?

Most of the population is in a shell at a distance from the correct genome, the number at the center is actually quite low. Given the combinatorics, with two to the millions of possible genomes, but populations in the millions, the number at the center, or even close, is actually zero. Maybe the correct genome codes for a sickly, miserable individual?

My current guess is that the evolution of large mammals with few offspring is constrained by genetic load considerations. It is not sufficient, (or even necessary) for the correct genome to be any good. There needs to be a big blob of mediocrity in genome space. The species exists as a shell of individuals on the edge of the blob of mediocrity. The blob needs to be huge, so that individuals whose genome is one twelfth mutations are still in the blob. Then there can be an equilibrium between back-mutations, taking offspring towards the interior of the blob and other mutations, taking offspring out of the blob and out of the gene pool.

This potentially solves the Fermi paradox. Can creatures such as humans actually exist in this universe? It is not enough for natural selection to discover a good genome. Natural selection has to discover a huge blob of mediocrity. Such blobs might be vastly rarer than we realize.

This potentially shits on the CRISPR master race. There might be nothing special about the interior of the huge blob of mediocrity.

Re:What is backpropagation and what is it doing? [video] by canjobear on Sunday November 05, 2017 @11:04AM (#15629964)
What is the "correct genome"? Seems like you could only define it as a local minimum in fitness space, or some kind of attractor.
Re:What is backpropagation and what is it doing? [video] by alan-crowe on Sunday November 05, 2017 @12:38PM (#15630516)
I don't know.There is medical perspective which focuses on deleterious mutations causing disease. This is a black-and-white perspective which sees mutations as either wholly bad or entirely unimportant. A genome without any deleterious mutations is a correct genome.

But what happens if you step back from black-and-white thinking and ask about mutations with ambiguous effects. Which is the mutation and which is the correct genome? It becomes unclear.

An alternative perspective asks: how well separated are the local minima in fitness space? Perhaps the typical separation is as large as the gaps between species. Then each species has only its own local minimum, which defines its correct genome. Or perhaps fitness space is littered with local minima, such that a single species has genetically healthy individuals in several different minima plus other individuals, perhaps not quite so healthy, nearby.

Re:What is backpropagation and what is it doing? [video] by shas3 on Saturday November 04, 2017 @03:03PM (#15626388)
Theoretically, yes. Can you give a more concrete example? Many hard high dimensional and general topology problems can be visualized through their 2D special cases.
Re:What is backpropagation and what is it doing? [video] by sevenfive on Saturday November 04, 2017 @07:30PM (#15627383)
Yeah, but the distance from the center is itself just a one-dimensional gaussian...
Re:What is backpropagation and what is it doing? [video] by SonOfLilit on Saturday November 04, 2017 @05:45PM (#15627056)
Related: Hamming's "The Art of Doing Science and Engineering" chapter 9, N-Dimensional Space

http://worrydream.com/refs/Hamming-TheArtOfDoingScienceAndEn...

(I assume Bret Victor has permission to host the PDF on his website, he is far from an anonymous pirate)