News for hackers. Stuff that matters.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by jdp23 on Saturday March 26, 2016 @04:23PM (#11367295)
It doesn't sound like the author's done much root cause analysis. QA typically doesn't cause defects (it can only prevent them), so there's almost always a deeper cause. And, QA's not necessarily the best way to find bugs like this.

In this case, it sounds like to me like it was most likely a requirements problem -- a missing requirement for being 4chan-resilient, if you will. A different way to look at it is that it's a design flaw that they system is manipulable by default.

True, once you've identified the root cause of the defect, it's also important to look at why it didn't get detected. So yeah, QA missed it. Then again, so did design and code reviews, developer testing, threat modeling, and the social-manipulation equivalent of penetration testing. Of course these all complementary approaches to "quality" but typically they are not the responsibility of QA.

I wonder if the author also thinks the root causes of the errors in his original post are also QA failures?

Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by MrMeritology on Saturday March 26, 2016 @06:31PM (#11367767)
I just wrote a follow-up post giving more evidence: http://exploringpossibilityspace.blogspot.com/2016/03/micros...

I call it "poor software QA" because, generally, the software QA process is supposed to detect and prevent defects from 1) being introduced in the first place; and 2) from being propagated into "production" versions. As my most recent post shows, the "repeat after me" rule was a legacy of a software library (ALICE) they used to implement rule-based behavior. Some sort of QA process should have been done on the rule set they reused and modified.

Also, when I say "QA" I am not referring only to people with QA in their job title. I'm referring to the process.

Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by jdp23 on Saturday March 26, 2016 @07:59PM (#11368103)
Thanks for the reply, and interesting followup with ALICE.

If you're using "software QA failure" in the very general sense of "a defect got introduced and then propagated to production", then yes that's what happened here. But then you're essentially saying "the root cause of this defect is that a defect got introduced and then propagated". This isn't useful for process improvement (it's true for every defect, so doesn't give any insight into what happened).

If you're right about them reusing ALICE, then a more useful way of looking at the root cause of the repeat-after-me bug is "component reuse without considering the attack model". That highlights other situations where there are risks of similar defects, and points to ways to prevent or detect similar defects.

Since there were other bugs as well, the requirement and/or design issues might still be a better candidate for root cause for the whole Tay-fail. One of the things you discover doing root cause analysis is that there are almost always multiple contributors, and you typically want to make process changes at multiple levels.

Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by MrMeritology on Sunday March 27, 2016 @01:36PM (#11370714)
I'm not using "software QA" in the very broad way you describe in the first sentence. Also, "defect" as I use it does not mean every short-coming of the product. It means "something doesn't work (or failed) as designed or required."

Context: my blog posts are meant to contrast with "experts" who claimed that poisoning social AI was just in the nature of learning systems, even when they worked as designed (i.e. had no defects). They are claiming that Tay learned to be foul mouthed and racist, and thus had become foul mouthed and racist.

If that were true, then this undesirable behavior would not be a software QA problem. The AI would be working as designed. No QA process would change things.

In contrast, I'm claiming (from evidence) that the main problem in Tay is due to a hidden feature in a reused library + rule set that should have been detected and removed in a QA process that considered various attacks. BTW, this attack (getting bot to repeat naughty words) has been around since ELIZA in the 60s.

The other failings of Tay (esp. no black list) are design and requirement failures, not QA failures.

Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by jdp23 on Sunday March 27, 2016 @06:05PM (#11371756)
> I'm not using "software QA" in the very broad way you describe in the first sentence.

I took this description from your earlier comment "I call it "poor software QA" because 1) and 2)" so yes, you are using it that way at least sometimes :)

Anyhow we obviously see things differently on the root cause side (and both of us are on the outside so there's a lot we don't know). That said I certainly agree that it's a defect, and that it's an attack that could reasonably have been anticipated.

Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by Mikeb85 on Saturday March 26, 2016 @03:28PM (#11367044)
'Learning from the internet' was destined to fail. The internet is filled with so much sarcasm, so many memes and trolling that this was inevitable. Their whole premise just sucked. And of course, once people realized they could influence the bot, everyone just upped the level of trolling...

On the plus side, I was entertained. I'm sure many people were (maybe not Microsoft investors). It was pretty damn hilarious.

Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by stcredzero on Saturday March 26, 2016 @04:10PM (#11367235)
And of course, once people realized they could influence the bot, everyone just upped the level of trolling...

Science fiction premise: We create a truly sentient AI. The Internet's immediate knee-jerk reaction is massive trolling. AI decides to destroy humanity because the vast majority of the data we've supplied to it indicates we're massive assholes. (Also an addendum to the category, "This is why we can't have nice things.")

Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by Pxtl on Saturday March 26, 2016 @05:02PM (#11367433)
That sounds like an SMBC comic. Or the plot of Age of Ultron, if it had been slightly better-written so Ultron could have an actual motivation.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by logicrook on Saturday March 26, 2016 @05:28PM (#11367534)
As Linus said "the people have spoken, and most of it was complete gibberish".
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by galistoca on Saturday March 26, 2016 @04:49PM (#11367386)
It's arrogant to think that any kind of QA could prevent how an AI would turn out. That's probably why the terminators took over humans in the movie--because humans were arrogant enough to think that doing enough QA would prevent everything. What should happen instead is you need to be humble and assume that things won't go the way you designed them to, that's the "safe" way to build AIs in the long term. The OP uses the "repeat after me" feature as the QA fail, but he's overlooking how it could have gone wrong in many other ways even if they didn't have that problem. No matter how robust system you build there always will be hackers who try to manipulate it (in fact it's more satisfying to hack a robust system than brittle one)
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by MrMeritology on Saturday March 26, 2016 @06:33PM (#11367771)
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by bitshepherd on Saturday March 26, 2016 @03:37PM (#11367083)
You can have some QA, no QA, or even great QA, but the output is purely a result of its environment.

I have a chat bot that went casually racist about a day or two after activating it. After looking through the logs, I found a particularly vitriolic person that was responsible for the source of this bot's newfound hatred of Asians. My bot didn't get fixated on one particular topic, it just spewed racism and vitriol for a while until it learned some more words. Rather than nuking from orbit immediately, I left it alone to see if it would get past the racism.

So far, it's been a few months since activating the bot. It's not nearly as casually racist as before, but from time to time still throws out something racist just for the lulz. It had a hard time learning context, because of its environment and the linguistic skills of the denizens, but it has gotten much better at when it interacts with people.

Occasionally, newcomers get misled into believing the bot is actually a living person with a mental illness, and not just a collection of random bits of code cobbled together.

Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by adamnemecek on Saturday March 26, 2016 @02:57PM (#11366904)
I for one don't think of it as a fail. I haven't laughed this hard in a while. And in a way it was a commentary on the internet culture.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by ProAm on Saturday March 26, 2016 @04:28PM (#11367311)
twitter especially
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by 13of40 on Saturday March 26, 2016 @04:42PM (#11367362)
One thing we're probably not considering here is that the veteran QA person might have said "that's a ludicrous idea, people are just going to troll it mercilously" and the PM with college plus a year and a half of industry experience told him to shut the hell up.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by apalmer on Saturday March 26, 2016 @04:47PM (#11367383)
I am not understanding the spin that is being displayed in general with regards to Tay.

Microsoft created a chat bot, the chat bot chatted. It wasnt a failure on any technical level as far as i have seen.

Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by justincormack on Saturday March 26, 2016 @05:48PM (#11367608)
Do you really not understand that there are failures other than "the chat bot chatted so its ok"? Do you not realise there might be other requirements for software than "it kind of appears to do roughly what someone asked for"?
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by apalmer on Saturday March 26, 2016 @06:30PM (#11367764)
I understand completely but what i am saying is... they set out as far as i know to create a social media chat bot that sounds like a teenage girl who is immersed in her social media environment. it didnt fail this in any way as far as i can tell. its just that...

a teenage girl who speaks the language of her social media environment is going to say a lot of dumb outlandish stuff. even if hypothetically this were some deeper than NLP true AI breakthrough it was always going to say outlandish crazy offensive things because that's the influence that's feeding into it.

its similar to how to a degree that recent bipedal robot that was in the videos got some backlash because its human like motion was offputting... the robot didnt fail in anyway...

its more a question of why would you spend all this money rolling out these experiments if you didnt want the very forseeable output. its a no brainer that a chat bot that learns from social media is going to say fucked up shit.

Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by 13of40 on Saturday March 26, 2016 @05:15PM (#11367485)
It's a failure of censorship. Like someone else pointed out, they should have had a simple blacklist of certain words.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by levemi on Saturday March 26, 2016 @05:27PM (#11367529)
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by logicrook on Saturday March 26, 2016 @05:55PM (#11367639)
Oh, thanks for the references. I'm constantly astonished at how people can think "filter bad words" would fix everything. In some instances of Tay tweets, there are comparisons between black men and monkeys. What words should you forbid? Black, man, or monkey? Should the bot be allowed to speak about people of color visiting a zoo?
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by DonaldFisk on Saturday March 26, 2016 @06:54PM (#11367851)
This is supposed to be AI. I'd expect it to know what words and phrases mean, and how sentences are structured. I'd expect it to know that some people are black, and people can visit zoos, and zoos often contain monkeys. I'd also expect it to know that comparing people to other animals is potentially offensive, and to avoid saying those things just to be on the safe side.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by 13of40 on Saturday March 26, 2016 @05:46PM (#11367602)
You certainly can't make it perfect, but in this case, where the submitter is effectively anonymous and they're not paying for the service, you should be able to justify the occasional false positive.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by levemi on Saturday March 26, 2016 @05:55PM (#11367635)
It wouldn't result in a very smart or fun AI. Tay was supposed to be fun because of its intelligence. Throwing a braindead solution intended for dumb forum software would run counter to the project's goals in my opinion.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by levemi on Saturday March 26, 2016 @03:03PM (#11366935)
Some of the tweets people highlighted weren't repeat after me at all. The article mentioned one, but there was a lot like that where Tay seemed to have learned to speak positively about very bad things. Had it been just repeat after me, all Microsoft had to do would be delete the offensive tweets made by Tay and then turn off that feature. There was more going on.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by sdenton4 on Saturday March 26, 2016 @06:09PM (#11367683)
Interestingly, I think if we were doing a better job of identifying abusive and asshole comments on our giant social media platforms, we could build a kind of internal filter for such a chat bot. Learn an "asshole comment" classifier, and then have the chat bot ask itself, will I sound like an asshole before each utterance... As a bonus, the classifier would also be great for providing social media moderation tools, at the same time.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by fiatmoney on Saturday March 26, 2016 @02:43PM (#11366837)
Yeah, it's astounding to me that they didn't have a "don't respond to queries containing X" master blacklist. It's one of the first things you do when you have a publicly facing content generator like this.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by tacos on Saturday March 26, 2016 @03:34PM (#11367070)
This is explicitly mentioned in the Watson/Jeopardy papers from five years ago. Even in the absence of common sense you'd think MS Research academics would've noted the requirement. I'm a Microsoft fanboy but this whole thing is just embarrassing.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by Davesjoshin on Saturday March 26, 2016 @03:00PM (#11366916)
How do we know that QA didn't report the issues? QA reporting a bug and that bug being fixed are two different things right?
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by dllthomas on Saturday March 26, 2016 @03:37PM (#11367080)
I would distinguish between "QA as a process" and "QA as a role". We don't know that people in the Quality Assurance role failed; we can observe that the process intended to assure quality did.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by MrMeritology on Saturday March 26, 2016 @06:34PM (#11367778)
OP here. Agreed. I'll modify my post to clarify that I'm talking about "QA as a process", which usually involves people with "QA as a role", but not always.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by Davesjoshin on Saturday March 26, 2016 @04:04PM (#11367210)
I think that's a good distinction. This could be considered a process failure. QA works only if the process allows it to work.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by hyperion2010 on Saturday March 26, 2016 @03:42PM (#11367108)
Garbage in garbage out. Blaming anyone or anything other than the environment the algorithm was put in is absurd.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by colllectorof on Saturday March 26, 2016 @04:20PM (#11367284)
Blaming environment for algorithm's failure only makes sense if you're prepared to credit it for algorithm's success. Otherwise your evaluation is entirely one-sided.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by BinaryIdiot on Saturday March 26, 2016 @03:01PM (#11366923)
Considering they have bots like this in other countries with zero issues I'm not surprised they thought it would be fine. But they already came out and said it was a failure and the reasons why. This article seems largely unnecessary and equivalent to beating a dead horse with a stick.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by WalterSear on Saturday March 26, 2016 @01:58PM (#11366641)
Marketing PR and hubris is the root cause.

M$ could have easily put out Tay v0 anonymously.

Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by SixSigma on Saturday March 26, 2016 @02:42PM (#11366832)
That's the bit I don't understand - or rather I think they were playing with the bot already and trying to jump on the hype train after AlphaGo so pushed it out in a rush to try and get some column inches.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by fiatmoney on Saturday March 26, 2016 @02:41PM (#11366827)
If you put something like that out anonymously, realistically you lose control over when it becomes public that you're behind it.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by WalterSear on Saturday March 26, 2016 @03:09PM (#11366966)
If.

I created a twitterbot network, delivering generative text to twitter users, for my master's thesis. Have you heard of it?

Given that a sizeable number of twitter accounts are bots[1] and a large portion of tweets are 'pointless babble'[2], without the help of the braindead marketing executive who pushed this into the news, no one would have discovered the owner of the account until Tay was 'swatting' people's houses and selling bootleg Nike sneakers on the Silk Road.

[1] -http://www.techtimes.com/articles/12840/20140812/twitter-ack...

[2] - http://pearanalytics.com/blog/2009/twitter-study-reveals-int...

Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by FranOntanaya on Saturday March 26, 2016 @02:52PM (#11366868)
They could have chucked it in some IRC channel and nobody would have batted an eye. Just another run of the mill chat bot.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by rorykoehler on Saturday March 26, 2016 @02:56PM (#11366896)
They can still do it. Just release it under another pseudonym and let it free for a few months before announcing it again with a PR blitz based around the different results from Tay.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by WalterSear on Saturday March 26, 2016 @03:11PM (#11366973)
They probably are.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by cpeterso on Saturday March 26, 2016 @04:05PM (#11367214)
I can't imagine they would launch Tay without having done anonymous live tests before hand. The anonymous test bots would have been much less likely to targeted by malicious users than a high-profile Microsoft bot.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by gozur88 on Monday March 28, 2016 @09:02PM (#11378805)
I think they expected it to "learn", and for that it needs interaction.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by MrMeritology on Saturday March 26, 2016 @06:32PM (#11367770)
OP here. I just added another blog post with additional evidence that this was a QA problem, specifically related to an open source library (ALICE) and the AIML rules they reused and modified.

http://exploringpossibilityspace.blogspot.com/2016/03/micros...

Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by DonaldFisk on Saturday March 26, 2016 @04:26PM (#11367308)
If I were developing a chatbot, I wouldn't provide it with a blank slate and leave it to the mercy of 4chan users. I'd give it a personality and a set of values and a rudimentary understanding of how the world works.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by Cartwright2 on Saturday March 26, 2016 @05:20PM (#11367501)
> I'd give it a personality and a set of values and a rudimentary understanding of how the world works.

I don't think you have any idea how complicated such a task would be.

Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by DonaldFisk on Saturday March 26, 2016 @06:27PM (#11367739)
I do have an idea. I first got involved in AI in the early 1980s, and worked on it on-and-off (mostly on) well into the 1990s. Some of the non-AI stuff I did back then is now, for reasons I can't quote fathom, classified as AI.

A certain amount of common-sense, and basic political knowledge, should have been included in the Tay. I don't think there's any way of avoiding it. I'm skeptical of general application of the recent "free lunch" approach to AI, and for higher-level AI prefer Doug Lenat's approach with Cyc.

Alternatively, if they wanted to avoid the effort of doing that, they could have just put up a souped-up Eliza variant. That wouldn't have impressed many people, but neither did Tay, and it wouldn't have offended anyone.

Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by galistoca on Saturday March 26, 2016 @06:45PM (#11367812)
If you really are experienced as you say you are in AI, you wouldn't talk about these things as if they were easy to implement. I won't assume things but I can say I'm probably not so less experienced than yourself, and I know basically everything in this field belongs to "easier said than done" category. Most researchers just run experiments in closed environments just like you said and that's what makes them useless and out of touch with reality. For this reason I actually applaud MS guys for having the guts to do this in public. It's much better than them coming out with some lame, controlled environment "AI" which does exactly what its creators intended. It's not a "failure". It's a learning process. It's not like this chatbot went and killed anyone. Everyone knew it was a robot when they were engaging with it, which is not so different from watching a standup comedian making a racist joke on stage.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by DonaldFisk on Saturday March 26, 2016 @07:21PM (#11367963)
I never implied it was easy to implement. I also said I was skeptical of the recent "free lunch" approach to AI.

It was a failure. It didn't understand the remarks it was making, unlike a real Holocaust denier, a 4chan user, or a stand-up comic whose joke just fell flat.

Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by galistoca on Saturday March 26, 2016 @08:46PM (#11368266)
Kids pick up words from adults. They too don't completely understand the words they use when they first start picking up and using new vocabulary but the usage tend to get calibrated based on social feedback.
Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by tacos on Saturday March 26, 2016 @06:16PM (#11367704)
Here's a start.

https://en.wikipedia.org/wiki/Wikipedia:List_of_controversia...

Not a neural-net cure all, for sure. But took me precisely ten seconds to find and would've prevented this whole situation.

Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by emmelaich on Saturday March 26, 2016 @06:17PM (#11367708)
I don't think it did fail.

Microsoft held up a mirror to (self-selected) Twitterers.

It showed them what they are.

(some people tihnk it failed as in poor PR for Microsoft, but I think that is also an ignorant and arrogant opinion)

Re:Poor Software QA Is Root Cause of TAY-Fail (Microsoft's A... by wmccullough on Saturday March 26, 2016 @09:38PM (#11368425)
It's very easy to criticize them, they should have done X, or why didn't they think of Y, but people are not seeing the big picture here.