Sign in

Bruno Gavranović

@bgavran.bsky.social
992 followers 66 following 148 posts

I'm building neural networks that generate provably correct code, and the software infrastructure for training them. Recently experimenting with TensorType: github.com/bgavran/TensorType www.brunogavranovic.com

PostsRepliesMedia
Bruno Gavranović @bgavran.bsky.social · 09/09/2026
RE: mathstodon.xyz/@bgavran/11666032133… Regarding recent news
mathstodon.xyz
Bruno Gavranović (@bgavran@mathstodon.xyz)
C3, but with a caveat: The negative externalities the row A highlights are real, and not to be dismissed. However, these are not a fundamental aspect of this technology, but at the moment a result of its lackluster deployment, lagging regulation, and practically absent consequences for unethical and exploitative practices. We can and should use this technology to empower, and humbly confront how it redefines human exceptionalism.
050
Bruno Gavranović @bgavran.bsky.social · 29/07/2026
Finally added a reinforcement learning section to the list: github.com/bgavran/Category_Theory_… I'm sure I'm missing a few papers
github.com
GitHub - bgavran/Category_Theory_Machine_Learning: List of papers studying machine learning through the lens of category theory
List of papers studying machine learning through the lens of category theory - bgavran/Category_Theory_Machine_Learning
130
Bruno Gavranović @bgavran.bsky.social · 06/07/2026
Almost forgot to mention: I'll be presenting TensorType today at 16:30 EEST at the ACT conference actconf2026.github.io/programme.html
150
Reposted by Bruno Gavranović
Manuel Baltieri @manuelbaltieri.bsky.social · 26/06/2026
Our work on compositional behavioural semantics for state abstraction was accepted at ICML! Link: arxiv.org/abs/2606.25357 State abstraction compresses an RL state space while trying to retain decision-relevant behaviour. What survives? 1/
arxiv.org
Compositional Behavioral Semantics for State Abstraction in Reinforcement Learning
State abstraction plays a key role in scaling reinforcement learning to complex but structured systems. In studying such systems, a wide range of behavioral structures have been studied in reinforceme...
1102
Bruno Gavranović @bgavran.bsky.social · 29/05/2026
RE: mathstodon.xyz/@julesh/116658899165… C3, but with a caveat:
mathstodon.xyz
julesh (@julesh@mathstodon.xyz)
I am firmly an A3, which is a difficult position to live with
150
Bruno Gavranović @bgavran.bsky.social · 21/04/2026
It was pointed out to me that the factor in this blog post is off by 1000x. AlphaZero achieves superhuman performance compared to GPT4 not with 30x fewer parameters, but 30000x fewer, which is an even more stark difference.
040
Bruno Gavranović @bgavran.bsky.social · 20/04/2026
I just published a new blog post! Types and Neural Networks ( www.brunogavranovic.com/posts/2026-… ) It's about what comes into view once dependent type systems become a part of neural network training.
1235
Bruno Gavranović @bgavran.bsky.social · 15/04/2026
New blog post coming up soon! I'm very excited about some of the work we've been doing at GLAIVE about making the output space of frontier models *typed*. Stay tuned :)
060
Bruno Gavranović @bgavran.bsky.social · 14/04/2026
I never wrote about it here, but as of some time ago I figured out a basic implementation for named axes in TensorType: github.com/bgavran/TensorType This means that now you're: a) forced to assign some meaning to all your axes)
152
Reposted by Bruno Gavranović
Charlie Warzel @cwarzel.bsky.social · 07/04/2026
something strange and horrible and somehow fitting that we should have a very real threat of madman civilizational destruction at the very moment when we also have humans on the dark side of the moon taking pictures that show how small, precious, and beautiful our world and existence is
332930689
Bruno Gavranović @bgavran.bsky.social · 07/04/2026
"Coalgebras for categorical deep learning: Representability and universal approximation" arxiv.org/abs/2603.03227
040
Reposted by Bruno Gavranović
Zanzi Tangle @zanzi.bsky.social · 26/03/2026
Where are the nuanced left-wing takes on modern AI and LLMs? So much of the discourse around this tech is centered on rejecting it because of who currently owns it. But like all tech, it can be used for both oppression and liberation. Who is focusing on the latter?
4182
Bruno Gavranović @bgavran.bsky.social · 25/03/2026
Lots of exciting stuff has been happening at GLAIVE: mathstodon.xyz/@julesh/116279930318… mathstodon.xyz/@Andrev@types.pl/116…
mathstodon.xyz
julesh (@julesh@mathstodon.xyz)
New blog post: Sequents for sequence II: Balancing the strangeness budget Ending with a teaser reveal https://julesh.com/posts/2026-03-23-sequents-sequence-ii.html
000
Reposted by Bruno Gavranović
Micah @rincewind.run · 15/03/2026
Discworld QOTD, from Monstrous Regiment “Stopping a battle is much harder than starting it. Starting it only requires you to shout ‘Attack!’ but when you want to stop it, everyone is busy.”
91154313
Reposted by Bruno Gavranović
ieva @hyperboieva.bsky.social · 05/03/2026
Masteful sequence of quotes in Mike and Ike which I never noticed before
2274
Reposted by Bruno Gavranović
Greg Pak @gregpak.net · 04/03/2026
never, ever, ever, ever accept "how will you pay for it?" as an argument against social programs.
1971442584
Bruno Gavranović @bgavran.bsky.social · 20/02/2026
RE: mathstodon.xyz/@julesh/116103778140… Some more work I've been a part of:
mathstodon.xyz
julesh (@julesh@mathstodon.xyz)
Attached: 1 image New blog post! Autodiff through function types: Categorical semantics the ultimate backpropagator https://julesh.com/posts/2026-02-20-categorical-semantics-ultimate-backpropagator.html
020
Reposted by Bruno Gavranović
julesh @julesh.mathstodon.xyz.ap.brid.gy · 20/02/2026
New blog post! Autodiff through function types: Categorical semantics the ultimate backpropagator julesh.com/posts/2026-02-20-categor…
1143
Reposted by Bruno Gavranović
Ethan Mollick @emollick.bsky.social · 14/02/2026
The transition from “AI can’t do novel science” to “of course AI does novel science” will be like every other similar AI transition. First the over-enthusiastic claims that are debunked, then smart people use AI to help them, then AI starts to do more of the work, then minor discoveries, & then…
310512
Reposted by Bruno Gavranović
beka valentine @bekavalentine.bsky.social · 14/02/2026
there is a widespread belief among people with even a little technical and scientific savvy that Alchemy was a bunch of hooey, that they never published their experiments, that alchemists had to each discover on their own not to drink mercury, etc but this is urban legend!
19031
Reposted by Bruno Gavranović
Ethan Mollick @emollick.bsky.social · 06/02/2026
This is not what is happening at all. The amount of misinformation on BlueSky about AI is insane, and it keeps promising that AI is all hype that is going away soon. A really dangerous position that cedes all AI policy and decisions about how it will be used to others. Also Futurism is clickbait
1927440
Bruno Gavranović @bgavran.bsky.social · 02/02/2026
I'm quite proud of how far I've been able to get with TensorType: github.com/bgavran/TensorType What started out as a casual "I wonder if I can implement type-safe tensors" question has now evolved into a fully-fledged library
github.com
GitHub - bgavran/TensorType: Framework for type-safe pure functional and non-cubical tensor processing, written in Idris 2
Framework for type-safe pure functional and non-cubical tensor processing, written in Idris 2 - bgavran/TensorType
3204
Reposted by Bruno Gavranović
ieva @hyperboieva.bsky.social · 27/01/2026
Come and visit me at the poster session at #QIP26 today! :)))
053
Bruno Gavranović @bgavran.bsky.social · 22/01/2026
If you're interested in some of the design choices behind TensorType, have a look at the great blog post that @Andrev just posted: types.pl/@Andrev/1159... TLDR; Tensors in NumPy are secretly built out of the composition product of containers
types.pl
Andre Videla (@Andrev@types.pl)
Glaive has a new blog post aimed at curious engineers https://glaive-research.org/2026/01/21/Generalised-tensors.html
093
Reposted by Bruno Gavranović
Conor Titania Mc Bride @pigworker.bsky.social · 20/01/2026
Dear USAans, ICE will not let you complete an electoral process which might result in a government that might hold them to account. If you want your democracy back, you have to get rid of them *first*. Abolish ICE, you say? How, I ask?
031
Reposted by Bruno Gavranović
"Online Rent-a-Sage" Bret Devereaux @bretdevereaux.bsky.social · 14/01/2026
On the drive home I was idly thinking about what changes I'd make, if I could, to our system of governance after this administration is - ideally - gone. I suppose in no particular order, here is a list of what I'd do, sorted by the mechanism for doing it.
2438883
Bruno Gavranović @bgavran.bsky.social · 08/12/2025
If you've been curious what I've been up to, the recently published report from GLAIVE reveals a part of it: glaive-research.org/2025/12/08/q4-r…
glaive-research.org
Q4 2025 report
Glaive Research Report Q4 2025
030
Bruno Gavranović @bgavran.bsky.social · 17/11/2025
Different products of containers, with examples on the List container: List ⊗ List -> rectangular array List ∘ List -> ragged array List × List -> two lists List + List -> a boolean value and a list
100
Reposted by Bruno Gavranović
🇵🇸Tim Henke (tɪm 'ɦɛŋ.kə) @timhenke.bsky.social · 17/11/2025
Remember kids, theoretical physicists have irreparably ruined public trust in science by saying they *hope* we *could* find BSM evidence at the LHC, but Elon gets to predict his products will "do the sci-fi" and be wrong 100 times per year for profit but he's just giving them hope
4245
Bruno Gavranović @bgavran.bsky.social · 15/11/2025
Had an absolutely fantastic time in Scotland. It's been great seeing a lot of friendly faces, and making exciting research progress with Glaive
020
Bruno Gavranović @bgavran.bsky.social · 10/11/2025
London ---🚅---> Glasgow
000
Bruno Gavranović @bgavran.bsky.social · 02/11/2025
Containers and quotient containers can be interpreted as choices of a category S with some constraints on it, and a functor S -> Set. For an ordinary container, S has to be a discrete category, i.e. a set.
100
Bruno Gavranović @bgavran.bsky.social · 31/10/2025
Para construction for double categories arxiv.org/abs/2510.26465
020
Bruno Gavranović @bgavran.bsky.social · 22/09/2025
Stumbled upon this on HN: "Categorical foundations for CuTe layouts" research.colfax-intl.com/categorica…
research.colfax-intl.com
Categorical Foundations for CuTe Layouts
In GPU programming, performance depends critically on how data is stored and accessed in memory. While the data we care about is typically multi-dimensional, the GPU’s memory is fundamentally one-d…
161
Bruno Gavranović @bgavran.bsky.social · 18/09/2025
Stumbled upon the paper "Sorting with Bialgebras and Distributive Laws" ( www.cs.ox.ac.uk/people/nicolas.wu/p… ) which introdued me to the idea that certain sorting algorithms can be considered 'duals' of others:
171
Bruno Gavranović @bgavran.bsky.social · 16/09/2025
I have been thinking about fixpoints of containers recently, and noticed that there seems to be a close correspondence between fixpoints of extensions of containers \mu(Ext(C)) and iterated compositions I + C + C o C + C o C o C ... Has this been formally established somewhere?
100
Bruno Gavranović @bgavran.bsky.social · 08/09/2025
Interestingly, this is still a question I do not have a good answer for, and a question that I didn't see tackled by the deep learning community at all.
010
Reposted by Bruno Gavranović
Jennifer C @thejenniwren.teamlh.social · 31/05/2025
Unbelievable! Today, San Diego witnessed a government-sanctioned kidnapping. ICE stormed Buona Forchetta in military gear ripping workers away, then unleashing tear gas and smoke on the terrified community. Full on police state, fascism now used on American citizens. Stay aware. #OnYourSide
44248272559
Bruno Gavranović @bgavran.bsky.social · 19/05/2025
Stumbled upon a peculiar paper: Aggregating time-series and image data: functors and double functors arxiv.org/abs/2504.05274
020
Bruno Gavranović @bgavran.bsky.social · 07/05/2025
I've always wanted someone to write a type-safe framework for tensor manipulation that a) fully leverages first-class types, and b) is ergonomic Maybe that someone has to be me; I wrote a proof-of-concept in Idris and used it to implement transformers: github.com/bgavran/Type...
github.com
GitHub - bgavran/TypeSafe_Tensors: Framework for type-safe pure functional tensor processing, supporting non-cubical tensors
Framework for type-safe pure functional tensor processing, supporting non-cubical tensors - bgavran/TypeSafe_Tensors
180
Reposted by Bruno Gavranović
Talia Ringer @taliaringer.bsky.social · 02/05/2025
Coming to an ICML near you arxiv.org/abs/2502.03689
arxiv.org
Stop treating `AGI' as the north-star goal of AI research
The AI research community plays a vital role in shaping the scientific, engineering, and societal goals of AI research. In this position paper, we argue that focusing on the highly contested topic of ...
15810
Bruno Gavranović @bgavran.bsky.social · 06/04/2025
London --🚄--> Edinburgh
010
Bruno Gavranović @bgavran.bsky.social · 25/03/2025
Stumbled upon an Idris implementation of type-safe tensor computation (alongside many other things) github.com/joelberkeley/spidr/tree/…
github.com
GitHub - joelberkeley/spidr: Accelerated machine learning with dependent types
Accelerated machine learning with dependent types. Contribute to joelberkeley/spidr development by creating an account on GitHub.
040
Bruno Gavranović @bgavran.bsky.social · 19/03/2025
Spotted at EPFL
030
Bruno Gavranović @bgavran.bsky.social · 05/03/2025
I've been playing with provably correct list sorting ( gist.github.com/bgavran/e6ef899a862… ), and internalising a very unintuitive fact: there exists a *type of sorted lists*. It's something I would have never came up with myself. Hence makes me wonder, what *else* is
150
Reposted by Bruno Gavranović
Manuel Baltieri @manuelbaltieri.bsky.social · 05/03/2025
After a multi-year collaboration with Martin Biehl, @mattecapu.bsky.social and @nathanielvirgo.bsky.social, I’m stoked to share the first of (hopefully) many outputs: “A Bayesian Interpretation of the Internal Model Principle” arxiv.org/abs/2503.00511. 1/
arxiv.org
A Bayesian Interpretation of the Internal Model Principle
The internal model principle, originally proposed in the theory of control of linear systems, nowadays represents a more general class of results in control theory and cybernetics. The central claim o...
1196
Bruno Gavranović @bgavran.bsky.social · 03/03/2025
Provably correct FizzBuzz: github.com/0xd34df00d/fizzbuzz-i
010
Bruno Gavranović @bgavran.bsky.social · 03/03/2025
I never thought about the underlying implementation of typed holes in languages like Idris/Agda before. Are they just implemented as a nullary constructor of an inductive type? ``` data Expr : Type where Num : Nat -> Expr Add : Expr -> Expr -> Expr Hole : Expr ```
310
Bruno Gavranović @bgavran.bsky.social · 26/02/2025
Reading about linters, and I ran into a lovely example of what they keep you from doing: (from the International obfuscated C code contest github.com/ioccc-src/winner/blob/ma… )
2163
Bruno Gavranović @bgavran.bsky.social · 23/02/2025
Fun fact I just learned: gunpowder was created by alchemists as a byproduct of trying to create the elixir of life. en.wikipedia.org/wiki/Gunpowder
100