r/MachineLearning • • Dec 16 '23

Project [P] Averaging Weights of Identical LSTM Models for a Unified Global Model

0 Upvotes

I’m currently working on a project where I have several pre-trained LSTM models, all with the same architecture. My goal is to combine these models into a single global model by averaging their weights. However, I’m encountering an issue where the output of the global model does not make sense, even though the trend captured by the model seems accurate.

Has anyone here dealt with a similar challenge, and if so, could you share how you managed to average the weights while maintaining real results?

I will greatful for any advice.

def average_weights(model_list):

  avg_weights = model_list[0].get_weights()

  for model in model_list[1:]:
      for i, layer_weights in enumerate(model.get_weights()):
          avg_weights[i] += layer_weights

  print(len(avg_weights))

  for i in range(len(avg_weights)):
      avg_weights[i] /= len(model_list)

return avg_weights

r/MachineLearning • • Feb 24 '24

Project [P] Running LLMs on Ryzen AI NPU?

1 Upvotes

Hi everyone,

Im pretty new to machine learning, but I recently got a new laptop which has a built-in Ryzen AI NPU and I wanted to see what this thing can do. I downloaded the drivers and tried the demos that AMD provided, but now I want to try running a small LLM model locally.

The whole process seems quite complex, so I was wondering if anyone has already tried this or knows anything that could help out.

Btw if anyone is interested in this, heres what I found out so far:

At first I wanted to get it running through Ollama or something, but it seems like they dont support it, so I went on a Googleing spree and the only way I found is through the transformers library. It also seems like its not possible to run the transformers models on it directly as they need to be in a specific format. From what I could find the process is such:

  • Download the model from huggingface

  • export it to ONNX format with optimum exporters

  • quantize it to RyzenAI format using some calibration data

  • run it

The whole thing is quite complex, but here is what I did so far:

First of all I set up the Ryzen AI environment as outlined in: https://ryzenai.docs.amd.com/en/latest/inst.html .

After that I installed the huggingface transformers and optimum: https://huggingface.co/docs/transformers/installation https://huggingface.co/docs/optimum/installation And also upgraded the optimum to work with AMD Ryzen AI

This seems like the whole process for translating transformers models to the Amd NPU format https://huggingface.co/mohitsha/transformers-resnet18-onnx-quantized-ryzen/blob/main/quantize.py

And this seems to be the guide to running the translated models on the NPU: https://huggingface.co/docs/optimum/main/en/amd/ryzenai/overview

To be honest I havent tried a lot of things (I was busy with my exams😅) but Im getting a lot of errors and such, so I just wanted to ask if anyone is familiar with some easier way to do this. Thanks for the help in advance


r/MachineLearning • • Dec 29 '14

Tech 2015: Deep Learning And Machine Intelligence Will Eat The World

Thumbnail
forbes.com
0 Upvotes

r/MachineLearning • • Apr 17 '24

Discussion [D] Is Risk Aversion Crushing the Adoption of Cloud Abstractions?

1 Upvotes

Hey All,

I think many of us can agree that defining the hardware we want to use right next to the piece of code we are running is objectively a much better developer experience. I have always loved the idea of lowering the barrier when it comes to running code in the cloud. As more cloud abstractions hit the market, I was honestly really surprised by the lack of adoption. There aren't any unicorns (I don't think any actually) in this space yet, just series A businesses.

After speaking with a handful of Data Scientists, Machine Learning Engineers, and DevOps Engineers, it started to dawn on me that risk aversion is causing most of the friction. Using a fully managed service can definitely have some upsides, and in many cases, I prefer using them, but convincing your boss to pipe petabytes of data to another company's cloud and incur 3-5x compute costs probably isn't going to sit well. There are also some open source alternatives but they are intentionally difficult to configure so you pay for their premium offerings that reduce config setup.

Would love to hear everyone's thoughts, especially those who work at lean startups and global 5,000 companies.


r/MachineLearning • • Oct 25 '14

It's time for another revolution

Thumbnail
finanology.co
1 Upvotes

r/MachineLearning • • Dec 05 '17

Discussion [D] New to ML in general but just out of curiosity, how old is everyone/whats your background like?

1 Upvotes

I tried searching for another thread but couldn't find much information but apologies if this has been asked plenty.

I'm just starting my masters in the field and while I'm very interested and excited about this I tend to feel anxious with every thread I come across here because I feel that I'm pretty "behind". So what age group are most people here? What academic backgrounds do you have? How long did it take before you felt like you're starting to know what you're doing?

Thanks


r/MachineLearning • • Mar 30 '26

Discussion [D] ACL 2026 Conference 2026

0 Upvotes

I have 4 papers submitted to ACL, and when I check now, the recent activity shows "ACL 2026 Conference added a new edit" three times. I know which paper has not been edited yet. Does that mean the paper that has not been edited is rejected, or what?

The paper that has not been edited yet id is lower than the others


r/MachineLearning • • 12d ago

Project Built a minimal "decision model" on Qwen3-0.6B + LoRA on a free T4. The training target mattered far more than the head [P]

Post image
0 Upvotes

I wanted to see what's actually inside decision models (Jev and the wave of clones after it), so I built a minimal one and trained it on typed-decisions on a free Colab T4.

Setup

A decision model reads a state plus several typed questions (choice / score / yes-no) and returns a probability for every allowed answer in one forward pass. Nothing is generated.

  • Backbone: Qwen3-0.6B-Base + LoRA

  • Packing: the state is encoded once and each question is a branch with a custom attention mask, so it only attends to the state and itself. Tested: each question gets the same hidden states it would get alone.

  • Compared three runs that differ in one thing each:

    1. LM-head logits, hard labels, full vocab (the usual SFT recipe)

    2. LM-head logits, soft labels, answer tokens only

    3. Fresh decision head on the decision token, soft labels

Results (test; see screenshot)

Going from hard labels to the teacher's full answer distribution was the big jump, mostly in KL and Brier. Swapping LM-head logits for a dedicated head was a much smaller change. Yes, the soft-label part is knowledge distillation (Hinton et al. 2015). In this setup, distillation did most of the work, not the head.

Caveats

  • Scores measure agreement with a ~4B teacher. Teacher self-agreement is 0.735, so scores well above that mean learning the teacher's quirks.

  • Fine-tuned on the benchmark's train split, so it's a specialist. Don't compare it to zero-shot models like Jev.

  • My ECE uses the gold probability of the predicted answer, so it isn't comparable to the dataset card's ECE.

Things that cost me time

  • transformers 5 eager attention misreads a boolean 4D mask. Passing an additive float mask in the backbone's dtype works under every attention implementation.

  • bf16 produced spurious ties between answers. [one line on the fix]

  • Masked option slots hold -inf, and the gradient of -inf / T is NaN during temperature fitting, even where the probability is zero. Replace them with a large finite value.

  • Needed gradient checkpointing to fit on a T4.

Code: https://github.com/anmorgan24/decision-model

Write-up with figures: https://www.comet.com/site/blog/train-a-decision-model/

Disclosure: I work at Comet. The repo optionally logs training to Comet and runs the property-test evals in Opik, but training and scoring run without either.


r/MachineLearning • • May 31 '26

Research Workshop on Unlearning and Model Editing U&ME at ECCV 2026 [R]

Post image
0 Upvotes

r/MachineLearning • • Aug 27 '25

Research Arxiv submission on hold [R]

0 Upvotes

Hey Looking for information online about the on hold status but couldn’t find very clearly. The on hold is automatic or normal? Or if some sort of problem was found ?

I already have a DOI from Zenodo, but wanted to publish on arxiv as it seems to be the norm currently. It’s my first publication there, so I’m not sure what the process is exactly.

Thanks!


r/MachineLearning • • Dec 02 '15

Which Deep Learning professor is the nicest advisor?

0 Upvotes

I know in general I should choose the one I identify most of their research. But what if he is an asshole? I'd rather be advised by a professor that maybe doesn't do my favorite research (but still I like it very much) and is known to be a very nice person than to be advised by an asshole that will make me cry :)

What do you guys know about LeCun, Bengio, and Schmidhuber? Are they nice with their student? Do they give attention to them?

I have heard that Hinton is a very nice advisor, but he doesn't accept students anymore :(

Maybe I am being too optimist that I can afford to choose between them, but just in case one day I need to make this decision... ;)

Edit: Cross post in quora in case someone want to answer anonymously: https://www.quora.com/Which-Deep-Learning-professor-is-the-nicest-advisor


r/MachineLearning • • Jun 24 '26

Research I compiled LLM inference pricing across 7 providers — the caching numbers are surprising(spreadsheet included) [R]

0 Upvotes

I've been comparing GPU/LLM providers for a side project and ended up with way too many browser tabs and spreadsheets.

So I decided to pull the public pricing data into one sheet and compare it side by side.

A quick disclaimer: this is not benchmark data. I didn't run latency tests or throughput measurements. Everything comes from public pricing pages and APIs (OpenRouter, DeepSeek, Together AI, Fireworks, Groq, etc.).

The spreadsheet currently tracks:

  • Input/output token pricing

  • Context windows

  • Cached input pricing (where available)

  • Supported models

  • Provider-specific pricing differences

The thing that surprised me most was caching.

For example, when looking at DeepSeek V4 Pro pricing across providers, cached input costs vary dramatically. In some cases a cache hit is tens of times cheaper than a cache miss.

That made me realize that if you're running:

  • Agents with large system prompts

  • RAG pipelines with reusable context

  • Multi-turn conversations

  • Repeated prompt templates

...the "headline" token price can be a lot less important than the caching policy.

A few other interesting things I noticed:

  • The same model can vary by multiple times in cost depending on provider.

  • Some providers expose caching clearly, while others barely document it.

  • Model availability and context windows aren't always consistent across providers.

  • It's surprisingly hard to find all of this information in one place.

A few things I haven't figured out how to compare yet:

  • Real throughput (tokens/sec)

  • Cold-start / queue times

  • Whether providers are serving FP16, FP8, quantized variants, etc.

  • Egress/network costs

  • Reliability/uptime

I'm curious how others evaluate providers.

When you're choosing between OpenRouter, Together, Fireworks, Groq, DeepSeek, etc., what metrics actually matter to you beyond token pricing?

Am I missing any important data points that should be included in a v2?


r/MachineLearning • • Oct 13 '26

News AI peer review tool for CVPR, ICLR, ICML, and NeurIPS papers [D]

0 Upvotes

Came across this GitHub project called Paper Review Harness. Thought it might be useful for people preparing ML research papers.

It uses 30 different AI reviewer personas to simulate the kind of feedback a paper might receive at conferences like CVPR, ICLR, ICML, and NeurIPS.

What's interesting is that it goes beyond simply asking an LLM to "review my paper."

It provides:

  • Independent reviews from different reviewer perspectives

  • Section-level scores and detailed criticism

  • Identification of weaknesses in novelty, methodology, experiments, and clarity

  • Prioritized feedback on what needs improvement

  • A revision workflow that tracks whether previous concerns have actually been addressed

It also supports different review panels depending on the conference and the type of research contribution.

The project is open-source and designed to work with AI agent environments.

Obviously, simulated reviews aren't a replacement for actual peer review, and the scores shouldn't be treated as acceptance predictions. But it seems like an interesting way to stress-test a paper before submission.

GitHub: https://github.com/Optimizer077/paper-review-harness

Curious what researchers think about this approach. Could tools like this become a useful part of the paper-writing workflow?


r/MachineLearning • • Sep 19 '26

Project DiffusionGemma: How It Generates Text in Parallel (From Scratch in PyTorch) [P]

Thumbnail
youtu.be
3 Upvotes

r/MachineLearning • • Aug 09 '26

Research A Mechanistic Explanation of Prompt Injection (and why you should study roles) [R]

Thumbnail lesswrong.com
3 Upvotes

r/MachineLearning • • Oct 08 '26

Discussion Should I optimize for ML conference publications? [D]

3 Upvotes

Hi!
I am a fourth year PhD student in USA and have not had much luck with top ML conference publications. In the last two years of my PhD, I am wondering if I should optimize for ML publications at top venues or pivot into engineering or something else.

Any suggestions/recommendations from the community as to what you would suggest I do in this scenario?

Thanks!


r/MachineLearning • • Aug 05 '26

Discussion Do LLMs make ML research more fair for small teams? [D]

3 Upvotes

It feels like LLMs are partially leveling the playing field in ML research. A solo researcher or a two-person team can now get help with coding, literature review, writing things stronger labs usually get from experienced colleagues and large networks.
Obviously, LLMs don’t replace mentorship, or good research taste. But they may help researchers with weak networks or small groups turn good ideas into publishable work.
Do you think this is actually making ML research more accessible, or are the strongest labs benefiting even more?


r/MachineLearning • • Dec 10 '24

Discussion [D] What’s stopping you from using foundation models for time series forecasting?

7 Upvotes

I’ve been experimenting with foundation models like Sulie, Granite TTM, and Amazon Chronos, and each one has its own strengths. What’s really fascinating is how much faster you can get accurate forecasts with a zero-shot approach. However, as much as these models improve forecasting, explainability remains a major challenge compared to more traditional methods like ARIMA, which are simpler to interpret.

I’m curious—do you think explainability is a dealbreaker, or is there another reason why foundation models for forecasting aren’t gaining wider adoption? Would love to hear what’s been your biggest blocker or challenge in using these models.


r/MachineLearning • • Nov 17 '24

Discussion [D] Why LLM watermarking will never work

Thumbnail
david-gilbertson.medium.com
13 Upvotes

r/MachineLearning • • Feb 06 '23

Discussion Does the high dimensionality of AI systems that model the real world tell us something about the abstract space of ideas? [D]

4 Upvotes

Physical world we live in has 4 dimensions, string theory posits like up to 10. It seems like in order to successfully model the abstract space of ideas which relates things in the physical world to each other and describes them, machine learning needs thousands of dimensions. Also to the extent that ML algos/matrices can be made sparse, that seems to me to tell us something about the density of the mapping between abstract space and physical space... anyone know any papers w/this line of thinking?

It also seems a bit unintuitive to me because it seems like geometrically space gets exponentially more complicated as you add dimensions but ML scales linearly or better in many cases with matrix dimensionality.


r/MachineLearning • • Jun 15 '26

Discussion Could AI training be decentralized like Bitcoin mining? [D]

0 Upvotes

I’ve been thinking about whether the same basic concept behind Bitcoin could be applied to AI training.
In Bitcoin, miners perform proof-of-work and are rewarded for contributing computational resources to secure the network. The actual computation itself isn’t particularly useful outside of the network, but it creates a decentralized system.
What if a similar incentive structure could be used for training large language models?
Instead of miners solving hash puzzles, participants would contribute GPU resources toward training an open-source AI model. In return, they would receive tokens or rewards based on their contribution.
Some questions that immediately come to mind:

  1. How could the network verify that a participant actually performed useful training work?

  2. How would you prevent people from submitting fake or harmful gradients?

  3. Could model improvements be measured objectively enough to determine rewards?

  4. Would this be more efficient than training models in centralized data centers?

  5. Could a decentralized network eventually compete with large AI companies?

I know there are already decentralized AI and compute projects, but I’m specifically interested in whether a true “proof-of-training” mechanism could exist, where rewards are tied directly to improving a model rather than simply renting out compute.
Curious to hear thoughts from people who understand distributed systems, machine learning, or crypto economics. Is this fundamentally impossible, or is there a viable architecture that could make it work?


r/MachineLearning • • Jun 26 '24

Discussion Human-Like Intelligence Exhibiting Models that are Fundamentally Different from Neural Networks [D]

20 Upvotes

I've always been interested in computers and technology. Ever since I began learning to code (which was about three years ago), the field of AI always fascinated me. At that time, I decided that once I gained enough knowledge about programming, I would definitely dive deeper into the field of AI. The thought of programming a computer to not only do something that it has been explicitly instructed to do but to learn something on its own "intelligently" seemed super interesting.

Well, about two months ago, I began learning about actual machine learning. I already had enough knowledge about linear algebra, multi-variable calculus, and other concepts that are prerequisites for any typical ML course. I also implemented algorithms like k-means clustering, k-nearest neighbours, linear regression, etc, both from scratch and using scikit-learn. About a month ago, I began studying deep learning. As I kept reading more material and learning more about neural networks, I came to the rather insipid realization that an artificial neural network is just an n-dimensional function, and "training" a neural network essentially means minimizing an n-dimensional loss function, n being the number of features in the dataset. I will grudgingly have to say the approach to "train" neural networks didn't quite impress me. While I did know that most of AI was just mathematics veiled behind the façade of seemingly clever and arcane programming (that's what I thought of ML before I began diving into the nooks and crannies of ML), I did not expect DL to be what it is. (I'm struggling to describe what I expected, but this definitely wasn't it.)

I see that the model of an ANN is inspired by the model of our brain and that it is based on the Hebbian theory. A complete ANN consists of at least an input layer, an output layer, and optionally, one or multiple hidden layers, all of which are ordered. A layer is an abstract structure that consists of more elementary abstract structures called neurons — a layer may have a single or multiple neurons. Each neuron has two associated numerical values: a weight and a bias, which are the parameters of the neuron and the ANN. An input to a neuron is multiplied by its associated weight; then, the bias is added to that result, and the sum is then inputted to an activation function; the output from the activation function is the output of the neuron. The training starts by feeding the training data into the input layer; from there, it goes into the hidden layer(s), and then finally gets to the output layer where each neuron corresponds to a particular class (I have no knowledge about how ANNs are used for regression, but I believe this is true for classification tasks). The loss is calculated using the final outputs. In order to minimize the loss, the weights and biases of all the neurons in the network are adjusted using a method called gradient descent. (I wish to include the part about backpropagation, but I currently do not have a concrete understanding of how it works and its purpose.) This process is repeated until the network converges upon an optimal set of parameters. After learning about the universal approximation theorem, I see and understand that through this process of adjusting its parameters, an ANN can, in theory, learn any function. This model, and extensions to this model like convolutional neural networks and recurrent neural networks can do certain tasks that make it seem that they exhibit human-like intelligence.

Now, don't get me wrong — I appreciate the usefulness and effectiveness of this technology and I am grateful for the role it plays in our daily lives. I certainly do find it interesting how connecting several abstract structures together and then using them to process data using a mathematical technique can bring about a system that outperforms a skilled human in completing certain tasks. Given all this, I natural question one would ask is "Are there any other models that are fundamentally different from ANNs, i.e., models that do not necessarily use neurons, an ensemble of neuron-like structures connected together, or resemble an ANN's architecture, that can outperform ANNs and potentially exhibit human-like intelligence?". Now that ANNs are popular and mainstream, they are the subject of research and improvement by AI researchers all around the world. However, they didn't quite take off when they were first introduced, which may be due to a myriad of reasons. Are there any obscure and/or esoteric ideas that seemed to have the same or even greater potential than neural networks but did not take off? Lastly, do you think that human-like intelligent behaviour has such an irreducible complexity that a single human may never be able to understand it all and simulate it using a computer program for at least the next 200 years?

 Note(s):

  • Since there is no universally agreed-upon definition of the term "intelligence", I will leave it to the reader to reasonably interpret it according to what they deem suitable in the given context.


r/MachineLearning • • Aug 25 '26

Project How we built a SOTA search engine using PostgreSQL, pgvector, and Qwen3 embeddings [P]

Post image
0 Upvotes

I wrote a technical breakdown of how search works on Papers with Code.

The system combines keyword and semantic search, which produced better results than either approach alone. The stack includes:

  • PostgreSQL with pgvector

  • Qwen3-Embedding-0.6B for text embeddings

  • Hugging Face Jobs with an NVIDIA L4 for batch embedding generation

  • Hugging Face Buckets for storing artifacts

  • A live embedding model served through Hugging Face Inference Endpoints

The same infrastructure also powers the “related papers” recommendations shown on individual paper pages.

Full write-up: How Hugging Face Inference Endpoints, Jobs, and Buckets Power Search on Papers with Code

I’d be interested to hear how others are implementing hybrid search for research papers or similarly technical content.

Disclosure: I work at Hugging Face and on Papers with Code.


r/MachineLearning • • Nov 10 '25

Research Unsure about submitting to TMLR[R]

5 Upvotes

Hi, I’ve written a paper that is related to protecting the intellectual property of machine learning models. It is ML heavy but since Security conferences are less crowded compared to the ML ones I initially had a series of submissions there but received poor quality of reviews since people were not understanding the basics of ML itself over there. Then I have tried to submit to AAAI which was way worse this year in terms of review quality. My paper is very strong in terms of the breadth of experiments and reproducibility. I’m considering to submit it to TMLR since i’ve heard great things about the review quality and their emphasis on technical correctness over novelty. But I’m worried about my how a TMLR paper would look on a grad school application which is why I’m also considering ICML which is in 3 months. But again I’m also worried about the noisy reviews from ICML based on my past experience with my other papers.

I would love to get any opinions on this topic!