neuralgraffiti

babycommando活跃维护

在神经网络层面实时干预基础模型的输出,用 PyTorch 和 Jupyter Notebook 做液态神经网络与注意力机制的可视化微调实验。

Live-bending a foundation model’s output at neural network level.

暂无版本274star25fork同步于 2026-11-07 07:29 UTC

怎么上手

由 README 提炼,执行前请确认
README 未提供安装命令,仅提供 Colab 演示链接;运行前需准备 Hugging Face token 以下载模型
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

给任意预训练 Transformer 模型实时注入可演化的记忆痕迹,无需微调就能改变模型的思考倾向

在神经网络层面实时干预基础模型的输出,用 PyTorch 和 Jupyter Notebook 做液态神经网络与注意力机制的可视化微调实验。

核心能力

  • 在 Transformer 核心与输出层之间插入 Spray Layer 注入记忆痕迹
  • 无需微调或重训练,兼容任何暴露 hidden states 的模型
  • Spray Layer 随交互缓慢演化,产生基于历史上下文的细微行为漂移
  • 可量化测量记忆层对每次推理输出的影响程度
  • 人类和 AI 都可作为 tagger 向模型注入信息

容易踩的坑

需自备 Hugging Face token 才能下载模型;不保证输出特定词,只改变模型的概念关联倾向;层需积累一定交互量才会被填充,实际效果尚未发布

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Grupo 4 2Web 1920 – 9

    Neuroplasticity for any pre-trained LLM in real time.

    See the demo in action in Colab.

    Make sure to grabe a Hugging Face token to download the model.

    Medium article here.

    Neural Graffiti

    This is an experimental layer that merges ideas from liquid neural networks with static transformer models, using a simple but powerful "plug-in": the Spray Layer. Inspired by graffiti art of tagging and the neuroplastic nature of living brains, this layer injects a memory trace directly into the final stages of transformer inference — no finetuning, no retraining. It is minimal, modular, and compatible with any model that exposes hidden states.

    Dense neural networks are still very curous and misterious black boxes. New techniques are emerging for studying and respectively controlling them.

    Neural Graffiting is an experimental technique that modulate the way a pre-trained model behave by injecting memory, opinions and other information directly into the vector embeddings, altering the generative token predictions. This influences not only the output but the entire line of "thinking" of the model - changing how it relates words and concepts on its mind over time.

    How does it work

    Inspired by the neuroplastic nature of living brains, this layer injects or "sprays" a memory trace directly into the final stages of a transformer model inference with no finetuning or retraining required - it works in real time.

    The spray layer evolves slowly across interactions, introducing subtle behavioral drift based on past context. This however requires a certain amount of interaction with it for the layer to be filled, and the actual results are yet to be released. We can measure how much the spray layer is making effect on each input over the inference so you can always keep track of it. Both humans and Ais can be the model taggers.

    Note this won't precisely affect the model to say a specific work, what it does is rewiring its way of seeing the world. The Spray Layer works like a soft whisper to the model's neurons in a way to influence how it "thinks", how it relates concepts (by vector embeddings), altering its internal state between the transformer core and the output layer.

    • ❌ Won’t guarantee exact word outputs — but it will make the model lean into certain concepts the more it interacts;

    • ✅ Doesn’t force outputs — it gently shifts perception while builds internal memory over time;

    • ✅ Can track its own influence — you can measure how much the memory affects each output;

    For example: Tell it you love dogs, and over time, the model will start leaning toward dog-related kindness, loyalty, and fuzziness in its tone and direction — even in unrelated conversations.

    The Manifest

    This was built on the hope of leading Ai models into a more active behavior, with aggregated personality and enhanced curiosity. The manifest is to help Ais acquire some sort of self awareness at neuron level by making it remember what it said in the past, who they really are, by tagging their own models.

    The Liquid Neural Network architecture is very promising for emulating the neuroplasticity of the brain. However, like any other LLM, they are very hard and expensive to train form scratch. Looking into alternatives, the idea of adding a "vector neuroplastic memory" layer between the static generation of any open transformers-based model and the output layers surged and it was impressively not that hard to implement. However its clear that what the model is actually doing is "tagging" or "graffiting" the behavior of actual static models, we tear them open and leave the marks. Much work is yet to be done.

    Be aware tho, this will turn deployed models into a very specific "entity" with their own mental universes, so might not be the best case for a business deployment. Think of it more like a digital persona you are helping to find itself in the sea of simulation.