tmax-2b-atlas
收藏资源简介:
本数据集是allenai/tmax-2b混合SSM/Mamba/Transformer语言模型的内部机制图谱,通过分析模型在8,965个多样化提示语料上的激活构建,旨在揭示模型各层、组件、注意力头和特征方向的功能,而非用于对话或基准测试。它以SQLite数据库形式组织,包含12张表,总计超过1000万行数据,核心内容包括层元数据、特征分类和激活统计、注意力头选择性分析、OV/QK/FC矩阵的SVD分解、Logit Lens输出、特征对相关性、特征角色标签、合规行为对比统计、Sub-Zero分类器精度等。数据集覆盖全部24层,但仅包含语言标记化组件,排除了非语言组件的噪声。关键发现包括注意力机制是分布式的、MLP/SSM门特征主导Logit Lens、早期层轴在多语言能力上具有显著损伤但总体可编辑性高。适用于特征提取、模型可解释性、机制分析、稀疏自编码器研究等任务。
This dataset is the internal mechanism atlas of the allenai/tmax-2b hybrid SSM/Mamba/Transformer language model, constructed by analyzing the model's activations across 8,965 diverse prompt corpora. It is designed to uncover the functional roles of each layer, component, attention head, and feature direction of the model, rather than being intended for dialogue or benchmarking tasks. Organized as a SQLite database, the dataset contains 12 tables with a total of over 10 million rows of data. Its core content includes layer metadata, feature classification and activation statistics, attention head selectivity analysis, SVD decomposition of OV/QK/FC matrices, Logit Lens outputs, feature pair correlations, feature role labels, compliance behavior comparative statistics, Sub-Zero classifier accuracy, and more. The dataset covers all 24 layers of the model, but only retains language tokenization components while excluding noise from non-linguistic components. Key findings from this dataset include that the attention mechanism is distributed, MLP/SSM gate features dominate the Logit Lens, and early layer axes exhibit significant impairments in multilingual capabilities but overall high editability. This resource is suitable for tasks such as feature extraction, model interpretability, mechanistic analysis, and sparse autoencoder research.
数据集概述
数据集名称:juiceb0xc0de/tmax-2b-atlas
任务类型:机械可解释性数据集,用于分析混合SSM/Mamba/Transformer语言模型allenai/tmax-2b的内部机制。
模型:allenai/tmax-2b(24层,包含6个注意力层和18个混合层)
探测语料:8,965 个多样化提示(prompts)
数据集内容:这是一个模型内部机制的“大脑图谱”,记录了每个层、组件、头部和特征方向在语料上的激活统计、功能标签、电路分析等信息,而非聊天数据或基准测试。
数据格式:SQLite 数据库,包含以下11个表:
| 表名 | 行数 | 说明 |
|---|---|---|
layers |
24 | 每层的元数据和完成标志 |
features |
681,984 | 每(层、组件、特征索引)的特征分类和激活统计 |
per_head |
168 | 6个注意力层中每个头部的选择性和顶级代码统计 |
ov_circuits |
48 | 对W_V @ W_O进行SVD分解,以及QK/FC频谱指标 |
logit_lens |
6,528 | 每个特征促进/抑制的输出token |
coactivation |
14,201 | 特征对之间的相关性 |
code_analysis |
4,680 | “纠缠”与“选择性”角色标签 |
compliance_behaviour_features |
681,984 | 每个特征在真实风格与官方风格之间的对比(F统计量与差值) |
compliance_behaviour_per_head |
168 | 每个头部在合规/行为风格上的对比统计 |
subzero_layer |
24 | 每层的分类器准确率和奇异向量摘要 |
subzero_svs |
96 | 每个投影方向上的“守护者”奇异值 |
subzero_capability |
365 | DAS轴的能力损伤与栅栏决策 |
关键发现:
- 注意力分布广泛:OV频谱集中度为0.060,有效秩约79。
- MLP/SSM门控主导logit lens:峰值出现在第15层和第20层的
gate特征上,F统计量超过590。 - 最严重的“手术”意外出现在早期:第1层
linattn_in_proj_z轴0在所有五个领域均未能通过能力栅栏,对多语言能力损伤高达0.60。 - 其余方向可编辑性高:365个Sub-Zero轴中有335个(91.8%)通过了能力栅栏,平均损伤仅为0.029。
重要说明:
- Sub-Zero分析专门寻找区分官方风格与真实风格的方向,并通过DAS旋转和能力栅栏测试移除这些方向是否损害代码、数学、推理、事实或多语言能力。它并非对所有重要方向的普查。
- 混合SSM/Mamba层中包含不进行语言token化的组件,本数据集未探测这些组件,以避免噪声。相关方法正在开发中。
使用方式:通过SQLite连接,运行SQL查询。示例: python import sqlite3 import pandas as pd
conn = sqlite3.connect("tmax-2b-atlas.sqlite") df = pd.read_sql_query("SELECT * FROM features WHERE layer_id=15 AND component=gate ORDER BY fstat DESC LIMIT 20", conn)
许可协议:MIT
相关链接:
- 模型:https://huggingface.co/allenai/tmax-2b
- Atlas 代码:https://github.com/JuiceB0xC0de/qwip_atlas
- 作者主页:https://huggingface.co/juiceb0xc0de




