News for hackers. Stuff that matters.
Re:Deep Forest: Towards an Alternative to Deep Neural Networks by rkaplan on Thursday March 02, 2017 @07:22AM (#13773536)
"In contrast to deep neural networks which require great effort in hyper-parameter tuning, gcForest is much easier to train."

Hyperparameter tuning is not as much of an issue with deep neural networks anymore. Thanks to BatchNorm and more robust optimization algorithms, most of the time you can simply use Adam with a default learning rate of 0.001 and do pretty well. Dropout is not even necessary with many models that use BatchNorm nowadays, so generally tuning there is not an issue either. Many layers of 3x3 conv with stride 1 is still magical.

Basically: deep NNs can work pretty well with little to no tuning these days. The defaults just work.

Re:Deep Forest: Towards an Alternative to Deep Neural Networks by computerex on Thursday March 02, 2017 @07:40AM (#13773601)
I couldn't disagree more. The defaults don't just work, and the architecture of the network could also be considered a hyper parameter in which case what would be a reasonable default for all the types of problems ANN are used for?
Re:Deep Forest: Towards an Alternative to Deep Neural Networks by ipunchghosts on Thursday March 02, 2017 @08:14AM (#13773761)
Are you using batch normalization? If you are, an issue I see all the time is folks not setting the EMA filter coef correctly. In keras, it defaults to something like 0.99 which in my mind makes no sense. I use something around 0.6 and life is good. You want to get an overall good measurement of the statistics and in my mind the frequency cutoff when coef=0.99 is just way too high for most application. You usually want something that filters out just about everything except very close to DC.
Re:Deep Forest: Towards an Alternative to Deep Neural Networks by gcr on Thursday March 02, 2017 @11:50AM (#13775602)
The response to "the defaults should work just fine without any hyperparameter tuning" is "try fiddling with the EMA filter coefficient hyperparameter" ?

(Just poking fun. :P)

Re:Deep Forest: Towards an Alternative to Deep Neural Networks by joe_the_user on Thursday March 02, 2017 @12:13PM (#13775868)
It's like the joke of the mathematician giving an exposition of a complex proof. At one point he says "It is obvious that X", pauses, scratches his head, does a few calculations. Leaves room for twenty minutes and returns. Then continues "it is obvious that X" and goes to the next step.

Deep in the field, it's fine for machine learning experts to say "everything just works" [if you've mastered X, Y, Q esoteric fields and tuning methods] since they're welcome to "humble brag" as much as they want. But when this gets in the way of figuring out what really "just works" it's more of a problem.

Re:Deep Forest: Towards an Alternative to Deep Neural Networks by dirtyaura on Thursday March 02, 2017 @10:58AM (#13775005)
Interesting, totally new concept for me: Where can I read more about EMA filter coefficient in Keras? My Google-fu is failing.
Re:Deep Forest: Towards an Alternative to Deep Neural Networks by walrus on Thursday March 02, 2017 @01:15PM (#13776605)
I think they're referring to the momentum parameter at [1]. The exponential moving average (EMA) of the batch mean/variance is used in the batch normalizing transform (Algorithm 1 in [2]).

The momentum ranges from 0 to 1. If it's close to 1, which the default of 0.99 is, the EMA of the batch mean/variance will change slowly across batches. If it's close to 0, the EMA will be close to the mean/variance of the current batch.

The EMA acts as a low-pass filter. With a momentum close to 1, the EMA changes slowly, filtering out high frequencies and leaving only frequencies close to DC. Note that this is opposite to what grandparent says: 0.99 has a lower frequency cutoff than 0.6 does. So I'm not really sure what they're getting at there.

[1] https://keras.io/layers/normalization/#batchnormalization

[2] https://arxiv.org/abs/1502.03167

Re:Deep Forest: Towards an Alternative to Deep Neural Networks by kortex on Thursday March 02, 2017 @09:18AM (#13774100)
When working with images, do you use mode 0, 1, or 2?
Re:Deep Forest: Towards an Alternative to Deep Neural Networks by arjo129 on Thursday March 02, 2017 @10:04AM (#13774451)
They work well, just that you need a lot of patience (and know how) to work with them. Also GPUs are expensive. By the time you realize that you messed up you have wasted a lot of time. Of course this is true with any ml algorithm out there. But what I'm trying to say is it is possible that an as yet unknown method exists that may be less computationally complex.

One of the problems I see is that people abuse deep neural networks no end. One doesn't need to train a deep nn for recognizing structured objects like a coke can in a fridge. Simple hog/sift/other feature engineering may be a faster and better bet for small-scale object recognition. However expecting sift to out perform a deep neural net on imagenet is out of question. Thus when it comes to deploying systems in a short frame of time one should keep an open mind.

Re:Deep Forest: Towards an Alternative to Deep Neural Networks by modeless on Thursday March 02, 2017 @01:01PM (#13776467)
> One doesn't need to train a deep nn for recognizing structured objects like a coke can in a fridge.

I disagree. Sure, you don't need a NN to recognize one Coke can in one fridge for your toy robot project. If you want to recognize all Coke cans in all fridges, for your real-world, consumer-ready Coke-fetching robot product? You're going to need a huge dataset of all the various designs of Coke cans out there, in all the different kinds of refrigerators, and your toy feature engineered approach is going to lose to a NN on that kind of varied dataset.

Re:Deep Forest: Towards an Alternative to Deep Neural Networks by snovv_crash on Thursday March 02, 2017 @02:57PM (#13777631)
Which is why you should do stereo or SfM, make a 3d reconstruction, and then do HOG or some 3D feature to recognise the coke can.

Trying to do it from images with a NN that doesn't comprehend 3D space is just silly.

Re:Deep Forest: Towards an Alternative to Deep Neural Networks by sdenton4 on Thursday March 02, 2017 @06:46PM (#13779471)
I'm not sure if you're serious or throwing some very excellent shade.
Re:Deep Forest: Towards an Alternative to Deep Neural Networks by snovv_crash on Friday March 03, 2017 @02:20AM (#13781273)
I'm serious. If you have to rely on mono, single image inputs then yeah ImageNet is going to do better. But it will also mistake every picture of a coke can as the real thing. It will be horrifically sensitive to malicious inputs. Much better would be to use 2 calibrated lenses and do 3D reconstruction. Even if you're just doing the reconstruction as a sanity check for a NN to weed out the false positives.
Re:Deep Forest: Towards an Alternative to Deep Neural Networks by sgt101 on Thursday March 02, 2017 @03:24PM (#13777831)
Errm, hang on, are you saying that if you have a task of classifying unseen images given a labelled training set you should get a stereo camera or video camera and create another problem?

Which you can solve?

Because the problem is silly>

What if I say : "I will give you $10m to solve it, and if you fail, I will kill this very kind old monkey?"

Re:Deep Forest: Towards an Alternative to Deep Neural Networks by snovv_crash on Friday March 03, 2017 @02:24AM (#13781286)
Object recognition doesn't only exist in the subspace of labelled 2D images. It tends to be derived from a 3D space, which is a whole extra orthogonal data source that the "NN all the things" crowd is fastidiously ignoring.

Why, I'm not sure, but I'm guessing because it is hard/inaccurate to do with just NNs and parameter/network architecture tweaking. Possibly also because benchmarks with single mono images are much easier to make.

Just because it is hard with method A, and is harder to make benchmarks, doesn't mean method B isn't better.

Re:Deep Forest: Towards an Alternative to Deep Neural Networks by sgt101 on Friday March 03, 2017 @02:54AM (#13781393)
Yes but am I missing something when I say that if the problem is to deal with labelled 2d images declaring that you should be working with 3d images or short video sequences doesn't help.

Sure, if you are building a Robot and I say "use this camera and a deep network" and you say "It'll work better with stereo" well... yes super do that!

But if we are working with mono images I don't understand how the observation helps?

Re:Deep Forest: Towards an Alternative to Deep Neural Networks by snovv_crash on Friday March 03, 2017 @12:38PM (#13784512)
Quoting from GP of your original reply:

> If you want to recognize all Coke cans in all fridges, for your real-world, consumer-ready Coke-fetching robot product?

If you're stuck with a mono dataset, post collection, then sure use NN and call it a day. But even if you have video you can do 3D reconstruction just from baseline movement. You won't know scale, so you can't differentiate between big coke cans and little coke cans, but at least you can rule out pictures of coke cans.

Re:Deep Forest: Towards an Alternative to Deep Neural Networks by amelius on Thursday March 02, 2017 @01:09PM (#13776540)
But an NN can complete mess up when a new refrigerator is used, that wasn't part of the training set.

Also, the training is very asymmetric, since there are many more things NOT coke cans than there are coke cans.

Re:Deep Forest: Towards an Alternative to Deep Neural Networks by modeless on Thursday March 02, 2017 @01:26PM (#13776718)
> But an NN can complete mess up when a new refrigerator is used, that wasn't part of the training set

Not if your training set is representative. And this is just as true of feature engineered approaches, the only difference is that dealing with real world variation requires a lot less work with NNs because once you add the variation to your dataset you're done. With feature engineering that's only the first step because now you have to figure out where the new variation is breaking your features and how to modify them to fix it.

Re:Deep Forest: Towards an Alternative to Deep Neural Networks by ska on Thursday March 02, 2017 @03:50PM (#13778062)
"Not if your training set is representative."

And herein lies a prominent failure mode of a huge amount of this sort of work that I've seen - hard to just "add the variation to your dataset" when your data set is one or more orders of magnitude too small to contain it. At that point all that remains is the handwaving.

The right response to insufficient data is usually simplifying the modeling.

Re:Deep Forest: Towards an Alternative to Deep Neural Networks by barbolo on Thursday March 02, 2017 @07:52AM (#13773652)
I agree with rkaplan. I've been working with many different visual problems and that comment is pretty consistent with what I've seen.
Re:Deep Forest: Towards an Alternative to Deep Neural Networks by cosminro on Thursday March 02, 2017 @02:21PM (#13777289)
No batch norm for LSTMs
Re:Deep Forest: Towards an Alternative to Deep Neural Networks by fnl on Friday March 03, 2017 @12:20PM (#13784371)
Totally agree, but RF's are more related to "CNN-ish problems" (image classification and...?), not RNNs, or generally, any graphical sequence model.

EDIT: to clarify: "j/k" with the thing in parenthesis ;-)

Re:Deep Forest: Towards an Alternative to Deep Neural Networks by gcr on Thursday March 02, 2017 @11:48AM (#13775563)
GAN training is still spooky mysterious and can easily fail in nonintuitive ways.

Sometimes GANs converge or not depending on the random number seed, even with the same hyperparameters.

Re:Deep Forest: Towards an Alternative to Deep Neural Networks by gwern on Thursday March 02, 2017 @01:11PM (#13776566)
I'm not sure about that. The new GAN models over the past 2-3 months, like LS-GAN or WGAN, all seem to train much more stably. I've beaten up on WGAN with all sorts of strange tweaks and hyperparameter settings and while it may not work well, it's never catastrophically diverged on me the way DCGAN would at the drop of a hat.
Re:Deep Forest: Towards an Alternative to Deep Neural Networks by AlexCoventry on Thursday March 02, 2017 @02:51PM (#13777577)
Have you found any good ways to speed it up? The five-fold training on the Critic is very expensive.
Re:Deep Forest: Towards an Alternative to Deep Neural Networks by gwern on Thursday March 02, 2017 @11:43PM (#13780791)
No, not yet. I suspect that increasing the discriminator-only learning rate might help but haven't tried.
Re:Deep Forest: Towards an Alternative to Deep Neural Networks by igul222 on Thursday March 02, 2017 @04:33PM (#13778441)
Try removing BN from the critic :)