Skip to content

Issue 54 mot ablation - #206

Open
H2Rhan wants to merge 3 commits into
Tencent:mainfrom
H2Rhan:issue-54-mot-ablation
Open

Issue 54 mot ablation#206
H2Rhan wants to merge 3 commits into
Tencent:mainfrom
H2Rhan:issue-54-mot-ablation

Conversation

@H2Rhan

@H2Rhan H2Rhan commented Jul 31, 2026

Copy link
Copy Markdown

变更内容

1. tests/test_mot.py: 27 → 36 边界测试

新增 9 个边界测试:fp16 稳定性、纯硬路由梯度流、top_k=E dense routing、路由确定性、train/eval 一致性、shift_size=0 模式、多尺寸兼容性、非法 top_k 校验、scene-aware routing

2. scripts/mot_routing_analysis.py (新文件)

MoT 路由可解释性分析脚本:Router bias 提取、分层 expert 偏好分析、温度退火追踪

3. block.py dtype 修复

_blend_experts 添加 .to(out.dtype) 防止 Half×Float 不匹配

4. experiments/issue54_mot_ablation/

消融实验训练结果:summary.csv + 4 变体 results.csv + 技术报告

消融实验核心结果

模型 Params mAP50 mAP50-95 Recall 训练耗时
v10 (MoE) 3.44M 0.2077 0.1107 0.2460 2.4h
v10_moa 3.57M 0.2052 0.1084 0.2537 3.6h
v10_mot 4.05M 0.2044 0.1087 0.2424 4.8h
v10_moa_mot 4.05M 0.2025 0.1060 0.2505 5.0h

Router 分层分工

  • 早期层 (P4/16): LocalConv + Window
  • 中期层 (P3/8): Deformable (双 block 均偏好)
  • 晚期层 (P5/32): LocalConv

H2Rhan and others added 2 commits July 28, 2026 10:32
feat(lora): LoRA rank sweep results for VisDrone and Brain Tumor datasets

犀牛鸟 Tencent#50 — 垂类场景 LoRA 高效微调适配 实验结果提交

## Experiments (6 runs, SLURM job 89299, NVIDIA A40)

### VisDrone (航拍检测, 10 classes, 30 epochs)
| Rank | mAP50 | mAP50-95 | Precision | Recall | Time |
|------|-------|----------|-----------|--------|------|
| r=4  | 0.045 | 0.019    | 0.421     | 0.066  | 5.06h |
| r=8  | 0.049 | 0.022    | 0.423     | 0.072  | 5.06h |
| r=16 | 0.064 | 0.029    | 0.334     | 0.088  | 5.25h |

### Brain Tumor (医疗检测, 2 classes, 40 epochs)
| Rank | mAP50 | mAP50-95 | Precision | Recall | Time |
|------|-------|----------|-----------|--------|------|
| r=4  | 0.449 | 0.294    | 0.464     | 0.659  | 0.36h |
| r=8  | 0.450 | 0.287    | 0.442     | 0.721  | 0.37h |
| r=16 | 0.476 | 0.314    | 0.466     | 0.721  | 0.39h |

### Changes
- Updated sweep shell scripts with proper headers and error handling
- Modified LoRA YAML configs for rank sweep experiments
- Updated README with experiment documentation
- Added complete sweep results (yolo_master_lora_rank_sweep_results.csv)
- Added detailed per-experiment metrics (yolo_master_lora_results.csv)

Co-Authored-By: Claude <noreply@anthropic.com>
@
… fix

- tests/test_mot.py: 27→36 boundary tests (fp16 stability, hard routing
  gradient flow, routing determinism, top_k=E dense routing, scene-aware
  router, train/eval consistency, invalid top_k validation, multi-size
  localconv, shift_size=0 mode)
- scripts/mot_routing_analysis.py: MoTBlock expert routing analysis
  script (router bias extraction, per-layer expert preference, scene-
  conditioned activation patterns, temperature annealing tracking)
- block.py:220/232: fix dtype mismatch in _blend_experts
  (Half×Float→add .to(out.dtype) cast)
@H2Rhan
H2Rhan force-pushed the issue-54-mot-ablation branch from 53e60ad to 570bd72 Compare July 31, 2026 12:04
- experiments/issue54_mot_ablation/summary.csv: 4种变体汇总
- experiments/issue54_mot_ablation/{v10,v10_mot,v10_moa,v10_moa_mot}/results.csv
- experiments/issue54_mot_ablation/REPORT.md: 完整技术报告
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant