r/MachineLearning • u/j_orshman • Jun 25 '18
r/MachineLearning • u/deeprnn • Oct 18 '17
Research [R] AlphaGo Zero: Learning from scratch | DeepMind
r/MachineLearning • u/PugglesMcPuggle • Aug 22 '21
Project [P] A 3D Volleyball reinforcement learning environment built with Unity ML-Agents
r/MachineLearning • u/Illustrious_Row_9971 • Jul 03 '21
Project [P] DeepLab2: A TensorFlow Library for Deep Labeling Web Demo
r/MachineLearning • u/sensei_von_bonzai • Dec 20 '19
Discussion [D] ICLR 2020 REJECTION RAGE THREAD
CAPS ONLY
PEOPLE WITH ACCEPTED PAPERS ARE NOT WELCOME
r/MachineLearning • u/L-MK • May 06 '21
Research [R] Do You Even Need Attention? A Stack of Feed-Forward Layers Does Surprisingly Well on ImageNet
TL;DR: Got scooped by MLP-Mixer, so I'm releasing my writeup/code/models. I hope someone finds them interesting/useful.
Lately I've been trying a couple variants of simple vision transformers to better understand what makes them perform well. About a month ago, I found that you could replace the attention layers with feed-forward layers and get quite good results. Last week I started a short writeup of the experiment (just a few pages, as I didn't see it as a full paper).
Today Google put out a paper (MLP-Mixer) that proposes exactly the same architecture.
When I saw the paper earlier today I considered scrapping what I had done, but now I figure that I might as well just put it out there.
For those who are interested, here's a GitHub repo with pretrained models, a W&B log of the experiments, and a 3-page writeup.
Also, if anyone has stories about getting scooped, feel free to share -- I'd imagine people have some crazy stories.
Edit: Wow, thank you all for the support! I really didn't expect this. Based on your suggestions, I've also uploaded a version of the report to arXiv: https://arxiv.org/abs/2105.02723
r/MachineLearning • u/[deleted] • Mar 01 '22
Discussion [D] Quitting machine learning for good
Hi everyone,
I'm of those (rare??) persons who does ML for a living but has no interest in doing it. I've built models using classical and deep learning approaches for 7-8 years, and a lot of them had decent impacts in the companies I've worked with. I'm good at what I do and I'm compensated well for it. However, nothing in the field of ML/DL excites me anymore.
I find it more enjoyable to solve problems in my math textbooks . In fact, I want a career in which I can do some form of mathematics but I don't want to do machine learning for the rest of my life. Before I shifted to ML for the money, I worked a lot on satellite systems engineering. I also took a lot of physics and EE courses during my masters degree (optics, quantum mechanics and solid state devices).
I was thinking of a career in quantum information but I don't have a PhD yet. Also, my computer science skills aren't strong enough to switch to cryptography. Any thoughts / ideas on how to get out of machine learning?
UPDATE: 2nd March, 2022 [1]- Thanks a lot everyone for your answers/comments. I'm overwhelmed and humbled by your responses. I'll reply to each one of you during this week or the next, whenever I find some time. I'm caught up in something personal.
[2] I came across this course recently - http://groups.csail.mit.edu/gdpgroup/6838_spring_2021.html. This one looks super exciting. Here's a course on discrete differential geometry that I found online - https://www.cs.cmu.edu/~kmcrane/Projects/DDG/. I'd love to explore differential geometry applied to ML problems (or vice versa).
[3] I would prefer to work on ML in fields like applied physics or genetics rather than banking, social media analytics or consumer electronics.
[4] (This is a short rant)- I'm sick of technical papers that have titles like "X is all you need" or "Your classifier is secretly an energy based model and you should treat it like one". I have nothing against anyone here and I'm absolutely certain that the authors are 100000x more knowledgable than I am but I'm very uncomfortable with such pompous paper titles. Correct me if I'm wrong but I haven't seen catchy titles in physics or mathematics. This is one (trivial) reason why I don't want to pursue a PhD in ML. I hate the grandeur and style!!
[5] Rant 2- Taking any online course from any platform does NOT make you a data scientist or an ML researcher. I hate the fact that not many of them are not willing to put in the time/effort to learn the fundamental math behind ML algorithms. When I ask someone in an interview to explain what PCA is, they stop with the answer that PCA is a dimensionality reduction technique. No word about eigenvalues/eigenvectors or covariance matrix. :(
r/MachineLearning • u/danielcar • Feb 12 '19
Free online Linear Algebra book from Stanford: Introduction to Applied Linear Algebra – Vectors, Matrices, and Least Squares
r/MachineLearning • u/[deleted] • May 16 '23
Research [R] Tiny Language Models (below 10m parameters or only one transformer block) can generate paragraphs of coherent text and reason...provided training is limited to stories that only contain words that a typical 3 to 4-year-olds usually understand.
Paper - https://arxiv.org/abs/2305.07759
r/MachineLearning • u/AquaHug • Jun 26 '22
Project [P] A drawing application called Vizcom that uses GANs to help automate color, shading, and rendering.
r/MachineLearning • u/BatmantoshReturns • Jul 14 '20
Discussion [D] There's a flaw/bug in Tensorflow that's preventing gradient updates to weights in custom layers of models created using the Keras functional API, leaving those weights basically frozen. Might be worth checking `model.trainable_variables`.
EDIT:
Someone replied to the issue, this is what was said:
It looks like what's going on is: The layers currently enter a 'functional api construction' mode only if all of the inputs in the first argument come from other Keras layers. However, you have None included in the inputs in the first positional arg, so it's not triggering functional api construction.
That causes the layer to get 'inlined' in the outer functional model rather than correctly included. You should be able to work around this by changing the layer api so Nones should not get passed in.
We have a major cleanup/refactoring of the Functional API mostly done that make the functional api triggering much clearer (if any symbolic values appear in the inputs) & sort out a number of other issues w/ it. But, that will only land in 2.4. It's not immediately obvious if we can squeeze a fix into tf 2.3 as the RC is already out.
If you look at the notebooks, the inputs to some of the lines look like this:
P_outputs = P_trans11((inputHiddenVals, None, None, None))[0]
It looks like the issue is that the are extra Nones are causing disappearing variables issue, and a workaround could be just to have
P_outputs = P_trans11(inputHiddenVals)[0]
tl'dr: For anyone who has used the functional api with custom layers, it might be worth running
for i, var in enumerate(model.trainable_variables):
print(model.trainable_variables[i].name)so see if all your weights are there.
Using custom layers with the functional API results in missing weights in the trainable_variables. Those weights are not in the non_trainable_variables either.
But if those weights aren't in trainable_variablesthey are essential frozen, since it is only those weights that receive gradient updates, as seen in the Keras model training code below:
gradients = tape.gradient(loss, trainable_variables)
# Whether to aggregate gradients outside of optimizer. This requires support
# of the optimizer and doesn't work with ParameterServerStrategy and
# CentralStroageStrategy.
aggregate_grads_outside_optimizer = (
optimizer._HAS_AGGREGATE_GRAD and # pylint: disable=protected-access
not isinstance(strategy.extended,
parameter_server_strategy.ParameterServerStrategyExtended))
if aggregate_grads_outside_optimizer:
# We aggregate gradients before unscaling them, in case a subclass of
# LossScaleOptimizer all-reduces in fp16. All-reducing in fp16 can only be
# done on scaled gradients, not unscaled gradients, for numeric stability.
gradients = optimizer._aggregate_gradients(zip(gradients, # pylint: disable=protected-access
trainable_variables))
if isinstance(optimizer, lso.LossScaleOptimizer):
gradients = optimizer.get_unscaled_gradients(gradients)
gradients = optimizer._clip_gradients(gradients) # pylint: disable=protected-access
if trainable_variables:
if aggregate_grads_outside_optimizer:
optimizer.apply_gradients(
zip(gradients, trainable_variables),
experimental_aggregate_gradients=False)
else:
optimizer.apply_gradients(zip(gradients, trainable_variables))The bug can be seen in this Colab gist
This gist uses the transformers library to create the models so its easy to see the bug. For an in-depth look, the colab gist below creates all the custom layers from scratch
As you can see in the notebooks, a workaround is to create models using keras subclassing instead; model subclassing results in all the weights appearing in trainable_variables. To be absolutely sure that the functional API and subclasses models are exactly the same, I ran inference on them using the same input at the bottom of each notebook; the outputs for the models were exactly the same. But training using the functional API model would treat many of the weights as frozen (and there's no way to make them unfrozen since those weights aren't registered in the non_trainable_variables either).
I've been looking at this for about a month, as far as I can tell, I don't think there was anything unique about the transformer layer I created; it may be the case that Any Keras model using custom sublayers and the functional API is prone to this.
I put up a Github issue 24 days ago, but I can't tell if this is something being worked on.
https://github.com/tensorflow/tensorflow/issues/40638
If anyone else has been using the Keras functional API with custom layer, would love to hear if you're also getting the same issue when you check the trainable variables.
r/MachineLearning • u/jezeq • May 26 '17
Research [R] Example-Based Synthesis of Stylized Facial Animations
r/MachineLearning • u/pinter69 • Sep 05 '20
Research [R] Council-GAN - Breaking the Cycle - CVPR 2020 (link to free Zoom lecture by the authors in comments)
r/MachineLearning • u/Capital_Delivery_833 • May 01 '23
News [N] ‘The Godfather of A.I.’ Leaves Google and Warns of Danger Ahead
r/MachineLearning • u/SlobodanTankovic • Feb 25 '22
Discussion [D] ML community against Putin
I am a European ML PhD student and the news of a full-on Russian invasion has had a large impact on me. It is hard to do research and go on like you usually do when a war is escalating to unknown magnitudes. It makes me wonder how I can use my competency to help. Considering decentralized activist groups like the Anonymous hacker group, which supposedly has "declared war on Russia", are there any ideas for how the ML community may help using our skillset? I don't know much about cyber security or war, but I know there are a bunch of smart people here who might have ideas on how we can use AI or ML to help. I make this thread mainly to start a discussion/brain-storming session for people who, like me, want to make the life harder for that mf Putin.
r/MachineLearning • u/sloppybird • Dec 02 '21
Discussion [Discussion] (Rant) Most of us just pretend to understand Transformers
I see a lot of people using the concept of Attention without really knowing what's going on inside the architecture and why it works rather than the how. Others just put up the picture of attention intensity where the word "dog" is "attending" the most to "it". People slap on a BERT in Kaggle competitions because, well, it is easy to do so, thanks to Huggingface without really knowing what even the abbreviation means. Ask a self-proclaimed person on LinkedIn about it and he will say oh it works on attention and masking and refuses to explain further. I'm saying all this because after searching a while for ELI5-like explanations, all I could get is a trivial description.
r/MachineLearning • u/persianprez • Nov 07 '20
Project [P] Emoji Scavenger Hunt - Find objects with your camera before time runs out! (iOS/Android)
r/MachineLearning • u/minimaxir • Mar 01 '23
Discussion [D] OpenAI introduces ChatGPT and Whisper APIs (ChatGPT API is 1/10th the cost of GPT-3 API)
https://openai.com/blog/introducing-chatgpt-and-whisper-apis
It is priced at $0.002 per 1k tokens, which is 10x cheaper than our existing GPT-3.5 models.
This is a massive, massive deal. For context, the reason GPT-3 apps took off over the past few months before ChatGPT went viral is because a) text-davinci-003 was released and was a significant performance increase and b) the cost was cut from $0.06/1k tokens to $0.02/1k tokens, which made consumer applications feasible without a large upfront cost.
A much better model and a 1/10th cost warps the economics completely to the point that it may be better than in-house finetuned LLMs.
I have no idea how OpenAI can make money on this. This has to be a loss-leader to lock out competitors before they even get off the ground.
r/MachineLearning • u/cloud_weather • Aug 01 '20
Discussion [D] IRL to Anime with Cartoonization AI?
r/MachineLearning • u/ConfidentMushroom • Feb 14 '21
Discussion [D] MIT's introductory bootcamp on deep learning methods
r/MachineLearning • u/SkiddyX • Jan 30 '20
News [N] OpenAI Switches to PyTorch
"We're standardizing OpenAI's deep learning framework on PyTorch to increase our research productivity at scale on GPUs (and have just released a PyTorch version of Spinning Up in Deep RL)"
r/MachineLearning • u/jayalammar • Oct 04 '22
Research [R] The Illustrated Stable Diffusion
Here's a visual description of how Stable Diffusion works, with over 30 original images covering diffusion models, latent diffusion models, CLIP and how it's trained, and more.
https://jalammar.github.io/illustrated-stable-diffusion/
I appreciate all corrections and feedback.
r/MachineLearning • u/yamqwe • Jan 18 '22
Project [P] I trained every single SOTA from 2021 and accidentally got a silver medal on Kaggle
I trained every single SOTA model from 2021 and accidentally got a silver medal on an image classification competition on Kaggle recently (Pawpularity Contest).
Here If you are interested
The idea was to train every SOTA and then Nuke the leaderboard with 10 Billion parameters ensemble of ensembles. Some ensembles were also supplemented a bit with catboost 2nd stage model just for the "why not".
Outline of the approach: https://i.ibb.co/McJ39mW/image-nuke.png
This stunt was done mainly for the purpose me catching up with the current most recent SOTA vision papers.
I seriously didn't try to compete on the leaderboard and never had the intention of releasing a public notebook that actually gets a silver medal. This came as a complete surprise to me! Hope the solution will be useful for many others in the future.
If you got any questions or feedback, I'll be more than happy to discuss them!
r/MachineLearning • u/rstoj • May 08 '20
Research [P][R] A big update to Papers with Code: now with 2500+ leaderboards and 20,000+ results.
We made a big update to the Papers with Code database of results from papers, now with 2500+ leaderboards and 20,000+ results.
You can browse the new updated catalogue here:
https://paperswithcode.com/sota
This update was powered by our new annotation interface and our new ML research paper that allows us to automatically suggests ML results to extract from the paper. You can read more about these here:
https://medium.com/paperswithcode/a-home-for-results-in-ml-e25681c598dc
and you can access the research here:
https://arxiv.org/abs/2004.14356
https://paperswithcode.com/paper/axcell-automatic-extraction-of-results-from
and see how the new interface looks like here:
https://paperswithcode.com/paper/self-training-with-noisy-student-improves/review/
The database is open for everyone to contribute.
All suggestions/comments/feedback welcome!