r/neuralnetworks • • 13h ago

What about the parallelism transformer enable during training?

Post image
30 Upvotes

r/neuralnetworks • • 18h ago

Language Models Can Rewrite Their Own Weights

7 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 • • 4h ago

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

6 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.