If trained on massive sets of source code and briefs (or perhaps a set of unit tests), could it spit out functioning code based on a problem statement?
I'm just not well versed enough with ML to know if these things are a possibility or if it will just remix its training data in probabilistically correct, not-guaranteed-to-make sense ways?
It's better at making up bullshit, but it's still bullshit.
Or, to put that another way, flipping the perspective around: our minds could consist of an intelligent, analytical, but utterly unimaginative agent, that sits there listening to a stream of suggestions spewed out by a distinct second agent, one that is "creative" but has no idea about the constraints of things like physics. The brain's analytical agent filters this stream of suggestions, taking notice of the suggestions that seem like they'll make the world change in the ways it "wants"†; and then it does those.
† Or, according to modern perceptual-control research, the agent attempts to predict the world that will occur a few seconds in the future, with a bias toward predicting world-states the reward-system has annotated as being rewarding; and then it looks at what motor commands it "would have" issued in that hypothetical world, and actually issues those. The stream of suggestions, in this model, serve as input to feed the generative model of potential world-states; the executive agent then must notice whether the potential world-state is a "possible" world or an "impossible" world (and whether the motor commands required of it are "possible" or "impossible" inputs), and filter out the "impossible" worlds.
Under this hypothesis, dreaming is the state when your executive responsible for filtering out "impossible" worlds isn't online. So you just get a continuous "impossible" world generated from the streamed suggestions of the creative-but-stupid bullshit-generating agent, with nothing to tear it down—just as seen in these generative AIs. As consciousness returns, the mental predicted world-state is noticed to be impossible by the now-online analytical agent, and is torn down.
That will be a lot of bullshit to filter out, if such agent doesn't provide more of less detailed description of what has to be generated. People with Broca's aphasia probably demonstrate a part of such input.
In other words, it could operate just as AI generative networks like GPT2 do, first receiving training input/output pairs; and then later, receiving input prompts and "completing" them by generating outputs.
I am not an expert with machine learning, but it seems (at a very high level) we've done amazingly well at creating models that can recognize and sometimes recreate patterns. But they never seem to have any ability to understand the patterns. I'm sure someone much more knowledgeable could compare it to a child of whatever age (or maybe I'm just completely wrong).
When it comes to attacks, it's not the average-case which matters.
Microsoft's latest Visual Studio 2019 beta (v3) has intellicode[0] support which is supposed to ML "guess" 'code' based on equivalent github similarities. I don't think it is quite near to what you are asking, but certainly part of the way there.
(autocomplete) 'Robert'); DROP TABLE students;--
Maybe it could transcompile or re-implement common algorithms to already solved problems.
This had about 10 million parameters though, compared to OpenAi's 1.5B. I don't think their text is nonsense though. There's some very interesting examples. They have since released publicly a 345M parameter version, there are some nice examples from that model pre-trained with modern poetry on this twitter account: https://twitter.com/rossgoodwin