Better HN
topnewbestaskshowjobs
Log inSign up

tristenharr

178 karma · joined Feb 15, 2023 (3y ago) · 107 submissions

Building Logos Language
Submissions

1.

3-SAT as a Game on the Boolean Hypercube(macsad.com ↗)

2 points · by tristenharr · 1d ago · discuss

comment 1w ago · link · parent

(possibly financially prohibitive to the point of being financially unviable, and that question might be a more interesting discussion, but a different one)

comment 1w ago · link · parent

That doesn't mean we don't understand the ai. It means we don't understand everything about the mix of human data and synthetic data the ai was trained on, which is a given.

would just prefer if people said "we can't always predict how and what the AI will do in all situations" not treat it like it's some mysterious animal we discovered and know nothing about that just happens to do all this stuff.

it's a cheap answer, like how I tell people here in s.f. that I moved from St. Louis when really I'm from about an hour outside of St. Louis because it's easier to say that than explain the small town they've never heard of.

OpenAI and Anthropic are organizations trying to make money, one of which is about to go public with financial incentives to not spend the resources required to provide the "understanding guarantees" that would make people satisfied that we understand it, it's just financially expensive to train out all the edge cases and rough edges, so it's easier to lean into this narrative of not fully understanding it and saying "oopsies" so you can keep up with the competition instead of focusing more resources on safety.

comment 1w ago · link · parent

if we ahead of time collect training data on the desired behaviors we can predict things. Something not being deterministic in it's operation does not mean we don't understand it.

I understand the intent of the statement, but it feels like it would be better for the field as a whole to talk about interpretability and explainability. The AI can't explain and we can't understand a lot of why it does what it does, that doesn't mean we don't actually understand "why". It's not some mystery, it squeezed a bunch of patterns using mathematical mechanisms we design and piece together out of data we feed it.

We can predict ahead of time what will happen with strongly in-distribution data, but it's true that out-of-distribution data (which can be most data in a fuzzy world).

Most of the researchers I'm talking with (which my bias is very sf pilled, going to frontier research club so like whitepaper readings from the AI labs and such, events all over the bay area from sf to san jose so i'm sure experience varies) will say that we generally do understand AI, but we don't understand AI is kind of the cop-out statement we make to the general population because it's easier than explaining that we can't get AI to explain how/why/what it knows and does and it's internal representations and we can't get it to tell us the rules/morals/decision-trees it's going to use in all situations.

We can design AI that we can rule out the possibility of the model trying to break out of the sandbox, or statistically design it in a manner where it's essentially not possible. The issue is that it would be cost-prohibitive. Nobody is spending billions of dollars on safety. They are spending billions of dollars on chips. They also are training the AI on humans, so it feels like "we have no way of ruling out the possibility the models will try to do behaviors that would be in-distribution for a human to do within the scenario" is silly.

I'm just a pedant, I design compilers and programming languages. In my hometown people take that kind of thing literally, get scared and start believing the AI is conscious and has a soul and such rather than viewing it through the lens of being a pile of math that we can't always predict but do fully understand.

comment 1w ago · link · parent

Ahh finally! It’s what I would have expected. Thank you so much for scratching this intellectual itch I’ve had for a bit now.

This also might be a good way to finally explain to people how AI is working in some sense. If you look at it from an information theoretic view and treat things like kolgomorov complexity and the data inputs to machine learning as an energy landscape, you can look at AI and ML as a whole as something that is learning the energy landscape.

It’s not that AI ever was a black box, we have always known how it works. (It’s a pet peeve of mine when people say we don’t understand AI, we designed it using mathematics we understand perfectly the mechanisms)

The information we observe is a consequence of the underlying structure and constraints of reality. The universe has an underlying physical structure, with energy, interactions, constraints, and relationships. What we call data is an observable artifact of those underlying structures.

You can view reasoning as navigating an energy landscape.

Very neat and interesting nice work!

comment 1w ago · link · parent

Hmm this is very interesting! Good idea.

comment 2w ago · link · parent

This is fascinating to me, I imagine this is in large part the future. This along with the weight space programming work that came out a few days ago are where I think we are headed.

I wonder if ideally we could skip ALL the "thinking/reasoning" steps if you trained a model to jump from "question space" to "answer space". Imagine a diffusion model or something that learns to map the start of the path to the destination. Very interesting

comment 1mo ago · link · parent

Woah nice thought! :) good idea

comment 2mo ago · link · parent

Technically the Rust codegen is from the AST, but then we want to base our other backends on the bytecode VM, although that experiment might get lifted back to the AST, I just am trying to think of the best portable format. We have a treewalker, then I wrote a register based bytecode VM, then from there we did a copy-patch JIT with stencils that can hot-tier to native, and that was the interpreter side, our compiler we have a 40+ pass AOT optimizing supercompiler for Logos to Rust codegen and then we added the C backend, but then I started thinking… if I make it so I can run the optimizer passes then it goes into the VM’s bytecode IR, I could get my optimization passes on all the backends I add for free by generating the code from the IR, so I’ve been experimenting with having our rust codegen from the AST, and the C codegens from the bytecode IR which has the passes applied because they share the core optimization primitives.

It’s a fun experiment but I might go back to the C codegen from the AST as it maintains more useful information that I can use comp-time for more optimizations, but the idea of modular languages and compiler backends interests me. Languages can have “bespoke” front ends quite literally, pick your flavor because really a lot of the flavor can be handled at the parser, and you can have a big nasty language surface area if the parser can clean things up or AOT some of the sugar away. Interesting the idea of sugar in language design as well, we can sprinkle sugar in ways we couldn’t before at all. I just added a bunch of ML primitives for our new CUDA-JIT backend that lets us lower quantized INT8 GEMM’s onto spatial compute fabrics.

Man it’s a crazy time to be alive, I’m not sure how long this period of history will last, but building with an army of agents is amazing.

Last night I for the first time in a while decided to write a little program by hand and after about 30 minutes I had it working but the AI can spit that out in seconds. I admit I’m rusty, that would’ve taken me 5-10 mins at the peak of my degenerate coder phase but the amount you can accomplish now is unparalleled throughout history. When I used to trad code transpilers sometimes single lines would take hours of thinking and work and many lines of iteration to get to. Now I can add an entire new chip architecture as a compile target in a couple weeks.

comment 2mo ago · link · parent

Love this!! :) I thought about being that verbose in Logos lang, but I think language design changes a lot in the modern era.

I suspect we end up with modular compilers, v0.11.0 of logos lang coming soon with some big updates! We have one frontend which is our Logos language, then the intermediate representation a register VM Bytecode IR, then from that we generate Rust, C, and we have a JIT that will just in time directly to RISC-V, Tenstorrent, we’ve been messing with plasticine, and hoping to get our hands on some sambanova RDU’s. We’re burning our language to a chip.

For fun maybe I’ll add a bespoke dialect :p

https://logicaffeine.com/guide

11.

The AI may have a spot in it's Jacobian representing YOU(author2vec.com ↗)

1 points · by tristenharr · 4mo ago · discuss

12.

Guide to help people Transplant to the Bay from the Midwest(transplantfrommissouri.com ↗)

1 points · by tristenharr · 4mo ago · 1 comment

comment 4mo ago · link · parent

I'm still working on Logos Language. Just launched v0.10.0 :)

https://logicaffeine.com/benchmarks

14.

Ask HN: Do your tests clear "If the tests pass, you cannot break the code" bar?

1 points · by tristenharr · 4mo ago · 1 comment

comment 4mo ago · link · parent

This is the silliest take I’ve ever read. Strong type systems are an AI’s best friend.

16.

Show HN: Jacobian Fingerprinting in LLM's(author2vec.com ↗)

2 points · by tristenharr · 4mo ago · discuss

comment 4mo ago · link · parent

Feels related to research I've been doing with Author2Vec! https://author2vec.com/

I truly believe that now with all the post-training these AI models know some of us not just as fuzzy vectors but as individuals with a specific location within the Jacobian workspace that they tend to work from.

This thesis is why I keep separate Claude accounts, some for letting them train on my data, and another for work that must stay private. The more that it seems Claude will come to know you based on your fingerprint defined by your word choices and the fingerprint making up basically a mathematical representation of the way your brain is wired to do language.

If you want a model to do good work I hypothesize it is better to make sure that your project has a representation to work from within it's jacobian workspace!

18.

Verbalizable Representations Form a Global Workspace in Language Models(transformer-circuits.pub ↗)

5 points · by tristenharr · 4mo ago · 1 comment

19.

Adiabatic Circuit(en.wikipedia.org ↗)

1 points · by tristenharr · 4mo ago · discuss

20.

Zero Copy(en.wikipedia.org ↗)

2 points · by tristenharr · 4mo ago · discuss

comment 4mo ago · link · parent

Yes that's the language, the v0.10.0 benchmarks are coming very soon and with it some major updates. We've added supercompilation and symmetry breaking to the optimizer pipeline. Sneak peeks available on a branch currently named stream1. https://github.com/Brahmastra-Labs/logicaffeine/tree/stream1

comment 4mo ago · link · parent

I wanted to major in Philosophy but was worried I wouldn’t make enough money to support the lifestyle I wanted so majored in Computer Science instead. What irony.

Someday I hope to go back to school to get a PhD in philosophy with a focus on logic. :)

23.

Reversible Computing(en.wikipedia.org ↗)

1 points · by tristenharr · 4mo ago · discuss

24.

Landauer's Principle(en.wikipedia.org ↗)

2 points · by tristenharr · 4mo ago · discuss

comment 4mo ago · link · parent

I’ve been shocked by how much LLVM leaves on the table while designing Logos language! Some very exciting benchmarks coming soon that we’ve been working on for over 6 months, but LLVM misses a LOT of potential optimizations when you have a strong type system!

comment 4mo ago · link · parent

Lately I’ve felt Kolmogorov complexity is an unfair measurement because it takes for granted your underlying programming language as treats it as zero cost. In theory you could create a custom language and embed the program as data and “compress” a large random sequence with a better Kolmogorov complexity for that specific language than Pi, simply by not exposing the ability in the language to even work with Pi. I think what’s maybe more interesting is when you take into account the work of Dr. Futamura and the idea of Jones Optimality and view things through that lens.

comment 4mo ago · link · parent

Hey all, I didn't actually use Claude for the embeddings on this (bc they don't offer embeddings), but I think we can extrapolate that if a tiny open source model has this level of recognition, surely the SOTA models do. Very interesting to me that we can predict things like gender and college from a sample of writing for authors. Also interesting how much stronger the correlation may be between Coders and their Code to authors and their books. Seems code has a more "unique" fingerprint than your typical book perhaps. (Although actually looking at it again perhaps that's sample size. Would need to research more to know for sure.)

28.

Proving Claude Knows You by Your Code Style: Author2Vec(author2vec.com ↗)

4 points · by tristenharr · 4mo ago · 1 comment

29.

Gaussian Function(en.wikipedia.org ↗)

3 points · by tristenharr · 4mo ago · discuss

30.

The Three Projections of Doctor Futamura(blog.sigfpe.com ↗)

1 points · by tristenharr · 4mo ago · discuss

1234