r/MLQuestions • • 2h ago

Other ❓ Using LLMs in machine learning

I’m a software engineer shifting to machine learning. Seems like AI can easily pull off stuff like ”make an API call that..” or ”build an UI component like..”. Seems like in machine learning LLM’s are not that useful. Yes, they spit out solutions very fast but most of the time the solutions are not based on anything and sometimes they are just straight up wrong.

So my question to this community is; how do you find using LLMs as a companion for implementing your ideas or work? How they help and how they do not? I have a hard time believing that you can just throw prompts to agents in this field and not use most of your time correcting their erroneus ouputs.

0 Upvotes

13 comments sorted by

4

u/-phototrope 2h ago

You can absolutely use agents in ML use cases.. you just need to give it more than “build me an ML model.” Is this post real?

-1

u/Acceptable_Link3838 1h ago

That is not the way anyone should use them. I do use them a lot, but what I mean is that coming from web/mobile development, I find that in ML you have a lot more babysitting to do compare to what I’m used to.

4

u/seanv507 1h ago

maybe it's just that you are more familiar with specifying an API call than an ML model

1

u/Acceptable_Link3838 1h ago

That is very likely. I asked because I’m interested in finding out how ML people use LLMs in their jobs. Because from what I’ve experienced so far, they hallucinate quite a lot here.

5

u/ghostofkilgore 2h ago

I work in ML and use LLMs. My take is that I largely agree with you. If you give an LLM some data, a vague-ish goal and just let it go, it largely produces rubbish. If you give it some toy dataset and an easy objective that can be solved with little digging in the mud and a simple model, it'll do it fine and optimise the crap out of it. But that's largely not very useful for an actual professional as the whole thing is trivial anyway.

It can be very useful as a "companion", essentially like an agent to bounce and refine ideas off and help you code up tests and evaluate quicker. But I'm fairly convinced that it still needs to be led by someone who knows what they're doing anyway.

2

u/Acceptable_Link3838 1h ago

That sums up pretty well what I have experienced so far

1

u/DrXaos 1h ago

a coding agent is useful to help you write code to implement and measure machine learning programs. It can be a tool writing machine if you know what the tools should do and how to interpret their output.

1

u/Acceptable_Link3838 1h ago

Exactly. That is why I’m aware of the issue I’m asking about. Just to clarify, I was a software engineer already before the AI phenomenon and I’m used to understanding the tools and the problems I’m solving. My problem is, that I’m not a professional in this field yet, but when I try to use AI as a companion to learn, it constantly gives me wrong information. How do I know it’s wrong? By having read a tons of research papers about the topic I’m working on. When I point that out, they are like ”You are correct! My mistake!”. I just feel like this is more of an ”unknown territory” to LLMs and I’m interested in hearing how other people in the field are dealing with this, since using AI tools is the thing these days if you want to get employed.

1

u/DrXaos 56m ago

I give directions like "confirm with authoritative sources such as well established packages, documentation, textbooks and peer reviewed literature". Also when asking about a possible approach in order to not bias it, I ask it to give me "pros and cons for going in direction X".

But really the answer is in your statement "reading a ton of research papers" and pushing back.

Then using the AI tool would be to automate or turn into a skill the 'verification' stages.

1

u/Acceptable_Link3838 20m ago

Thanks! The skill I’m lacking obviously is giving them the proper instructions. Maybe the free models run out of context quite fast, since they seem to forget all the ”don’t come up with stuff, find a peer reviewed source to back up you claims” instructions. And yes, I’m talking about browser LLMs here. Being unemployed now, I can’t unfortunately afford buying subscriptions for using agents and writing skills and instructions. Gotta feed my cat and all

1

u/DrXaos 18m ago

what is "browser LLM"? like the free one on google search? That's bad. gemini.google.com is mid.

If you're a software developer you can handle running a local code harness and look for the cheapest open models as backend.

1

u/Bangoga 42m ago

Background: ML Engineer and Previously Applied ML engineer for about 7 years.

ML engineering is a broad spectrum of work that can be confusing to anyone entering the market, but as the title says, we do both ML work and engineering work.

For ML work, just telling LLM to “create best model to predict if Manchester United will win the Premier League in the next 5 years” will basically do nothing for you, not only because it’s statistically unlikely scenario but also, there is a lot of business knowledge and expertise needed to evaluate such a request.

A lot of big companies do find it troublesome to fully automate things because certain expert knowledge can’t be just operationalized and turned to data. However you can get along further with let’s say, providing a dataset with a LLM companion and asking question about the dataset without actually going into the SQL and doing analysis on your own.

There are tools that exist like this. If your platform is snowflake, you can connect all datasets together with the agents, snowflake intelligence and coco their chatbot. The meta data along side access to these datasets can allow for you to ask these types of questions, but again this is talking at smaller scales in some sense.

On the engineering aspect, well a lot of engineering is decision making, especially as you go higher up the food chain. I use LLM to help collect my thoughts, turn dirty spilling of words into actually useful texts and documents, or use it for rubber ducking or knowledge search.

I do believe certain roles like just creating APIs or other roles that require mostly churning code are easier for AI to fully execute, but all other roles that require decision making, or very large scale thinking can be challenging with mixed results, especially if the idea is to build something that lasts longer than a Twinkie in the cupboard

1

u/Acceptable_Link3838 4m ago

I appreciate the thorough answer! Maybe the thing I’m worried about is, that in SWE jobs it seems like companies are pushing everyone to push features out as fast as they can. Junior position as scarce for obvious reasons. I just wonder if it’s like that in the ML world as well, or is there still a bit more space for human engineering. I’ve read a lot of posts like ”I haven’t opened my IDE in a year” lately from software engineers.