Fit Pixels, Get Labels: Meta-learned Implicit Networks for Image Segmentation

Kushal Vyas, Ashok Veeraraghavan, Guha Balakrishnan

Abstract

MetaSeg is a novel framework that brings Implicit Neural Representations (INRs) to the world of image segmentation. By using a meta-learning strategy to find an optimal parameter initialization, the researchers created a system that can be fine-tuned on the pixels of an unseen image to automatically "decode" its segmentation labels. MetaSeg achieves performance comparable to traditional U-Nets while utilizing 90% fewer parameters.

Introduction

Implicit Neural Representations (INRs) have gained prominence in computer vision for representing complex signals, such as images or 3D shapes, as continuous functions mapped by neural networks. However, a significant limitation of INRs is their signal-specific nature; a network trained on one signal typically does not generalize to others. This lack of structural or semantic coherence has hindered their use in predictive tasks like medical image segmentation, which often relies on parameter-heavy architectures like U-Nets or Vision Transformers. MetaSeg addresses this by training an INR to learn the underlying distribution of a dataset, enabling semantic label prediction through pixel fitting.

Methodology

The MetaSeg framework consists of a reconstruction network (an MLP) and a shallow segmentation head, utilizing Sinusoidal Representation Networks (SIREN) to capture fine signal details. The approach involves two distinct stages:

  1. Meta-Learning Initialization: Inspired by Model-Agnostic Meta-Learning (MAML), the model is trained across a dataset of image-mask pairs to find a parameter initialization that serves as an optimal starting point for any image within the distribution.
  2. Test-Time Inference: For an unseen test image, the model is fine-tuned solely on pixel reconstruction. Because the initialization associates specific pixel patterns with labels, the segmentation head can predict the mask in a single feed-forward pass.
Overview of the MetaSeg framework showing meta-learning initialization and test-time inference.

Experimental Setup

The researchers evaluated MetaSeg using the OASIS-MRI dataset, comprising 414 T1-weighted brain MRI scans. The model was tested on both 2D and 3D segmentation tasks, ranging from coarse (5 classes) to fine-grained (up to 35 classes) segmentation.

Key Insights and Results

MetaSeg demonstrates that an INR optimized over many training pairs can predict segmentation maps for unseen images by fitting only their pixels. Analysis of the network's internal layers via Principal Component Analysis (PCA) reveals that MetaSeg naturally learns to group pixels into anatomical structures, unlike standard INRs whose features appear as random noise.

The model is exceptionally parameter-efficient, using only 83K parameters for 2D segmentation compared to 7.7M for a standard U-Net. In terms of accuracy, MetaSeg achieved a Dice score of 0.93 on 2D MRI tasks and outperformed U-Nets in fine-grained 24-class segmentation (0.86 vs 0.84 Dice score). Furthermore, the model converges rapidly, producing viable masks in just two gradient updates.

Evolution of reconstruction and segmentation performance over iterations, illustrating rapid convergence and the eventual drop in accuracy due to overfitting.

Limitations and Future Work

Despite its strengths, MetaSeg exhibits sensitivity to spatial alignment; random rotations or translations can degrade the Dice score by 2% to 9%. Additionally, excessive fine-tuning on a test image (e.g., 5,000 iterations) leads to an "overfitting trap" where the network loses general semantic structure in favor of specific pixel noise. Future research will focus on improving spatial robustness through data augmentation and exploring applications in high-resolution 3D medical imaging where memory efficiency is critical.

Summary updated

BibTeX
@inproceedings{vyas2025fit,
  author = {Kushal Vyas and Ashok Veeraraghavan and Guha Balakrishnan},
  title = {{Fit Pixels, Get Labels: Meta-learned Implicit Networks for Image Segmentation}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2025},
}
Figure