该仓库记录了一项正在进行的研究:通过将 Qwen3.6-35B-A3B 的 MoE 路由器 top-k 从 8 提升到 32,在不增加新权重的情况下将激活参数从 3B 扩展到 6.6B,然后通过选择性专家微调修复由此产生的精度损失。

Stars

11

7 天增长

暂无数据

Fork 数

0

开放 Issue

0

开源协议

MIT

最近更新

2026-07-10

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

该工作以严格、透明和自我批评的方式对一种新颖的无权重重能力扩展技术进行了实证研究,包含详细的 A/B 测试、负面结果以及交互式 HTML 报告,既展示了成功也揭示了持续存在的局限。

适合谁使用

  • 研究混合专家架构的研究人员
  • 希望在不重新训练的情况下增加模型容量的实践者
  • 对选择性微调和路由器操作感兴趣的开发者
  • 探索前沿模型内部机制的开源模型黑客

典型使用场景

  • 在不增加参数的情况下提升已有 MoE 模型的推理计算预算
  • 理解路由器 top-k、专家激活与任务性能之间的关系
  • 评估事后能力扩展在微调和强化学习流程中的可行性
  • 基准测试 SFT 在编码和推理任务中风格转移与知识转移的区别

项目优势

  • 所有测量均为配对、同条件下的 A/B 测试,并使用了精确 McNemar 显著性检验
  • 提供了完整的选择性专家微调 (ESFT) 框架,支持可切换的残差增量
  • 公开发布了包含内联 SVG 图表的交互式 HTML 报告
  • 透明地记录了失败模式,如容量上限和生成长度风险

使用前须知

  • 修复效果已得到验证但未完成,点估计值仍略低于原生 top-8 基线
  • 选择性微调在训练约 38% 后饱和,表明存在容量上限,可能需要全 FFN 或解冻路由器
  • 该方法目前处于研究阶段,尚未发布为成品模型;正在进行的拒绝微调和强化学习可能改变结果

README 快速开始

Qwen3.6-35B-A3B → A6B: router k-expansion and selective healing

Force a top-8 Mixture-of-Experts router to fire 32 experts per token, then heal the resulting degradation with a router-frozen expert fine-tune — measured, honestly, with paired A/B tests.

The whole idea in one picture: identical weights, one routing constant changed. The added experts (orange) are load-bearing — 54% of the gate mass — but were never trained to collaborate. Interactive version →

This repository is a research log. It documents an ongoing campaign to turn Qwen3.6-35B-A3B (35B total / ~3B active, 256 experts per layer, native top-8 routing) into a "35B-A6B" regime by raising the inference-time router top-k to 32 (~6.6B active params/token, at zero new weights), and then repairing the accuracy it costs. Everything here is a measured account — including the losses and the failure modes, which are the most useful part.

Status: ongoing. Supervised mixture-healing is demonstrated but not complete (point estimates are still slightly negative). Rejection fine-tuning, GRPO reinforcement learning, and a Terminal-Bench evaluation are in progress — see Status below.


The reports

Two self-contained, theme-aware HTML reports (no external assets, inline SVG charts):

ReportWhat it covers
docs/arch_a3b_a6b.htmlArchitecture & tuning. What the top-k edit changes inside the MoE block, why the added ranks 9–32 carry 54% of the gate mass, and the residual-delta ESFT recipe step by step.
docs/healing_report.htmlMeasurements. The monotonic damage curve across k, three healing generations vs base@k8 (with p-values), and the generation-length hazard where SFT transfers style before knowledge.
docs/workflow_timeline.htmlWorkflow. A three-node timeline of the healing → probe → branch → RL pipeline: how the diagnosis re-ordered around making the router mobile (joint expert+router training) before deciding whether full-FFN capacity is needed.

There is also a small landing page at docs/index.html.

The pipeline at a glance

*Left→right is time; the three lanes are the compute nodes. The

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

MoonshotAI
精选
MoonshotAI GitHub avatar

Kimi-K3

Kimi K3 is an open-weight, 2.8T-parameter native multimodal agentic model with a 1M-token context window, designed for frontier coding, knowledge work, and reasoning tasks.

AI 与机器学习AI 智能体
3,348
xuchonglang
精选
xuchonglang GitHub avatar

investing-for-beginners

A structured investing guide for Chinese beginners covering US stocks, options, and cryptocurrency, with focus on foundational concepts and risk awareness.

区块链与 Web3
2,739
Krishnagangwal
精选
Krishnagangwal GitHub avatar

CS-Fundamentals

A curated collection of Computer Science fundamentals (PDFs, notes, cheatsheets, interview question banks) for placement preparation, covering seven core subjects plus general resources.

数据与数据库数据库与存储
2,326