---
title: "Can you bake Maven into a neural network?"
description: "The post describes compiling a Maven-compatible build controller into a fixed weight matrix of a neural network, so the network executes the exact decision logic of a build tool. The network, with 26,626 rows of weights, produces byte-identical JARs to Apache Maven when building ZXing 3.5.3, with all 549 upstream tests passing. The approach uses Handwired to write a program in a restricted Python subset and compile it into weights, with no training or gradient descent. The neural version is slower than the equivalent Python logic, taking 1.42× longer for a clean build with tests (95% CI 1.40× to 1.43×). The authors position the result as useful for interpretability research, exact subroutines inside learned models, and decision logic that can be hashed and replayed."
---

# Can you bake Maven into a neural network?

[Jetbrains](https://yomu.fyi/company/jetbrains) · Denis Shiryaev · Oct 18, 2026

**Type:** Explainer

## Summary

The post describes compiling a Maven-compatible build controller into a fixed weight matrix of a neural network, so the network executes the exact decision logic of a build tool. The network, with 26,626 rows of weights, produces byte-identical JARs to Apache Maven when building ZXing 3.5.3, with all 549 upstream tests passing. The approach uses Handwired to write a program in a restricted Python subset and compile it into weights, with no training or gradient descent. The neural version is slower than the equivalent Python logic, taking 1.42× longer for a clean build with tests (95% CI 1.40× to 1.43×). The authors position the result as useful for interpretability research, exact subroutines inside learned models, and decision logic that can be hashed and replayed.

## Context

JetBrains researchers compiled a Maven build controller into a neural network weight matrix using the Handwired technique, producing a network that makes exact build decisions without training.

## Approach / What changed

The authors wrote a small Maven-compatible build controller in a restricted subset of Python and compiled it into a weight table using Handwired. The network executes by looking up rows of the table with matrix multiplications, performing arithmetic on a register file, and making I/O requests through a bridge that never decides. The weights were not trained; they encode the program logic exactly.

## Takeaways

- The neural network produces byte-identical JARs to Apache Maven for ZXing 3.5.3, with all 549 upstream tests passing and 27 of 27 QR code checks succeeding.
- The network is slower than the equivalent Python logic: 1.42× for a clean build with tests, and 24.2× for decisions alone (CPU vs Python).
- The compiled weights have known meaning, making them useful for interpretability research as an answer key for network analysis tools.

## FAQ

### How does the neural network make decisions without training?

The weights are compiled from a program using Handwired, so the network executes the exact program logic. No gradient descent or training is used.

### Is the neural Maven faster than regular Maven?

No, it is slower. For a clean build with tests, the neural CPU version takes 1.42× longer than the Python version, and much longer for decisions alone.

### What is the practical use of this approach?

The authors suggest it is useful for interpretability research (as a known-answer network), for embedding exact subroutines inside learned models, and for decision logic that can be hashed and replayed.

**Tags:** [Interpretability](https://yomu.fyi/topic/interpretability), [Maven](https://yomu.fyi/topic/maven)

- Source: [Jetbrains](https://blog.jetbrains.com/ai/2026/10/can-you-bake-maven-into-a-neural-network)
- Source URL: https://blog.jetbrains.com/ai/2026/10/can-you-bake-maven-into-a-neural-network
- Ingested by Yomu: 2026-10-18T21:00:12.104Z

[Read original post](https://blog.jetbrains.com/ai/2026/10/can-you-bake-maven-into-a-neural-network)
