139 karma · joined Apr 2, 2021 (5y ago) · 22 submissions
Can advise you on applying ML and optimization, or more directly help you apply/improve/train-up-in such tech, on a consulting/contracting basis.
Daniel Vainsencher
https://www.linkedin.com/in/danielvainsencher/
https://www.semanticscholar.org/author/D.-Vainsencher/2734587
https://nirinor.ai/book/services.html
danielv at nirinor.ai
comment 1w ago · link · parent
A) "Someone said Lean4 proof so it must be bullet-proof and fulfill all my hopes!" B) "Eh, lean4 is imperfect, so it means nothing"
Inconveniently, both of those caricatures are wrong.
Lean4 gives us a high level of confidence in the _theorem validated, under the assumptions allowed_.
This makes it high value to learn to read lean4 theorems (not proofs).
comment 1w ago · link · parent
- Stabilize never type
- Stabilize custom allocators
- Introduced minimum publish age configurations, also known as dependency cooldowns. When the relevant config is set, the resolver ignores versions published more recently than that, unless they are already in Cargo.lock. (RFC 3923) docs #17335
- cargo-install: now uses the existing lockfile in the .crate tarball by default. --locked in cargo install becomes a no-op. #17388
comment 1w ago · link · parent
Sure, by Rice's theorem, no program can decide whether an arbitrary function always computes the sum of its two inputs. But that's only because we are allowing arbitrarily difficult-to-analyze implementations of the sum function. So this theorem co-exists with the fact that simple implementations of sum can be proven correct.
In this light I think the best conclusion is "to write correct software in reasonable time, we must use easy to analyze languages and program styles".
comment 1mo ago · link · parent
This is because I/P is sufficiently complicated and brutal that for any involved party X (Arab countries, Israel, Palestinians, Britain...), an interested party can make party X seem "inhuman, clearly we should defeat X anywhere we find them" to someone not previously informed on the topic.
So even if we don't select the evidence, or even select the date, but just selectively amplify, propaganda about it works just fine, across different media. The LLM news here is that as a media, LLMs transform biased background knowledge into eloquent confident _and tailored_ arguments for the bias, like a suave but motivated news anchor that is able to converse individually with _every listener_.
Because for all X, someone _is_ already amplifying the message "hate X", the main outcome of LLMs+Propaganda is not hate for a specific X, but just more hate.
And the solutions? The authors' ledger+timeline+blame+semantic checks are not a bad place to start.
For me, the core is that often the enemy we can and should defeat is not people, it is memes, like "hate _". LLMs (among other effects, good and bad) whitewash memes, and we all better be prepared to defend ourselves against their influence.
comment 1mo ago · link · parent
Note the .com->.org: its a version of the book whose numbers are maintained here <https://github.com/life-itself/without-hot-air/commits/main/>.
comment 4mo ago · link · parent
Because everything matches and explains oddities I've seen and forgiven. So despite the hyperbole and the places where the authors' general sentiment are not mine, he's basically right, and I need to find a different harness.
If the post resonates for you too and you've found something better, happy for recommendations. pi seems to get the most mentions here, anyone feel it (or another option) is specifically better on these architectural aspects?
comment 1y ago · link · parent
This is like complaining about long division not behaving nicely when dividing by 0. The algorithm isn't the problem, and blaming the wrong part does not help understanding.
It distracts from what is actually helping which is using different functions with nicer behaving gradients, e.g., the Huber loss instead of quadratic.
comment 1y ago · link · parent
And his _examples_ are about gradients, but nowhere does he distinguish between backpropagation, a (part of) an algorithm for automatic differentiation and the gradients themselves. None of the issues are due to BP returning incorrect gradients (it totally could, for example, lose too much precision, but it doesn't).
comment 1y ago · link · parent
Backpropagation is a specific algorithm for computing gradients of composite functions, but even the failures that do come from composition (multiple sequential sigmoids cause exponential gradient decay) are not backpropagation specific: that's just how the gradients behave for that function, whatever algorithm you use. The remedy, of having people calculate their own backwards pass, is useful because people are _calculating their own derivatives_ for the functions, and get a chance to notice the exponents creeping in. Ask me how I know ;)
[1] Gradients being zero would not be a problem with a global optimization algorithm (which we don't use because they are impractical in high dimensions). Gradients getting very small might be dealt with by with tools like line search (if they are small in all directions) or approximate newton methods (if small in some directions but not others). Not saying those are better solutions in this context, just that optimization(+modeling) are the actually hard parts, not the way gradients are calculated.
comment 3y ago · link · parent
Nushell is already a great improvement over bash _as a shell_. It is even better when using it to compose _preexisting text based programs_. I would say it is better in every way I can think of, except for: - not (yet) coming pre-installed, and - stability of interfaces and language.
Its already better enough to be my default shell on my daily driver, though I keep bash around because some things really assume it. I very much look forward to one day having a userspace with no traditional shells at all.
nushell is not yet a strict improvement over python, but it might one day be, and it is already better at: - munging text, json, dates and tables - quickly creating nice CLIs callable from the shell (even if that shell isn't nu!) - fun of programming in it
> Nushell is trying to blend two domains, shells and programming languages, which I see distinct advantages in keeping seperate.
Interesting, though, how many PL features the most popular shells tend to have...
> I do not want the world to be built on the back of shell scripts, regardless of how good you make the type system.
If I had read that before knowing nushell, I would strongly agree. Yet, it turns out you can make a shell so good I wouldn't mind if... not the world, but _a lot more_ was built on it.
comment 3y ago · link · parent
One area for refinement: it considers two stacks either identical or unrelated. Consider that stack A;B is actually very close to A;B;C, the difference might be due to a sample time occurring just before or just after the call to C. OP considers them just as different as A;B and Z;W, therefore amplifying a measurement noise.
This suggests using a refined metric between stacks (e.g., an edit distance counting pushes and pops), and then we can use it in defining the metric between flamegraphs (e.g., an optimal transport metric [1], instead of the proposed L1).
Avoiding that noise amplification reduces the background noise level, therefore the cost of effective measurements. From another perspective, the current OP scheme creates an avoidable curse of dimensionality in the form of the Hotelling test's requirement that each sample has more measurements have more samples than distinct stack frames. So the same code split into more functions is harder to measure, and too-small samples are useless. I think neither of those is necessary if we take stack similarity into account.
comment 3y ago · link · parent
Nowadays I like the nushell approach to the composition:
echo 'quux=123 foo=123 bar=123' | str replace '.*quux=([0-9]+).*foo=([0-9]+).*' $"$2,$1" | from csv -n | each {|r| $r.column1 + $r.column2}
which of course relies on the same regex library (hattip).comment 3y ago · link · parent
Hi, I am Daniel Vainsencher, ML PhD and practitioner. You want to use AI to solve a business or technical problem, have data and a team, but no senior research staff.
I can, on a consulting/contracting basis:
1. Translate your problem and context into well defined prediction and decision problems, connecting performance to the bottom line.
2. Plan out, chunk, and help implement solutions to prediction and decision problems via existing (and if needed, new) ML and optimization software.
3. Support your engineer/research staff in applying ML and connecting it to business goals, via ideas, coaching and troubleshooting.
Have years of experience building software systems, leading dev teams, developing algorithms, publishing state of the art ML/optimization research, and applying them to challenging problems. I've worked/done applied research in domains of entertainment, algorithmic trading, video processing, face recognition, signal processing, demand forecasting and more.
Tech: Python, Julia, Rust, git and others.
https://www.linkedin.com/in/danielvainsencher/
https://www.semanticscholar.org/author/D.-Vainsencher/273458...
Email: danielv at nirinor.ai
comment 3y ago · link · parent
- Pleasant, helpful, knowledgeable people on the slack.
- Brief and effective process matching me with a client.
- They negotiated a rate I was happy with, taking a cut I found reasonable.
- Good working relationships with others in the project, both from Tribe and the client, everyone happy.
- Payment was simple and timely, when I encountered a technical issue with their provider during setup, Tribe were very helpful resolving it.
Feel free to ask questions here or DM me
comment 4y ago · link · parent
Non smooth and badly conditioned optimization problems scale much better with size, but getting high precision solutions is hard. These are important for simulations mentioned elsewhere, but not just for architecture and games, also for automating design, inspections etc [2].
comment 4y ago · link · parent
That regulation is adversarial (largest regulated entities are savvy and often propose the regulations), has higher order and long term effects, this all makes it a hard domain, but also is well known in advance.
What's the current best practice for validating regulation have their intended effects in advance?
comment 4y ago · link · parent
Hi, I am Daniel Vainsencher, ML PhD and practitioner.
I can, on a consulting/contracting basis:
1. Convert your business problems into well defined prediction and decision problems, connecting performance to the bottom line.
2. Solve prediction and decision problems via ML and optimization.
3. Support your engineer/research staff in applying ML, with ideas, coaching and troubleshooting.
Have years of experience building software systems, leading dev teams, developing algorithms, publishing state of the art ML/optimization research, and applying them to challenging problems. I do one time consultation, mid term projects and retainer.
Willing to share risk/reward of the right company, but no equity-only at this time.
Tech: Python, Julia, Rust, git and others.
https://www.linkedin.com/in/danielvainsencher/ https://www.semanticscholar.org/author/D.-Vainsencher/273458...
Email: danielv at nirinor.ai
comment 4y ago · link · parent
Machine Learning/optimization expert, I can:
1. Design ML systems tailored to business needs,
2. Coach your engineer/research staff on ML/Optimization,
3. PoC/customize/troubleshoot algorithm implementations, on a consulting/contracting basis.
https://www.linkedin.com/in/danielvainsencher/
https://scholar.google.com/citations?user=FnM8S4kAAAAJ&hl=en