
MAC Research MSCI. Macroecon, Stat. Phys. and Everything in between. Previously @FabricRisk @Polytechnique, @ENS_ULM. Views own. RT != Endorsements
New York, USA
Joined February 2021
- Tweets1.2K
- Following611
- Followers201
- Likes2.6K
Dhruv Sharma retweeted
why i avoid graph databases
the question: "is knowledge graph rag production ready? should we use it?"
the answer: after 10 years in ml, i stay away from graph databases. every company i've seen go into the graph world moves back to sql within 4-5 years.
the issues are real:
hard to hire talent (easier to find postgresql experts)
schema definition creates endless debates without clear best practices
most use cases need only 1-2 traversals, not complex graph operations
even facebook's "graph" was actually a large mysql database. the only company that truly needs graph databases is linkedin for 3-5 degree friendship calculations.
even for microsoft's document graph approach - i'd rather use fine-tuned embeddings. a graph is just an adjacency matrix, and fine-tuning can get you close to that similarity definition without the operational complexity.
start with your data: let specific use cases justify graph complexity rather than choosing technology first. graph might be 2% better, but traditional approaches working well means that 2% rarely justifies the maintenance cost.
Dhruv Sharma retweeted
Replying to @boazbaraktcs @nytimes
Making a clear recommendation and being willing to take partial ownership of it is not the same thing as making a decision. The readers don’t know anything, that’s a cop out.
Dhruv Sharma retweeted
One of the most useful ideas in probability and a fundamental technique in combinatorics, popularized by Erdős. It can even solve the hardest IMO problems!
Solving IMO 1989 #6 using Probability and Expectation
angrystatistician.blogspot.c…
Dhruv Sharma retweeted
My thesis is LLMs significantly boost your motivation to work on something. Getting a shitty prototype fast is immensely motivating
Code and time are often not the bottleneck, motivation is the bottleneck.
Dhruv Sharma retweeted
Love this quote from Sir Michael Atiyah: "Algebra is the offer made by the devil to a mathematician. The devil says, 'I will give you this powerful machine...all you need to do is give up your soul: give up geometry...' The danger to our soul is there... when you pass into algebraic calculation,..., you stop thinking geometrically, you stop thinking about meaning.
Dhruv Sharma retweeted
Spectral gaps of diffusion models identify different phases of generalization on manifolds.
After a "trivial" phase I, in phase II the particles fit the distribution internal to the manifold. In phase III the score is orthogonal to the manifold and it acts as a projection.
I am very happy to share:
" Manifolds, Random Matrices and Spectral Gaps: The geometric phases of generative diffusion"
We study the evolving latent geometry of diffusion by analyzing gaps in the Jacobian spectrum with statistical physics methods
Paper: arxiv.org/pdf/2410.05898
Dhruv Sharma retweeted
Aside from getting Landsburg’s name wrong, this thread gets the art of modeling wrong. Models *should* start from first principles and reasonable approximations; and then refine.
It’s no mystery why financial firms have so many successful applied mathematicians, engineers and physicists, and not a single financial economist.
Steven Landsberg in @wsjopinion: "Price theory seems to be fading from the economics curriculum... I see a lot more coursework offered in theoretical microeconomics and a lot less in price theory than I did five years ago."
Thought provoking but I mostly disagree.
Dhruv Sharma retweeted
Rare announcement: after finishing my PhD
@berkeley_ai in 2023, and working on forecasting problems @amazon and @technology, I am launching @forecastingco with my dear friend @jodles89!
We are building foundation models for time series. Get in touch! theforecastingcompany.com
The Forecasting Company (YC S24) just launched on @ycombinator's Launch YC!
ycombinator.com/launches/LUp…
Talk to us if you have planning or forecasting problems.
@geoffnegiar @jodles89
Dhruv Sharma retweeted
+1. I think we are at the point where we need less frameworks and more dedicated libraries to do a few things well with transparent prompting.
New blog post 📰: Understanding what LLM frameworks are doing is difficult (digging through code, docs, etc).
I show how intercept API calls with @mitmproxy to quickly understand how popular frameworks work and find interesting results.
I walk through examples with Guardrails, LangChain, DSPy, Instructor and Guidance.
I illustrate the value of saying "Fuck you, show me the prompt" before starting to use any tool.
hamel.dev/blog/posts/prompt/
Dhruv Sharma retweeted
Slides by Amundi's Thierry Roncalli on Advanced Topics in Portfolio Optimization, Climate and ESG Portfolio Construction and Machine Learning in Asset Management with Tutorials - 1,420 Slides in All
Great Weekend Binge Read....
#FinX
papers.ssrn.com/sol3/papers.…
Dhruv Sharma retweeted
Mo Salah running down the wing 🎶
Shoutout to @iamjohnoliver on the newest episode of #HotOnes 🔥
🎥: @firstwefeast
Dhruv Sharma retweeted
Argentina's new IMF program document is out. Public debt-to-GDP is on a strongly downward path in the baseline, apparently, but the fan chart suggests debt in a decade could be anywhere between 0% of GDP and 120% of GDP.
This is just nonsense macroeconomics.
Dhruv Sharma retweeted
🚨Newest on the @arxiv 🚨 I present a pedagogical introduction to the works by Rashel Tublin and Yan Fyodorov on random linear systems with quadratic constraints, using tools from Random Matrix Theory and replicas [arxiv.org/abs/2401.03209] @KCLDisorder @kclmathematics @unibait
Dhruv Sharma retweeted
The boss personally invited Dáire and his family back to Merseyside 🙌
On the annual International Day of Persons with Disabilities, Dáire returned to Anfield to witness our 4-3 win over Fulham before being welcomed to the AXA Training Centre the following day ❤️ #RedTogether
Dhruv Sharma retweeted
"You need to know about the song, then you understand the club..." ❤️
Jürgen Klopp on 60 years of You'll Never Walk Alone 🎶🔴
Dhruv Sharma retweeted
The hardest part about being an immigrant is not the immigration system but having to choose between pursuing a world class career and seeing your parents grow old
Dhruv Sharma retweeted
You need to unlearn the way you think of training data to get the most out of LLMs.
With tabular data/models, you need to get a relatively large (usually >1000 rows) dataset to train an ML model, since it has to learn the concept from scratch.
However, LLMs already know how to do most tasks. Finetuning is just the process of extracting specific behavior out of the model.
So how do you apply this?
1. Get some high-quality, labeled training data. Even 20 samples will do. (should take < 1 hour to label)
2. Fine-tune your model on that data (use LoRA, it's faster).
3. Generate new training data using that fine-tuned model.
4. Curate the best samples from the generated data.
5. Either continue to fine-tune that model on the curated data, or append that data to your starter dataset and fine-tune a model from scratch.
This pattern is relatively unfamiliar to many experienced data scientists. Try it out!



























