by codesushi42 · 7y ago · 0 comments
When will people wake up and realize that AI today is just capable of "curve fitting"?
Yes, that is a bit of a simplification. But not far off.
Neural networks depend on back propagation. They are really just another type of optimizer for maximum likelihood, using gradient descent. They work better on high dimensional, non linear data than other methods before.
But if the function you are attempting to model is non differentiable, neural networks won't help you.
They certainly aren't capable of performing magic tricks like writing an app for you.
For one, what you are modeling itself does not need to be differentiable, only the network itself needs to be.
Second, using neural networks in combination with other techniques for program synthesis is an active area of research currently, and although it is currently at around 50 lines or so, your fundamental assertion here is wrong.
Third, there are a number of ways that deep learning could be leveraged in app development. The easiest way would be to make heuristic-type decisions around UI/UX or to build parts of said GUIs using existing code blocks. This has already been used to some extent in website design (e.g. https://arxiv.org/abs/1705.07962 and https://blog.floydhub.com/turning-design-mockups-into-code-w...). So it's certainly possible that it could be used in conjunction with templates to build common app types.
Now, this startup is clearly not doing that, but, that doesn't mean that it's a) impossible to leverage AI for app development and b) all of deep learning is "just curve fitting"
I keep linking to this page:
https://blog.keras.io/the-limitations-of-deep-learning.html
But what Chollet says is still the case. Machine-learning a mapping from arbitrary specifications to programs is many, many times more difficult than classification. Unless someone comes up with a completely new architecture that is for neural program synthesis what CNNs are for vision and LSTMs for sequence learning, and then some, then there's not going to be any big advances in the field.
Source: I study algorithms that learn programs from examples from my PhD and you need three things for it that neural nets lack: a) generalisation, b) the ability to learn recursive functions and c) higher-order representations (i.e. quantified variables).
Personally, I was very excited with DeepMind's differentiable neural computers, but it seems very hard to train on anything but toy problems.
What does work?
https://en.wikipedia.org/wiki/Inductive_logic_programming
(But that wikipedia article is a bit behind the times).
No. In some simple cases you can model a non differentiable function with a differentiable one accurately. But your model is likely not to perform well if the underlying relation between your parameters and observations is non differentiable, because your model will likely be unstable.
Second, using neural networks in combination with other techniques for program synthesis is an active area of research currently, and although it is currently at around 50 lines or so, your fundamental assertion here is wrong.
Sorry, but NNs haven't made any significant progress in the realm of program synthesis. I can set up a model with Transformers and BERT that spews out thousands of lines of code that stylistically look correct, but does not compile. NNs aren't the right tool for the job here.
Third, there are a number of ways that deep learning could be leveraged in app development
That has nothing to do with the original post. There's no AI that's going to write an app for you.
Di.. did you even bother reading what I wrote? You wouldn't use NNs to directly output code, you'd use it to guide a search process.
You are (possibly inadvertently) misquoting Judea Pearl and he was talking specifically about deep learning, not "AI":
“All the impressive achievements of deep learning amount to just curve fitting,” he said recently. [1]
"AI today" still means many more techniques and algorithms than deep learning. For example, SAT Solvers, logic programming and theorem provers, classical planning, classical search, adversarial search (MCTS) etc are alll AI techniques that have nothing to do with "curve fitting".
So could we please all not throw about big proclamations about what "AI today" is ("just" or not), without first making sure that we have a thorough understanding of what we are saying?
I thank us all in advance.
____________________
[1] https://www.quantamagazine.org/to-build-truly-intelligent-ma...
None of those techniques are new, nor are they fueling the AI hype cycle.
I purposely conflated AI with "deep learning" because it is the source of the hype. And in reality, what most AI startups claim to be using.
What is new is the hype around deep learning that took off after 2012, and because Google and Facebook decided to champion it.
In any case, as far as I can tell "AI today" is anything that is "AI" and that exists "today". How do you mean "AI today"?
>> I purposely conflated AI with "deep learning" because it is the source of the hype.
I don't understand why you would do that. You are aware that there is hype and that it is increased by misuse of the term AI. And you purposefully misuse the term AI in a way that increases the hype? Why?
The war for terminology is more lost than differentiating "Hacker" from "Cracker" when referring to computer security. There's a specialist arena where the distinction is occasionally respected. This is not that forum.
Artificial General Intelligence is so far off that it's not a general conversation topic, it's not even a specialized conversation topic - It's a fantasy conversation topic.
You are completely missing the point: "deep learning" and AI are mostly synonymous in the current hype cycle, and it began with breakthroughs in deep learning.
How do you mean "AI today"
The AI industry that I work in.
Have you seen what neural nets are now capable of? Speech synthesis/transcription, voice synthesis, image synthesis/labeling/infill, style transfer, music synthesis, and a host of other classes of optimization problems which have intractable explicit programmitic solutions.
The hype is justified, because ML has finally arrived, thanks primarily to hardware, and secondarily to the wealth of modern open research, heavily influenced congregations of leading researchers enabled by funding at Google, Facebook, etc.
The problems being solved by "curve fitting" ML were simply unsolvable by any practical, generalizable means before recently, and the revolution is just getting started.
But, that there are people who don't know what they're talking about is no reason to copy them, or to perpetuate their mistakes.
Do you disagree?
> I thank us all in advance.
Off topic: I've seen this line a few times before, and somehow it always drips with condescension. As though the speaker assumes the understanding of everyone else is borne from laziness and not background.
Furthermore, the notion that neural networks can only be used as part of supervised learning (and in particular with backpropagation) is totally off. Just to cite a few examples: http://proceedings.mlr.press/v48/taylor16.pdf https://arxiv.org/pdf/1908.01580v1.pdf
And, well, all of deep RL and unsupervised learning is not 'curve fitting'. So yes, even if your 'model' (and really this should be 'objective' or 'loss', the neural net is the model, but whatever) neural nets can indeed help you. Though it's true they can't magically start doing super complicated things like app development yet ; the whole point is to understand how to use them and build hybrid systems that play to neural nets' strengths (as with eg self driving systems).
Curve fitting in millions of dimensions is qualitatively more interesting than the 2D graph paper exercise people think of.
In under 4 hours can you have a program where I write something like a very detailed email (maybe I spend 10 minutes trying to craft the email) where I give a direct link to an internal file folder where there is a .pdf file and a .xlsx file. Each file contains names and birthdates amoung other things. I need the program to combine the data in these files and output it to .xlsx for me, giving me a list of names and birthdates from each file, combined in some sort of coherent manner that I can make sense of.
If you can get a program to do something like that via a detailed email-like directive before lunch, not a bunch of python that constantly breaks every 6 months, that's beating about 30% of the workforce and might as well be General AI.
This is actually probably a decent idea but it wouldn't be anything like general AI this year or next.
If I wanted the GAI to take in .docx files, or just first names, or to hop over to another directory and find things there, it should be able to do those things too. Basically, think of a task that you would give to a not-too-bright nephew that is in the firm for a summer internship. You'd need to give very clear instructions, but you should be able to coax him into getting some of the busy work done for you.
There are experimental seq models that transform paper text into figures or joint models that transform figures and text into some code, but you are correct that these are not production ready.
https://arxiv.org/abs/1907.07355
We are surprised to find that BERT's peak performance of 77% on the Argument Reasoning Comprehension Task reaches just three points below the average untrained human baseline. However, we show that this result is entirely accounted for by exploitation of spurious statistical cues in the dataset. We analyze the nature of these cues and demonstrate that a range of models all exploit them. This analysis informs the construction of an adversarial dataset on which all models achieve random accuracy. Our adversarial dataset provides a more robust assessment of argument comprehension and should be adopted as the standard in future work.
So it seems to be the benchmarks that are flawed and not BERT and friends who are that good at text comprehension. And that is not surprising. It would be surprising if language understanding just arose spontaneously by training a very big net on a very big corpus.
It's the money-men that need to realize it. Practitioners know that it's simply rebranded statistical methods. The usage is exactly the same. That said, some of the things these guys offer are useful; but branding it as "AI" is another story.
By the way, is SoftBank going to implode, or what?
I work with DL researchers on a daily basis, and I feel like there have been a lot of cool developments, but much of it is not ready for prime time. I would really like to see a list of successful DL deployments in the wild, with some info about accuracy if possible.
There's definitely a lot that's not quite ready for prime time (reinforcement learning comes to mind as something that is particularly promising but not working really yet).
> It's not that DL is simply "rebranded statistical methods", it's that the companies with names ending in "dot AI" are simply using "rebranded statistical methods". Lots of money is being poured into anything that calls itself "AI" right now, and a lot of people are starting to roll their eyes when they hear that term.
This is definitely true - but I took it as a bit different from your original comment.
I didn't mean to imply that things were not advancing, only that what we claim is "AI" are processes we've been doing in statistics forever. But, yes, of course the tools and techniques improve.
https://www.zdnet.com/article/softbank-group-looking-to-ride...
That image was copped form an investor presentation. How can anyone take that seriously?
What? Any classification function is non-differentiable because it can only ever take discrete values. Yet this is a task that neural networks do every day. You can approximate a non-differentiable function with a differentiable one.
There are many situations that are not differentiable. Images work well because adjusting color values during back prop can easily be done with a gradient. For example, during backprop it is feasible to increase the level of blue by 10% by increasing its RGB value. Likewise for 3%, 15%, -7%, etc.
For other types of data, a gradient may not exist.
You don't calculate a gradient on the data, you calculate a gradient on the parameters of the model. But I'm going to assume you mean that some types of data are not well represented by floating point numbers, which is true, but there are workarounds, e.g. vector embeddings for words or simply one-hot encodings for categorical values.
What is true is that if you need to make a hard decision in one part of the network, for example deciding that the image is a cat, in order to further process that decision. This would not be differentiable. But we can represent objects in a non-discrete way, with embeddings, hidden state vectors etc. My point is, people are getting around this problem.
I also want to add that I agree that we are way far off from building apps automatically, but I think you're giving way too little importance to the advances that's been made. Just take a look at the latest GANs, or the advances in machine translation using the Transformer and attention architectures, or Neural Turing Machines.
Whether a gradient exists will depend on the type of data and what you're trying to predict.
But we can represent objects in a non-discrete way, with embeddings, hidden state vectors etc. My point is, people are getting around this problem.
Great progress has been made using that, e.g. advancements in NLU. But it is not a complete workaround. Embeddings don't work if your relationship is non differentiable. And you will lose the gradient for very long contexts (deep networks), even using new techniques like attention and transformers.
The function needs to be continuous.
Discontinuous functions are not differentiable.
You can approximate discontinuous functions with continuous ones (e.g. with logistic functions).
In the end, we are still talking about curve fitting and optimization, not artificial general intelligence.
"They are really just another type of optimizer for maximum likelihood"
But like always in our industry - we have to hype something beyond believe to keep new projects rolling.
Ill let ppl dream but I know enough to see how it all will end.. like always..
If you actually work in the ML industry, I find it astonishing that you don't think that there have been major breakthroughs in the last 7 years
My astonishment that you didn't think there had been any breakthroughs was only if you directly worked in ML, otherwise you are just misinformed.
(*investors money)
I'm just stating that "again" in our industry, masses will now flock to "new shiny thing" simply because it is hyped and investors throw money at it. While managers will try to fit ML/DL/AI into pretty much anything either if it makes sense or not.
This flips causality - funding didn't really really pick up until the last 5 years or so - about two years after the initial breakthrough.
Look, I agree with this comment - managers are super eager to apply ML to tasks it has no business being applied to (at least yet). But your original claim was that all the new techniques are just glorified maximum likelihood optimization. That's just false.
The hardware is co-evolving with the software. GPUs with SIMD architecture, or TPU which are even more specialized will give a computational advantage to methods like neural nets which they have been designed for.
The magic comes from the memory/computation power combo.
Isn't human education simply discovering spaces that somewhat resemble a reality with arbitrarily many dimensions and finding functions that match curves/surfaces/bodies to some degree of precison and exactitude?
Some years ago I was working somewhere and the management had caught the AI/ML bug and were obsessed with the idea of using ML to generate business "insights". They'd get some vague & unspecified data about a client's business operations, we'd input it into the ML and voila: "insights" about how to improve their business (and make us money)
They didn't know what these "insights" would be, they expected machine learning to magically generate them on its own.
I tried explaining that at a high level, ML can only really give you answers you already know are possibilities. It won't offer up some totally novel answer that you've not trained it for - i.e. you've got to know what the answers could be before you even start.
We got shut down by the parent company not long after that.
There are plenty of derivative free methods as well.
It’s not clear whether a function being nondifferentiable means anything without further specification since classification is practiced quite successfully in many cases.
I'd just like to say it should be complex statistics. But that's just me.
Even AlphaZero, which, iirc, is trained entirely using self-play, with no starting data from other players?
Of course the situation becomes rather interesting when you start training it against itself, but you're still fundamentally trying to find a good statistic to estimate your chances of winning.
Perhaps I am not using the right definition of “statistics”?
It seems to me that there is a category of people who are eager to dismiss deep learning altogether and say "iT's JuSt stAtIStics" even though there is a good amount of evidence to show that it isn't the case. That isn't real science, it's human bias.
Wrong.
If you actually study signal processing, you will find out that CNNs aren't something magically rooted in something other than "statistical correlation machines." CNNs in fact work because they're used to calculate cross correlation!
"Convolving" in terms of a CNN is a misnomer, it's the same as calculating cross correlation in terms of signal processing.
Look: maybe ML is just curve fitting. But maybe human consciousness is too. As the scope of ML expands, we're going to have to confront the reality that there's nothing special about our own minds.
My wild guess is that digital computers are not very efficient at AI. It would be really interesting if nets could be implemented in an analogue fashion.
AI is certainly not magic, and as an industry we're super far away from what would be considered real AI in the technical sense. That being said, AI has become a catch all term for everything as simple as linear regressions, all the way through to neural networks.
We don't claim to be able to write apps using AI, we're a platform that is trying to use AI and general automation in order to optimize the traditional SDLC. Actual code generation/synthesis is years away in my opinion and there is far more impact that can be had by going after other manual aspects of software development.
I don't think you can get away with corp-speak/buzzwords here this easily. Could you elaborate on how exactly you're using AI to "optimize" software development?
If I were take a guess of the flow: As a customer creates a "new app" they go through some wizard type of process that will start to narrow down which templates are needed and what information to prompt the customer to fill in.
Once they have all of that they take that bundle of templates and "content" and hand it off to some developer to glue it all together and then perhaps add some other automation to handle small changes by the customer later automatically.
Could be a clever way to speed up app development if you can narrow the scope down but "AI" it is not.
Just some speculation, arm-chair-quarter backing
Happy to elaborate - in a nutshell what we're trying to do is automate as many parts of the traditional software development lifecycle as we can, and for whatever cannot be automated, put in place the right tooling to allow for repeatable results.
Our thesis is that most applications today have a huge amount of duplication at a code level, and process level. We're trying to use reusable building blocks (well structured libraries, templated user stories, wireframes, common errors, etc.), in order to immediately solve that duplication. That being said, we're not talking about automatic code generation, it's more about being able to assemble these reusable building blocks together at the beginning of a project so you have a better starting point. There will always be customization required for any project however, and that is a human led process.
Apart from actual development, we're also trying to automate processes around project management, infrastructure management, and QA. For example, what we've already been able to do is automatically price and create timeline estimates for a project without any human involvement, determine which creators on our network are best suited for a given project, evaluate and onboard developers on to the network, setup developer environments, and a lot more!
The latter part, as far as figuring out what work to assign and estimating time-frames does seem like a legitimate AI use case though.
You are here on a forum of technical people, can you be appropriately technical?
I'm not lucid enough tonight to give good concrete examples, or be more specific about how this relates to repetition, but I feel like there are deep problems with designing software automatically even looking at mundane, small scale stuff.
https://people.csail.mit.edu/rishabh/papers/cacm12.pdf
Which btw is absolutely an artificial intelligence application albeit one that has nothing to do with neural nets and deep learning.
Perhaps, if your company has trouble with acquiring data and training large deep neural nets, you could benefit from looking at other techniques that do not have such stringent requirements and that are much better suited to smaller companies (i.e. anyone but Google, Facebook, Amazon, Netflix et al).
It's not just one problem we're tackling, it's actually more like 40 small issues that we're working on. You actually named a few right there - static code analysis, automatic UI generation from YAML. I also want to be clear that not all of it is AI or ML. For example how we price and spec out ideas (https://builder.engineer.ai/) is fully automated and leverages NLP and NNs, and how we handle developer verification uses facial recognition. However many of the problems we are going after don't require AI; heuristics based approaches and statistical models can actually have better results in many cases.
And that's a problem. The problem is that this trend builds unrealistic expectations for pretty much anyone that doesn't know how the tech works.
Business people imagine some magic box that will just churn out stuff with (close to) zero workers involved.
Customers imagine the same magic box churning out tailored products built with AI fairy magic.
Then reality sets in, and people (investors included) start losing faith, and we're onto the next AI winter.
We've been very transparent with our investors on where we are in the process of creating this platform both pre-investment and post. They actually responded to the WSJ article:
A spokeswoman for Deepcore said it has complete confidence in Mr. Duggal’s vision and team.
A spokesman for Jungle Ventures said it is a proud investor in Engineer.ai and its technology, adding that “the AI landscape is a varied spectrum.”
A Lakestar spokeswoman said it also has confidence in Engineer.ai and its team, adding that “growth in the AI space does not happen overnight.” It said Engineer.ai had been very careful in presenting its technology to Lakestar and other investors
Apologies for that experience! We're currently working on a new iteration of that site and will be launching it very shortly. Come back soon and let us know what you think.