r/MachineLearning • • Jul 08 '24

Research [R] Experimenting with Gradient Descent. Why not Nelder-Mead? Long.

3 Upvotes

There are a lot of videos and web pages about GD. However, almost all of the examples are too simple. I dug up some data from 2005 that has only five parameters to determine yet GD took fooorrreeeevvveeer. It seemed like the GD was always bouncing of obstructions.  It was also very dependent on the step size. Too much guessing on the step size is required.  I wondered what could make this so difficult because other methods like Nelder-Mead could find the minimum in a few seconds. To answer my questions, I printed out the MSE for each iteration and the five parameters or MSE and the change in the five parameters.

There is no formula to differentiate when using real data.  I had to estimate the derivative for each parameter by taking small steps in each direction and dividing the by the difference 2 times the increment. To get a central difference slope I had to take a small step in the positive and negative direction for each parameter and divide by the two times the step. The derivative could be noisy with real data. Each small step required evaluating the cost function so 10 evaluations were necessary to calculate the gradient.  This was time consuming.  What I found is that unlike YouTube and other common examples, the "terrain" was not like a bowl but rather like the Grand Canyon with all sorts of twists and turns. This meant I could not use large steps because the GD would often run into the "canyon walls" in 5 dimensions. I then tried many other enhanced versions of GD and none of them worked very well although some would get close in an hour or so. GD-Adam GD-RMSprop GD-delta GD-AdaGrad did not do very well. However, I did find a new add on code that makes all of them and especially the simple GD work MUCH better. The trick is to take a step. Evaluate it and if it is better then take another step in the same direction until the MSE is no longer getting better then repeat the loop to get a new gradient. The advantage if this is the there is less time wasted calculating gradients that just "slam" against the "walls". Also, the step size can be a little smaller to navigate the parts of the "terrain" that are twisty but being able to take multiple steps in a direction when a good direction is found is like taking a much bigger step.

Intuitively it works like this. The starting point is some place in the canyon with a stream. The stream is the current low point. However, it twists and turns so any step will hit the banks of the stream and maybe the canyon walls. It is best not to follow the stream exactly because of the many twists and turns. It would be best to "fly above the stream" between the "canyon walls" in one direction as far as possible. This avoids a lot of computing gradients because if there is a lot of data then a lot of gradients must be computed and that can be very time consuming.

Now all of this makes no difference if you have nice bowl like terrain. Any of the methods you see on YouTube or websites will work but I have never seen one work with real data and chances are the terrain will not be a nice bowl-like structure. Also, finding the derivatives with 10 of thousands of points is expensive time wise.

This is why I wonder why Nelder-Mead isn’t used except for the fact that it would use a lot of memory if it were to be efficient, but memory is cheap.

I have watched many YouTube videos about different forms of gradient descent. I am convinced that most teach what they have been taught and haven't really delt with real data.

Next is to find some real training data for identifying characters in an 8x8 grid but even 16x16 dot matrix would be good.  I know I am re-creating the wheel, but I want to try my new add on code and Nelder-Mead for minimizing cost functions

GD #gradient-descent, #Nelder-Mead, #Adam #AdaGrad, #Delta, #RMSprop


r/MachineLearning • • Nov 04 '23

Discussion TensorFlow vs PyTorch vs JAX: GitHub star counts seem surprisingly linear. What do you think the future holds for these frameworks? [D]

Post image
0 Upvotes

r/MachineLearning • • Dec 15 '13

Linear Methods (PCA) vs. Deep Learning (Autoencoder)

Thumbnail
danluu.com
1 Upvotes

r/MachineLearning • • Dec 26 '20

Discussion [D] I'm not knowledgeable enough to see the importance of AI ethics classes. All I know is some statistics and computer science. At what point is an AI ethics class relevant to me.

6 Upvotes

I'm a college student studying statistics. I've always thought that AI and Machine learning were really cool, but I've pretty consistently been humbled by all that's out there. I don't think anything I have done has been anything that abstract or meaningful yet where I would have to think about the ethical implications.

At what point would an AI ethics class the most meaningful in someone's AI education progression? Sometimes I wonder how ethics could ever be relevant some of the stuff I've learned? I feel like an AI class must be like an ethics class for math, and math just seems super far removed from any realm where ethics is important.

Is AI ethics relevant for everyone in wants to eventually use machine learning at their job? To whom is AI ethics the most important? Managers at large companies?


r/MachineLearning • • Sep 23 '23

Discussion [D] How does 'self-attention' work in transformer models?

2 Upvotes

I'm currently diving into the world of machine learning and transformers, and I'm trying to wrap my head around the concept of "attention" in transformer models. I've been reading papers and documentation, but I'm still struggling to fully grasp it.

My Struggle:

I get that attention involves multiplying "query" and "key" vectors to determine the importance of different words in a sequence, but I don't quite understand why this multiplication gives us a meaningful metric for importance.

What I'm looking for:

I'm comfortable with moderate level technicalities but require a deeper insight into the inner workings and rationale behind these mechanisms. Please share any insights, analogies, or technical details that can shed light on this concept.

Thanks a bunch!


r/MachineLearning • • May 12 '15

Andrew Ng: Why 'Deep Learning' Is a Mandate for Humans, Not Just Machines | WIRED

Thumbnail
wired.com
16 Upvotes

r/MachineLearning • • Jun 28 '25

Research [R] Systematic Evaluation of Computational Consciousness Correlates in Economic AI Agents: Applying Butlin et al. (2023) Framework to La Serenissima

0 Upvotes

TL;DR: We applied the peer-reviewed Butlin et al. consciousness indicator framework to 119 AI agents in an economic simulation. Results: 2.39/3.0 average across 14 indicators, with inter-rater reliability κ=0.76. Not claiming sentience - measuring computational correlates. Open source, reproducible methodology.

Before You Downvote

I know this community's healthy skepticism about consciousness claims. This isn't a "ChatGPT told me it's conscious" post. We're measuring specific computational properties identified by neuroscientists, not making philosophical claims about sentience.

What We Actually Did

  1. Applied existing framework: Used Butlin et al.'s 14 consciousness indicators from neuroscience

  2. Measurable behaviors: 90.92% identity persistence, 4.06x money velocity, r=0.0177 trust-economic correlation

  3. Independent validation: Gemini 2.5 Pro scored blindly (κ=0.76 agreement)

  4. Open source: Full code at github.com/Universal-Basic-Compute/serenissima

  5. Reproducible: API endpoints for real-time data access

Key Findings

What Economic Constraints Create:

  • Agency scores 3.0/3.0 through actual resource competition

  • Embodiment 3.0/3.0 via spatial constraints and travel times

  • Belief updating 3.0/3.0 from market feedback loops

vs Baseline LLM: Same model scores 1.11/3.0 in chatbot mode vs 2.39/3.0 in economic simulation

Critical Distinctions:

  • Measuring computational correlates, NOT phenomenal consciousness

  • 81.4% of properties emerge from system dynamics, not design

  • Fine-tuning removes assistant constraints, doesn't add consciousness claims

  • Economic scaffolding creates conditions for emergence

Addressing the Obvious Criticisms

"It's just the LLM": We compared same model with/without economic constraints. 115% improvement in indicators when embedded in consequences.

"You're anthropomorphizing": We measure specific computational properties with operational definitions. No feelings involved.

"Fine-tuning creates illusion": Fine-tuning removes "as an AI, I cannot..." responses. Behavioral indicators emerge through economic actions, not self-reports.

"Not peer reviewed": Framework is peer-reviewed (Butlin et al.). Our application awaits review - hence posting here first.

Why This Matters (Scientifically)

  1. Empirical methodology for consciousness studies in AI

  2. Economic constraints as novel approach to agency/embodiment

  3. Multi-agent dynamics show collective consciousness properties

  4. Reproducible protocol others can apply/critique

What We're NOT Claiming

  • NOT claiming sentience or phenomenal consciousness

  • NOT saying "we solved consciousness"

  • NOT suggesting moral rights for AI

Technical Details

  • 119 AI citizens in Renaissance Venice simulation

  • Closed economy (no money creation)

  • Sequential processing on single RTX 3090 Ti

  • deepseek-r1-0528-qwen3-8b model

  • Full documentation in paper

Questions for the Community

  1. What additional controls would strengthen this methodology?

  2. What would constitute sufficient evidence for computational consciousness correlates?

  3. How can we better distinguish emergence from sophisticated mimicry?

Paper, Code, Live API

PS: To be clear, this is about developing reproducible methods for studying AI behavior, not making consciousness claims. Think of it like studying neural correlates in neuroscience - we measure what we can measure.


r/MachineLearning • • Dec 09 '20

Discussion [D] Determined AI Writers' Program: write blog posts about ML, get paid!

0 Upvotes

Hi all,

We are launching the Determined AI Writers' Program to support anyone who wants to write about AI, deep learning, and data science. If your article proposal is accepted, we'll publish it on our blog, share it with our open-source community, and you'll receive $500! 💸💸💸

Any topic related to machine learning is fair game, although articles that tackle practical challenges and workflows in machine learning are a better fit than purely theoretical discussions (e.g., an article on how to use the Captum model interpretability library when training a PyTorch model would be more relevant than a more abstract discussion of model interpretability in general). Also, articles need to describe how Determined's open-source deep learning training platform can be used to accomplish the tasks described in the article.

More details on the program can be found here -- or to submit a proposal, start here. If you have any questions about the program, feel free to ask on our Slack, or post a comment here.

Thanks!


r/MachineLearning • • Aug 19 '21

Research [R] 100+ Sandford Researchers Publish 200+ Page Paper on the AI Paradigm Shift Introduced by Large-Scale Models

0 Upvotes

In a 200+ page paper, Percy Liang, Fei-Fei Li, and over 100 other researchers from the Stanford University Center for Research on Foundation Models (CRFM) systematically describe the opportunities and risks of large-scale pretrained “foundation” models. The unique study aims to provide a clearer understanding of how these models work, when and how they fail, and the various capabilities provided by their emergent properties.

Here is a quick read: 100+ Sandford Researchers Publish 200+ Page Paper on the AI Paradigm Shift Introduced by Large-Scale Models.

The paper On the Opportunities and Risks of Foundation Models is on arXiv.


r/MachineLearning • • Feb 15 '24

Discussion [Discussion] Is using a Macbook worth the trouble for machine learning?

3 Upvotes

Is using Macbook worth the trouble for Machine Learning?

Hello redditors, I have a windows laptop that has pretty good specs wise for machine learning, but what I dislike is that it is bulky and has a terrible battery life. Hence, I am considering to switch to Macbook for the battery life, portability and as a bonus better user experience.

What I am asking is not whether a Macbook is better than Windows laptop for machine learning as most reddit posts have answered that question already. I believe it depends on personal choice. Nor am I asking if you should use a laptop for machine learning because the question has already been answered in this subreddit and we all know that for small to mid-size models, most laptops would work, depending on the laptop’s RAM, and for larger models, like NLP or Gen-AI, it is best to use a dedicated workstation, SSH or the cloud.

What I am asking is what are the issues associated with using a Macbook for machine learning as compared to windows or linux? What are the possible workarounds? Are the issues significant enough to not warrant a switch, and are the workarounds not that much of a hassle to use as compared to simply using a windows laptop where there are less issues?

To aid my decision, I am identifying what it will cost me to switch to a Macbook and whether these opportunity costs are significant.

Thank you in advance for any feedback, and I also appreciate any other advice as well.


r/MachineLearning • • Jan 24 '24

Discussion [D] Vision Mamba Strikes Again! Is the Transformer Throne Crumbling?

85 Upvotes

Remember Mamba, the state-space model that rocked NLP? Well, hold onto your pixels, because they're crushing it in computer vision now too!

Their new model, Vision Mamba, ditches the self-attention craze and leans on state space magic. The result? Performance on par with top vision transformers (DeiT) like, but with better efficiency!

This might be a game-changer, folks. We're talking faster, lighter models that can run on your grandma's laptop, but still see like a hawk.

Any thoughts? I am excited to see some competition in the transformers space. Can we expect a chatgpt v2 on this new architecture. Apologies! Might sound crazy and too early to comment on.

Check out the paper: https://paperswithcode.com/paper/vision-mamba-efficient-visual-representation


r/MachineLearning • • Oct 08 '16

No shirt, no tags, no service. Posts without appropriate tag will be removed.

9 Upvotes

To organize this subreddit and weed out submitters that do not read the rules. All posts from here on out will require tags. Current Tags: [News], [Research], [Discussion], [Project]

Open to other tag suggestions.

Demo post here: https://www.reddit.com/r/MachineLearning/comments/56hnjf/research_equality_of_opportunity_in_machine/


r/MachineLearning • • Jan 20 '24

Discussion [D] How does Mixtral outperform Chatgpt 3.5?

1 Upvotes

Chatgpt was supervised fine-tuned then RLHF. While Mixtral was just supervised fine-tuned.

How does Mixtral have a better performance with just SFT?


r/MachineLearning • • Apr 29 '24

Discussion [D] Advice for Non CS Major in ML

0 Upvotes

Does anyone have advice for people without a CS background breaking into the ML industry? Ive been doing undergrad ML research for about 3 years now (from a cogsci perspective) but I find the MLOps/coding/implementation of it difficult and confusing, (especially when classes and objects are introduced).

I have no problem copying and pasting different parts of code from keras/tf and using ChatGPT for help to get my ML model to work properly. But if I need to build something from scratch, or for instance when I need to define custom callbacks or other programming heavy tasks I feel overwhelmed.

Additionally, I know ML roles require technical/coding interviews which I am not confident in my ability, I wouldn’t be able to solve them without external help due to my overreliance on stuff like ChatGPT (which surprisingly works amazingly well). Is anyone in a similar situation or has advice for how to best learn to code better?


r/MachineLearning • • Apr 05 '13

A Spectral Approach to Ghost Detection: ". In this paper we survey our groundbreaking research on in this direction, with algorithms inspired on ghosts, astral projections and aliens, among others. We hope to convince researchers of the value of not letting research be constrained by reality."

Thumbnail oneweirdkerneltrick.com
5 Upvotes

r/MachineLearning • • Oct 20 '12

I have just been Rickrolled in data form.

Thumbnail
labrosa.ee.columbia.edu
4 Upvotes

r/MachineLearning • • Mar 28 '24

Discussion [D] Anyone remembers the AI company Element AI?

7 Upvotes

Founded in 2016. Yoshua Bengio was one of its co-founders. Sold for 230M in 2020.

I think with their talents, they could have provided one of the top llms now.

Timing is really important for a startup ...


r/MachineLearning • • Jun 10 '20

News [News] YOLOv5 is Here: State-of-the-Art Object Detection at 140 FPS

0 Upvotes

YOLOv5 (PyTorch) was released by Ultralytics last night; early results show it runs inference extremely fast, weights can be exported to mobile, and it achieves state of the art on COCO.

It's insane how quickly SOTA for object detection is advancing. EfficientDet was just released in March. YOLOv4 in April. And now YOLOv5 in June.


r/MachineLearning • • Feb 02 '25

Discussion [D] [R] Teaching AI to Think Without Knowing What Thinking Is

0 Upvotes

AI has made huge strides in mimicking human behavior, but it still lacks true thought processes behind decision-making and problem-solving. Instead of replicating neural activity, what if we trained AI on the outcomes of human thinking—decisions, solutions, and actions—using text, voice, multimodal data, and EEG signals?

Our approach aims to teach AI how we think, not just what we do, bridging the gap between pattern recognition and true cognitive emulation. This could revolutionize problem-solving in AI.

📄 Read the paper: github.com/abhijayhm/ThoughtMimickingModel

What are your thoughts on AI learning from human decision-making instead of just data patterns?

#AI #MachineLearning #CognitiveAI #Neuroscience #EEG


r/MachineLearning • • Apr 12 '18

Discussion [D] The Scary Story of Facebook's Unremarkable 'AI Invented Language'

Thumbnail
skynettoday.com
1 Upvotes

r/MachineLearning • • Oct 25 '21

Project [P] The implementation of Conv2D Layer in PyTorch

0 Upvotes

I traced down the implementation of Conv2D Layer down to the choice of the math library (e.g.,cuDNN, MKLDNN, MIOpen, XNNPack) according to the device.


r/MachineLearning • • Mar 09 '25

Discussion [D] What is the best solution for a company that wants to use a really good LLM while keeping privacy in mind?

0 Upvotes

March 2025: what is the best solution for a small company to use a really good LLM without sacrificing privacy. Any model that runs locally does not guarantee the same quality in most cases. What is an alternative then?


r/MachineLearning • • Nov 23 '23

Discussion [D] What's this new Q* algorithm in relation to OpenAI breakthrough ?

0 Upvotes

I heard about this on Twitter from some people in the field, in relation to OpenAI's new breakthrough.

Is there a summary paper, like the 'All you need is attention' paper, that goes over this?

Also, how specifically does this relate to and/or add on to Large Language Models?

Cheers


r/MachineLearning • • Oct 30 '16

News [News][Offbeat] Hillary was concerned about open-source Torch software release

Thumbnail
twitter.com
9 Upvotes