r/MachineLearning • u/togelius • Apr 14 '23
Choose Your Weapon: Survival Strategies for Depressed AI Academics
r/MachineLearning • u/togelius • Apr 14 '23
r/MachineLearning • u/SWAYYqq • Mar 23 '23
New paper by MSR researchers analyzing an early (and less constrained) version of GPT-4. Spicy quote from the abstract:
"Given the breadth and depth of GPT-4's capabilities, we believe that it could reasonably be viewed as an early (yet still incomplete) version of an artificial general intelligence (AGI) system."
What are everyone's thoughts?
r/MachineLearning • u/surelyouarejoking • Jul 02 '22
r/MachineLearning • u/tomd_96 • Oct 22 '21
If you want to try out the neural network yourself, you can check out my fork of the code: https://github.com/tom-doerr/TecoGAN-Docker
The fork adds a docker environment, which makes it much easier to get the code running.
r/MachineLearning • u/hardmaru • Aug 28 '21
r/MachineLearning • u/SkiddyX • Jan 28 '20
Introducing the new Thinc, a refreshing functional take on deep learning!
🔮 Static type checking
🔥 Mix PyTorch, TensorFlow, ApacheMXNet
⛓️ Integrated config system
🧮 Extensible backends incl. JAX (experimental)
🧬 Variable-length sequences & more
r/MachineLearning • u/AdditionalWay • Jun 21 '19
r/MachineLearning • u/thegregyang • Mar 10 '22
You can't train GPT-3 on a single GPU, much less tune its hyperparameters (HPs).
But what if I tell you…
…you *can* tune its HPs on a single GPU thanks to new theoretical advances?
Hi Reddit,
I'm excited to share with you our latest work, [2203.03466] Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfer (arxiv.org).
Code: https://github.com/microsoft/mup

(Disclaimer: this post is shamelessly converted from my twitter thread)
The idea is actually really simple: in a special parametrization introduced in our previous work (reddit thread) called µP, narrow and wide neural networks share the same set of optimal hyperparameters. This works even as width -> ∞.

The hyperparameters can include learning rate, learning rate schedule, initialization, parameter multipliers, and more, even individually for each parameter tensor. We empirically verified this on Transformers up to width 4096.

Using this insight, we can just tune a tiny version of GPT-3 on a single GPU --- if the hyperparameters we get on the small model is near optimal, then they should also be near optimal on the large model! We call this way of tuning *µTransfer*.

We µTransferred hyperparameters from a small 40 million parameter version of GPT-3 — small enough to fit on a single GPU — to the 6.7 billion version. With some asterisks, we get a performance comparable to the original GPT-3 model with twice the parameter count!

The total tuning cost is only 7% of the whole pretrain compute cost! Since the direct tuning of the small model costs roughly the same even as the large model increases in size, tuning the 175B GPT-3 this way would probably cost at most 0.3% of the total pretrain compute.
You: "wait can I shrink the model only in width?"
Bad news: there's not much theoretical guarantee for non-width stuff
good news: we empirically tested transfer across depth, batch size, sequence length, & timestep work within reasonable ranges on preLN transformers.

We applied this to tune BERT-base and BERT-large simultaneously by shrinking them to the same small model in both width and depth, where we did the direct tuning. We got a really nice improvement over the already well-tuned megatron BERT baseline, especially for BERT-large!

In general, it seems that the larger a model is, the less well tuned it is --- which totally makes sense --- and thus the more to gain from µTransfer. We didn't have compute to retrain the GPT-3 175B model, but I'll leave your mouth watering with that thought.
OK, so what actually is µP and how do you implement it?
It's encapsulated by the following table for how to scale your initialization and learning rate with fan-in or fan-out. The purple text is µP and the gray text in parenthesis is pytorch default, for reference, and the black text is shared by both.

But just like you don't typically want to implement autograd by hand even though autograd is just chain rule, we recommend using our package https://github.com/microsoft/mup to implement µP in your models.
The really curious ones of you: "OK what is the theoretical motivation behind all this?"
Unfortunately, this is already getting long, so feel free to check out the reddit thread on our previous theoretical paper, and people let me know if this is something you want to hear for another time!
But I have to say that this is a rare occasion in deep learning where very serious mathematics has concretely delivered a result previously unthinkable, and I'm elated with how things turned out! In contrast to this reddit thread a few days ago, I think there are plenty of room for new, fundamental mathematics to change the direction of deep learning and artificial intelligence in general --- why chase the coattail of empirical research trying to "explain" them all when you can lead the field with deep theoretical insights?
Let me know what you guys think in the comments, or feel free to email me (gregyang at microsoft dot com)!
r/MachineLearning • u/[deleted] • Dec 07 '21
I’ve got a few colleagues who always claim to be reading papers, but the way they “read” is so damn superficial.
As an example, I had just finished fully reading/comprehending a paper, and I won’t lie, took me a solid couple days to understand everything fully and reading things multiple times.
Meanwhile, in the daily meetings we have I mention the paper and how we should try and use some of their components in our own work, and someone says, “oh ya, I read that in like 15 mins”. So we decide to have an impromptu discussion on it and Jesus Christ, I swear the only thing he read was the abstract and maybe glanced at the network architecture.
I’m sorry this is turning into an rant, it just really grates my nerves when people say they read something and in reality all they did was look at the abstract.
I’m a firm believe that reading, comprehending and fully understand 1 single “key” paper from whatever field you’re studying, is a much better investment of your time than skimming through 100 regurgitated ideas.
Edit: guys just to clarify, I do believe in skimming abstracts and looking for interesting papers. I go through dozens a day myself. You’d be lost otherwise haha. I take issue though when someone claims they’ve “read” something when all they’ve done is gone through the abstract, and glanced through it.
r/MachineLearning • u/noobbodyjourney • Dec 04 '21
I recently discovered `torch.einsum` and now I am mad at every friend, mentor, acquaintance for not telling me about it.
They are just way more intuitive and can handle most operations that I would want to do with tensors so elegantly. No more of having to remember which way is axis=0, No more of having to remember which way is dim=1 and no more of remembering so many numpy and torch functions only to misuse np.unsqueeze and torch.expand_dims.
It takes only 30 mins or so to learn the notation and become somewhat proficient but then you are sorted for life.
What are the arguments for and against using einstein notations for everything? Will I be writing code which others find difficult to understand? Kindly pitch in your thoughts and theories on why are they so seldom used when they are one-size-fit-all.
r/MachineLearning • u/cloud_weather • Nov 22 '20
r/MachineLearning • u/libreland • Sep 28 '17
r/MachineLearning • u/SleekEagle • Dec 14 '21
PyTorch, TensorFlow, and both of their ecosystems have been developing so quickly that I thought it was time to take another look at how they stack up against one another. I've been doing some analysis of how the frameworks compare and found some pretty interesting results.
For now, PyTorch is still the "research" framework and TensorFlow is still the "industry" framework.
The majority of all papers on Papers with Code use PyTorch

While more job listings seek users of TensorFlow

I did a more thorough analysis of the relevant differences between the two frameworks, which you can read here if you're interested.
Which framework are you using going into 2022? How do you think JAX/Haiku will compete with PyTorch and TensorFlow in the coming years? I'd love to hear your thoughts!
r/MachineLearning • u/Illustrious_Row_9971 • Apr 09 '22
r/MachineLearning • u/SkiddyX • Jul 15 '21
"Last year we presented #AlphaFold v2 which predicts 3D structures of proteins down to atomic accuracy. Today we’re proud to share the methods in @Nature w/open source code. Excited to see the research this enables. More very soon!"
https://twitter.com/demishassabis/status/1415736975395631111
I did not see this one coming, I got to admit it.
r/MachineLearning • u/kreyio3i • Oct 01 '19
https://www.theregister.co.uk/2019/09/27/youtube_ai_star/
I found this comment on the article hilarious
Why aren't you writing these articles slamming universities? I am currently a software engineer in a data science team producing software that yields millions of dollars in revenue for our company. I did my undergraduate in physics and my professors encouraged us to view MIT Open Courseware lectures alongside their subpar teaching. I learned more from those online lectures than I ever could in those expensive classes. I paid tens of thousands of dollars for that education. I decided that it was better bang for my buck to learn data science than in would every be to continue on in the weak education system we have globally. I paid 30 dollars month, for a year, to pick up the skills to get into data science. I landed a great job, paying a great salary because I took advantage of these types of opportunities. If you hate on this guy for collecting code that is open to the public and creating huge value from it, then you can go get your masters degree for $50-100k and work for someone who took advantage of these types of offerings. Anyone who hates on this is part of an old school, suppressive system that will continue to hold talented people down. Buck the system and keep learning!
Edit:
Btw, the Journalist, Katyanna Quach, is looking for people who have had direct experiences with Siraj. If you have, you can contact directly her directly here
https://www.theregister.co.uk/Author/Email/Katyanna-Quach
here
https://twitter.com/katyanna_q
or send tips here
r/MachineLearning • u/NFB42 • Jan 30 '16
Hi there. Earlier this month I had a discussion over on /r/hearthstone with /u/yetipirate about Computer Go. Then the news hit this week of the first Go AI to beat a human professional.
We had some more discussion then, and I made a synopsis of this video, where the US Go Association has Myungwan Kim, 9-Dan Pro, analyse the games between the AlphaGo AI and human professional Fan Hui, 2-Dan Pro. (FTR: Professional go ranks start at 1-Dan and go up to 9-Dan, but rather than the absolute top 9-Dan is more like the beginning of grandmastery. The best players in the world are like 9-Dan+++++. Lee Sedol, which AlphaGo will challenge next this March, is at this latter level.)
/u/yetipirate suggested this synopsis might interest some people here as well, since it digests the salient points of a two hour video with lots of Go jargon into a more manageable post. So hence I'm posting it here, I hope you all enjoy it. Feel free to ask me any questions about Go, but I'm not that strong myself so ymmv. Anyway without further ado:
In General:
The match has been big news in East-Asia as well. The thing which most shocked all the professionals was that AlphaGo played so much like a human player. Their first impressions were that it's as if this was a human playing, not a computer.
Since how a human plays is, obviously, pretty well known, they decided that they'll focus commentary mostly on those cases where AlphaGo doesn't play like a human.
The first thing that Myungwan Kim noted was that AlphaGo has a Japanese playstyle (this is especially interesting because among the three traditional Go powerhouses, China, Korea, and Japan, the Japanese have been the weakest in international competitions for the past several decades). The commentators don't know, but they suspect it is that the original human data set was biased towards Japanese playstyles.
Myungwan Kim also makes a comment about one of the lines continually repeated in the coverage of Computer Go. The line that "if you ask a top Go player why they like a certain move, they'll often say 'it felt right'". Myungwan Kim wanted to add that just because it's based on intuition, doesn't mean there's no logic behind it at all. Top Go players aren't just guessing what are good moves, they have a real and complicated rational understanding about what specific moves are doing. Even if the final decision might come down to which move feels the best, it's not as simple as top pro's just doing a random move and saying 'I felt like it'.
The Games:
In the first game both sides played very passively in the opening. Leisurely and gentle they say.
Myungwan Kim finds that AlphaGo has a weakness here, it doesn't seem to understand the value of taking and holding initiative. Complicated to explain, but at its core it's about doing moves which force your opponent to use their turn to react to your move over doing moves which might be equally valuable to you, but leave your opponent free to do whatever they want on their turn.
Important, Myungwan Kim says because of this that the first game Fan Hui was winning in the opening. He says this was the only game Fan Hui was winning after the opening. He estimates Fan Hui was about 10 points ahead, and can't see white getting back even 5 points coming out of that opening. Myungwan Kim offers some alternate moves for AlphaGo which would still have Fan Hui in the lead, but would've given AlphaGo better opportunities to comeback.
Conclusion from the opening: AlphaGo lost because it didn't understand the value of initiative.
Myungwan Kim later points to one huge mistake by Fan Hui in the midgame that lost him the game. I can't go into detail here because, as characteristic of top-level Go, it's the difference of placing one stone one space higher. But Myungwan Kim says that while Fan Hui made other small mistakes, this one move is the big one which let AlphaGo come back from losing the opening.
Final conclusion from game one: Aside from not understanding initiative. Myungwan Kim says AlphaGo betrays itself as a computer in that it sometimes it goes too far in mimicking standard professional play and does the most common move instead of the most optimal move. In other words, it's extremely book smart, but at times fails to notice when it should be ignoring the books because the specific situation in the game makes the less standard move the most optimal one instead. (A bit cliche imo, but Myungwan Kim says "AlphaGo is not creative".) They think that might really hurt AlphaGo in the game against Lee Sedol.
Game 2, they note Fan Hui really played too aggressively, as he noted in his own post-match interview. Myungwan Kim says he can really see Fan Hui wasn't playing his best game, but was trying to test AlphaGo to see if it could be tricked into making exploitable mistakes.
Myungwan Kim says Fan Hui actually put up a really good fight. After the opening it should've been over for Fan Hui, but AlphaGo almost allowed Fan Hui to get back in the game.
Game 3 is similar to the fifth game, though Fan Hui played better in the beginning here. Myungwan Kim notes several moves by AlphaGo which are top professional moves. He notes some moves by Fan Hui which he thinks hints that Fan Hui might be a bit out of practice when it comes to playing professional level games (he says it's the kind of move you do if too used to playing teaching games against amateurs). Fan Hui lost because he played over-aggressive and left too many holes in his defence as a result.
On the fifth game, Myungwan Kim says AlphaGo was winning from the beginning here. They marvel at some of AlphaGo's moves here, but they're not sure whether AlphaGo really knew what it was doing or if it just got 'lucky' somehow.
Myungwan Kim points out AlphaGo made a huge mistake early in this game, but was saved because not long after Fan Hui made an equally huge mistake. But this is an example where he thinks a real grandmaster like Lee Sedol would not have allowed AlphaGo to get away with the kind of mistake it made there.
AlphaGo's Strengths and Weaknesses:
Myungwan Kim lists AlphaGo's strengths:
It's not afraid of 'Ko'. 'Ko' is too complex a concept to explain succinctly, for an attempt see my post here. They marvel at some of AlphaGo's moves surrounding a 'Ko' situation, but aren't sure if AlphaGo really knew what it was doing or just got lucky that it worked out.
Reading might be AlphaGo's strength. As in, cases where it comes down to very straightforward fights and moves it's very strong at choosing the right moves.
Myungwan Kim lists AlphaGo's weaknesses:
Doesn't understand initiative, as explained earlier.
At times too obsessed with following common patterns, when the specific situation might require creative deviation from those patterns. Also explained earlier.
It doesn't understand 'Aji'. 'Aji' is difficult to explain, but it refers to the amount of uncertainty remaining in a specific grouping of white and black stones. (Usually, it's about the chance that a group of stones which is 'death' might become alive and vice versa as a result of things happening elsewhere on the board.) You can also put this differently as: AlphaGo lacks proper long-term thinking.
Myungwan Kim thinks AlphaGo has difficulty, or even doesn't at all, evaluating the value of specific stones. It's good at making moves which directly gain territory for itself, but tends to miss moves which reduce the value of the opponent's stones.
It can make really high level moves at times, but it doesn't understand those moves. Which it displays by making the right moves at the wrong time.
More generally Myungwan Kim thinks a weakness of AlphaGo is its insularity. He really stresses that human pro's become much stronger when they discuss and analyse their games with other pro's. And because AlphaGo primarily plays against itself the quality of the feedback it gets on its play is too one-note, which leaves holes in its plays whereas human pro's getting feedback from many other human pro's end up with more robust and stronger playstyles. He really thinks to progress past its current level AlphaGo needs to play more with top human pro's rather than just itself. Right now, Myungwan Kim en most pro's he knows don't feel threatened by AlphaGo. They also talk about how AlphaGo can be useful for human pro's to study and become stronger, which can make AlphaGo stronger in turn. (This last paragraph is imo all just Myungwan Kim musing based on his understanding of how AlphaGo was designed more than evaluating its plays themselves, so that's why I didn't list it as a bullet point.)
In general, I get the sense from Myungwan Kim's explanations that he thinks AlphaGo is stronger at the more concrete parts of Go play, such as territory and life-or-death, and weaker at the more vague concepts, such as influence and uncertainty.
[word limit hit, final part below]
r/MachineLearning • u/chonyyy • Jan 16 '21
r/MachineLearning • u/hardmaru • May 19 '17
r/MachineLearning • u/Philpax • May 05 '23
Introducing MPT-7B, the latest entry in our MosaicML Foundation Series. MPT-7B is a transformer trained from scratch on 1T tokens of text and code. It is open source, available for commercial use, and matches the quality of LLaMA-7B. MPT-7B was trained on the MosaicML platform in 9.5 days with zero human intervention at a cost of ~$200k. Starting today, you can train, finetune, and deploy your own private MPT models, either starting from one of our checkpoints or training from scratch. For inspiration, we are also releasing three finetuned models in addition to the base MPT-7B: MPT-7B-Instruct, MPT-7B-Chat, and MPT-7B-StoryWriter-65k+, the last of which uses a context length of 65k tokens!
r/MachineLearning • u/ilikepancakez • Nov 27 '19
https://en.yna.co.kr/view/AEN20191127004800315
Announced today in South Korea, and it’s made me think on the sort of impact that these things will have on people in the coming days. There’s definitely a great deal of good that can be achieved, with innovation/growth and so many opportunities in general for the companies and people involved in this work.
But at the same time, it is kind of sad to see some of the human element get left behind. I’m sure Lee Se-dol could have played for many more years if he wanted to, continuing to contribute greatly to the professional Go scene as a player.
This is something that I wonder then, if people working at companies like Google / DeepMind should be thinking about. I’m sure the growing profit margins and money that’s flowing in from all our work is more than satisfactory for the company leadership / investors to not have any issues. As the engineers responsible for actually building everything though, is there any kind of ethical consideration on our part that we need to recognize? I don’t know. I am curious as to what you all think here in r/machinelearning though.
r/MachineLearning • u/seann999 • Oct 06 '18
Since the beginning of the year, new chapters became available one by one, and it seems like all draft chapters have become available since a few weeks ago. Personally, as a "math deficient" person, I've been using this as a resource to prepare myself (yet again) for another attempt at Bishop's PRML.
r/MachineLearning • u/Successful-Western27 • Nov 03 '23
In a recent paper, researchers have discovered that LLMs show enhanced performance when provided with prompts infused with emotional context, which they call "EmotionPrompts."
These prompts incorporate sentiments of urgency or importance, such as "It's crucial that I get this right for my thesis defense," as opposed to neutral prompts like "Please provide feedback."
The study's empirical evidence suggests substantial gains. This indicates a significant sensitivity of LLMs to the implied emotional stakes in a prompt:
Deterministic tasks saw an 8% performance boost
Generative tasks experienced a 115% improvement when benchmarked using BIG-Bench.
Human evaluators further validated these findings, observing a 10.9% increase in the perceived quality of responses when EmotionPrompts were used.
This enhancement is attributed to the models' capacity to detect and prioritize the heightened language patterns that imply a need for precision and care in the response.
The research delineates the potential of EmotionPrompts to refine the effectiveness of AI in applications where understanding the user's intent and urgency is paramount, even though the AI does not genuinely comprehend or feel emotions.
TLDR: Research shows LLMs deliver better results when prompts signal emotional urgency. This insight can be leveraged to improve AI applications by integrating EmotionPrompts into the design of user interactions.
Full summary is here. Paper here.
r/MachineLearning • u/ai_yoda • May 28 '20
We were wondering what are the tools, frameworks, libraries, and methodologies that ML teams at startups actually use.
...and so we asked a bunch of teams and got 41 of them to answer.
We got way more insights than we could handle but after grouping it into a few clusters of most-prevalent answers we got something like this:
Software development setup
For IDE there are two camps: Jupyter Lab + NB extensions with occasional Deepnote, and Colab on one side and Pycharm or VSCode on the other ( R studio was a clear winner for R users)
Github for version control
Python (most) R (some)
Machine Learning frameworks
Pandas + Matplotlib + Plotly for exploration and visualization
Sklearn + XGBoost for classical algos
Tensorflow+Keras or Pytorch (sometimes both at the same company) for deep learning. Pretty even split I'd say
MLOps
Kubeflow, Airflow, Amazon Sagemaker, Azure for orchestration
Kubeflow, MLflow, Amazon Sagemaker, for model packaging/serving
pytest-benchmark, MLperf for profiling and optimization when moving models from training to inference
MLflow, Comet, Neptune for experiment management
Unexpected 🙂
Wetware – "the hardware and software combination that sits between your ears – is the most important, most useful, most powerful machine learning tool you have."
This is of course TLDR but you can check out the full article if you want.
How about you? What is your team using that we missed?