PI-Controlled Uncertainty for Steady-State Error Elimination in Ultrasound Image Segmentation

Jielong Yang, Jiahao Tang, Di WuOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

This paper rethinks deep learning optimization through the lens of classical control theory, identifying that standard loss functions act like "forgetful" proportional controllers that leave behind persistent, steady-state errors. By introducing a Proportional-Integral (PI) control mechanism into the training process, the authors enable models to "remember" past failures and systematically eliminate stubborn segmentation inaccuracies along the ambiguous boundaries typical of medical ultrasound.

What Problem Does This Paper Address?

Medical ultrasound is notoriously difficult to segment due to low contrast, speckle noise, and fuzzy tissue boundaries. While modern deep learning models perform well, they often hit a performance ceiling where a small but persistent discrepancy remains between the prediction and the ground truth—even after the model has converged.

The authors identify this as a steady-state error. In control theory, if you only correct for the current error (Proportional control), you might never reach your target if the signal is too weak compared to the rest of the system. Standard neural network training behaves exactly like this: the loss function looks only at the current batch's error. For difficult pixels at a boundary, the "signal" to correct them is often drowned out by the "noise" of thousands of easy-to-classify background pixels, leading to a model that is "good enough" but never truly accurate.

Methods

The researchers reframe the training process as a closed-loop feedback control system.

  • Controlled Variable: The predicted segmentation mask.
  • Setpoint: The ground truth mask.
  • Control Variable: The model's predictive uncertainty.

To eliminate the steady-state error, they implement a PI Controller within the loss function:

  1. Proportional (P) Term: Instead of looking at all pixels, this term focuses on "Online Hard Example Mining." It selects the top-$k$ most uncertain pixels (where the model is most confused) to calculate the instantaneous error.
  2. Integral (I) Term: This is the "memory." The system maintains a history (a deque) of errors for each instance over the last $N$ epochs. If an error persists over time, the Integral term accumulates, creating an escalating corrective signal that forces the optimizer to finally address those stubborn boundary pixels.

These terms are synthesized using a Laplace distribution to formulate a new "PI-Controlled Uncertainty Loss." The authors chose the Laplace distribution over the standard Gaussian because its "heavier tails" make it more robust to the outliers generated by the escalating integral term. Crucially, this mechanism is only active during training; the final model has zero additional inference overhead.

Datasets

The framework was evaluated on three distinct datasets to prove its versatility:

  • MEIS: M-mode echocardiography images (heart scans) characterized by heavily blurred boundaries.
  • TN3K: B-mode ultrasound images of thyroid nodules, featuring high variability in shape, size, and contrast.
  • ISIC 2018: A dermoscopic (skin lesion) dataset used to demonstrate that the method works even outside the realm of ultrasound.

Key Insights and Ideas

  • Loss Functions as Controllers: The most profound insight is that standard training is essentially a P-control loop. Recognizing this allows researchers to borrow decades of wisdom from control theory to stabilize and improve neural network convergence.
  • Memory Matters: By simply "remembering" that a specific part of an image has been misclassified for the last five epochs, the model can apply a much stronger gradient to that area than a standard loss function ever would.
  • Uncertainty as a Lever: Rather than just predicting uncertainty as a side-task, this paper uses uncertainty as the primary mechanism to modulate how much the model should care about specific errors.
  • Two-Stage Stability: To prevent the system from oscillating wildly at the start of training, the authors use a two-stage strategy: train with standard losses first to get a "feasible" solution, then kick in the PI-controller for fine-grained rectification.

Key Results

The PI-controlled approach consistently outperformed state-of-the-art (SOTA) models like OSFOMER, YOLACT, and RAMEM.

  • Boundary Accuracy: On the MEIS dataset, the method achieved a 95th percentile Hausdorff Distance (HD95) of 13.59, significantly lower (better) than the baseline RAMEM (14.17) and OSFOMER (17.39).
  • Precision and DSC: It reached the highest Precision (87.63%) and Dice Similarity Coefficient (87.55%) on MEIS.
  • Visual Proof: Error maps show that while baseline models leave "bright spots" of persistent error at boundaries, the PI-controlled model's error maps are almost entirely black, indicating the steady-state error has been successfully eliminated.
  • Efficiency: The peak GPU memory overhead was less than 1.2%, making it highly practical for real-world training pipelines.

Limitations and Future Work

While the results are impressive, the authors note a few areas for growth:

  • Dimensionality: The current study focuses on 2D and M-mode images. Extending this to 3D ultrasound volumes is a logical next step.
  • Domain Shift: While they tested on skin lesions, more work is needed to see how this control-theoretic approach handles extreme domain shifts or real-time test-time adaptation.
  • Hyperparameter Tuning: Although the system is robust, it still requires setting gains ($K_p, K_i$) and a history length ($N$). Automating the tuning of these "meta-parameters" during training could make the framework even more user-friendly.

Summary updated

Abstract

Accurate segmentation of anatomical structures from medical ultrasound images is essential for reliable diagnosis, yet conventional training losses often leave persistent steady-state errors, especially along ambiguous boundaries. These losses act as control variables generated by a proportional controller, since they respond only to instantaneous discrepancies and lack the memory required to correct long-term deviations. To overcome this limitation, we rethink segmentation training as a closed-loop control system where uncertainty acts as the control variable. Building on this perspective, we introduce a proportional–integral (PI) control mechanism that integrates both present and historical error signals into the optimization process, enabling the model to systematically eliminate steady-state errors and deliver sharper, more reliable boundary predictions. Unlike existing uncertainty-based approaches that rely solely on fixed loss terms, our method provides a principled mechanism to incorporate dynamic feedback into training. The framework is model-agnostic and introduces no additional inference overhead, making it directly compatible with real-time segmentation backbones. Extensive experiments on clinical medical ultrasound datasets demonstrate consistent improvements over state-of-the-art baselines. These results confirm that our framework offers an effective solution for eliminating steady-state errors in medical ultrasound image segmentation under challenging conditions. Our code is available at https://anonymous.4open.science/r/PI-control-uncertainty-B82C.
BibTeX
@misc{yang2026pi,
  author = {Jielong Yang and Jiahao Tang and Di Wu},
  title = {{PI-Controlled Uncertainty for Steady-State Error Elimination in Ultrasound Image Segmentation}},
  year = {2026},
  url = {https://openreview.net/forum?id=EyUa0s2RWg},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure