stdlogits

neuron-lens

stdlogits

A catalog of every MLP neuron and attention head of Qwen3-8B and Gemma 4 12B, read from the weights through two Jacobian lenses (R and S), from activations, and from their exact token drivers

AI 简介

neuron-lens 是一个面向大语言模型(LLM)可解释性的开源项目,系统性地解析 Qwen3-8B 和 Gemma 4 12B 中全部 MLP 神经元与注意力头的功能。它通过三种互补方式刻画每个组件:基于权重的 Jacobian R/S 透镜分析、1500 万真实 token 上的激活行为统计、以及精确识别驱动其高激活的原始 token;对支持多模态的 Gemma 4,还扩展至图像与音频输入。项目产出结构化公开目录,包含神经元/头的读取方向、响应模式、残差流关联、跨模态触发特征及验证实验结果,适用于 LLM 机制研究、安全对齐分析与模型行为诊断等场景。

Python
MIT License 最后更新 2026年11月23日活跃
61
Stars
5
Forks
54
Watchers
0
Issues

Star 增长

今日0
近 7 天+6
近 30 天+6
综合评分45.93
默认分支main