---
title: "Can you reverse engineer our neural network?"
description: "A Jane Street ML puzzle shipped a fully specified, hand-built PyTorch network with integer weights that outputs 0 for almost every input, and the writeup follows one solver's path to cracking it."
url: "https://swe.quest/articles/can-you-reverse-engineer-our-neural-network-86a50d8d5fe35d5c"
canonical: "https://blog.janestreet.com/can-you-reverse-engineer-our-neural-network/"
source: "Jane Street Tech Blog"
published: "2026-02-24"
difficulty: "hard"
kind: "Article"
reading_minutes: 12
tags: ["machine-learning","ai-safety","cryptography","algorithms"]
---

# Can you reverse engineer our neural network?

A post on [Jane Street Tech Blog](https://swe.quest/sources/jane-street.md), published 2026-02-24, 12 min read, Article. Original: [https://blog.janestreet.com/can-you-reverse-engineer-our-neural-network/](https://blog.janestreet.com/can-you-reverse-engineer-our-neural-network/)

## Summary

A Jane Street ML puzzle shipped a fully specified, hand-built PyTorch network with integer weights that outputs 0 for almost every input, and the writeup follows one solver's path to cracking it. The last two layers implement a 16-byte equality check using ReLU(v-x-1) - 2ReLU(v-x) + ReLU(v-x+1). The thousands of layers before them turned out to compute MD5, spotted from 32 repeating blocks of 48 layers. Along the way the solver tried integer linear programming, graph reductions that shrank 2M nodes to 75K, bound propagation and a SAT solver, all defeated by the hash's irreversibility. He also found an unintended length-encoding bug for inputs over 32 characters, but the actual answer came from brute-forcing the target hash with a large English word list once the function was identified.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [AI safety](https://swe.quest/tags/ai-safety.md) (AI & ML)
- [Cryptography](https://swe.quest/tags/cryptography.md) (Security)
- [Algorithms](https://swe.quest/tags/algorithms.md) (Architecture & design)

## Prerequisites

- neural network layers and ReLU
- PyTorch basics
- hash functions
- SAT/ILP solvers

## Keywords

PyTorch, MD5, mechanistic interpretability, SAT solver, integer linear programming, Jane Street

## Related posts

- [NPHardEval Leaderboard: Unveiling the Reasoning Abilities of Large Language Models through Complexity Classes and Dynamic Updates](https://swe.quest/articles/nphardeval-leaderboard-unveiling-the-reasoning-abilities-of-large-language-a14bdd78f87edd9c.md): Hugging Face · 2024-02-02 · Medium · 5 min read · Evaluation, LLMs
  NPHardEval is a dynamic LLM reasoning benchmark of 900 automatically generated algorithmic questions: 9 problems (3 P, 3 NP-complete, 3 NP-hard), each at 10 difficulty levels.
- [The Open Evaluation Standard: Benchmarking NVIDIA Nemotron 3 Nano with NeMo Evaluator](https://swe.quest/articles/the-open-evaluation-standard-benchmarking-nvidia-nemotron-3-nano-with-nemo-6f0ee9fd3a20787d.md): Hugging Face · 2025-12-17 · Medium · 11 min read · Evaluation, LLMs, Open source
  NVIDIA published the complete NeMo Evaluator recipe behind the Nemotron 3 Nano 30B A3B model card, covering YAML configs, prompts, runtime settings and structured logs, so anyone can rerun and audit the reported benchmark scores.
- [Results from the ASIC puzzle](https://swe.quest/articles/results-from-the-asic-puzzle-ca06d1b0c156ce5d.md): Jane Street Tech Blog · 2026-10-02 · Hard · 12 min read · Hardware, Debugging, Formal methods
  Jane Street's puzzle chip, shipped as a bare GDS layout, turns out to be a hardware checker for an 11x11 Star Battle ("Two Not Touch") puzzle.
- [Simple considerations for simple people building fancy neural networks](https://swe.quest/articles/simple-considerations-for-simple-people-building-fancy-neural-networks-490cc6f6d8bbcd9e.md): Hugging Face · 2021-02-25 · Medium · 8 min read · Model training, Debugging, Machine learning
  Building and debugging neural networks goes best with a disciplined workflow: inspect the data before modeling, establish simple baselines such as logistic regression on word2vec or fastText embeddings, and verify the implementation by overfitting a small batch (e.g. 16 examples) to near-zero loss with regularization off.
- [GPT-5.5-Cyber built a zlib fuzzing lab in a day](https://swe.quest/articles/gpt-5-5-cyber-built-a-zlib-fuzzing-lab-in-a-day-34216d52ce035220.md): Trail of Bits · 2026-07-02 · Medium · 5 min read · Vulnerability research, AI agents, Testing, Open source, C & C++
  GPT-5.5-Cyber, driven through Codex's /goal command, independently chose dynamic testing over static review of heavily audited zlib and built a full fuzzing campaign in a day.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
