{"notes":[{"id":"reparameterization/mobileone","category":"reparameterization","legacyPath":"reparameterization/2206-mobileone","legacySlug":"2206-mobileone","legacyPaths":[],"title":"MobileOne","subtitle":"One Millisecond Optimization","author":"Z. Yuan","paperDate":"2022-06-08","publishedOn":"2024-07-16","paperTitle":"MobileOne: An Improved One millisecond Mobile Backbone","paperUrl":"https://arxiv.org/abs/2206.04040","bibliography":{"title":"MobileOne: An Improved One millisecond Mobile Backbone","authors":["Pavan Kumar Anasosalu Vasu","James Gabriel","Jeff Zhu","Oncel Tuzel","Anurag Ranjan"],"url":"https://arxiv.org/abs/2206.04040","pdfUrl":"https://arxiv.org/pdf/2206.04040","codeUrl":null,"preprint":{"id":"2206.04040","submittedOn":"2022-06-08","url":"https://arxiv.org/abs/2206.04040"},"publication":{"venue":"CVPR","year":2023,"kind":"conference","url":"https://arxiv.org/abs/2206.04040"},"citation":"@misc{reparameterizationmobileone2022,\n  title = {{MobileOne: An Improved One millisecond Mobile Backbone}},\n  author = {Pavan Kumar Anasosalu Vasu and James Gabriel and Jeff Zhu and Oncel Tuzel and Anurag Ranjan},\n  year = {2022},\n  eprint = {2206.04040},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2206.04040}\n}\n","citationPath":"/content/papers/citations/reparameterization/mobileone.cbade423cf61.bib"},"thumbnail":{"src":"/content/papers/assets/f1d3676416f16224fbdba82b7113b2c4894d48fee9149dd2c8bc61fe781b22e2.jpg","width":840,"height":976},"locale":"en","path":"/content/papers/en/reparameterization/mobileone.247ee1e1848d.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"problem-solving","text":"Problem Solving","depth":2},{"id":"bottleneck-analysis---activation-functions","text":"Bottleneck Analysis - Activation Functions","depth":3},{"id":"bottleneck-analysis---architecture","text":"Bottleneck Analysis - Architecture","depth":3},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"model-configuration","text":"Model Configuration","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"imagenet-performance","text":"ImageNet Performance","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"reparameterization/dbb","relation":"background","topic":"Merging training branches for inference"},{"id":"reparameterization/fastvit","relation":"comparison","topic":"Fast visual backbones for deployment"},{"id":"reparameterization/repvit","relation":"comparison","topic":"Fast visual backbones for deployment"}]},{"id":"reparameterization/dbb","category":"reparameterization","legacyPath":"reparameterization/2103-dbb","legacySlug":"2103-dbb","legacyPaths":[],"title":"DBB","subtitle":"Six Disciples","author":"Z. Yuan","paperDate":"2021-03-24","publishedOn":"2025-02-07","paperTitle":"Diverse Branch Block: Building a Convolution as an Inception-like Unit","paperUrl":"https://arxiv.org/abs/2103.13425","bibliography":{"title":"Diverse Branch Block: Building a Convolution as an Inception-like Unit","authors":["Xiaohan Ding","Xiangyu Zhang","Jungong Han","Guiguang Ding"],"url":"https://arxiv.org/abs/2103.13425","pdfUrl":"https://arxiv.org/pdf/2103.13425","codeUrl":null,"preprint":{"id":"2103.13425","submittedOn":"2021-03-24","url":"https://arxiv.org/abs/2103.13425"},"publication":{"venue":"CVPR","year":2021,"kind":"conference","url":"https://arxiv.org/abs/2103.13425"},"citation":"@misc{reparameterizationdbb2021,\n  title = {{Diverse Branch Block: Building a Convolution as an Inception-like Unit}},\n  author = {Xiaohan Ding and Xiangyu Zhang and Jungong Han and Guiguang Ding},\n  year = {2021},\n  eprint = {2103.13425},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2103.13425}\n}\n","citationPath":"/content/papers/citations/reparameterization/dbb.577c41e6ebd5.bib"},"thumbnail":{"src":"/content/papers/assets/7c460ee5b5fb61e8043a7e8fc9e566fe1bb68ebbdc31c8f4dae2a86b3b5f0bf0.jpg","width":1190,"height":460},"locale":"en","path":"/content/papers/en/reparameterization/dbb.5370300db724.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"solution","text":"Solution","depth":2},{"id":"type-one-conv-bn","text":"Type One: Conv-BN","depth":3},{"id":"type-two-branch-add","text":"Type Two: Branch Add","depth":3},{"id":"type-three-sequential-conv","text":"Type Three: Sequential Conv","depth":3},{"id":"type-four-depth-concat","text":"Type Four: Depth Concat","depth":3},{"id":"type-five-average-pooling","text":"Type Five: Average Pooling","depth":3},{"id":"type-six-multi-scale-conv","text":"Type Six: Multi-scale Conv","depth":3},{"id":"experimental-setup","text":"Experimental Setup","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"comparison-with-other-methods","text":"Comparison with Other Methods","depth":3},{"id":"ablation-study","text":"Ablation Study","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"reparameterization/repvgg","relation":"background","topic":"Merging training branches for inference"},{"id":"reparameterization/mobileone","relation":"next","topic":"Merging training branches for inference"}]},{"id":"reparameterization/fastvit","category":"reparameterization","legacyPath":"reparameterization/2303-fastvit","legacySlug":"2303-fastvit","legacyPaths":[],"title":"FastViT","subtitle":"Reparameterized ViT Experiments","author":"Z. Yuan","paperDate":"2023-03-24","publishedOn":"2024-07-16","paperTitle":"FastViT: A Fast Hybrid Vision Transformer using Structural Reparameterization","paperUrl":"https://arxiv.org/abs/2303.14189","bibliography":{"title":"FastViT: A Fast Hybrid Vision Transformer using Structural Reparameterization","authors":["Pavan Kumar Anasosalu Vasu","James Gabriel","Jeff Zhu","Oncel Tuzel","Anurag Ranjan"],"url":"https://arxiv.org/abs/2303.14189","pdfUrl":"https://arxiv.org/pdf/2303.14189","codeUrl":null,"preprint":{"id":"2303.14189","submittedOn":"2023-03-24","url":"https://arxiv.org/abs/2303.14189"},"publication":{"venue":"ICCV","year":2023,"kind":"conference","url":"https://arxiv.org/abs/2303.14189"},"citation":"@misc{reparameterizationfastvit2023,\n  title = {{FastViT: A Fast Hybrid Vision Transformer using Structural Reparameterization}},\n  author = {Pavan Kumar Anasosalu Vasu and James Gabriel and Jeff Zhu and Oncel Tuzel and Anurag Ranjan},\n  year = {2023},\n  eprint = {2303.14189},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2303.14189}\n}\n","citationPath":"/content/papers/citations/reparameterization/fastvit.0b2741f99b2b.bib"},"thumbnail":{"src":"/content/papers/assets/095c905b22b0b0e80a3fdb19b68680885648cdd70aa6ff754434e08a3a1aa78a.jpg","width":1618,"height":1038},"locale":"en","path":"/content/papers/en/reparameterization/fastvit.78850b950b9b.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"solution","text":"Solution","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"model-configurations","text":"Model Configurations","depth":3},{"id":"training-and-evaluation-strategy","text":"Training and Evaluation Strategy","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"performance-on-imagenet","text":"Performance on ImageNet","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"lightweight/mobilevit","relation":"comparison","topic":"Combining lightweight convolutions and attention"},{"id":"lightweight/mobile-former","relation":"comparison","topic":"Combining lightweight convolutions and attention"},{"id":"reparameterization/repvit","relation":"comparison","topic":"Fast visual backbones for deployment"}]},{"id":"reparameterization/repvit","category":"reparameterization","legacyPath":"reparameterization/2307-repvit","legacySlug":"2307-repvit","legacyPaths":[],"title":"RepViT","subtitle":"Revisiting Mobile CNN from the ViT Perspective","author":"Z. Yuan","paperDate":"2023-07-18","publishedOn":"2024-07-19","paperTitle":"RepViT: Revisiting Mobile CNN From ViT Perspective","paperUrl":"https://arxiv.org/abs/2307.09283","bibliography":{"title":"RepViT: Revisiting Mobile CNN From ViT Perspective","authors":["Ao Wang","Hui Chen","Zijia Lin","Jungong Han","Guiguang Ding"],"url":"https://arxiv.org/abs/2307.09283","pdfUrl":"https://arxiv.org/pdf/2307.09283","codeUrl":null,"preprint":{"id":"2307.09283","submittedOn":"2023-07-18","url":"https://arxiv.org/abs/2307.09283"},"publication":{"venue":"CVPR","year":2024,"kind":"conference","url":"https://arxiv.org/abs/2307.09283"},"citation":"@misc{reparameterizationrepvit2023,\n  title = {{RepViT: Revisiting Mobile CNN From ViT Perspective}},\n  author = {Ao Wang and Hui Chen and Zijia Lin and Jungong Han and Guiguang Ding},\n  year = {2023},\n  eprint = {2307.09283},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2307.09283}\n}\n","citationPath":"/content/papers/citations/reparameterization/repvit.583fd659fe6d.bib"},"thumbnail":{"src":"/content/papers/assets/f501c7d5eb209527b5401ba7607cd34496d2dda89aeb1848aa9927e0d0f713eb.jpg","width":1224,"height":704},"locale":"en","path":"/content/papers/en/reparameterization/repvit.8b88345cbf24.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"solution-approach","text":"Solution Approach","depth":2},{"id":"redesigning-the-architecture","text":"Redesigning the Architecture","depth":3},{"id":"reparameterizing-the-structure","text":"Reparameterizing the Structure","depth":3},{"id":"reducing-expansion-ratio-and-increasing-width","text":"Reducing Expansion Ratio and Increasing Width","depth":3},{"id":"adjusting-the-stem-structure","text":"Adjusting the Stem Structure","depth":3},{"id":"adjusting-the-downsampling-structure","text":"Adjusting the Downsampling Structure","depth":3},{"id":"simple-classifier","text":"Simple Classifier","depth":3},{"id":"adjusting-stage-ratios","text":"Adjusting Stage Ratios","depth":3},{"id":"kernel-size-selection","text":"Kernel Size Selection","depth":3},{"id":"squeeze-and-excitation-se-layer-decision","text":"Squeeze-and-Excitation (SE) Layer Decision","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"performance-on-imagenet-1k","text":"Performance on ImageNet-1K","depth":3},{"id":"ablation-study---reparameterized-structure","text":"Ablation Study - Reparameterized Structure","depth":3},{"id":"ablation-study---impact-of-se-layers","text":"Ablation Study - Impact of SE Layers","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"reparameterization/fastvit","relation":"comparison","topic":"Fast visual backbones for deployment"},{"id":"reparameterization/mobileone","relation":"comparison","topic":"Fast visual backbones for deployment"}]}],"text":"The concept of reparameterization gained attention around 2021 after the introduction of RepVGG.\n\nResearchers have been exploring ways to find suitable reparameterization methods in model architecture to enhance performance.\n\n\n> [!TIP]\n> \n> **Model Reparameterization**:\n> \n> This involves separating training and inference architectures, converting original model parameters into new ones. The training architecture is transformed into an inference architecture in a mathematically equivalent way, reducing inference cost. Equivalence applies in evaluation mode with fixed BN statistics, up to numerical precision; any accuracy gain comes from training, not the fusion operation itself.\n\n\n## Problem Definition\n\nInspired by the success of RepVGG, the authors aimed to explore the effects of reparameterization by designing another structural unit for reparameterization and conducted neural network deployment and benchmarking on an iPhone 12 using CoreML.\n\nLike RepVGG, MobileOne adds mergeable linear/affine branches during training and folds them together for inference. The network still contains ReLU and is not a linear model. MobileOne also relaxes regularization, including weight decay, during training to avoid over-regularizing small models.\n\n\n> [!TIP]\n> \n> For a deeper understanding of model reparameterization, we recommend revisiting RepVGG. This MobileOne paper does not introduce new concepts in the problem description.\n> \n> - [**RepVGG: Making VGG Great Again**](/blog/papers/reparameterization/repvgg)\n\n\n## Problem Solving\n\n### Bottleneck Analysis - Activation Functions\n\n![iPhone 12 latency of a 30-layer CNN with different activation functions](/content/papers/assets/c1f511e8a277a3575f26efe1d244bb61830b970578d5f16860d6e33d0ea6b0aa.jpg \"Paper Table 2; source: arXiv:2206.04040v2\")\n\nTable: Paper [Table 2](https://arxiv.org/pdf/2206.04040v2). Only the activation changes: ReLU takes **1.53 ms**, GELU **1.63 ms**, and Dynamic Shift-Max **57.04 ms**.\n\nTo analyze the impact of activation functions on latency, the authors built a 30-layer convolutional neural network and conducted benchmarking on an iPhone 12 using different activation functions.\n\nThe table above shows that despite having identical architectures except for the activation functions, the latencies varied significantly.\n\nThese latency differences are mainly due to recently introduced activation functions. Although these functions showed significant accuracy improvements in ultra-low FLOPs models like MicroNet, their usage can incur high latency costs.\n\nTherefore, to reduce latency costs, the authors use ReLU in most MobileOne blocks. The S4 configuration still uses SE-ReLU in its final two stages.\n\n### Bottleneck Analysis - Architecture\n\n![Latency of the 30-layer CNN baseline with SE or skip connections added](/content/papers/assets/6004990875b9068f1da1d8cf61362ac9e62fea53a4c257550b1740a8487e8276.jpg \"Paper Table 3; source: arXiv:2206.04040v2\")\n\nTable: Paper [Table 3](https://arxiv.org/pdf/2206.04040v2). The baseline takes **1.53 ms**; adding SE or skip connections separately gives **2.10** or **2.62 ms**. These are not cumulative steps.\n\nNext, they considered two common architectures: skip connections and Squeeze-Excite modules.\n\nTwo critical factors affecting runtime performance are memory access costs and parallelism. In multi-branch architectures, memory access costs increase significantly as activations for each branch need to be stored to compute the next tensor in the computation graph. If the number of branches is small, this memory bottleneck can be avoided. Additionally, forced synchronization blocks (e.g., global pool operations used in Squeeze-Excite blocks) can also impact overall runtime due to synchronization costs.\n\nTo expose memory access and synchronization costs, the authors used the 30-layer network without either module as the baseline, then added skip connections or Squeeze-Excite separately.\n\nThus, MobileOne adopts an inference architecture with its mergeable branches removed, resulting in smaller memory access costs. Squeeze-Excite modules remain in selected blocks of the largest S4 variant to improve accuracy.\n\n### Model Architecture\n\n![MobileOne training branches for depthwise and pointwise blocks and their fused inference structure](/content/papers/assets/f1d3676416f16224fbdba82b7113b2c4894d48fee9149dd2c8bc61fe781b22e2.jpg \"Paper Figure 3; source: arXiv:2206.04040v2\")\n\nFigure: Paper [Figure 3](https://arxiv.org/pdf/2206.04040v2). $k$ counts replicated convolution branches at training time; each convolution type is fused for inference, while the activation remains.\n\nRepVGG adds mergeable branches to VGG-style 3×3 convolutions; it does not turn arbitrary ResNet residual blocks into single convolutions. MobileOne instead targets MobileNetV1-style depthwise/pointwise blocks.\n\nAs shown in the above figure, this time the reparameterization target is the form of depthwise separable convolutions, first performing a 3x3 depthwise convolution, followed by a 1x1 pointwise convolution. Then, reparameterizable skip connections with batch normalization and replicated structure branches are introduced.\n\nAt inference, the mergeable additive branches become a single convolution. The SE modules retained in S4 are not among those mergeable branches. For a convolution layer with a kernel size of K, input channel dimension $C_{in}$, and output channel dimension $C_{out}$, the weight matrix is represented as $W' \\in \\mathbb{R}^{C_{out} \\times (C_{in}/g) \\times K \\times K}$, and bias as $b' \\in \\mathbb{R}^{C_{out}}$, where $g$ is the group count (equal to input channels for depthwise convolution). BN contains accumulated mean $\\mu$, variance $\\sigma^2$, scale $\\gamma$, and offset $\\beta$.\n\nFirst fold BN using fixed statistics, pad smaller kernels to the same size, and represent identity branches as convolutions. Stride, groups and spatial alignment must match. Then, the convolution layer's weight $W$ and bias $b$ during inference are calculated as follows: weight $W$ equals the sum of weights $W_{i}$ from all branches, i.e., $W = \\sum_{i=1}^{M} W_{i}$; bias $b$ equals the sum of biases $b_{i}$ from all branches, i.e., $b = \\sum_{i=1}^{M} b_{i}$, where $M$ is the number of branches.\n\n### Model Configuration\n\n![Stage widths, branch counts and SE placement for MobileOne S0 through S4](/content/papers/assets/40ca342bb0872e273c28fd5e41b948cfcbbfe60564460e31577c277a32ceeaf9.jpg \"Paper Table 7; source: arXiv:2206.04040v2\")\n\nTable: Paper [Table 7](https://arxiv.org/pdf/2206.04040v2). In each tuple, $\\alpha$ scales width and $k$ counts training branches; S0 often uses $k=4$, other variants mainly use $k=1$, and S4 adds SE-ReLU in later stages.\n\nRecent studies scale model width, depth, and resolution. This table lists five S0–S4 configurations that also differ in training branch count and SE placement. The paper does not increase input resolution in this comparison.\n\nMobileOne scales depth similarly to MobileNet-V2, using shallower early stages at higher feature-map resolutions as these layers are much slower than later stages.\n\nSince MobileOne has no multi-branch architecture during inference, it avoids the data movement costs associated with such architectures. This allows for model parameter expansion without significant latency cost increases, which is a major advantage compared to competitive multi-branch architectures like MobileNet-V2 and EfficientNets.\n\n## Discussion\n\n### ImageNet Performance\n\n![MobileOne ImageNet top-1 versus iPhone 12 latency and COCO mAP comparisons](/content/papers/assets/031e6dd2104037455c5ddeafe9e77a580a9f79035aa9edda4fa0252038054233.jpg \"Paper Figure 1; source: arXiv:2206.04040v2\")\n\nFigure: Paper [Figure 1](https://arxiv.org/pdf/2206.04040v2). The left panel plots iPhone 12 latency against ImageNet top-1; the bottom-right panel plots COCO mAP against classification accuracy, with bubble size indicating phone latency. Distilled models are orange.\n\n![ImageNet top-1, FLOPs, parameter counts and CPU GPU mobile latency comparison](/content/papers/assets/f7466c88a54fb947fe29ea492b3346cab8447fec09fe27562eb0da172c7ff0b1.jpg \"Paper Table 9; source: arXiv:2206.04040v2\")\n\nTable: Paper [Table 9](https://arxiv.org/pdf/2206.04040v2). Classification models use **224 × 224 inputs without distillation**. MobileOne-S0/S1 reach **0.79/0.89 ms** on the phone; S4 takes **1.86 ms**.\n\nThe authors evaluated MobileOne models on the ImageNet dataset, which contains 1.28 million training images and 50,000 validation images from 1,000 classes.\n\nAll MobileOne variants were trained from scratch using PyTorch on machines equipped with 8 NVIDIA GPUs; the comparison models in the table do not necessarily share this recipe. MobileOne training used SGD with momentum for 300 epochs and an effective batch size of 256. It also used cross-entropy loss with label smoothing of 0.1.\n\nThe initial learning rate was set to 0.1 and decayed using a cosine annealing schedule, with the initial weight decay coefficient set to $10^{-4}$, gradually decaying to $10^{-5}$.\n\nLarger MobileOne variants (S2, S3, and S4) were trained with AutoAugment, while smaller variants (S0 and S1) used standard data augmentation techniques such as random resized cropping and horizontal flipping.\n\nAll versions of MobileOne used EMA (Exponential Moving Average) weights during training with a decay constant of 0.9995.\n\nThe main comparison uses 224 × 224 inputs and models trained without distillation. All MobileOne variants have fewer than 20 million parameters, although some additional RepVGG baselines in the table are larger. FLOPs counts were reported using the fvcore library.\n\nIn the paper's iPhone 12/CoreML setup, every listed Transformer variant exceeds 4 ms on the phone. Mobile numbers are minimum full round-trip latency after preloading and warm-up; CPU and GPU results use different hardware and statistics. The comparison also depends on the conversion tools and runtime used at the time.\n\nThe paper's prose separately cites a MobileFormer variant at **79.3%/70.76 ms** and compares it with MobileOne-S4 at **79.4%/1.86 ms**, a roughly **38-fold** phone-latency ratio; **70.76 ms is not a Mobileformer-52/96 row in Table 9**. In Table 9, MobileOne-S3 is **1 percentage point** more accurate than EfficientNet-B0, while iPhone 12 latency falls from **1.72 to 1.53 ms**, about **11%** lower rather than eleven times faster.\n\nTable 9 also reports CPU and GPU latency. Whether MobileOne leads depends on the particular accuracy-matched pair and hardware; not every variant is the fastest on every platform.\n\n## Conclusion\n\nThe study analyzes efficiency bottlenecks in components used by modern CNNs and shows how reparameterizable structures can ease optimization during training. MobileOne uses mergeable branches to help train its models, then folds them before inference.\n\nWith its scaling strategy, MobileOne reaches strong accuracy while remaining efficient on the reported phone and desktop-CPU benchmarks. In the paper's iPhone 12 setting, S0 and S1 run under 1 ms; this does not apply to every variant or device.\n\nThe results improve the reported accuracy–latency trade-off and offer a useful starting point for future work and applications. The effect on generalization and speed still needs to be checked on the intended data and hardware.\n","imageSizes":{"/content/papers/assets/c1f511e8a277a3575f26efe1d244bb61830b970578d5f16860d6e33d0ea6b0aa.jpg":{"width":1160,"height":584},"/content/papers/assets/6004990875b9068f1da1d8cf61362ac9e62fea53a4c257550b1740a8487e8276.jpg":{"width":1604,"height":364},"/content/papers/assets/f1d3676416f16224fbdba82b7113b2c4894d48fee9149dd2c8bc61fe781b22e2.jpg":{"width":840,"height":976},"/content/papers/assets/40ca342bb0872e273c28fd5e41b948cfcbbfe60564460e31577c277a32ceeaf9.jpg":{"width":1776,"height":432},"/content/papers/assets/031e6dd2104037455c5ddeafe9e77a580a9f79035aa9edda4fa0252038054233.jpg":{"width":1448,"height":848},"/content/papers/assets/f7466c88a54fb947fe29ea492b3346cab8447fec09fe27562eb0da172c7ff0b1.jpg":{"width":848,"height":1080}}}
