r/MachineLearning • • Mar 11 '17

Discussion [D] Suggestion by Salesforce chief data scientist

Post image
637 Upvotes

95 comments sorted by

22

u/[deleted] Mar 11 '17

Link to tweet, with some people pointing out the obvious domain-specificity of this solution, among other things.

96

u/[deleted] Mar 11 '17

I read about amazon supposedly doing the same thing hiring an army of cheap labor to label their data so it can be used with supervised learning algorithms. I guess it gets the job done but seems like a hacky quick fix that I didn't think a big ai company would resort to.

26

u/[deleted] Mar 11 '17

I believe you're referring to Mechanical Turk.

38

u/onyxleopard Mar 11 '17

Plenty of ML researchers use crowdsourcing platforms to label datasets (for test sets, training sets, or as a benchmark), not just Amazon. And those who don't probably are sourcing datasets that were annotated via crowdsourcing or contracted domain-experts (Mechanical Turkers or their equivalents, grad students, undergrad students, hired consultants etc.). This is standard practice in academia and industry.

8

u/esquilax Mar 11 '17

Obviously they'd have to use some unsupervised classifier to label the data for them...

14

u/atomicthumbs Mar 11 '17

What's the pay like for unsupervised classifier positions?

10

u/esquilax Mar 11 '17

I do this for free. Just sit around and shout THIS IS BULLSHIT.

5

u/FR_STARMER Mar 11 '17

$2 per 1000 entries

3

u/shaggorama Mar 11 '17

It might not be sexy, but it can be extremely effective.

2

u/pattch Mar 11 '17

It's not hacky at all imo. If there was a way to auto label the data quickly they'd do it. Alternatively they can use humans who can label a substantial subset of the data and train a neural network to learn the things humans used to label the data

3

u/aldole_chirale Mar 11 '17

Your post is not very clear... If you're referring to mechanical turk, then it's a platform for users that is ran by Amazon. It's a service they sell to users, not something they use "to label their data".

Nothing hacky by the way.

2

u/FateOfNations Mar 11 '17

I imagine Amazon has used it/uses it themselves.

2

u/_buttfucker_ Mar 11 '17

Oh goodness, bless your heart

1

u/simonhughes22 Mar 13 '17

Yeah. We've worked with google in the past, and they spend a lot of money on paying large teams of people to annotate their web search results.

0

u/[deleted] Mar 11 '17

[deleted]

2

u/lahwran_ Mar 12 '17

clever joke

3

u/[deleted] Mar 11 '17

Not sure I follow you, so you think that manually labeling data is the way to go?

29

u/WormRabbit Mar 11 '17

You can label data manually within a week and get state of the art results. OR you can spend months and millions of dollars on an unsupervised approach that will give you arguable quality. The buisiness decision is obvious.

3

u/[deleted] Mar 11 '17

It really depends on the problem domain, but it's a common option.

0

u/[deleted] Mar 11 '17

[deleted]

65

u/onyxleopard Mar 11 '17

That's why you measure the annotations. A 'gold standard' that isn't backed up by an inter-annotator agreement (IAA) score isn't worth much. If you can't get high IAA then your classification problem is probably not well formulated to begin with (there are exceptions).

1

u/simonhughes22 Mar 13 '17

That's a very important point. We've ran into that issue ourselves a number of times. Business expects high accuracy when IAA is only at 90% agreement.

1

u/needlzor Professor Mar 13 '17

90% is pretty good. I have ran into datasets where you'd be lucky to break 70%, if only because of the subjectivity of it all.

3

u/onyxleopard Mar 13 '17

Yeah, I have overseen human annotation efforts for sentiment analysis in several natural languages and ~0.7 kappa/alpha seems to be the upper bound on IAA. And that’s for people sitting in a room together who discuss the guidelines with each other. When I’ve done this kind of thing on CrowdFlower it’s even worse: between ~0.4 and ~0.6. I’m convinced the 3-classes of positive/negative/neutral are insufficient for modeling sentiment, but this is the model that a lot of the literature has converged on, and the model that businesses seem to want classifiers to adhere to.

1

u/Boomerkuwanger Mar 12 '17

It is important to establish a supervised learning bar that you should try to beat with unsupervised learning. That is why many top tech companies do it.

0

u/[deleted] Mar 11 '17

[deleted]

0

u/[deleted] Mar 11 '17

[deleted]

8

u/onyxleopard Mar 11 '17

It's not needed for both, but sure is nice to have if you can get enough gold-standard data for training and holdout.

0

u/[deleted] Mar 11 '17

[deleted]

205

u/ModernShoe Mar 11 '17

If you need to solve a problem soon, then ya this is probably the best way to go. But if you are interested in scalability then we will need to improve unsupervised learning.

If labeled data is the future, all of the jobs that are taken away from AI might be replaced by labelling jobs. That'd make an interesting distopia

86

u/RegularDisorder Mar 11 '17

Good Lord, that's a depressing thought.

28

u/PM_ME_UR_OBSIDIAN Mar 12 '17

See also: Amazon's Mechanical Turk.

18

u/Deeviant Mar 12 '17 edited Mar 12 '17

Yes, I designed and implemented a Mechanical turk pipeline for my company. It takes a bit more work (mainly due to quality issues) than you'd think but now we label tens of thousands of images a day with extremely high quality results at a cost we can afford.

9

u/bulletninja Mar 12 '17

I'd like to know how to address the quality issue 🤔

15

u/Deeviant Mar 12 '17 edited Mar 12 '17

I can't get too much into details but I can say a few general things about working with mturk.

  • Remember that it's real people on the other side, be respectful and attentive to their requirements. Setup lines of communication that they can ask questions and you can give guidance. Many of your best workers are asking themselves "should I label it this way or that" communication just flat out solves this. Also, I went to the mturk subreddit and did research, wanted to understand what their requirements were. I played the part for a day and did nothing but turk jobs for 8 hours to get a feel for what works and what sucks. In the end, it comes down to money per unit time so you need to understand what a decent rate is to pay for a particular job or you will simply not find quality workers. Also, there is a site called turkopticon that you can look up worker feedback regarding your HITS, a great place to check if you are hitting the sweet spot or pissing people off.

  • Design your HIT code to be dynamic, so you can push not only the information you want them to annotate but also answers to any recent asked questions, common mistakes, important notes, etc. These pop on on the fly so its very helpful to be able to inject more guidance into you HITS in real time.

  • Look for prepossessing steps that can reduce the load on the workers. We do DNN based computer vision and leveraged some other preprocessing code from our vision pipeline to streamline the task given to the worker.

  • Fire the worst workers (blacklist), promote the best workers (whitelist, higher paying HITS). On this note, turk is setup to have more than one person do each job already. Setup a pipeline to compare results and identify likely "superstars" and also people that not even trying, we were able to completely automate our promotion mechanism using this approach.

5

u/ma2rten Mar 13 '17 edited Mar 13 '17

Those are good points. Here are some things I learned:

  • Turkers will talk about your HITS on various forums. If they give you good reviews, meaning you payed well, reviewed quickly and fairly (i.e. didn't reject them) more people will do you HITS. Google the name of your HITS or your requester name to find out what they say about you.

  • For this reason, review HITS as quickly as possible. This is almost as important for them as how you pay.

  • Be careful before you blacklist Turkers. If they get blacklisted too often they can be banned from mturk. This can destroy their living. When in doubt it's better to only reject their HITS.

  • The default is to use only Masters (or whatever it's called). These are workers who are selected according to some intransparent criteria. Disable that and set your own criteria (e.g. 95% accepted, at least 1000 HITS). The quality is just as good and it allows you to set lower prices.

  • Let each job be done by 3-5 workers. Manually review jobs where workers disagreed and try to improve the instructions. When you have a new type of HIT, test the waters with a few HITS.

  • Make sure that the correct answer for your HITS is as objective as possible. Turkers don't like ambiguity, since it could get them rejected. If they get too many rejections, they will not be able to find any work. It also make it more difficult to compare their answers and introduces label noice to your ML system.

6

u/[deleted] Mar 12 '17

Voting systems are good, also adding a very simple task before the real work. That way if anyone fails that task you just discard that work.

1

u/simonhughes22 Mar 13 '17

And Crowdflower. Disclaimer - I don't work for either.

3

u/narmio Mar 13 '17

Thank you for sentiment-labelling this datapoint. 0.007 merits have been credited to your account.

0

u/[deleted] Mar 11 '17

[deleted]

-5

u/Cranyx Mar 12 '17

I'd hardly call data labeling manual labor.

14

u/AndreDaGiant Mar 12 '17

oh yeah? Well, I have these captchas I'd be delighted if you'll take care of. Since you'll find them satisfying, and since it isn't manual labour, I guess you can put them in your portfolio so I won't have to pay you

3

u/[deleted] Mar 12 '17

The matrix but labeling cat pictures

170

u/khafra Mar 11 '17

But you don't get to feel like a god, creating ontologies from pure aether, that way.

1

u/TheNASAguy Mar 12 '17

I want to be a God, Goddammit.....

6

u/MrNaaH Mar 11 '17

Have fun

6

u/gnu-user Mar 12 '17

I've actually done this myself, hire someone from freelancer, label your data and train a classifier. I think of it as using a very deep wetware neural net to then teach a simpler neutral net.

4

u/Megatron_McLargeHuge Mar 11 '17

This is how we used to do it and I'm not sure why people are so averse to the idea because it's often cheaper. Also if people are currently getting paid to do a task you want to automate, you can use a hybrid system where the model cherry picks the easy problems and routes the hard ones to the humans until you have enough data for a better model.

9

u/alexmlamb Mar 11 '17

Does anyone else think that the distinction between unsupervised and supervised Machine Learning is fundamentally meaningless?

I mean, it's practically useful for applications, but the idea that some types of data are "raw" and some types of data are "labels" has no solid foundation.

5

u/thatguydr Mar 12 '17

I'd go further and say that all of the talk of "solving" unsupervised learning is pointless, because all UL is is bootstrapping for a supervised solution. Sure, we can potentially speed it up for "natural" examples, whatever those are, but then NFL comes into play.

Whenever someone asks me if they can start some unsupervised analysis, I ask them to frame the outcome in terms of (business) metrics. As soon as that happens, magically the unsupervised research becomes the midway point of an algorithm to maximize those metrics. Nobody likes spending time on a halfway point, so even the most theory-oriented data scientists don't like to waste time on the unsupervised parts.

5

u/[deleted] Mar 13 '17 edited Mar 13 '17

Lies. Vector quantisation.

The No Free Lunch Theorem is based on the idea that all data is equally likely. A theorem based on white noise. It's useless. Data is smooth or it is rejected as noise.

3

u/khjdhsfjkshdfjkds Mar 13 '17

Your comments reads off a bit like "Solving unsupervised learning is pointless because, for my particular use case, I have no particular use for unsupervised (or semi-supervised) learning", which is a bit tautological.

(As someone pointed out on Twitter...) Imagine you work in a field where gathering the "label" is not simply a question of putting a person in front of a computer clicking on things, but it's actually a very costly endeavour (where you have to pay hundreds of thousands of dollars per annotation)... in such a case, it seems that you do have something to gain by reducing the reliance on labeled data.

A straightforward examples include biomedical or structural biochemistry research (e.g. predict structure of proteins from their sequence).

There's a reason why stuff like PCA and k-means clustering are widely used machine learning tools, even though they are clearly "unsupervised learning". Sometimes, it's not even clear that there is any particular metric (business or otherwise) that you might want to optimize, other than... "I want to better understand the structure of this dataset".

2

u/thatguydr Mar 13 '17

My job for nearly eight years was exactly to attempt to collect labels for things that were ridiculously expensive to label. I worked in defense, not bio, but it was the same process. And in hindsight, we were doing absolutely everything wrong.

If you don't have a metric to be optimized, you aren't actually doing anything. Your understanding of the structure is only useful if those insights can be used to connect the dots between your data and underlying processes.... which you are attempting to understand so you can optimize them.

So you do have a metric to be optimized, and your problem is to figure out how to use your data to optimize that metric. The unsupervised step, "I want to better understand," is just an intermediate step.

1

u/khjdhsfjkshdfjkds Mar 13 '17

Ok, so imagine the problem I want to solve is simply "probability density estimation" (over some very high-dimensional space). What are the labels here? Would you say this approach is useless? If yes, why?

The way I see it, not all problems can be solved using a supervised learning approach and, to be honest, your argument hasn't really convinced me otherwise so far.

The way I interpret your argument, there would be no reason for anyone to choose e.g. a naive Bayes approach over a logistic regression.

2

u/thatguydr Mar 13 '17

What will you be doing with the PDF? I get them all the time, but they aren't something that I end up using without a goal in mind. What's the goal?

1

u/khjdhsfjkshdfjkds Mar 13 '17

Hmm.. let's say I want to be able to sample from that PDF, for example.

2

u/thatguydr Mar 13 '17

Then you're taking the original data, doing something to transform, sampling and then doing something with those samples. That something at the end can be assessed with metrics. That's what you're optimizing. Now just backtrack the errors and figure out how best to perform the middle.

2

u/khjdhsfjkshdfjkds Mar 14 '17

Sure. I just fail to see how that necessarily constitutes "supervised learning", unless you consider training an autoencoder (of any type) or vector quantization process as "supervised learning".

Having an error metric, in itself, doesn't constitute "supervised learning"... it's only supervised if you have to provide that error information yourself (through "annotated labels").

1

u/thatguydr Mar 14 '17

You absolutely, in the end, have some business metric to optimize. To assess that metric, you or someone else will have labeled at least one example, so your analysis will be at worse semi-supervised. There are no unsupervised analyses that have, as their conclusion, "But we didn't have truth and just assume that what we did was okay."

→ More replies (0)

2

u/OutOfApplesauce Mar 12 '17

the idea that some types of data are "raw" and some types of data are "labels" has no solid foundation.

What do you mean by that? I could see it if you meant that feature extraction has gotten good enough that unlabeled becomes labeled rather easily, but that's only a very very very small subset of problems.

2

u/Nimitz14 Mar 12 '17

I cannot detect whether you are trolling or not.

2

u/lahwran_ Mar 12 '17

I don't think it's meaningless. it seems interesting to talk about where your targets came from and whether the function you're trying to find is primarily "copy and paste human brain" vs "copy and paste all of physics".

1

u/khjdhsfjkshdfjkds Mar 13 '17

And, yet, people clearly know the difference between "raw data" and "labels".

"raw data" -> something you directly measure and that requires no inference or annotation to "have"

"label"/"metadata" -> something you cannot directly measure and that requires inference or annotation to "have"

The confusion might be because people call "supervised learning" to both "inference of metadata from raw data" and "inference of (expensive to collect) raw data from other (cheap to collect) raw data", but these two things are not the same.

Or would you say that "degree of dogness/being a dog" is something you can directly and objectivey measure somehow, without any inference step?

5

u/cjmcmurtrie Mar 11 '17 edited Mar 13 '17

This is an acceptable suggestion for a corporate product solution (if your costs add up, whatever works!), but not much to gain from a research point of view.

Also:

  1. Supervised classification (i.e. scalar output prediction) is only a subset of learning problems.

  2. Most 'unsupervised' datasets are implicitly 'labelled', they just don't have the dimensionality of (x, y, z, ...) -> integer and no effort has been made to denoise. For instance image -> caption problems, image --> reconstruction, sequence --> sequence...

2

u/farsass Mar 12 '17

Ofc this only applies when you have to deal with unsupervised learning due to lack of labeled data.

2

u/o-rka Mar 11 '17

Any suggestions on unsupervised clustering algos? I'm looking for some bayesian methods that are production ready. I wrote one with PyMC3 but it takes too long to run.

2

u/radarsat1 Mar 12 '17

GMM/EM or DBScan.

1

u/o-rka Mar 13 '17

Gaussian mixture models, DBSCAN, and what's the EM one?

1

u/[deleted] Mar 13 '17

Probably expectation maximization.

1

u/o-rka Mar 13 '17

That's what I was thinking but that's not a clustering algo. I think you're right tho he probably meant GMM w/ EM.

1

u/radarsat1 Mar 13 '17

Yep, that's the algo for optimising GMM

1

u/darkconfidantislife Mar 11 '17

I think that this is a pretty common strategy for "day to day" production tasks. You usually want to play it safe, however, for more "moon shot" projects and research, it may be worth exploring an unsupervised technique.

1

u/dreadpiratewombat Mar 12 '17

I wonder if it was this kind of thinking that led them to team up with IBM? Seems like the kind of solution they'd propose.

1

u/simonhughes22 Mar 13 '17

Or better still, use Active Learning and Semi-Supervised learning techniques to get the best of both worlds, and minimize the labelling burden \ cost.

1

u/tttthomasssss Mar 12 '17

You can only say that lightly if you have never spent a week labelling data

0

u/SaintAgust Mar 12 '17

Sorry for my ignorance, but What does it mean "labeled data"?

2

u/[deleted] Mar 12 '17

It means that you know what the output should be for your training data.

-1

u/pboswell Mar 12 '17

Duh. This is an overarching rule. If automating a process takes more than 2.5x more times than manually doing it, don't automate it.

3

u/jhaluska Mar 12 '17

Where does the 2.5x come from?

1

u/pboswell Mar 13 '17

Just the industry rule of thumb. I don't make the rules.

0

u/[deleted] Mar 11 '17

[deleted]

9

u/[deleted] Mar 12 '17

You're describing weakly supervised learning, and it can be very problematic depending on the use case.

13

u/erccarls Mar 12 '17

Probably not a great idea. You would be amplifying what the classifier thinks is high confidence, and eventually would over fit to some artificial signals. Better to just use semisupervised methods here.

1

u/chogall Mar 14 '17

Without labeling you wouldn't even know if you are stratifying the samples well enough to represent the population...

0

u/[deleted] Mar 11 '17

[deleted]

47

u/demarius12 Mar 11 '17 edited Mar 11 '17

Imagine you have a dataset of 100,000 pieces of fruit and are trying to determine what type of fruit each one is. You can use an unsupervised method (like clustering) that separates the different pieces of fruit into groups. Then you can just label the group. The problem with that is that you are never sure how many groups there should be (should apples and pears be in the same group?) and it still doesn't solve the problem of having to manually label each group.

The alternative is you could just manually label the first 10,000 pieces of fruit and then run a supervised learning method (like a random forest) to determine the rest.

The tweet suggests that the second method is easier and saves time. While this is sometimes true, like everything in DS, it really boils down to the business problem you are trying to solve...

5

u/[deleted] Mar 11 '17

like everything in DS, it really boils down to the business problem you are trying to solve...

21

u/milkeater Mar 11 '17

Not sure the correction is warranted.

Everything is driven by business value....even academia is a business.

7

u/gamersource Mar 12 '17

I can do this just for fun.

It just depends on the problem (wherein the business needs and resources may be included).

So the correction is justified, IMHO.

1

u/zimocracy Mar 12 '17

THIS. THIS, HAS BEEN MY HELL!

16

u/stay_janley Mar 11 '17

unsupervised machine learning infers the state/label/classifier/structure of the data from the data itself. usually quite a bit more complex, might use a neural network for example.

if you have a subset of labeled data you can use a classification algorithm. these may not be as complex as unsupervised learning and are ready off-the-shelf typically. you use the labeled data as "training data" that the algorithm learns the structure of and what the corresponding desired output is. then, you have a trained classifier capable of making statistically significant prediction based on that training dataset.

the suggestion is to use less net man-hours by labelling data and training a classifier rather than developing an unsupervised classifier

20

u/FR_STARMER Mar 11 '17

You generally aren't using a neural net for unsupervised learning. You're usually using clustering to find patterns which you can then use as 'labels' in a neural net. The point being, instead of finding the 'differences' or patterns, just label the damn thing yourself. The reason why some people do unsupervised machine learning is because they don't want to label it themselves. However, not all of the times you can 'just label it.'

8

u/Im_thatguy Mar 12 '17

Autoencoders and GANs and their variations are unsupervised neural nets.

3

u/moochopsuk Mar 11 '17

Interesting, I'm watching a lot more ml topics these days with no time to do much practical.

What should i be looking at if i want to solve a problem like below?

In..............Out

100001 = 1234

100002 = 7589

100003 = ????

5

u/[deleted] Mar 11 '17

Virtually any classifier can give you this http://scikit-learn.org/stable/supervised_learning.html - I would try GuassianNB first just because it's very simple.

8

u/l3rooklyn Mar 11 '17

So you wanna categorize some data. Unsupervised learning algorithms suggest ways to categorize data instead of being given categories of data. Sounds cool and fun to work on, right? Unsupervised learning also has some advantages because you can't always have human supervision because of various factors including scale.

What's significant is that Salesforce, a pretty big company, still finds human labeling more efficient than trying to figure an unsupervised solution. That's a signal that unsupervised techniques may be less useful (at least right now) than many people think.

2

u/LimBomber Mar 11 '17

In supervised learning you have labeled training data to train a classifier and usually training a svm is good enough for classifying. When people dont have labelled training data to go from they have to resort to unsupervised learning which takes longer to train and get right. So he is saying instead of working on a unsupervised learning problem sit down and label data for a week. This way you have enough data to train a svm.