490 points · by zwieback · 8y ago · 276 comments
Artificial intelligence faces reproducibility crisis http://science.sciencemag.org/content/359/6377/725
Reproducibility in Machine Learning-Based Studies: An Example of Text Mining https://openreview.net/pdf?id=By4l2PbQ-
Missing data hinder replication of artificial intelligence studies http://www.sciencemag.org/news/2018/02/missing-data-hinder-r...
>In a survey of 400 artificial intelligence papers presented at major conferences, just 6% included code for the papers' algorithms. Some 30% included test data, whereas 54% included pseudocode, a limited summary of an algorithm.
This is completely ridiculous.
In pure mathematics, everything you need is right there in the paper. If instead you're in the physical sciences, you obviously can't include your lab in the paper. For software, it's perfectly possible to include the lab in the paper, so to speak, and there's no excuse for depriving the rest of us of access.
Not interested in releasing the source? Ok, just don't brand your project as 'computer science'.
Including full source-code (and ideally data-sets, unless there's good reason this can't be done) should be a basic requirement for serious publications. It's disappointing that this isn't (yet?) the norm.
</rant>
Pseudocode is just another description of the approach the authors took. It doesn't allow another researcher to carefully recreate the exact experiment that the authors ran.
Software is famously hard to get right. This can be exacerbated by certain research problems where you don't know the result to expect (modelling, say). If you're going to publish results, the source you used should be available for inspection, for similar reasons to why mathematicians have to publish the proof, not just the conclusion plus a promise.
The upsides here are many: protecting science against software bugs, easier replication of experiments, better protection against academic fraud, and helping other researchers extend the work.
(I realise this last point may be at odds with toxic academic careerism. All the more reason for the publication process to insist on it.)
You'd think this would make them more interested in replication, since otherwise the likelihood that they are actually doing something of value is uncertain.
Science and research is full of all kinds of false starts, you don't increase your speed by blinding yourself.
Falsification is the very definition of science.
My impressions of machine learning match up with yours. There's just so many parameters that there's so many opportunities to capitalize on chance, combined with [necessarily] huge datasets that preclude replication, that it's hard to avoid. I have also been surprised at how much tweaking there is of parameters; I'm used to work in traditional statistics where more is derived from theoretical principles, as opposed to trying a bunch of values to see what "works." This all lends itself to overfitting. I strongly believe that a lot of the adversarial input work is basically capitalizing on this overfitting.
To be fair, I don't think people are necessarily being nefarious, I think people across all fields just don't appreciate the dangers of overfitting.
The one upside of this Many Labs work, mentioned in the paper, is that it tends to show that the common criticism of "how can you generalize from this sample of undergrads" is not so much of a problem. Not that it's not an issue at all, but if you're studying some basic cognitive process it's probably not going to matter that much if you use undergrads versus some perfectly representative sample of the population. People have shown this in different ways before but it's useful to know more about. Obviously with some things sociogeographic variation will matter more though.
One thing that might not be totally obvious from this article and others is that although some effects clearly replicate, and others do not, there are some effects that seem to be in a grey area, where the effects are probably real but much smaller than originally reported. The distribution of effect size estimate distributions is more continuous, with shades of grey, than these news reports would have you think. Whether or not it matters that an effect is tiny versus zero might not practically matter, but at some level it is important to be mindful of.
The two prior replication studies that I know of - the first was several years ago and raised the issue in the public mind afaik, then second maybe in the last year - both replicated almost all of the effects. The problems were that some effects were weaker than in the original studies. Are you saying that this most recent attempt at replication shows a large number of studies with no significant effects at all?
One of the foundational problems with the soft/social sciences is that many of its practitioners have such weak analytical thinking skills (Note below) and the educational requirements for Psychology majors typically just include a few semesters of statistics courses designed to be understandable for them.
Peer reviewers in Psychology generally don't expect authors to go much beyond the basic statistical tricks students are taught in undergrad. From prior discussions with professors in these fields, it's my impression that most are unable to understand just how flimsy such methods are.
Personally, my prediction is that this won't get better until we have more AI-guided analytical analysis software packages that make more robust analysis accessible to those in soft-science fields. This is, something to replace reliance on stuff like R^2 and p- values.
---
Note: Just to provide some numerical evidence for the assertion that Psychology practitioners tend to be weak with their analytical skills, here's [a PDF of GRE scores](https://www.ets.org/s/gre/pdf/gre_guide_table4.pdf). GRE test-takers planning to study "Psychology" had quantitative reasoning (QR) mean of 149. This is pretty bottom-of-the-barrel; even people planning to go for grad school to do "Arts - Performance & Studio" did a little better, with an average of 151.
There's probably different causes at different times. Some of these effects that are the target of replication tests are relatively older, when people were less aware of some of this phenomena. To be fair, some of this stuff is unintuitive: for example, some of the major journals would require internal replications, over several samples, the rationale being that if someone shows an effect in 5 samples with slightly different designs, it's probably "real." It's not like some of these things were just based on single samples (although some of them certainly were). Of course, now people are aware that 5 small samples does not large-sample replication make.
My intuition is that another cause is that academics is flooded with researchers collecting a lot of data, under a lot of pressure to produce positive findings to attract money. Hype, TEDtalks, grants, hypercompetition, and so forth. Academics now is horribly incentivized to be popular and bring in money (from peers, it's important to note), rather than to be correct. Add in a complex subject, like human behavior, and it's a recipe for disaster. Academics is also full of conventions, that attain the strength of power structures; when these are baked in it's hard to change them because you have people who attained power under those conventions in charge (nothing conspiratorial really, just people have their biases and blindspots).
I'm not sure peer review can change a field's direction. Say the top journal in a field used to publish the top 10% of papers. If only 1% of papers meet some higher standard, then if the journal chose to enforce this, they would essentially cease to exist.
And the people who would otherwise have got hired/promoted/tenured based on publications there, will now win these tournaments based on their publications in the second-best journal. Their contests are with others in the same field.
I guess the more hopeful scenario is that, besides the 1 of 10 top papers that are actually solid, there are (somewhere) 9 other solid papers with less-flashy results -- presumably carefully proving things that everyone thinks, not counter-intuitive things which get you a TED talk. Here it's more complicated, as if the journal chose to publish these instead, it seems to me that hiring/promotion/tenure committees may simply start to view it as a less-prestigious venue.
I think the situation is pretty analogous to other area with replication crises like psychology and nutrition: local variables dominate. Just like our own body’s there’s a lot that just depends on the domain or the specifics of the problem being solved...
This has been my experience in a related field (information retrieval). There are trends and best practices, but the market and Impossible to recplicate overhyped academic research reinforce each other.
I intentionally make it easy to pick up, modify and inspect. The benefit to me is precisely being alerted if it isn't replicable.
Whereas it is true that both are inspired by neural activation and that both can produce a complex, yet coherent mapping from input to output, this is like saying that birds and aircraft are similar because both fly and have wings.
If one doesn't have your training dataset or your code, how could they possibly replicate your results?
Providing the code to replicate is good form. It shows good faith and confidence. Exact replication (exactly replicating the study) is just the starting point to check that the code works and no obvious mistakes were made.
replication / reproducibility / hyperparameter sensitivity
If the research yields something really important and the method is well documented, usually it can be easily checked without having the data and the code. Things like dropout, batch normalization, residual learning, .. work over multiple different datasets and hyperparameters. You can reproduce the results without faithfully replicating the experiment.
If the claimed result vanishes unless you have the exact data, code or the hyperparameters, the research can't be said to be meaningfully reproducible in the scientific sense. Hyperparameter sensitivity is ML equivalent to P-Hacking.
Numerical code is already bug prone due to subtle and hard to test errors, research code that's not code reviewed or necessarily even tested for correctness can easily generate important results erroneously.
It's also counter-productive not to publish the underlying source code for these papers, as it adds a barrier to other researchers applying the algorithm in new situations. I'd be interested in seeing if those 6% of papers which include the code get more citations than the population of papers which do not include code.
Or, more succinctly, code & data are left as an exercise for the reader
Having more researchers avaliable to audit code seems like it would help prevent flaws from slipping through, too, to prevent false conclusions.
Thank you for explaining a bit more.
That is, I agree with you that the code and the data should, ideally, be available. I lose confidence when people just rerun the same code on the same data. The slides a while back about why someone didn't like notebooks resonates well with me. Something like "Shift enter through the lesson. Is this learning?"
If a study uses a private data set, or one that the researcher controls and only gives out to approved partners, that study should be discounted.
I understand corporate labs cannot give away their data in many cases, but corporate research carries less authority than academic research anyways. Academic research should always make the data set publicly available.
Blog post are nice for reaching outside of the research community.
Code should always be linked for people that want to reproduce, but they don't replace a paper.
I don't see why this would take any more time than properly studying a paper, in fact it should be quicker since the information is presented in the proper format (not translated from code to math/prose).
Elsevier is by far the worst publisher regarding open access though: https://twitter.com/protohedgehog/status/1028819653982736389...
reproducible: independently achieving the same result using existing data;
replicable: independently achieving the same result using new data.)
Others have also been worried about replication problems from the 1960's on. Hopefully some of this worry sticks this time and we can get a better understanding of what is really true in these fields. Physics likes to have very well defined uncertainties on everything they observe and don't like to say something is "true" unless the fact is likely at 5 to 7 sigma. That seems like a good margin. In psychology, 2 sigma is the standard for publishing a result.
In physics you can get away with not caring about the distinction, because of how accurate the measurements and precise the theories are. That doesn't fly in most other sciences, though.
As an undergrad, I even had tenured professors try to tell me that a p-value is the chance that a result is wrong. Most researchers in psych or bio sciences have a weak understanding of statistics, usually taking a single statistics class in undergrad, then a single one in grad.
My wife is a biochemist, and during her PhD they were working on an area of research with a handful of labs publishing about it. One lab in particular was known for a decent amount of questionable publications, but the PI was a big deal and no one would officially question anything. So they would whisper amongst each other and just ignore that paper (and all the additional papers built on top of it) because they all knew it was bullshit.
Brouwer's career suffered as a consequence of his disagreements with Hilbert.
EDIT (with links to the political aspect): Letters written more about the politics of publishing than the math itself are referenced in a book called "The War of the Frogs and the Mice" (PDF) http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.224... (see bottom of pg 9 as displayed for the letter Brouwer wrote to Hilbert's wife)
It doesn't read like the political fights were about math. Although Hilbert disagreed with Brouwer, it sounds like the falling out was precipitated by arguing over something subjective.
“A new scientific truth does not triumph by convincing its opponents and making them see the light, but rather because its opponents eventually die, and a new generation grows up that is familiar with it.”
Or more succinctly, science advances one funeral at a time.
As a counterpoint, it seems that minsky and papert's work was partly driven from their desire to stop the funding of larger perceptrons , in which they did not believe. The winter that followed their work may or may not have delayed progress in AI by years or decades.
Sure, mistakes happen, my own PhD contained a major blunder (discovered several years after submission -- at least somebody read it ...), but I'm extremely open about it.
I think that the hard sciences aren't necessarily so dependent on papers derived from isolated results, or even replication of those results, because there is more of a "web" of knowledge. An idea is hopefully supported by an experiment, but possibly also by theory and multiple different kinds of experiments, sufficient to be usable by non-experts and laypeople. For instance the basic theory of electromagnetism is good enough for virtually any kind of engineering, and it would take some monumental discovery to prove it false, even if a portion of the supporting work fails upon replication.
Another thing is, perhaps because of the precision of physics, we get proven wrong every day, and it ceases to be an embarrassment. The road is littered with the wreckage of failed theories and experiments.
So what was it?
what your wife is describing is what is commonly called "progress one death at a time"
"We have learned a lot from experience about how to handle some of the ways we fool ourselves. One example: Millikan measured the charge on an electron by an experiment with falling oil drops, and got an answer which we now know not to be quite right. It's a little bit off because he had the incorrect value for the viscosity of air. It's interesting to look at the history of measurements of the charge of an electron, after Millikan. If you plot them as a function of time, you find that one is a little bit bigger than Millikan's, and the next one's a little bit bigger than that, and the next one's a little bit bigger than that, until finally they settle down to a number which is higher.
Why didn't they discover the new number was higher right away? It's a thing that scientists are ashamed of—this history—because it's apparent that people did things like this: When they got a number that was too high above Millikan's, they thought something must be wrong—and they would look for and find a reason why something might be wrong. When they got a number close to Millikan's value they didn't look so hard. And so they eliminated the numbers that were too far off, and did other things like that."
I adore Feynman's work, but he was human and had human failings, too.
the dead ringer for these groups is a PI who has a reputation for taking on extremely ambitious projects with all sorts of funding sources. typically, the PI is vindictive and controlling in my experience.
but yeah. you can see them from a mile away. they tend to run sweatshop-style labs where everyone is very hard pressed for results. so "results" are produced, whether or not they are real.
Here is the biggest funder of biomedical research in the world admitting that $27 billion out of $30 billion per year is wasted on unreproducible research: https://nihrecord.nih.gov/newsletters/2016/07_01_2016/story3...
And I would say that is optimistic because it does not consider misinterpreted results (interpreting your data correctly is even harder than figuring out how to perform and report reproducible experiments)...
All my work got rejected (everything was being accepted before, and the rejected batch was a full level higher quality). So yes, it did set back my career for two and a half years if I have to approximate. I am probably never submitting to certain publications ever again to avoid having them as reviewers. I am gradually moving away from their field entirely. I was so short on publication then that I couldnt even move away to nearby fields, having accomplished vengeful rejections in my field. These days I wish I had done a second PhD in a different field, just to get away from them! I'd have had a much easier career path.
This is by no means an exaggeration, I am actually downplaying what happened.
Most papers reported an improved performance over some other methods in very specific data sets, but source code was almost always not provided. Once, I dug so deeply into a very highly cited paper that I understood not only that the results were faked, but precisely the tricks that were used to fake them.
I believe scientific fraud arises primarily from two causes:
- Publish or perish. Everyone's desperate to publish. Some Principal Investigators have a new paper roughly every other week!
- Careerism. For some highly ambitious people, publishing papers comes before everything else, even if that means committing fraud. This happens even with highly successful researchers, who have the occasional brilliant, highly cited paper, but who also publish a lot of incremental, dubious work.
P.S. Mildly off-topic, but I love the Ethereum research community at https://ethresear.ch/ , precisely because it is so open and transparent! I wish an equivalent community existed for machine learning.
I'm super curious about this. I had a similar experience in another field.
Is this something you witnessed going down in person, or did you just develop a strong feeling given a lot of clues?
The latter.
Check out
We're raising funds for Professor Chris Chambers at Cardiff University. Chambers is a leading proponent of a new and better way of doing and publishing research, called ‘Registered Reports’, where scientific papers are peer-reviewed before the results are known.
This might:
-make science more theory-driven, open and transparent
-find methodological weaknesses prior to publication
-get more papers published that fail to confirm the original hypothesis
-increase the credibility of non-randomized natural experiments using observational data
The funds will free up his time to focus on accelerating the widespread adoption of Registered Reports by leading scientific journals.
This ‘meta-research’ project might be exceptionally high-impact because we can cause a paradigm shift in scientific culture, where Registered Reports become the gold standard for hypothesis-driven science.
We have a pseudoscience crisis.
And as others pointed out, it is not limited to psychology.
If you p-hacked your way into a statistically significant result, it is not science.
You don't have to be Einstein. Even Einstein wasn't Einstein most of the time. But the results you do get must be reproducible.
Most of the "statistical" justifications stem from assuming distributions are normal and samples are uniformly collected (both false).
This is why I trust the works of clinical psychologists like Jung and Freud so much more seriously than the current approaches.
It just makes a lot more sense to observe something complex descriptively, rather than start with a yes/no hypothesis and then test it with a few dozen people.
The issue was sloppy science, not a poor approach.
The results they found were that the studies that could not be successfully reproduced generally failed across all tested cultures, while the ones that could be successfully reproduced generally worked across all tested cultures. So it seems that there are some results in statistical psychology that are robust, but that researchers have not been sufficiently reliable at identifying which results those are.
Also just because there are some problems in the field should not cause you to dismiss science completely in favor of completely subjective speculating about how the mind works, which certainly also has value, but I don't think it's warranted to dismiss actual science in favor of it.
Furthermore, even if you get a high p-value ... your experimental design can introduce so much noise.
Even when you do find these high p-value correlations -- they don't really ever say much about "why" ... because they can't. So much of that is the study design.
Let's say I make a study on how well people navigate a maze under the influence of alcohol vs. not. You can probably get a high p-value that they do worse while under the influence of alcohol... but it reveals very little about why.
So much of that is dependent on the particular maze. In fact I bet I could design a maze specifically to prove whatever conclusion I wanted. That is the whole problem in psychology. There is very little focus given to actually characterizing cognition in any meaningful way.
I like the clinical psychologists because they attempt to do exactly that, even though they have less "scientific" findings.
Freud believed all sorts of obviously wrong ideas, so the idea that he was somehow immune to this seems a bit odd: https://en.wikipedia.org/wiki/Emma_Eckstein#Surgery
Sure, we tend to want to eat once we're hungry but when we go just a stop above hunger, meaning the desire or non-desire for sexual reproduction, then things get really, really complicated really, really fast. For example just the other day I was reading about a 92-year old guy who was choosing daily sex over him allowing his body to get physically better, while on the other hand we've got asexual 20-year olds from places like Japan who don't really think about sex at all. There's no way for a lab-made psychology experiment to make sense of our libido (or lack of).
Isn't that the definition of a failure to replicate?
"We've tested the theory that 'swans are white', and it turns out the swans in our test were all black". (The conclusion isn't that swans aren't white, it's that some swans are, while others are black.)
(add.: the article mentions the 'WEIRD' category. Obviously the applicability/set range of a theory matters. If it only holds for "people who, between 2 and 5 pm on Sunday are walking around in Reading with a bowler hat.". Well, that's nice, but not very useful.)
If you are getting your "science" from newspaper articles, then it's not actually science. You're getting some over-worked, underpaid journalist's attempt at getting a catchy article.
It's like alchemy - they noticed some patterns and have some success exploiting them, but the abstractions and explanations they provide are mostly bullshit, so the predictive power is basically 0.
You can say it's not science but most "scientists" are just normal people with everyday priorities, rather than Einstein-like people who go on doing science work while working as patent clerks.
Where a study failed in one it mostly failed everywhere, and where it worked it mostly worked in all the experiments.
So, yes, priming someone with the number 32 won't get them to bet it in the casino, but it does mean that social science can be experimental - you can build and run lab scale social science - a positive !
In the short term though this seems extremely negative as it indicates that the psychology field and researchers we have today are producing substandard results. Two parts of this article increase my negative feelings. First, they mention that these 28 studies were selected because they were well known and influential. If well known and influential studies only have a 50% reproducibility rate - what about the average study?
Another point I find very troubling is that people betting online were able to predict, with high accuracy, which studies were accurate and which weren't. This tells me that the problem is an "Emperor's New Clothes" type of problem and not just a challenge with the fundamental difficulty of the subject since the subject is so yielding to the public's intuition. Instead of a problem with the fundamental difficulty, the problem seems to be with the psychology of the researchers - being unable to diagnose and prevent methodological flaws in their research. This class of failure is much less excusable to me.
Actually, they might be better off. In the related article* they mention: "Beyond statistical issues, it strikes me that several of the studies that didn’t replicate have another quality in common: newsworthiness."
It could be that many well known works are well known because their finding are counterintuitive, and therefore more interesting. However, this could also imply that the prior probability is lower - hence a p = 0.05 result is more likely to be due to chance than for a study finding something more in line with prior understanding of things.
* https://www.theatlantic.com/science/archive/2018/08/scientis...
That doesn't take away from your point, but the problem here may be more refined than "the public" vs "psychologists". It may be more like "some psychologists" vs "journal editors and other psychologists".
The depressing part about this quiz is how easy it is. You just have to think for a moment if what they are describing matches what you know about human nature. Some statements just feel very intuitive and likely, and those replicate. Other statements seem quite wild and abstract, and those don't replicate.
I haven't seen a list of the 28 papers they looked at here, but I'd bet it is similar. Some of the findings are incredible (and not reproducible) while others are intuitive and reproducible. I'd encourage you to take the quiz below and see if you feel the same way about the results as I do.
Psychology Replication Quiz - https://80000hours.org/psychology-replication-quiz/
We are all more aware of conmen movies, of fake news, or have read popsci books and now know what to look out for.
A number of these experiments did replicate, and have such a huge set in multiple regions/culture is really really important.
Say this: in 120 years some of those experiments in the positive replicated set failed. It won't be as easy to just contribute that to sloppy findings. It could me the culture of human beings has changed, as well as our underlying psychological tendencies. If it was just two or three studies, you could dismiss them and say they might have been wrong, but with this data set, you could say with higher confidence that it's more likely something about our society has changed.
I suspect, the authors of the article are a bit too generous to call the original work 'sloppy'. And that the alternative would be: no experiments with conclusions' -- and that's, in their view, is worse.
I disagree with that, I think 'being lied to', is worse than to 'not being told'.
What if the original work was purposely fake just get a grant from some group (political or commercial)?
If that's the case, than the field of psychology is a composed of big number of 'full-stack con-artists'.
I am saddened but not surprised by psychology's replication crisis. But really it applies to all of academia, psychology is only in the spotlight because some of branches have less than stellar methodology in the first place. Social psychology gets criticized a lot, partly because it's one of the only branches rigorous enough to even be tested!
Obviously I'm not in favour of this. But it's a very big machine that needs fixing, and I don't think it starts with tweaking the details; drastic changes are required if we are to gain back the lost credibility. To me, this applies both to social and hard sciences. Since this is a general problem with academia, either your field has already been called out or it has yet to be. I don't believe the current system offers an alternative (yet), though I'm cautiously optimistic about preregistration.
I tried digging into the study webpage, but holy cow it's not organized in an easily digestable fashion.
So does anyone know what happened with the marshmallow test replication?
> Instead, it suggests that the capacity to hold out for a second marshmallow is shaped in large part by a child’s social and economic background—and, in turn, that that background, not the ability to delay gratification, is what’s behind kids’ long-term success.
I.e. it would still seem to say that the capability to delay gratification is tied to economic success, except that's really a confounding variable. It's also very possible that the ability to delay gratification that one gets from being more affluent is also a factor in future success.
There are so many things to consider, like average sugar intake of affluent/non-affluent families at the time of the first test and now.
If both classes consume candy, perhaps the affluent have access to tastier candy (maybe important because the wealth distribution in the early 90s was more equal), so marshmallows are not tasty to them. (Note: I haven't had a marshmallow in a long time, but they are no where near as tasty as candy bought off the check out shelves).
If present affluent families are educated about sugar (which was less so the case in the early 90s), they would probably feed their children less junk food, so the desire of wanting more of it is not as hard wired in their neurons, or it would taste overly sweet to them.
Maybe less affluent families give their children sweets all the time because it shuts them up.
Maybe the recipe of marshmallows has changed between then and now (see point 1).
> And they repeated those experiments many times over, with volunteers from 36 different countries, to see if the studies would replicate in some cultures and contexts but not others.
So different sets of people, and different researchers (the article doesn't say it, but I doubt the same researchers traveled across the globe repeatedly).
This seems to me to be such an important key to understanding this. Considering even myself, I'm not sure I would behave the same way as a subject from one study to the next (pretending there was a way to blind myself). And when you look across regional and global cultural variation, it must have an effect on participants.
The results are less headline-getting if they seem to be overly qualified (e.g. we find that midwestern white women with the middle name Susan have a positive psychological response to salsa dancing) but a deeper appreciation for the complexity and diversity of individual psychology would seem superior to the current state of affairs.
That raises different questions than 'psychology studies are all wrong', and I'm still waiting to see a serious discussion of them. So far, what I see is news (studies not replicated) and condemnation (like this article), from which I don't learn much.
[0] That's not necessarily a condemnation of the researchers: Imagine a set of studies that, each time they are performed, have a 50-50 chance of producing the strong effects or weak effects. Which studies in that set are going to be the ones that you read about? It could be selection by randomness.
[1] https://paulromer.net/trouble-with-macroeconomics-update/ind...
If the study were a landing page, with a call to action, the conversions are influenced by the ad.
No doubt, 50% replication feels ugly. None the less, the fact is, the studies are slightly different. Maybe in theory that shouldn't matter, but perhaps the reality is it does. Again, per the PPC analogy.
Basically, in a world, where the mind-hardware can not be fixed and improved. He who goes full black-hat first rules forever unchallenged, even unpercived? So wouldnt it be reasoNobel, to set free a quack science, to keep those with similar thirst for powerfull knowledge busy? Maybe its tabula rasa time when it comes to psychology. Only replicated studies count, and everything before simply - never existed - and with it, works and titles referencing to it.
Behaviorism is the only real psychology.