News for hackers. Stuff that matters.
Re:Machine Learning Is Still Too Hard for Software Engineers by carom on Tuesday January 23, 2024 @04:44PM (#39110336)
As a software engineer, I disagree. Caveat, I haven't studied traditional ML and just went straight to DL. There is a lot of jargon and you do have to sit down and learn how things work, but once you do, deep learning is fairly simple. One thing that actually really bothers me is how much libraries (e.g. huggingface) are just config files masquerading as programming. It is just a class with 50 parameters and takes about 5 lines of code to make it do the thing, most of the time is spent figuring out what the parameters do.

I think making lower level tools (fundamental building blocks) will make things more accessible to software engineers, as opposed to the high level wrappers being written. We can grab a library, read the docs, and put pieces together in an efficient way. We just need some core work horse libraries. Like if llama.cpp was a library at the same maturity as sqlite.

Re:Machine Learning Is Still Too Hard for Software Engineers by blackbear_ on Tuesday January 23, 2024 @05:05PM (#39110604)
> we just need some core work horse libraries

But these do exist: plain Jax or Pytorch only give you basic linear algebra, differentiation and some basic layers. And there's a plethora of more or less advanced libraries that add specific functionality, for example torch geometric for graph data and lightning to reduce boilerplate.

Re:Machine Learning Is Still Too Hard for Software Engineers by beijbom on Tuesday January 23, 2024 @05:22PM (#39110792)
(I'm one of the Nyckel co-founders)

Chiming in to say that this precisely our observation. The existing ML/DL libraries are not bad as far as those types of things go. In fact, Pytorch is an amazing library IMO. Especially compared to TensorFlow, Caffe and the stuff that came before that.

But like George points out in the article, unlike "traditional" software, ML requires iteration, data management, monitoring, specific infra reqs, and so on. So our take was that libraries would never be enough, hence the SaaS offering.

Re:Machine Learning Is Still Too Hard for Software Engineers by mov on Wednesday January 24, 2024 @08:33AM (#39117109)
That's a super interesting article and point of view. So, in your opinion, what's missing?
Re:Machine Learning Is Still Too Hard for Software Engineers by jzombie on Tuesday January 23, 2024 @04:53PM (#39110471)
> We just need some core work horse libraries.

Do you mean like PyTorch, TensorFlow, or the others?

Re:Machine Learning Is Still Too Hard for Software Engineers by thanhhaimai on Tuesday January 23, 2024 @04:51PM (#39110437)
> There is a lot of jargon and you do have to sit down and learn how things work, but once you do, deep learning is fairly simple.

This is my realization too. I think ML for SWE courses should focus on "translation" first. Like by "kernel" they mean this specific thing, not the normal meaning of kernel. This is similar to other fields like finance (which I'm working on). After you learn the language, it's actually not too terrible to understand.

Re:Machine Learning Is Still Too Hard for Software Engineers by fgdelcueto on Tuesday January 23, 2024 @05:05PM (#39110607)
Of course you mean the "normal" meaning of a kernel pertaining to Linear Algebra, right?

https://en.wikipedia.org/wiki/Kernel_(linear_algebra)

Of course I'm kidding. It's one of those terms that many fields adopt and give it completely different meaning. There's no "normal" meaning of `kernel`.

Re:Machine Learning Is Still Too Hard for Software Engineers by anon291 on Tuesday January 23, 2024 @04:52PM (#39110456)
What's the normal meaning of 'kernel'?

EDIT: Hacker news won't let me respond, but the answers below all seem to be because the original meaning has been lost on everyone.

In English, the word 'kernel' means 'core'. An OS kernel is the core of an operating system. In linear algebra, the kernel of a matrix (or a linear transformation, same thing) is the set of vectors it maps to zero, which is also in a sense the 'core' of the mapping (in so far that zero can be seen to be at the 'core' of the vector space / number line).

So actually, the definition is the same, it's just that the word kernel is rather rare, despite having a well understood meaning. Nevertheless, it is the kernel of many common English idioms such as a 'kernel of truth'.

Going to ML kernels... the etymology is a bit convoluted. I believe they come from operator theory and support vector machines. But nevertheless, the 'normal' meaning of kernel works out because kernels are typically the core fundamental operations supported by a machine learning framework atop which the other operations are built. In that sense, regardless of the etymology, the name actually fits.

Re:Machine Learning Is Still Too Hard for Software Engineers by ozr on Tuesday January 23, 2024 @04:58PM (#39110526)
The bit of code at the center of an operating system that mediates access between userspace code and the hardware.

Whereas in CUDA programming, a kernel is just the code running on the device. When I first heard kernel in relation to CUDA programming, I expected it to be a) the actual OS kernel, and then b) something akin to a GPU driver.

I can see how NVIDIA got there, but it's not immediately obvious if you're coming from a SWE context.

Re:Machine Learning Is Still Too Hard for Software Engineers by joecool1029 on Tuesday January 23, 2024 @05:06PM (#39110619)
> Whereas in CUDA programming, a kernel is just the code running on the device. When I first heard kernel in relation to CUDA programming, I expected it to be a) the actual OS kernel, and then b) something akin to a GPU driver.

I think this is still not the machine learning 'kernel' being talked about. While you'd inevitably need to know about this for tooling in the space, looks like kernel is also a mathematical term.

Re:Machine Learning Is Still Too Hard for Software Engineers by tayo42 on Tuesday January 23, 2024 @05:02PM (#39110574)
Kernel is also used in convolutions... Ugh
Re:Machine Learning Is Still Too Hard for Software Engineers by wholinator2 on Tuesday January 23, 2024 @05:01PM (#39110558)
Well, I'm not actually sure which one they're referring to but there is two meanings that I know of. There's the Software Developer Kernel which is the core of an operating system, and there's the Linear Algebra Kernel which is the null space of a map. Most of us here are familiar with the operating system type but the linear algebra kernel describes the set of vectors which are sent to the null vector (0) by your transformation/map/operation. It's very useful in understanding what exactly your operator does and how it changes a space.
Re:Machine Learning Is Still Too Hard for Software Engineers by noodlesUK on Tuesday January 23, 2024 @04:59PM (#39110538)
I think that to most software people kernel means something like the Linux kernel, but to an ML engineer it is a specific mathematical term-of-art.
Re:Machine Learning Is Still Too Hard for Software Engineers by blackbear_ on Tuesday January 23, 2024 @05:13PM (#39110698)
In a ML context kernel would probably be understood as a way to quantify similarity between different examples: https://en.m.wikipedia.org/wiki/Kernel_method

But it was hilarious to see how many other "normal" meanings came up in the comments.

Re:Machine Learning Is Still Too Hard for Software Engineers by tnecniv on Wednesday January 24, 2024 @12:52AM (#39114093)
Normal is just the first one you learn.

Hell, in math, normal even has multiple meanings. You have the normal distribution and surface normals for example

Re:Machine Learning Is Still Too Hard for Software Engineers by dpig_ on Tuesday January 23, 2024 @11:19PM (#39113575)
Although, funnily enough, we don't use kernel to mean 'core' in the idiom 'kernel of truth.'
Re:Machine Learning Is Still Too Hard for Software Engineers by anon291 on Wednesday January 24, 2024 @09:46AM (#39117899)
How so? Saying something has a 'kernel of truth' means that, while there is some fluff, the core idea holds water.
Re:Machine Learning Is Still Too Hard for Software Engineers by dpig_ on Wednesday January 24, 2024 @05:04PM (#39123187)
I guess I have always interpreted the use of kernel there as meaning something small. But you are probably right.
Re:Machine Learning Is Still Too Hard for Software Engineers by tnecniv on Wednesday January 24, 2024 @12:49AM (#39114076)
Kernel is an overloaded term outside of software engineering. In linear algebra it means the null space, but that has no connection I’ve ever found to kernel methods or kernels more generally in functional analysis.
Re:Machine Learning Is Still Too Hard for Software Engineers by anon291 on Tuesday January 23, 2024 @04:51PM (#39110433)
The post is not talking about 'traditional ML' but rather only 'DL' (i.e. neural networks).

One of the problems I see here is that it seems to me that the math education of many CS grads is woefully lacking. Indeed, deep learning math is basically senior-high-school level calculus. Backpropagation is a straightforwards application of the chain rule. There is really no surprising thing or deep insight. The math for deep learning has been set in place for more than fifty years at this point. The only change was the advent of large enough data and computer chips to process it.

That being said, I don't think understanding how the `transformers` library works or composes is the same as understanding how 'deep learning' works. That's like saying knowing how to use GCC gives you a solid understanding of compilers. That's not a ding against those whose main experience with DL is using those libraries. I use many libraries doing things I don't fully understand. I'm not a graphics expert, but I use graphics programs every day, and graphics libraries regularly. That's fine. But using those libraries doesn't make you an expert in computer graphics.

Re:Machine Learning Is Still Too Hard for Software Engineers by godelski on Tuesday January 23, 2024 @05:17PM (#39110738)
> Indeed, deep learning math is basically senior-high-school level calculus.

Actually I find this claim problematic and incorrect. Yes, many parts of ML only require multivariate calculus[0] and those are the parts that most people are exposed to. BUT that doesn't mean there isn't a lot of math hiding around in the background. Even understanding something like activation functions take much higher level math as we got to get into topics such as topology, metric theory, and high dimensional statistics. You don't need this understanding to build models (as you also conclude) and most researchers don't understand much of this either tbh. But I think we need to be clear about these distinctions as model evaluation gets insanely complex. Complexity in evaluation only increases as our performance increases and a major problem we face today is we are marginalizing out important information. I'm sure that anyone that hacks around with LLMs or diffusion will understand how leaderboards are often noisy and how picking top models does not guarantee top performance (and why datasets get continually added). It's because evaluation requires more than boiling down performance to a single number. Here, math skills become extremely important.

[0] btw, many will not find this even offered at their high school. In fact, this is often upper level math for many STEM undergraduates and even an elective in my Uni's undergrad CS program. So let's not be so belittling. Shame the education systems instead of people lacking opportunities.

Re:Machine Learning Is Still Too Hard for Software Engineers by wenc on Tuesday January 23, 2024 @06:33PM (#39111516)
I don’t think I agree because it’s like saying accounting is just elementary level addition, subtraction and multiplication. But elementary school kids can’t do accounting.

DL requires a certain degree of mathematical maturity to grasp.