Better HN
topnewbestaskshowjobs
Log inSign up

charleshmartin

83 karma · joined Jul 5, 2015 (11y ago) · 50 submissions

Founder, Calculation Consulting Machine Learning and Data Science Expertise

http://www.linkedin.com/in/charlesmartin14

http://calculationconsulting.com

Submissions

comment 9mo ago · link · parent

If you train a model for too long, it may overfit it's training data. Not surprising, this has been know for like forever. But did you know you can detect the signatures of overfitting in the layer weight matrices directly, without needing access to any data (train or test) ?

In our recent paper (with hari kishan prakash ), - : - , we show this explicitly in 2 different classic grokking experiments. And the overfitting we see is very different from what has been seen before!

paper: https://arxiv.org/abs/2602.02859

2.

Detecting Overfit Layers without any Data(twitter.com ↗)

1 points · by charleshmartin · 9mo ago · 1 comment

comment 9mo ago · link · parent

Right. If the dynamics of training are governed by RG flow, then the best optimization path should remove redundant directions, as specified by the RG operator(s)

comment 1y ago · link · parent

We present a SemiEmpirical Theory of Learning (SETOL) that explains the remarkable performance of State-Of-The-Art (SOTA) Neural Networks (NNs). We provide a formal explanation of the origin of the fundamental quantities in the phenomenological theory of Heavy-Tailed Self-Regularization (HTSR): the heavy-tailed power-law layer quality metrics, alpha and alpha-hat. In prior work, these metrics have been shown to predict trends in the test accuracies of pretrained SOTA NN models, importantly, without needing access to either testing or training data. Our SETOL uses techniques from statistical mechanics as well as advanced methods from random matrix theory and quantum chemistry. The derivation suggests new mathematical preconditions for ideal learning, including a new metric, ERG, which is equivalent to applying a single step of the Wilson Exact Renormalization Group. We test the assumptions and predictions of SETOL on a simple 3-layer multilayer perceptron (MLP), demonstrating excellent agreement with the key theoretical assumptions. For SOTA NN models, we show how to estimate the individual layer qualities of a trained NN by simply computing the empirical spectral density (ESD) of the layer weight matrices and plugging this ESD into our SETOL formulas. Notably, we examine the performance of the HTSR alpha and the SETOL ERG layer quality metrics, and find that they align remarkably well, both on our MLP and on SOTA NNs.

5.

Setol: SemiEmpirical Theory of (Deep) Learning(arxiv.org ↗)

6 points · by charleshmartin · 1y ago · 3 comments

comment 1y ago · link · parent

SETOL is a theory of NN layer convergence. It argues that the individual layers of NN converge at different rates, and the 'Ideal' state of convergence can be detected simply by looking at the spectral properties of the layer weight matrices.

SETOL derives the weightwatcher HTSR layer quality metrics (alpha, alpha-hat) from first principles using techniques from statistical mechanics and quantum chemistry.

SETOL also shows that when an NN layer is 'Ideal', it satisfies the so-called Wilson Exact Renormalization Group condition (called the TraceLog condition)

In other words, SETOL provides empirical layer quality metrics that can be used to determine how well a model is trained or fine-tuned. It can help AI engineers get their AI models to the best state possible.

And while this work uses techniques from theoretical physics and chemistry, you don't need know any mathematical physics to read the paper; it is fully self-contained.

Most importantly, all of the experiments are 100% reproducible, and you can test the theory yourself on your own AI models using the open-source weightwatcher tool.

7.

Setol: A SemiEmpirical of (Deep) Learning(overleaf.com ↗)

4 points · by charleshmartin · 1y ago · 1 comment

8.

The Magic of Mistral, a Story of Dragon Kings(calculatedcontent.com ↗)

1 points · by charleshmartin · 2y ago · discuss

9.

Evaluating Fine-Tuned LLMs with WeightWatcher(calculatedcontent.com ↗)

2 points · by charleshmartin · 2y ago · discuss

comment 3y ago · link · parent

There are good theoretical reasons behind this as well https://calculatedcontent.com/2023/02/01/deep-learning-and-e...

comment 3y ago · link · parent

Envy

comment 3y ago · link · parent

ENVY

13.

Deep Learning and Effective Correlation Spaces(calculatedcontent.com ↗)

1 points · by charleshmartin · 3y ago · discuss

comment 4y ago · link · parent

WeightWatcher (w|w) is an open-source, diagnostic tool for analyzing Deep Neural Networks (DNN), without needing access to training or even test data. It is based on theoretical research into Why Deep Learning Works and uses the Theory of Heavy-Tailed Self-Regularization (HT-SR), published in JMLR and Nature.

15.

Weightwatcher: Data-Free Diagnostics for Deep Learning(weightwatcher.ai ↗)

2 points · by charleshmartin · 4y ago · 1 comment

16.

Better than BERT: Pick your best model(calculatedcontent.com ↗)

1 points · by charleshmartin · 4y ago · discuss

comment 4y ago · link · parent

https://calculatedcontent.com/2015/03/25/why-does-deep-learn...

comment 4y ago · link · parent

What can they predict with the theory ?

19.

Predicting trends in the quality of state-of-the-art neural networks(nature.com ↗)

1 points · by charleshmartin · 5y ago · discuss

comment 5y ago · link · parent

Oh and here's a 2 hour deep dive into the theory https://bluejeans.com/playback/s/cyQnC9EZZSB9HlHDjB1Zpu3fs0J...

comment 5y ago · link · parent

agreed!

comment 5y ago · link · parent

That's fine. Here's a few of my online talks:

UC Berkeley / ICSI: https://www.youtube.com/watch?v=6Zgul4oygMc

Stanford ICME: https://www.youtube.com/watch?v=PQUItQi-B-I

and a couple of Mikes's

Institute for Pure & Applied Mathematics (IPAM) : https://www.youtube.com/watch?v=fmVuNRKsQa8

Physics Informed Machine Learning: https://www.youtube.com/watch?v=eXhwLtjtUsI

and our KDD workshop KDD: https://dl.acm.org/doi/abs/10.1145/3292500.3332294

many more talks and papers available

And my favorite, a podcast that has featured LeCun himself:

https://blog.rebellionresearch.com/blog/theoretical-physicis...

comment 5y ago · link · parent

Here's an alternative approach, that actually provides real world results

https://calculatedcontent.com/2019/12/03/towards-a-new-theor...

Using techniques from statistical mechanics and strongly correlated systems, we can compute the average-case-behavior of a real world DNN

We believe we can reproduce some of the results of the NTK by using a Gaussian Random Matrix. But if we use a more realistic, heavy tailed matrix, we get more practical results

A early fork of the theory has been published in JMLR https://arxiv.org/abs/1810.01075

and the empirical results in Nature Communications https://www.nature.com/articles/s41467-021-24025-8

and we have an open source tool , weightwatcher, which can be used in production

pip install weightwatcher

https://github.com/CalculatedContent/WeightWatcher

Please give it a try and let me know if it is useful to you

comment 5y ago · link · parent

Great question. 4 is at the high edge of the fat tailed universality class. Most high performing models have alpha approaching 2, or at least below 3. See Figure 8(a) in the Nature paper, and our upcoming JMLR paper https://arxiv.org/abs/1810.01075

25.

How to tell if you have trained your model with enough data(calculatedcontent.com ↗)

2 points · by charleshmartin · 5y ago · 2 comments

26.

Predicting trends in the quality of state-of-the-art neural networks(nature.com ↗)

1 points · by charleshmartin · 5y ago · discuss

comment 5y ago · link · parent

You can check for some signatures of over-fitting using the weightwatcher tool

https://calculatedcontent.com/2021/04/04/are-your-models-ove...

The tool identifies weight matrices that display atypical behavior, where the correlation is concentrated about unusually large matrix elements.

The idea comes from statistical mechanics of generalization, where it is known that neural networks that are over-fit are atypical and are in the spin glass phase of the learning phase space.

28.

Is Your Model Overtrained?(calculatedcontent.com ↗)

2 points · by charleshmartin · 5y ago · 1 comment

12