Input resolution and decoder design shape Transformer-based retinal lesion segmentation: a controlled multi-seed study with zero-shot external evaluation
This controlled multi-seed study demonstrates that input resolution, encoder architecture, and decoder design interact complexly to shape Transformer-based retinal lesion segmentation performance, revealing that resolution benefits are neither universal nor decoder-independent and that architecture rankings often fail to generalize across seeds and external datasets.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
In the complex landscape of diabetic retinopathy, a condition that threatens the vision of millions, the retina holds a silent record of damage. Tiny blood vessels burst, leaking fluid and blood, while other vessels grow abnormally. To a doctor, these signs—microaneurysms, hemorrhages, and exudates—are the visible evidence of disease. To a computer, however, they are often just a few pixels in a vast, colorful image. For years, researchers have tried to teach machines to spot these tiny flaws automatically, hoping to screen patients faster and more accurately than human eyes can manage. A central question in this effort has been how much detail the computer needs to see. Should the image be shrunk down to make the computer's job easier and faster, or kept large to preserve the faintest details? The prevailing assumption has been that bigger is always better, but this approach ignores a critical reality: shrinking an image does not shrink all features equally. A large patch of damage might remain visible even when reduced, but a tiny, critical spot of bleeding can vanish entirely, leaving the computer blind to the very thing it needs to find.
A team of researchers set out to test this assumption with a rigorous, controlled experiment involving four different types of advanced computer vision systems. They treated the size of the input image not as a simple setting, but as a fundamental part of the system's design. They trained these systems on thousands of retinal images, testing them at four different resolutions, ranging from a small 224 pixels to a large 768 pixels. The goal was to see how the combination of image size, the type of computer brain used, and the way the system interprets the data affected its ability to find four specific types of lesions. They also checked if these systems could apply what they learned to a completely different set of images from a different country, without any further tuning, to see if the improvements were real or just an artifact of the training data.
The results revealed that the relationship between image size and performance is far more complicated than a simple "bigger is better" rule. While increasing the resolution generally improved the ability to find small lesions, the benefits were not uniform across all systems or all types of damage. For some computer architectures, the performance peaked at a medium resolution and then actually dropped when the image was made even larger. This decline was not a failure of the system to learn, but a sign that the specific way the computer processed the extra pixels was not helpful for that particular design. The study showed that the first step up in resolution, from the smallest size to a medium one, provided the most significant and reliable gains. Moving to the largest size offered only marginal improvements for most systems, and for one specific architecture, it actually hurt performance.
Crucially, the researchers discovered that the ranking of which computer system was "best" depended entirely on how the results were measured and what parts of the image were considered. When the systems were judged on their ability to find lesions in images that actually contained them, a standard computer model performed surprisingly well, even beating the most advanced systems. However, when the judgment included images that had no lesions at all, that same standard model performed poorly because it tended to see lesions where none existed. This highlighted a vital distinction: a system can be excellent at spotting disease when it is present, but still be unreliable if it raises false alarms in healthy eyes. The study also found that higher resolutions did more than just improve detection; they made the computer's confidence levels more accurate. As the images grew larger, the systems became better at knowing when they were sure and when they were guessing, a trait that is essential for medical tools that must be trusted.
Perhaps the most surprising finding was that the choice of the computer's "decoder"—the part of the system that translates raw data into a final map of lesions—could completely reverse the ranking of the computer brains. When two different systems were forced to use the same decoder, the one that had previously appeared superior suddenly fell behind. This proved that you cannot judge a computer vision system by its core architecture alone; the entire package, from the input size to the final output layer, must be considered together. The study concluded that there is no single perfect resolution for all tasks. Instead, the best choice depends on the specific type of damage being looked for, the computer system being used, and the available computing power. For finding the tiniest, most elusive lesions, high resolution is necessary, but for a general screening tool, a medium resolution often offers the best balance of accuracy and efficiency. The researchers also released a new, simple tool that allows anyone to check how much detail their specific images will lose when resized, helping practitioners make informed decisions before they even begin training a model.
The cost of this precision was measured in time and energy. Moving from the smallest to the largest resolution increased the time required to train the models by anywhere from eleven to thirty-eight times, depending on the system. This massive jump in cost did not always come with a matching jump in performance. In fact, the most expensive system to run was also the one that saw its performance decline at the highest resolution. The most efficient high-resolution system, which offered top-tier accuracy, cost significantly less to train than its competitors. This suggests that the most powerful tool is not always the one that demands the most resources, but the one that is best matched to the specific problem. The study emphasizes that in the quest to automate the detection of diabetic retinopathy, researchers and doctors must stop treating image resolution as a routine setting. It is a design choice that interacts with every other part of the system, and getting it right requires understanding the specific geometry of the disease being studied.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.