[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111093":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":14,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":13,"stars7d":13,"stars30d":13,"stars90d":13,"forks30d":13,"starsTrendScore":13,"compositeScore":15,"rankGlobal":10,"rankLanguage":10,"license":16,"archived":17,"fork":17,"defaultBranch":18,"hasWiki":17,"hasPages":17,"topics":19,"createdAt":10,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":13,"starSnapshotCount":13,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},111093,"DGP","YingyingYan1\u002FDGP","YingyingYan1","🔥🔥🔥[NeurIPS 2026] Official Implementation of DGP: Where to Connect? Boosting MLLMs via Dynamic Gated Pathways across ALL ViT and LLM Layers","",null,"Python",113,0,1,40,"Apache License 2.0",false,"main",[20,21],"large-language-models","multi-model","2026-11-09 05:53:46","2026-11-11 21:55:35","\u003Cdiv align=\"center\">\n\n# [NeurIPS 2026] Where to Connect? Boosting MLLMs via Dynamic Gated Pathways across ALL ViT and LLM Layers\n\n\n\u003Cp>\n  Yingying Yan\u003Csup>1,∗\u003C\u002Fsup>,\n  Jiaqi Tang\u003Csup>2,∗\u003C\u002Fsup>,\n  Wei Wei\u003Csup>1,†\u003C\u002Fsup>,\n  Qianzhou Wang\u003Csup>1\u003C\u002Fsup>,\n  Lei Zhang\u003Csup>1\u003C\u002Fsup>,\n  Jianmin Chen\u003Csup>1\u003C\u002Fsup>,\n  Yuyang Xia\u003Csup>1\u003C\u002Fsup>,\n  Botong Geng\u003Csup>1\u003C\u002Fsup>,\n  Jinjian Wu\u003Csup>1\u003C\u002Fsup>,\n  Qifeng Chen\u003Csup>2\u003C\u002Fsup>\n\u003C\u002Fp>\n\n\n\u003Cp>\n\u003Csup>1\u003C\u002Fsup>Northwestern Polytechnical University &nbsp;&nbsp;\n\u003Csup>2\u003C\u002Fsup>Hong Kong University of Science and Technology\n\u003C\u002Fp>\n\n\u003Cp>\u003Csup>∗\u003C\u002Fsup> Equal contribution. \u003Csup>†\u003C\u002Fsup> Corresponding author.\u003C\u002Fp>\n\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FYingyingYan1\u002FDGP\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCode-GitHub-111111\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.06844\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fcs.CV-Paper-b31b1b?style=flat&logo=arxiv&logoColor=white\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002FYingying11\u002FDGP-7B\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FModel-DGP--7B-facc15\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fhuggingface.co\u002FYingying11\u002FDGP-13B\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FModel-DGP--13B-facc15\">\u003C\u002Fa>\n\u003Ca href=\"LICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-Apache%202.0-blue.svg\">\u003C\u002Fa>\n\nOfficial repository for **DGP** (Dynamic Gated Pathways).\n\n\u003C\u002Fdiv>\n\n---\n\n## 📰 News\n\n- [2026.11] [Paper](https:\u002F\u002Farxiv.org\u002Fabs\u002F2611.06844) released on arXiv.\n- [2026.11] Code released; [Models](https:\u002F\u002Fhuggingface.co\u002FYingying11\u002FDGP-7B) released on Hugging Face.\n- [2026.09] 🎉 DGP was accepted by NeurIPS 2026.\n\n---\n\n## 🔎 Overview\n\nA central yet under-explored question in Multimodal Large Language Models (MLLMs) is **where to connect**: how visual information from a hierarchical vision encoder should be wired into the layer-wise semantics of a large language model. Mainstream MLLMs inject a fixed single-layer visual representation into the LLM and treat all LLM layers as a single consumer, ignoring that different layers demand different visual granularities. Recent multi-layer fusion methods either compress hierarchical features on the encoder side or rely on predefined sparse or hierarchical layer-to-layer connections, and therefore stop short of modeling adaptive cross-layer interactions between the ViT and LLM hierarchies.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\".\u002Fimage\u002Fmotivation.png\" alt=\"Connection strategies for visual token insertion\" width=\"100%\">\n\u003C\u002Fp>\n\nWe address this gap with **DGP (Dynamic Gated Pathways)**, a routing mechanism that establishes all-to-all connections between every ViT layer and every LLM layer. At each LLM layer, DGP produces a routing distribution over all ViT layers from the current hidden state, aggregates the candidates by gated weighted fusion, and injects the result back through a residual connection. Built on [LLaVA-1.5](https:\u002F\u002Fgithub.com\u002Fhaotian-liu\u002FLLaVA) 7B and 13B, DGP yields consistent gains over the LLaVA-1.5 baseline and surpasses prior multi-layer visual fusion methods on most benchmarks. Layer-wise routing analyses further show that different LLM layers select different visual granularities on demand.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\".\u002Fimage\u002FOverview.png\" alt=\"Overview of Dynamic Gated Pathways\" width=\"100%\">\n\u003C\u002Fp>\n\n### Key Contributions\n\n- We reframe visual information injection in MLLMs around the question of **where to connect**, and show that fixed single-layer inputs and predefined sparse or hierarchical connections cannot match the differentiated demands of hierarchical ViT representations and layer-wise LLM semantics.\n- We propose **DGP (Dynamic Gated Pathways)**, an all-to-all cross-layer connection mechanism in which every LLM layer dynamically gates its preference over every ViT layer conditioned on its current semantic state.\n- We demonstrate the effectiveness and interpretability of DGP on multiple multimodal benchmarks, where layer-wise routing analyses reveal the adaptive, layer-dependent selection behavior of the proposed dynamic gated pathways.\n\n---\n\n## 🛠️ Installation\n\nDGP is built on [LLaVA](https:\u002F\u002Fgithub.com\u002Fhaotian-liu\u002FLLaVA). Create the environment from the exported conda file, then install this repository in editable mode:\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FYingyingYan1\u002FDGP.git\ncd DGP\n\nconda env create -f environment-llava.yml\nconda activate llava\n\npip install -e .\npip install -e \".[train]\"\n```\n\n`environment-llava.yml` pins Python 3.10 and the training\u002Fevaluation dependencies used in our experiments (including PyTorch, Transformers, DeepSpeed, and PEFT).\n\n---\n\n## 🤖 Models\n\n| Model | Base | Checkpoint |\n|:------|:-----|:-----------|\n| [DGP-7B](https:\u002F\u002Fhuggingface.co\u002FYingying11\u002FDGP-7B) | LLaVA-1.5-7B | [Download](https:\u002F\u002Fhuggingface.co\u002FYingying11\u002FDGP-7B) |\n| [DGP-13B](https:\u002F\u002Fhuggingface.co\u002FYingying11\u002FDGP-13B) | LLaVA-1.5-13B | [Download](https:\u002F\u002Fhuggingface.co\u002FYingying11\u002FDGP-13B) |\n\n---\n\n## 📦 Data Preparation\n\nFollow the official [LLaVA data preparation](https:\u002F\u002Fgithub.com\u002Fhaotian-liu\u002FLLaVA) for the **558K** pretraining set and the **665K** instruction-tuning mixture. Place them under `playground\u002Fdata\u002F` so the training scripts can find:\n\n```text\nplayground\u002Fdata\u002FLLaVA-Pretrain\u002Fblip_laion_cc_sbu_558k.json\nplayground\u002Fdata\u002FLLaVA-Pretrain\u002Fimages\nplayground\u002Fdata\u002Fllava_v1_5_mix665k.json\n```\n\nEvaluation sets follow the same official LLaVA layout under `playground\u002Fdata\u002Feval\u002F`.\n\n---\n\n## 🎨 Visualization\n\nScripts and notes for the paper figures are in [`docs\u002F`](docs):\n\n- [CLIP CLS-to-patch attention](docs\u002Fclip_cls_attention.md)\n- [Fused visual feature maps](docs\u002Ffused_visual_features.md)\n- [Router weight collection and plots](docs\u002Frouter_visualization.md)\n\n---\n\n## 🚀 Training\n\nTraining follows the LLaVA-1.5 two-stage recipe. The vision tower stays frozen; the projector, dynamic gated pathways, and LLM are trained. Run from the repository root:\n\n```bash\n# Stage 1: pretrain on 558K\nbash scripts\u002Fv1_5\u002Fpretrain.sh\n\n# Stage 2: instruction tuning on 665K\nbash scripts\u002Fv1_5\u002Ffinetune.sh\n```\n\nHyperparameters, DeepSpeed config, and launch details follow [LLaVA](https:\u002F\u002Fgithub.com\u002Fhaotian-liu\u002FLLaVA).\n\n---\n\n## 📊 Evaluation\n\nBenchmark scripts live in `scripts\u002Fv1_5\u002Feval\u002F`. Point `MODEL_PATH` at a released checkpoint (or your own), then launch, for example:\n\n```bash\n# SEED \u002F SEED-I\nMODEL_PATH=Yingying11\u002FDGP-7B bash scripts\u002Fv1_5\u002Feval\u002Fseedbendi.sh\n\n# VizWiz\nMODEL_PATH=Yingying11\u002FDGP-13B bash scripts\u002Fv1_5\u002Feval\u002Fvizwiz.sh\n```\n\nOther suites (POPE, GQA, ScienceQA, MMBench, MM-Vet, LLaVA-Bench, VQAv2, and so on) use the same folder. For the full protocol and scoring, follow the official [LLaVA evaluation](https:\u002F\u002Fgithub.com\u002Fhaotian-liu\u002FLLaVA) and, where we use it, [lmms-eval](https:\u002F\u002Fgithub.com\u002FEvolvingLMMs-Lab\u002Flmms-eval).\n\n---\n\n## 📌 Citation\n\nIf you find DGP useful in your research, please cite:\n\n```bibtex\n@article{yan2026connect,\n  title={Where to Connect? Boosting MLLMs via Dynamic Gated Pathways across ALL ViT and LLM Layers},\n  author={Yan, Yingying and Tang, Jiaqi and Wei, Wei and Wang, Qianzhou and Zhang, Lei and Chen, Jianmin and Xia, Yuyang and Geng, Botong and Wu, Jinjian and Chen, Qifeng},\n  journal={arXiv preprint arXiv:2611.06844},\n  year={2026}\n}\n```\n\n---\n\n## 🤝 Acknowledgements\n\nThis project is built on [LLaVA](https:\u002F\u002Fgithub.com\u002Fhaotian-liu\u002FLLaVA). We thank the LLaVA authors for the training and evaluation codebase, and [lmms-eval](https:\u002F\u002Fgithub.com\u002FEvolvingLMMs-Lab\u002Flmms-eval) for the evaluation toolkit.\n\n---\n","DGP（Dynamic Gated Pathways）是一个面向多模态大语言模型（MLLM）的视觉-语言融合架构，旨在解决视觉编码器与语言模型之间‘连接位置’这一关键设计问题。其核心是建立ViT所有层与LLM所有层之间的全连接动态门控通路：在每个LLM层，基于当前隐状态动态生成对各ViT层的路由权重，加权融合多粒度视觉特征，并通过残差连接注入。技术上不依赖预设连接模式，支持端到端训练，兼容主流LLaVA-1.5基座。适用于需要细粒度跨模态对齐的视觉问答、图文理解、多步推理等开放域多模态任务。",2,"2026-11-24 04:40:06","CREATED_QUERY"]