-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
393 lines (363 loc) · 17.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
<!DOCTYPE html>
<html>
<meta property='og:title' content='R-MeeTo: Faster Vision Mamba is Rebuilt in Minutes Via Merged Token Re-training'/>
<meta property='og:description' content='R-MeeTo: Faster Vision Mamba is Rebuilt in Minutes Via Merged Token Re-training'/>
<meta property='og:url' content='https://oahzxl.github.io/PAB/'/>
<meta property='og:image:width' content='1200' />
<meta property='og:image:height' content='663' />
<!-- TYPE BELOW IS PROBABLY: 'website' or 'article' or look on https://ogp.me/#types -->
<meta property="og:type" content='website'/>
<head>
<meta charset="utf-8">
<meta name="description"
content="R-MeeTo: Faster Vision Mamba is Rebuilt in Minutes Via Merged Token Re-training">
<meta name="keywords" content="R-MeeTo: Faster Vision Mamba is Rebuilt in Minutes Via Merged Token Re-training">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>R-MeeTo: Faster Vision Mamba is Rebuilt in Minutes Via Merged Token Re-training</title>
<link rel="stylesheet" href="./static/css/bulma.min.css">
<link rel="stylesheet" href="./static/css/bulma-carousel.min.css">
<link rel="stylesheet" href="./static/css/bulma-slider.min.css">
<link rel="stylesheet" href="./static/css/tab_gallery.css">
<link rel="stylesheet" href="./static/css/fontawesome.all.min.css">
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/jpswalsh/academicons@1/css/academicons.min.css">
<link rel="stylesheet" href="./static/css/index.css">
<link rel="icon" href="./static/images/favicon.svg">
<link rel="stylesheet" href="juxtapose/css/juxtapose.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script defer src="./static/js/fontawesome.all.min.js"></script>
<script src="./static/js/bulma-carousel.min.js"></script>
<script src="./static/js/bulma-slider.min.js"></script>
<script src="./static/js/index.js"></script>
<script src="./static/js/magnifier.js"></script>
<link href="https://fonts.cdnfonts.com/css/menlo" rel="stylesheet">
<link rel="stylesheet" href="./static/css/image_card_fader.css">
<link rel="stylesheet" href="./static/css/image_card_slider.css">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Patrick+Hand|Google+Sans|Noto+Sans|Castoro|Lato|Open+Sans&effect=shadow-multiple|emboss|3d">
<link rel="icon" href="./static/images/pyramid.png" type="image/x-icon">
<link rel="shortcut icon" href="./static/images/pyramid.png" type="image/x-icon">
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
</head>
<style>
@import url('https://fonts.cdnfonts.com/css/menlo');
.video-table td, .video-table th {
padding-top: 2px;
padding-bottom: 2px;
padding-left: 4px;
padding-right: 4px;
font-weight: normal;
}
.first-col {
width: 7%;
vertical-align: middle;
}
.other-col {
width: 31%;
}
body {
font-family: "Lato", sans-serif;
font-size: 1.1em;
}
.title.is-3 {
font-weight: 900;
font-size: 2.0rem;
}
.title.is-4 {
font-weight: 700;
font-size: 1.7rem;
}
.custom-emoji {
width: 1em;
height: 1em;
display: inline-block;
background-image: url('./static/images/pyramid.png');
background-size: cover;
vertical-align: middle;
line-height: 1;
}
</style>
<body>
<section class="hero is-small">
<div class="hero-body">
<div class="container is-max-desktop">
<div class="columns is-centered">
<div class="column has-text-centered">
<br><br>
<h1 class="title is-2 publication-title" style="font-size: 2.12rem">
R-MeeTo: Faster Vision Mamba is Rebuilt in Minutes Via Merged Token Re-training.
</h1>
<div class="is-size-5 publication-authors">
<span class="author-block">
<a href="https://bdemo.github.io/homepage/" target="_blank">Mingjia Shi</a><sup>1*</sup>, </span>
<span class="author-block">
<a href="https://github.com/Soptq" target="_blank">Yuhao Zhou</a><sup>2*</sup>, </span>
<span class="author-block">
<a href="https://github.com/Aristo23333" target="_blank">Ruiji Yu</a><sup>3</sup>, </span>
<span class="author-block">
<a href="https://github.com/lizekai-richard" target="_blank">Zekai Li</a><sup>1</sup>, </span>
<span class="author-block">
<a href="" target="_blank">Zhiyuan Liang</a><sup>1</sup>, </span>
<span class="author-block">
<a href="https://oahzxl.github.io/" target="_blank">Xuanlei Zhao</a><sup>1</sup>, </span>
<span class="author-block">
<a href="https://pengxj.github.io/" target="_blank">Xiaojiang Peng</a><sup>4</sup>, </span>
<span class="author-block">
<a href="" target="_blank">Tanmay Rajpurohit</a><sup>5</sup>, </span>
<span class="author-block">
<a href="" target="_blank">Ramakrishna Vedantam</a><sup>6</sup>, </span>
<span class="author-block">
<a href="https://wangbo-zhao.github.io/" target="_blank">Wangbo Zhao</a><sup>1†</sup>, </span>
<span class="author-block">
<a href="https://kaiwang960112.github.io/" target="_blank">Kai Wang</a><sup>1†</sup>, </span>
<span class="author-block">
<a href="https://www.comp.nus.edu.sg/~youy/" target="_blank">Yang You</a><sup>1</sup>.
</span>
</div>
<div class="is-size-5 publication-authors">
<span class="author-block"><sup>1</sup>National University of Singapore, </span>
<span class="author-block"><sup>2</sup>Sichuan University, </span>
<span class="author-block"><sup>3</sup>Shanghai Jiao Tong University, </span>
<span class="author-block"><sup>4</sup>Shenzhen University of Technology, </span>
<span class="author-block"><sup>5</sup>Genpact Innovation Center, </span>
<span class="author-block"><sup>6</sup>Independent Researcher.</span>
</div>
<div class="is-size-5 publication-authors">
(*: equal contribution, †: corresponding authors)
</div>
<div class="column has-text-centered">
<div class="publication-links">
<!-- Code Link. -->
<span class="link-block">
<a href="https://github.com/NUS-HPC-AI-Lab/R-MeeTo" target="_blank"
class="external-link button is-normal is-rounded is-dark">
<span class="icon">
<i class="fab fa-github"></i>
</span>
<span>Code</span>
</a>
</span>
<!-- paper -->
<span class="link-block">
<a href="https://arxiv.org/abs/2412.12496" class="external-link button is-normal is-rounded is-dark" target="_blank">
<span class="icon">
<i class="fas fa-file-pdf"></i>
</span>
<span>Paper</span>
</a>
</span>
<!-- doc -->
<span class="link-block">
<a href="https://github.com/NUS-HPC-AI-Lab/R-MeeTo/blob/main/CKPT.md" target="_blank"
class="external-link button is-normal is-rounded is-dark">
<span class="icon">
<i class="fas fa-book"></i>
</span>
<span>Doc</span>
</a>
</span>
<!-- twitter -->
<span class="link-block">
<a href="https://x.com/Samuel_Jayd/status/1868651068240150868" target="_blank" class="external-link button is-normal is-rounded is-dark">
<span class="icon">
<i class="fab fa-twitter"></i>
</span>
<span>Twitter</span>
</a>
</span>
<!-- bibtex -->
<span class="link-block">
<a href="#bibtex"
class="external-link button is-normal is-rounded is-dark">
<span class="icon">
<i class="ai ai-obp"></i>
</span>
<span>BibTex</span>
</a>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="hero is-small">
<div class="hero-body">
<div class="container is-max-desktop">
<div class="content has-text-justified">
<p>
<b>Faster Vision Mamba is Rebuilt in Minutes Via Merged Token Re-training <span style="font-size: 1.3em"></span>!</b>
We introduce R-MeeTo the first Token Merging method for Mamba.
The key knowledge loss mainly causes the heavier performance drop, applying token reduction.
R-MeeTo is thus proposed, fast fixing key knowledge and therefore recovering performance.
<br>
In the following video, we show the intuition of our work, where <span style="color: #8FAADC;">Genera Knowledge</span> includes the common partterns shared among tokens, and <span style="color: #FFD200">Specific Knowledge</span> indicates the specific partterns in particular tokens.
<br>
</p>
</div>
</div>
</div>
<div class="container is-max-desktop">
<video class="video" autoplay controls muted loop playsinline>
<source src="./static/videos/video_pre_v5.mp4" type="video/mp4">
</video>
<div class="columns is-centered">
<div class="content has-text-centered">
<span style="font-size: 0.8em; width: 100%; display: inline-block;"><br>Conclusion: Intuition of our R-MeeTo: 1) why is Mamba sensitive to token reduction? <br> 2) Why does R-MeeTo (i.e., Merging + Re-training) work? -- <span style="color: #ff0000;">Key knowledge loss and recovery</span></span>
<br>
</div>
</div>
</div>
</section>
<section class="section">
<div class="container is-max-desktop">
<div class="columns is-centered">
<div class="column is-full-width">
<h2 class="title is-3">R-MeeTo</h2>
<h2 class="title is-4">Motivation</h2>
<div class="content has-text-justified">
<p>
Token reduction is popular in model efficiency.
It has yielded promising outcomes in ViTs, yet its efficiency in Vim remains unexplored.
Thus, we have the following pre-experiments.
</p>
<div class="content has-text-centered">
<video class="video" autoplay controls muted loop playsinline>
<source src="./static/videos/video_pre_mamba_drops.mp4" type="video/mp4">
</video>
<span style="font-size: 0.8em; width: 75%; display: inline-block;">Conclusion: Mamba is sensitive to token reduction.</span>
</div>
</div>
<h2 class="title is-4">Analyses</h2>
<div class="content has-text-justified">
<p>
From the perspective of knowledge structure, we have the following analyses (X: inputs; Y: outputs):
</p>
<div class="content has-text-centered">
<video class="video" autoplay controls muted loop playsinline>
<source src="./static/videos/video_pre_analyses.mp4" type="video/mp4">
</video>
<span style="font-size: 0.8em; width: 100%; display: inline-block;">Conclusion: the distributions of <span style="color: #ff0000;">Key Knowledge</span> are different. Token reduction in Mamba is risky</span>
</div>
<p>
Building on these insights, we propose R-MeeTo. R-MeeTo is simple and effective, with only two main modules: merging and re-training. Merging lowers the knowledge loss; re-training fast recovers the knowledge structure of Mamba. From the next video, we show that merging does help.
</p>
<div class="content has-text-centered">
<video class="video" autoplay controls muted loop playsinline>
<source src="./static/videos/video_pre_merge_works.mp4" type="video/mp4">
</video>
<span style="font-size: 0.8em; width: 100%; display: inline-block;">Conclusion: merging works!</span>
</div>
</div>
<h2 class="title is-4">Methodology</h2>
<div class="content has-text-centered">
<div class="content has-text-centered">
<video class="video" autoplay controls muted loop playsinline>
<source src="./static/videos/video_pre_method.mp4" type="video/mp4">
</video>
<span style="font-size: 0.8em; width: 80%; display: inline-block;">The process of our R-MeeTo.</span>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="section">
<div class="container is-max-desktop">
<div class="columns is-centered">
<div class="column is-full-width">
<h2 class="title is-3">Evaluations</h2>
<h2 class="title is-4">Building in Munites!</h2>
<div class="content has-text-centered">
<img src="./static/images/in_minutes_table.png" style="width: 55%;">
<span style="font-size: 0.8em; width: 100%; display: inline-block;">Table 1. With current available GPUs, we achieve minute-level method to build faster Mamba.</span>
</div>
<div class="content has-text-justified">
<p>
R-MeeTo faster Mamba achieved in minutes with limited performance drop.
</p>
</div>
</div>
</div>
</div>
<br>
<div class="container is-max-desktop">
<div class="columns is-centered">
<div class="column is-full-width">
<div class="content has-text-justified">
<h2 class="title is-4">Image Tasks</h2>
<div class="content has-text-centered">
<img src="./static/images/main_table.png" style="width: 100%;"><br>
<span style="font-size: 0.8em; width: 100%; display: inline-block;">Table 2. R-MeeTo shows significant improvements on image tasks (i.e., classification on ImageNet-1K).</span>
</div>
<div class="content has-text-centered">
<img src="./static/images/visualization_merge_image.png" style="width: 100%;"><br>
<span style="font-size: 0.8em; width: 100%; display: inline-block;">Image 1. Visualization of R-MeeTo on ImageNet-1K, similar and redundant features are merged.</span>
</div>
</div>
</div>
</div>
</div>
<div class="container is-max-desktop">
<div class="columns is-centered">
<div class="column is-full-width">
<div class="content has-text-justified">
<h2 class="title is-4">Video Tasks</h2>
<div class="content has-text-centered">
<img src="./static/images/main_table_video.png" style="width: 100%;"><br>
<span style="font-size: 0.8em; width: 100%; display: inline-block;">Table 3. R-MeeTo shows significant improvements on image tasks (i.e., classification on Kinetics-400)</span>
<div class="content has-text-centered">
<img src="./static/images/visualization_merge_video.png" style="width: 100%;"><br>
<span style="font-size: 0.8em; width: 100%; display: inline-block;">Image 2. Visualization of R-MeeTo on Kinetics-400, similar and redundant features are merged.</span>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- <h2 class="title is-3">Acknowledgments</h2>
<div class="content has-text-justified">
<p>
Mingjia, Yuhao contribute equally to this work.
</p>
</div> -->
<section class="section" id="BibTeX">
<div class="container is-max-desktop content">
<h2 class="title"><a id="bibtex">BibTeX</a></h2>
<pre><code>@misc{shi2024faster,
title={Faster Vision Mamba is Rebuilt in Minutes Via Merged Token Re-training},
author={Shi, Mingjia and Zhou, Yuhao and Yu, Ruiji and Li, Zekai and Liang, Zhiyuan and Zhao, Xuanlei and
Peng, Xiaojiang and Rajpurohit, Tanmay and Vedantam, Ramakrishna and
Zhao, Wangbo and Wang, Kai and You, Yang},
year={2024},
eprint={2412.12496},
archivePrefix={arXiv},
url={https://arxiv.org/abs/2412.12496},
}</code></pre>
</div>
</section>
<footer class="footer">
<div class="columns is-centered">
<div class="column is-8">
<div class="content">
<p>
This website is licensed under a <a rel="license"
href="http://creativecommons.org/licenses/by-sa/4.0/">Creative
Commons Attribution-ShareAlike 4.0 International License</a>.
</p>
<p>
Website adapted from the following <a href="https://nerfies.github.io">source code</a>.
</p>
</div>
</div>
</div>
</div>
</footer>
<script src="juxtapose/js/juxtapose.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
</body>
</html>