Efficient Meta-Learning via Error-based Context Pruning for Implicit Neural Representations

Jihoon Tack, Subin Kim, Sihyun Yu, Jaeho Lee, Jinwoo Shin, Jonathan Richard SchwarzarXiv 2023

Abstract

Implicit Neural Representations (INRs) offer a continuous alternative to grid-based data storage but suffer from slow optimization. Meta-learning provides a solution via optimized initializations, yet it faces significant memory constraints when scaling to high-resolution signals. We present GradNCP (Gradient Norm-based Context Pruning), a framework that enhances meta-learning efficiency through intelligent data pruning and bootstrap correction. GradNCP reduces memory usage by up to 75% and speeds up training by nearly 2x while achieving state-of-the-art reconstruction quality across various modalities including high-resolution images and video.

Introduction

Neural Fields (NFs)—also known as Implicit Neural Representations—represent signals like images, 3D shapes, or audio as continuous functions parameterized by neural networks. While powerful, fitting these models to a single signal is computationally intensive. Optimization-based meta-learning (e.g., MAML) has emerged as a solution, providing a "smart initialization" that allows a network to represent a new signal in just a few gradient steps.

However, these methods hit a memory wall: to meta-learn an initialization for high-resolution data, one must store the computational graph for millions of data points across multiple optimization steps. This makes scaling to HD video or high-res 3D scenes nearly impossible on standard hardware. Furthermore, these models often suffer from "myopia," where they stop improving after the specific number of steps they were trained for.

The GradNCP Framework

The authors introduce GradNCP to overcome these scaling challenges using three main components:

  1. Online Context Pruning: Instead of using every pixel in every meta-training step, GradNCP selects a subset (e.g., 25%) of the most "informative" points. To keep this selection computationally cheap, the norm of the last-layer gradient is used as a proxy for importance. This creates an automated curriculum where the model focuses on global structure first and high-frequency details later.
  2. Bootstrap Correction: Pruning data can introduce bias. GradNCP introduces a bootstrap target: after $K$ steps of pruned optimization, it runs additional steps using the full dataset (without backpropagating through them to save memory) and nudges the parameters toward this target. This corrects for pruning errors and mitigates myopia.
  3. Test-time Gradient Scaling: A simple re-scaling trick ensures that test-time gradients match the statistics seen during training on pruned data.
Figure 3: The GradNCP training process showing the evolution of selected context (red), error difference, and reconstruction quality over k optimization steps.

Key Insights: Pruning as Curriculum

A significant finding of this work is that pruning is not merely a memory-saving necessity; it actively assists the learning process. By focusing on high-error regions, the model learns an interpretable curriculum—moving from coarse shapes to fine details—resembling hand-crafted multi-scale training techniques. Using only the last layer's gradient norm provides a high-quality approximation of importance at $O(M)$ complexity, making real-time data selection feasible.

Figure 1: Zoomed-in view of the reconstruction process, highlighting how the selected context (red) focuses on high-frequency features like the mountain peak as adaptation progresses.

Results and Performance

GradNCP achieves the same performance as standard meta-learning in 55% of the wall-clock time (1.8x speedup) and uses significantly less memory. This efficiency allows it to train on 1024x1024 images where previous methods typically fail due to Out-of-Memory (OOM) errors.

In terms of quality, GradNCP improved state-of-the-art PSNR on CelebA from 38.28 dB to 40.60 dB and on the UCF-101 video dataset from 28.86 dB to 35.28 dB. The method also generalizes well to tasks like NeRF unseen view synthesis, demonstrating that the learned initialization is robust and transferable.

Conclusion and Future Work

GradNCP provides a scalable path for meta-learning high-resolution Neural Fields. While highly effective, future work could explore adaptive selection ratios—starting sparse and becoming denser—and strategies for "extreme" resolutions like 8K video. Despite its efficiency, the method still relies on second-order optimization, which remains more computationally demanding than first-order alternatives, though the latter currently yield inferior results for Neural Fields.

Summary updated

BibTeX
@misc{tack2023efficient,
  author = {Jihoon Tack and Subin Kim and Sihyun Yu and Jaeho Lee and Jinwoo Shin and Jonathan Richard Schwarz},
  title = {{Efficient Meta-Learning via Error-based Context Pruning for Implicit Neural Representations}},
  year = {2023},
  url = {https://openreview.net/forum?id=JXVWB5RCiUS},
}
Figure