r/neuralnetworks • • 2h ago

Do AI agent teams actually outperform a single AI agent? New benchmark results challenge the assumption.

Thumbnail
youtu.be
1 Upvotes

Bespoke Labs built MAC Bench (Multi-Agent Coordination Bench) to investigate whether teams of AI agents perform better because there are more agents, or because those agents coordinate with each other.

I made a short breakdown of the benchmark, its results, the costs, and what the researchers actually tested.

Watch here: Frontier AI Agents Don't Coordinate Well, Says New Benchmark

Original benchmark: https://benchmarks.bespokelabs.ai/multi-agent-coordination-bench/

Open-source benchmark: https://github.com/bespokelabsai/multi-agent-coordination-bench

The results are from Bespoke Labs' own experiments and apply to the tested models and tasks.


r/neuralnetworks • • 1d ago

Vision Transformers are too computationally expensive for phones. New research makes them up to 10x cheaper.

Thumbnail
youtube.com
8 Upvotes

A new paper, Active Vision Transformers, explores a different approach to running vision models efficiently on devices like smartphones.

I put together a short breakdown explaining how the approach works, the results, and what they actually mean.

Watch here: https://www.youtube.com/watch?v=j6g4Ln1-Gds

Paper: https://arxiv.org/abs/2611.39952


r/neuralnetworks • • 1d ago

Mnist CNN trained in Swift and Metal whose weights are a scannable QR code

Thumbnail
codetiger.in
23 Upvotes

I built a tiny 3,663-parameter CNN classifier on the MNIST dataset to recognize handwritten digits and reached 97.25% accuracy. Engineers were already hitting 99+% when I was in middle school, so there is nothing exciting about the accuracy here. What got me curious was hiding useful data inside the model’s weights. Image steganography used to be very popular two decades ago, and I always loved seeing how engineers hid one image inside another. Inspired by that, I wanted to see if I could embed a working, scannable QR code pointing to my website inside a small CNN without hurting its accuracy.


r/neuralnetworks • • 1d ago

Do you guys recomend any resources for neural network architecture?

3 Upvotes

I'm doing my final project on a human pose extracting using an artificially generated dataset. Im looking for some resources on how to designe the architecture of the neural network, but I haven't found anything that goes in depth on the reason for any of the design choices they make.

If you guys have any recommendations I would appreciate it a lot :)


r/neuralnetworks • • 1d ago

data from my training run

Thumbnail
gallery
2 Upvotes

i'm training on colab, kaggle, modal so i had claude get the logs i saved and make a visualization.

this is the project https://www.reddit.com/r/neuralnetworks/comments/1y4c1jp/im_surprised_a_model_is_training_at_all/


r/neuralnetworks • • 1d ago

I've been building Rill - Rust-powered graph ML infrastructure for PyTorch

3 Upvotes

Hey everyone!

I've been spending quite some time building an open-source project called Rill, and I wanted to share what I'm working on.

GitHub: https://github.com/Joy-Majumder/Rill

PyPI: https://pypi.org/project/rill-gnn/

What's Rill?

Rill is an attempt to build high-performance graph machine learning infrastructure with Rust at its core and Python as the interface.

The initial focus is graph data loading and sampling for Graph Neural Networks (GNNs).

If you've worked with GNNs, you probably know that handling graph data isn't always straightforward. Neighborhood sampling, moving graph features around, memory overhead, and preparing batches can become significant parts of the training pipeline.

I became interested in exploring whether Rust could help make some of these operations more efficient without making the experience difficult for Python and PyTorch users.

What's powering it?

Some of the technologies and concepts I'm exploring:

* Rust — performance-oriented core implementation

* PyO3 — Rust and Python interoperability

* Rayon — parallel execution

* PyTorch — integration with the ML ecosystem

* Zero-copy — reducing unnecessary data movement

* Graph data loading and sampling — the initial workload focus

The project also aims to fit into the existing PyTorch Geometric ecosystem rather than reinventing the entire GNN framework.

What I want Rill to become

I don't want Rill to be just another GNN framework.

My bigger goal is to build useful infrastructure underneath graph ML workflows: efficient graph storage, sampling, feature access, and data-loading primitives.

There is still a lot to improve, and I'm treating this as a long-term engineering project rather than something that's already finished.

I'm especially interested in feedback about architecture, memory management, Rust/Python interoperability, benchmarking methodology, and what researchers actually need from graph infrastructure.

A note about AI assistance

I want to be transparent: Rill was developed with significant assistance from AI coding tools. Architecture, design decisions, and research direction are human-driven, while implementation, testing, benchmarking, and documentation involved collaborative AI-assisted development.

I remain responsible for reviewing the code, validating results, and maintaining the project.

I'd love to hear your thoughts

If you've worked with Rust, PyTorch, graph neural networks, or performance-critical data pipelines:

* What would you improve in this approach?

* What problems do you face with existing graph data-loading tools?

* What features would make infrastructure like this genuinely useful?

And if you find the project interesting, feel free to check out the repository. If you like what I'm building, a GitHub star would mean a lot. It helps other developers discover the project and motivates me to keep improving it.

Thanks for reading! <3

GitHub: https://github.com/Joy-Majumder/Rill


r/neuralnetworks • • 2d ago

Walter's perfect speech, mathematically derived: Adversarial Prompting

Thumbnail
youtube.com
2 Upvotes

r/neuralnetworks • • 2d ago

I built a Prolog where a running proof is just data. It can stop mid-search, sit in a database overnight, and finish in a different process: Cocolog

Thumbnail
github.com
4 Upvotes

In the Prologs I've used, a running query lives in exactly one place: the process running it. Kill the process and the search is gone. If you want the rest of the answers, you start again from the top.

cocolog started from one question: what would a Prolog look like if the state of a proof in progress were plain data? Something you could write into a table, read back in another process, and continue from exactly where it stopped.

This is the first time I'm showing it publicly. Here's the trick it was built for:

$ cocolog --embed KB consult family.pl

consulted 12 clause(s) into 'main'

$ cocolog --embed KB start job "ancestor(tom,X)"

started 'job'

$ cocolog --embed KB --steps 12 step job

  1. ancestor(tom,bob)
  2. ancestor(tom,liz)
  3. ancestor(tom,ann)
  4. ancestor(tom,pat)

job: suspended at 12 inference(s), 4 answer(s) this turn

$ cocolog --embed KB --steps 12 step job

  1. ancestor(tom,jim)
  2. ancestor(tom,zoe)

job: suspended at 24 inference(s), 2 answer(s) this turn

Each of those commands is a separate process. When the third one exits, the proof isn't in memory anywhere. Its pending goals, choice points and bindings are in the store, as a few dozen kilobytes of plain text in a table. The fourth command reads them back, lands in the middle of the search, and finds the next two answers. Swap the embedded store for a database server, and that next step can run on another machine, a day later.

The one decision

The usual way to write an interpreter is to allocate terms as nodes linked by pointers, with a recursive \`solve()\` that uses the C stack as its continuation. It's simple, and it takes about half the code. But pointers and stack frames aren't data: you can't write them to a table and read them back somewhere else.

So cocolog makes one decision and builds everything else on it. A term is an index into a flat array of 64-bit cells, never a pointer, and the engine never recurses in C. The continuation is itself a term on the heap, and a choice point is a frame of integers. An array of indices means the same thing at any address, so freezing a machine is writing out six arrays, and thawing it is reading them back.

Every feature added since then had to keep that property, or say in the code why it doesn't. That includes compiled clauses, the garbage collector, the tracer and the green-thread scheduler.

The stack under it

cocolog is written in Cicili, a C with Lisp syntax that I also wrote. It keeps its knowledge base in ZiguratIP, my MVCC database. In cocolog, "knowledge base" is meant literally: a clause is a row, a keyed lookup is an index probe, and each turn of a suspended proof commits as one transaction.

It all ships as one binary: the interpreter, an embedded store, the module loader and a scheduler. Where the knowledge base lives is a command-line flag, not a different build: in memory, embedded in the process, or on a server over TCP, TLS or HTTP.

The long part: becoming boring on purpose

Making proofs stop and resume was the fun part. Making cocolog boring took far longer.

By boring I mean answering exactly as SWI-Prolog 9.0.4 does: the same output text, the same errors, the same exit codes. A float prints as the shortest text that reads back as the same double. An error's context names the predicate that raised it. A syntax error in a file is reported in SWI's words, at SWI's line and column, and the load goes on. \`--trace\` prints the ports SWI prints, at the depths it prints them.

What else is in there

\- Green threads, Go-style. \`go\`, \`yield\`, \`await\` and channels, over one shared store, with one worker per core. A task is preempted every 10,000 steps, so one that never yields can't hog its worker. On a four-vCPU Linux box, eight tasks run CPU-bound work about three times as fast as one, the same as eight OS threads. A green task costs about 10 µs to start, and an OS thread about 500 µs.

\- 21 loadable modules over C and C++ libraries: sockets, TLS and cryptography, curl, PCRE2, OpenCV, raylib, libtorch and TensorFlow, with HTTP and WebSocket libraries on top. Each module is declared in a Cicili binding and called as Prolog. No C is pasted into Prolog strings.

\- library(flow/chart) and library(flow/debug).

\- flow/chart draws a program as a flowchart without running it. It flags what looks wrong the way a compiler would: a call nothing answers (with the name you probably meant), left recursion, a clause that is never tried, a determinism promise that isn't kept.

\- flow/debug runs a query untraced in a child process, records only the window you ask for, and draws it over the chart: the path taken, failures in red, exceptions in purple. A journal answers every call that reaches the outside world, so the replay is exactly the run it explains.

\- cocolint, a linter for this dialect's traps.

\- 132 tutorials that are also tests. Every claim in a lesson is a check, so a lesson that stops being true fails.

Machine learning, written as expressions

library(tensor_expr) lets you write a network the way you'd write it on a whiteboard. relu(X matmul W1 + B1) matmul W2 + B2 is a two-layer net. loss(X, Y, W, B) ::= mse(X matmul W + B, Y) defines a loss. L := loss(X, Y, W, B) runs it and frees every intermediate tensor, and Gs := grad(L, [W, B]) returns the gradients. The same file runs on libtorch or TensorFlow, eagerly or as a compiled graph, on a CPU or a CUDA GPU. The program never names its backend: you pick it from outside, with tensor_execution/3. And because this is cocolog, a trained model doesn't stay in memory. params_save/2 writes its parameters into the knowledge base as terms, so training, testing and predicting run as three separate processes over one store, and a model trained on TensorFlow can be tested on torch from that same store. There are 42 tutorial networks, one file each, from linear regression through LSTMs, ResNet, U-Net, a small GPT, a VAE, a GAN, a graph convolutional network, RealNVP and a diffusion model, up to object detection on real photographs. One of them is a character-level language model trained on cocolog's own source.

Honest numbers

cocolog is not faster than SWI-Prolog, and I won't pretend it is. The language benchmark runs five small programs, each from the same \`.pl\` file in every system, on a four-vCPU Linux box. cocolog takes 0.86 to 2.86 times CPython's time, and 0.95 to 2.03 times SWI-Prolog \`-O\`'s.

It wins when the data lives in the store as a state machine and inference engine to capable of reasoning. Against Python with sqlite3:

\- Keyed lookups: a thousand of them over 200 facts in the embedded store are about 15 times faster.

\- A counting loop whose every addend is a row: 5.7 times faster.

\- Queens: 1.5 times slower.

The benchmark page keeps the losses in.

Try it

The release has two Docker images: a plain one, and one that adds raylib, PyTorch and NumPy.

docker load -i cocolog-3.78.22-docker-amd64.tar.gz

docker run --rm cocolog query 'X is 6\*7, write(X), nl'

docker run --rm -it cocolog # the interactive toplevel

docker run --rm -v "$PWD":/work cocolog --embed KB -s program.pl

Or build it from source with clang. It's BSD 2-Clause.

\- Repo: https://github.com/saman-pasha/cocolog

\- Release 3.78.22: https://github.com/saman-pasha/cocolog/releases/tag/v3.78.22


r/neuralnetworks • • 4d ago

Neural Canvas , CNN Visualization

501 Upvotes

Neural Canvas. CNN Visualization

Neural Canvas can now recognize basic shapes like apples, moons, cars, and more using Google's Quick, Draw! dataset.

20 classes with 1,000 samples per class

2 convolutional layers with 16 and 32 filters

2 fully connected layers with 60 and 40 neurons

91% test accuracy

Trained using JAX on Google Colab

Neural Canvas can also visualize CNN feature maps in real time while drawing, showing how convolutional layers extract features from input images.

GitHub: https://github.com/MuhammadEssa2002/neural_canvas

Live demo: https://muhammadessa2002.github.io/neural_canvas/


r/neuralnetworks • • 3d ago

Perceora - training several object detectors on the same images, comparing them and stress-testing the winner, with no code

4 Upvotes

Perceora is an end-to-end AI computer vision platform with no code. This film builds an object detection check for a tray of parts, from raw images to a PASS/FAIL decision.

https://perceora.ai

The neural network side, step by step:

  1. Label: blurry and near-duplicate images are flagged first. Label a few trays, train a first small model, and let it draft labels for the rest, which you check.
  2. Train: tick several detection models and train them one after another on the same labeled images, on your own GPU.
  3. Validate: the models are compared on validation images, not on the training data, and the best one is kept.
  4. Test: the kept model runs on held-out images it has never seen, and you go through the mistakes image by image.
  5. Stress test (Pro): the held-out images are checked again under real-world drift, to see how the model holds up before you trust it.
  6. Deploy: count each part, then PASS or FAIL, on new images, a folder, a video or a live camera.

Image classification, segmentation and anomaly detection are in the same app, and it runs on your own computer. Free to start; Pro (shown in the video) is a paid plan: perceora.ai/pricing

How do you test a detector against drift (light, blur, camera angle) before you deploy it?

Disclosure: I work on Perceora. Synthetic images, computer-generated voice.


r/neuralnetworks • • 5d ago

help with ideas on how to improve small coding model i am building

2 Upvotes

hey guys so i have been working on training a small 63 milllion parameter python function completer model

steps i have taken are:

use code parrot dataset which comes from scrapped python github files

use BPE tokenixer (deepseek v1 tokenizer with vocab size of 32000)

context window is 2048

i have 15 decoder transformer layers

embedding size of 512

implemeted cosine decay and gradient clipping

activation function is relu and optimizer is adamw

using weight tying as well (mainly cause of compute cost)

task i trained on was: autoreggressive task and fill in the middle section task shuffled in equal proportion

so after training the model it could produce plausible and correct functions(rarely) given a docstring but never knew to produce a return cause i was training over the whole file

so i did continued pretraining at function level with a conservative laerning rate and it can now produce actual return statements that are still plausible but mostly wrong logic

i was thinking of dabbling into a bit of post training but i feel out of my depth and wanted advice on things i am missing or could have imporved on and also how to go about learning and implementing post training strategies as well as coding model evals if any of you have dabbled in that as well


r/neuralnetworks • • 6d ago

Does learning mean falling apart? The behaviour of φₛ and Φ during training with gradient descent (Integrated Information Theory w/ deep learning)

Post image
21 Upvotes

Hi everyone! I've been working on a small project about Integrated Information Theory for german Jugend forscht 2027. I'd love to have some feedback. https://github.com/b0gd5n/does_learning_mean_falling_apart_bohdan_karpenko

I built Integrats, recurrent networks of stochastic binary nodes that you can train with ordinary backward propagation but that stay small enough for PyPhi to compute φₛ and Φ exactly for every state. No proxies or approximations.

I trained 840 networks, 2 initialisation types, cores of 2–4 nodes, 7 tasks, 5 delays, measured φₛ and Φ before training, during training, and after weight shuffling as a control.

The main conclusion is that gradient descent stifles integration in almost all scenarios, but if you force information to circulate through the network during inference, integration will increase or decrease more slowly.

Code, data, plots and the paper are all in the repository. I know IIT only at a basic level, so I'd really appreciate criticism of both the method and the interpretation. Thanks!


r/neuralnetworks • • 7d ago

New Activation Function?

8 Upvotes

Found this activation function...

zenodo.org/records/24143280

As a SiLU lover, I've always been skeptical of "homemade" activation functions that work well at a smaller parameter counts but have no proof of scaling. I tested this one on 27M parameters to right short stories and it worked well for the amount of time I spent training it which was only a few hours. I never tested SiLU on this same set because I was only trying to see if it worked. I don't have the hardware to scale it so if any of you end up trying it let me know how it goes.


r/neuralnetworks • • 7d ago

Alternative Approaches to Symbolic Regularization of Neural Training

Thumbnail
youtube.com
1 Upvotes

r/neuralnetworks • • 8d ago

I made a library that combines your devices' memory to train or fine-tune large models (open source)

45 Upvotes

most machines cant train or fine-tune the bigger models on their own, but a few of them together usually have enough memory. it splits the model by layers across them and trains it like its one model.

works for LoRA, QLoRA, full fine-tuning and training from scratch, and your training code stays the same.

they connect over the internet, and if one drops out the others take over its layers and training goes on.

https://github.com/abdallah-swe/layerpool

feedback welcome


r/neuralnetworks • • 8d ago

I'm surprised a model is training at all

7 Upvotes

I made a ternary (BitNet b1.58-style), bidirectional masked-diffusion, byte-level RDT model, with 8-bit activations that drop to 4-bit for the last 10% of training, and somehow it's training.

It's ~109M params on 61B bytes (~560 bytes/param), currently at step 113,000 of 929,577 on free Kaggle T4s plus some Modal credit. Val loss (masked-diffusion, per byte) is ~1.37 and still slowly going down, and the ternary weights are stable. Samples are still mostly gibberish, but for how experimental this is, it's surprisingly healthy.


r/neuralnetworks • • 9d ago

I built a lossless text compressor that stores a small neural model inside each archive

44 Upvotes

I’ve been experimenting with using a neural model to compress text and packaged the result as Neuralzip.

The model learns from the input text and supplies byte probabilities to an arithmetic coder. The archive contains both the saved model and the encoded stream, allowing the decoder to recover every original byte.

On a five-book collection, one completed research model produced:

3,120,899 bytes → 791,134 bytes, including the model weights.

For comparison, gzip-9 produced 1,191,527 bytes on the same input, making the Neuralzip archive 33.6% smaller.

The interesting constraint is that a better model only helps if its prediction savings outweigh the bytes needed to store its weights.

There are clear limitations: training and decoding are slow, small files can grow, and stronger conventional compressors can still win. PPMd beat this checkpoint, and gzip beat the saved Alice checkpoint.

I’ve released a Python library and a browser demo where you can watch a saved model reconstruct text chunk by chunk.

GitHub · Demo

I’d like feedback on improving the balance between model size, prediction quality, and decoding cost.


r/neuralnetworks • • 8d ago

If you gave up on Tech Pace, you can use neural networks for Divine Purpose

0 Upvotes

I am believer who dedicated my life to Jesus Christ. I was attempting 2 PhD, but was trying to preach about Jesus and studying at the same time. For preaching about Jesus, I was asked to leave.

Then I tried to do my own thing, but AI is kind of progressing much faster.

I have spent on this algo about 6-7 years. The most important thing (apart from teaching Humanoid to walk like human from scratch without parallel environments) it is doing is worshipping God.

After we finish our lives here, we might regret about a lot of things, but we will never regret for the time we spent with Him and for Him. Source code: https://github.com/timurgepard/Symphony-S2/tree/main (the code is optimized to run on older GPUs)


r/neuralnetworks • • 9d ago

What about the parallelism transformer enable during training?

Post image
57 Upvotes

r/neuralnetworks • • 9d ago

Language Models Can Rewrite Their Own Weights

11 Upvotes

This paper tests whether a language model can improve itself by editing its weights, rather than relying on gradients or a separate training run. A 27B model can inspect its own activations and weights, run candidate edits through code, and keep an edit only when its own evaluation supports it. The best accepted edit gained 6.6 percentage points on 490 held-out math problems; edits were persistent, so they added no inference-time cost.

The repair experiment is especially unusual: after eight rows of a layer matrix were replaced with large random values, the model located the corrupted matrix and clipped outliers without access to the intact weights. A repair found using text-math tasks raised performance on six unseen image benchmarks, reaching 83% of the intact model’s accuracy.

The evidence is narrow: one model family, controlled corruption, and a small set of evaluations. Self-editing also failed at smaller scales, and some attempted edits were withdrawn or damaged performance. Still, it raises a concrete question for neural-network research: under what conditions can a model’s internal representations guide reliable weight updates without gradient-based training?

Full summary on AIModels.fyi

Original paper

Disclosure: AIModels.fyi is my site.


r/neuralnetworks • • 10d ago

PhiloLM: a 112M language model trained only on philosophy texts [P]

94 Upvotes

I trained PhiloLM, a 112M-parameter language model from scratch using only openly available philosophy texts.

The training corpus, PhiloText, contains 0.5B tokens from philosophy encyclopedias (SEP, IEP), public-domain books, reviews, textbooks, and educational resources.

The model was trained on 1.5B tokens in 15 hours on a single Intel Arc A770 (16 GB). The architecture uses grouped-query attention, sliding-window attention, bigram embeddings.

Model and technical details: https://huggingface.co/gustavecortal/PhiloLM

Try it in your browser!


r/neuralnetworks • • 10d ago

I made a 5-minute explainer of a single artificial neuron for complete beginners (a party decision, no maths needed)

4 Upvotes

I'm making a short series that explains how AI works for people who aren't developers. The first episode builds one artificial neuron that decides whether to go to a party: inputs, weights, a bias, and a yes/no. Then three neurons decide whether to buy a phone, and at the end we look at how real neural networks differ.

https://youtu.be/Qe13Q_BV5_o

Every claim is sourced in the description. I'd love feedback, especially from anyone who teaches this: what was unclear, too slow, or too fast?


r/neuralnetworks • • 11d ago

I built a Graph HyperNetwork that generates weights for unseen Vision, Text, and Time-Series architectures in one forward pass [P]

14 Upvotes

I've been working on a multimodal Graph HyperNetwork that predicts the weights of an unseen target neural network (WideResNet2D, MLPMixer, ResMLP, CNN1D, Transformer) for a completely unseen dataset in a single forward pass.

Results

  • Unseen Architectures on Trained Datasets: 81.22% mean zero-shot accuracy..
  • Unseen Datasets + Unseen Architectures: 71.57% mean zero-shot accuracy.

I would like to hear your opinion on it (positive and negative) and if you find a way to improve it or you have a question, just comment. And yes, i used ai for bug fixes, code improvements, plots, ...


r/neuralnetworks • • 11d ago

Vulnerability detecter using GNN

4 Upvotes

I’m currently working on a project in which we’re trying to build an end to end system for code security using graph neural networks, but i’m new to this neural network and don’t know it very well.
So, i wanna ask if there’s any who can guide me how to train a graph neural network well like the resources we need and how much data should be required and any other optimisations related, anyone?


r/neuralnetworks • • 12d ago

We built interactive graphs of models from recent papers, with tensor shapes from real runs

Thumbnail
tensorviz.dev
8 Upvotes

We've been working on tensorViz for a while. When we read a model paper, we often want to see what actually goes into a block and what comes out. So we built a Model Explorer where you can open a graph in your browser, expand a block, and follow the tensor shapes recorded during a forward pass.

Try Model Explorer: https://tensorviz.dev/explore/

If you want to graph your own PyTorch model, try the VS Code extension or the plugin for Claude Code, Codex, and Cursor.

GitHub and setup instructions : https://github.com/tensorviz-org/tensorviz

I'd love to hear which model on Hugging Face you'd want us to add next.