← Latest papers
💻 computer science

Thinking inside the Convolution for Image Inpainting: Reconstructing Texture via Structure under Global and Local Side

This paper proposes a novel image inpainting method that mitigates information loss during convolutional downsampling by leveraging a mutual reconstruction guidance strategy between structure and texture feature maps via statistical normalization and denormalization, achieving state-of-the-art performance across various resolutions.

Original authors: Haipeng Liu, Yang Wang, Biao Qian, Yong Rui, Meng Wang

Published 2026-02-04
📖 4 min read☕ Coffee break read

Original authors: Haipeng Liu, Yang Wang, Biao Qian, Yong Rui, Meng Wang

Original paper licensed under CC BY 4.0 (http://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

Imagine you have a beautiful, detailed painting, but someone has scratched out a large chunk of it with a marker. Your goal is to repaint that missing area so perfectly that no one can tell it was ever damaged. This is called image inpainting.

For a long time, computers tried to fix this by looking at the pixels around the hole and guessing what color should go there. But this often resulted in blurry smudges or weird patterns because the computer lost the "big picture" (the structure) and the "fine details" (the texture) while trying to shrink the image down to process it.

This paper introduces a new way to fix these holes, which the authors call "Thinking inside the Convolution." Here is how they do it, explained simply:

1. The Problem: Losing the Blueprint and the Wallpaper

Think of an image as a house.

  • Structure is the blueprint: the walls, the door frames, and the rooflines. It's the skeleton.
  • Texture is the wallpaper and paint: the grain of the wood, the pattern on the fabric, the color of the bricks.

When current computers try to fix a hole, they often use a process called "downsampling." Imagine taking a high-resolution photo and shrinking it to a tiny thumbnail to save space, then trying to blow it back up to full size.

  • The Issue: When you shrink the photo, you lose the fine details (texture). When you blow it back up, the computer tries to guess the details, but it often gets them wrong.
  • The Old Mistake: Previous methods tried to mix the blueprint and the wallpaper together and hope they helped each other. The authors found that this actually made things worse. The "blueprint" (structure) is sparse and delicate; if you try to rebuild it using the messy "wallpaper" (texture), the blueprint gets destroyed.

2. The Solution: The Blueprint Builds the Wallpaper

The authors discovered a one-way street that works much better: The Blueprint should guide the rebuilding of the Wallpaper.

They realized that even if the texture gets blurry during the shrinking process, the "skeleton" (structure) remains strong enough to tell the computer exactly where the edges and shapes should be.

  • The Analogy: Imagine you are rebuilding a broken mosaic. Instead of trying to guess the pattern of the tiles (texture) first, you first lay down the strong, clear outline of the picture (structure). Once the outline is set, it becomes very easy to fill in the specific colors and patterns (texture) because you know exactly where they belong.

3. Two Types of Guides: Global and Local

To make this even better, the paper uses two different types of "guides" to help rebuild the texture:

  • The Global Guide (The Big Picture): This looks at the whole image at once. It asks, "Where is the horizon? Where is the main wall?" It helps fix the big, sweeping textures.
  • The Local Guide (The Close-Up): This looks at tiny, specific spots. It asks, "What is the grain of the wood right here?" It helps fix the small, detailed textures.

The authors found that the Global Guide is best at fixing the Local details, and the Local Guide is best at fixing the Global picture. It's a bit like a team where the architect (Global) helps the bricklayer (Local) place individual bricks, and the bricklayer helps the architect understand the overall shape of the wall.

4. The "Cross-Layer Balance"

As the computer processes the image, it goes through different stages, like zooming in and out.

  • In the early stages (when the image is still large), the "Big Picture" guide is the most important.
  • In the later stages (when the image is very small and detailed), the "Close-Up" guide becomes more important.

The authors built a special module called a "Cross-Layer Balance Module." Think of this as a smart traffic controller. It watches the process and says, "Right now, we need more help from the Architect," or "Now, we need more help from the Bricklayer." It balances the two guides so that the texture is never lost, no matter how much the image is shrunk or expanded.

The Result

By using the structure to rebuild the texture (instead of mixing them up), and by balancing the "Big Picture" and "Close-Up" guides, their method creates much sharper, more realistic images.

  • Before: The fixed area looked blurry, with mismatched patterns or broken lines.
  • After: The fixed area looks like it was never damaged. The lines are straight, and the patterns match perfectly.

The paper proves this works on faces, street views, and nature scenes, showing that when you let the "skeleton" lead the way, the "skin" (texture) heals perfectly.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →