Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

MemNet: A Persistent Memory Network for Image Restoration

MemNet adds persistent memory blocks to very deep image restoration networks

  • Problem Very deep restoration networks lose the influence of early layers as depth grows, because plain designs mostly feed the next layer.
  • Method MemNet chains memory blocks, each with a recursive unit for short-term memory and a gate unit that weights earlier memories. The gate is a 1×1 convolution, so it weights each feature map.
  • Results On Set5 at scale factor 3, MemNet reaches 34.09 against 33.66 for VDSR.

Why deeper restoration networks lose earlier states

Very deep CNNs are now widely applied to image restoration, including SISR, denoising and JPEG deblocking. Plain networks such as VDSR, DRCN and DnCNN are built as a single feed-forward path, so each state is shaped mainly by the state just before it. Networks with skip connections, such as RED and ResNet, add a link to one specific earlier state, which gives a narrow long-term path.

The authors argue that none of these models has a mechanism for persistent memory, so the influence of early states fades as depth increases.

The paper asks two questions: whether a persistent memory mechanism helps very deep restoration networks that otherwise lose long-term information, and whether one structure can match the state of the art on denoising, SISR and JPEG deblocking. Answering the first question requires a block that keeps earlier states reachable at every depth, which is the role of the memory block described next.

Three stages: FENet, stacked memory blocks and ReconNet

MemNet has three parts: a feature extraction net FENet, a stack of memory blocks, and a reconstruction net ReconNet. The M memory blocks are chained, so each block takes the output of the previous one, \(B_m = M_m(B_{m-1})\). ReconNet is also one convolutional layer, but it predicts a residual that is added back to the input, so the whole basic network computes \(y = f_{rec}(M_M(\dots M_1(f_{ext}(x))\dots)) + x\).

Predicting a residual instead of the full high-quality image is chosen to ease training. The basic model is trained on pairs of low-quality and ground-truth patches by minimizing a squared error averaged over the N training patches, with parameters \(\Theta\). The first memory block receives the FENet output as its long-term memory, so there is no earlier block to draw on at that point.

Inside a memory block: recursion and gating

Each memory block has a recursive unit that produces short-term memory and a gate unit that decides how much of each memory to keep. The recursive unit repeats one residual building block R times, so each recursion works on the output of the previous one and sees a different receptive field. Each recursion computes \(H^r_m = F(H^{r-1}_m, W_m) + H^{r-1}_m\), starting from \(H^0_m = B_{m-1}\), so the residual function F is added to its own input.

F is two convolutional layers in pre-activation form, \(F = W_{2m}\,\tau(W_{1m}\,\tau(H))\), where τ is batch normalization followed by ReLU.

The outputs of the R recursions are concatenated to form the short-term memory \(B^{short}_m\). The two memories are concatenated into \(B^{gate}_m = [B^{short}_m, B^{long}_m]\), which is the input to the gate unit.

The gate unit is a 1×1 convolution applied after τ, so that \(B_m = W^{gate}_m\,\tau(B^{gate}_m)\). Because the kernel is 1×1, the gate mixes the feature maps at each position and learns one weight per feature map, so the two kinds of memory are weighted feature map by feature map. The gate thus decides how much of the earlier states is reserved and how much of the current state is stored.

Supervising every memory block

Multi-Supervised MemNet passes the output of every memory block through the same reconstruction net, giving an intermediate prediction \(y_m = x + f_{rec}(B_m)\) for each block. The final output is a weighted average of these predictions, and the weights are learned during training rather than fixed in advance. The loss combines the squared error of the weighted average with the mean squared error of each intermediate prediction, balanced by α.

α is set empirically to 1/(M+1), with M the number of memory blocks, and the multi-supervised models use 6 predictions.

Why long-term connections are argued to help

The authors argue that very deep feedforward networks lose some mid and high frequency information in later layers, and that dense connections from earlier layers can compensate for that loss. To test this, they trained an 80-layer MemNet without long-term connections, called MemNet NL, and compared it with the original, which also has 6 memory blocks with 6 recursions each.

The 4th and 6th outputs of both networks are compared through their power spectra, which are centered and averaged over concentric rings to give spectral densities across frequency ranges. The differences between the two networks are read in three ways: the earlier layer holds mid-frequency content that later layers lose, the later layer with dense connections absorbs and even adds mid-frequency content, and the earlier layers look alike in both models.

The last comparison is read as MemNet recovering more high-frequency content than MemNet NL.

The analysis uses ×4 super-resolved outputs of the two networks, so it describes the spectra of those outputs.

How the design differs from Highway Network, DRCN and DenseNet

Highway Network regulates information flow with transform and carry gates that weight each pixel, whereas MemNet's gate weights each feature map. The authors argue that this per-feature-map gating reduces parameters and complexity, and makes overfitting less likely.

The basic module of DRCN is a convolutional layer whose weights are shared across recursions, while the basic module of MemNet is a memory block with separate weights in each block. DRCN has no dense connections among its basic modules and forms a chain, whereas MemNet's long-term dense connections give a multi-path structure. The authors state that MemNet can be trained without the multi-supervision that DRCN needs.

DenseNet connects layers locally inside dense blocks and targets object recognition, while MemNet connects memory blocks globally and targets image restoration.

Data and training setup

For denoising, 300 BSD images serve as the training source, and the 14-image set and the BSD test set of 200 images are used for evaluation. Noise at levels σ = 30, 50 and 70 is added to clean patches to create the noisy inputs. The SISR training set has 291 images: 91 from Yang et al. and 200 from the BSD training set. JPEG deblocking reuses the denoising training set and is tested on Classic5 and LIVE1 at quality factors 10 and 20.

Training uses 31×31 patches with a stride of 21, grayscale images for denoising, and the luminance channel for SISR and JPEG deblocking. Each task uses one model for all corruption levels, with noise, scale or quality augmentation added to the training data. The networks are implemented in Caffe with 6 memory blocks of 6 recursions each, 64 filters per convolution, and 3×3 kernels except for the 1×1 convolutions in the gate units.

Long-term and short-term connections

MemNet NL removes the long-term connections, and MemNet NS removes the short-term connections from the first R-1 recursions to the gate, while keeping the connection from the last recursion. All three networks have depth 80 and 64 filters, and the results are on Set5 at scale factors 2, 3 and 4.

At scale factor 3, MemNet reaches 34.09/0.9248, against 34.00/0.9239 for MemNet NS and 33.96/0.9235 for MemNet NL. At scale factor 2, the values are 37.78/0.9597 for MemNet, 37.71/0.9592 for MemNet NS and 37.68/0.9591 for MemNet NL. At scale factor 4, the values are 31.74/0.8893 for MemNet, 31.65/0.8880 for MemNet NS and 31.60/0.8878 for MemNet NL.

The authors attribute the larger loss from removing long-term connections to those connections skipping many more layers, so they carry mid and high frequency signals from early layers to later ones. The gaps are small, and this ablation uses one dataset, Set5.

Weight norms in the gate unit

The authors use the norm of the gate weights as a proxy for how strongly the current layer depends on each preceding feature map, borrowing this idea from DenseNet. For feature map l in block m, the norm sums the squared weights over the 64 output filters, \(v^m_l = \sqrt{\sum_{i=1}^{64} (W^{gate}_m(1,1,l,i))^2}\), and the values are normalized to between 0 and 1 for display.

A larger norm is read as a stronger dependence on that feature map.

Three observations are drawn from the norm curves for denoising, SISR and JPEG deblocking: the distributions differ by task, the average and variance of the norms shrink as the block number rises, and the short-term memories from the last recursion carry the largest norms. The authors state that the long-term memories seem to play a larger role in late memory blocks than the short-term memories from the first R-1 recursions.

These readings come from plots of normalized weight norms, and the paper reports no separate test of how these weights change the output.

Comparison with VDSR, DRCN and RED on Set5

The authors chose DRCN as the main baseline because it reaches good performance with the fewest training images among the compared work. Where DRCN widens to 256 filters, MemNet keeps 64 filters and goes deeper, with 80 layers against 20 for DRCN.

On Set5 at scale factor 3, Table 2 lists 33.66 for VDSR, 33.82 for DRCN, 33.82 for RED, and 34.09 for multi-supervised MemNet trained on 291 images. With 91 training images, the basic MemNet reaches 33.92, and adding multi-supervision raises it to 33.98. The text gives 667K parameters for MemNet, while Table 2 lists 677K.

Using PSNR against inference time on a GPU P40 for a 288×288 image, the authors report that the 3rd memory block's prediction is already comparable to VDSR and DRCN with far fewer parameters. The authors read the later predictions as exceeding the other methods at a slightly higher cost, and VDSR and DRCN values are cited from their papers rather than measured in the same run.

Depth versus accuracy

Depth is varied by changing the number of memory blocks or recursions, giving four networks: M4R6, M6R6, M6R8 and M10R10. Their depths are 54, 80, 104 and 212 layers.

M10R10 reaches 34.23 dB, which is 0.14 dB above M6R6 at 80 layers, and the authors read this as deeper networks performing better. Depth is reported only on Set5 at scale factor 3, so the trend is shown for one setting.

Image denoising results

The comparison covers BM3D, EPLL, PCLR, PGPD, WNNM and RED on a 14-image set and on BSD200 at noise levels 30, 50 and 70. On the 14-image set at level 30, MemNet reaches 29.22/0.8444, against 29.17/0.8423 for RED, the strongest prior entry in that column. On BSD200 at level 70, MemNet reaches 24.53/0.6608 and RED reaches 24.37/0.6551.

Results for the other methods are cited from RED's paper, and BSD200 images are resized to half size following the RED setting. The authors state that MemNet achieves the best performance in all cases in this table. RED's reported results use rotation and mirror-flip ensembling with averaging, while MemNet uses no post-processing, so the two settings differ.

Two qualitative examples compare MemNet with PCLR, PGPD and WNNM: a 14-image example at level 30 and a BSD200 example at level 70. The authors note that only MemNet recovers the fold in the first example and the pillar in the second.

Super-resolution benchmark results

Table 4 compares MemNet with SRCNN, VDSR, DRCN, DnCNN, LapSRN and DRRN on Set5, Set14, BSD100 and Urban100 at scale factors 2, 3 and 4. LapSRN reports no ×3 result, so those cells are left blank. The baseline numbers are cited from prior papers, not rerun under one setup.

On Set5 at scale factor 2, MemNet reaches 37.78/0.9597, above DRRN at 37.74/0.9591. The authors state that MemNet outperforms prior methods in almost all cases.

Visual comparisons use a BSD100 image at scale factor 3 and an Urban100 image at scale factor 4, with SRCNN, VDSR and DnCNN run from their public codes. The authors describe MemNet as recovering sharper edges, while the other methods give blurrier results.

JPEG deblocking results

Table 5 compares JPEG, ARCNN, TNRD, DnCNN and MemNet on Classic5 and LIVE1 at quality factors 10 and 20. The comparison values are cited from the DnCNN paper rather than rerun.

On Classic5 at quality 20, MemNet reaches 31.90/0.8658, against 31.63/0.8610 for DnCNN. On LIVE1 at quality 20, MemNet reaches 31.83/0.8846, against 31.59/0.8802 for DnCNN.

The authors say deeper networks improve on the shallow ARCNN and describe MemNet as outperforming the other methods. Visual comparisons on barbara from Classic5 and lighthouse from LIVE1, both at quality 10, were produced with the public codes of the compared methods. The authors describe MemNet as removing the blocking artifact more effectively and as recovering higher quality images than the previous methods.

Limits of the evidence

The ablation covers Set5 at all three scales, and the depth comparison covers Set5 at scale factor 3 only. The authors focus the ablation and depth analyses on SISR, and the other tasks appear in the main comparisons. Depth was tested only up to 212 layers.

Most baselines are cited from prior papers, so training sets, filter counts and depths differ across rows of Table 2. The denoising comparison pits RED with ensembling against MemNet without post-processing. Qualitative figures show only a few images per task, so the statements about them rest on those examples.

The gate weight readings and the frequency argument are not followed by a direct test of accuracy, beyond the connection ablation. Training is costly, with roughly 5 days for a single 80-layer basic model on one GPU for SISR.

Paper info

Authors
Ying Tai, Jian Yang, Xiaoming Liu, Chunyan Xu
Venue
arXiv · Preprint
First published
2017-8-7
Added
2026-11-12
Updated
2017-8-7
Version
v1
arXiv
1708.02209
Category
cs.CV
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Ying Tai, Jian Yang, Xiaoming Liu, Chunyan Xu (2017). MemNet: A Persistent Memory Network for Image Restoration. arXiv:1708.02209v1. https://arxiv.org/abs/1708.02209v1

BibTeX
@misc{tai2017memnet,
  title = {{MemNet: A Persistent Memory Network for Image Restoration}},
  author = {Ying Tai and Jian Yang and Xiaoming Liu and Chunyan Xu},
  year = {2017},
  eprint = {1708.02209},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1708.02209v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up