← Latest papers
💻 computer science

Complex Layout Classification in the Wild: A Low-Resource Approach with Layout-Preserving Augmentations

This paper addresses the challenge of classifying complex document layouts under severe data scarcity by introducing a manually curated dataset and a novel CNN-based training strategy that leverages domain-aware augmentations, such as anisotropic Gaussian masking and reflection-induced label transformations, to enhance model generalization.

Original authors: Sharva Gogawale, Iddo Hakim, Gal Grudka, Mohammad Suliman, Omer Ventura, Daria Vasyutinsky-Shapira, Berat Kurar-Barakat, Nachum Dershowitz

Published 2026-06-17
📖 5 min read🧠 Deep dive

Original authors: Sharva Gogawale, Iddo Hakim, Gal Grudka, Mohammad Suliman, Omer Ventura, Daria Vasyutinsky-Shapira, Berat Kurar-Barakat, Nachum Dershowitz

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 massive library of old, handwritten books. Some pages are simple, with text running in neat lines from top to bottom. But many pages are chaotic masterpieces: text wrapped around pictures, commentaries written in the margins, or main stories surrounded by notes on all sides.

If you want a computer to read these books (a process called OCR), it first needs to know how the page is organized. Is the text in a column? Is it in a circle? Is it an "L" shape? If the computer guesses wrong, it reads the text in the wrong order, turning a coherent story into gibberish.

This paper tackles the problem of teaching computers to recognize these complex page shapes, but with a major catch: we have almost no training data. In the world of AI, models usually need thousands of labeled examples to learn. Here, we might only have a few dozen examples of each page type.

Here is how the authors solved this puzzle, explained through simple analogies:

1. The Problem: The "Blindfolded" Student

Imagine trying to teach a student to identify different floor plans of houses (e.g., "L-shaped," "U-shaped," "O-shaped") by showing them only 15 photos total.

  • The Trap: If you show the student a photo of a house with a red door, they might memorize "Red Door = L-Shape." But the next house has a blue door. The student fails because they learned the decoration (the text/font) instead of the structure (the layout).
  • The Reality: Old documents are messy. The text varies in font, size, and language. The computer keeps getting distracted by the words instead of looking at the "skeleton" of the page.

2. The Solution: The "Skeleton" Strategy

The authors realized that the most important part of these pages isn't the text itself, but the empty spaces (or "separators") that divide the text into different zones. Think of these separators as the walls in a house. The text is just the furniture; the walls define the room.

To force the computer to learn the walls and ignore the furniture, they invented a special training technique called Layout-Preserving Augmentation.

Analogy A: The "Foggy Window" (Gaussian Masking)

Imagine looking at a page through a window that is covered in thick, narrow strips of fog.

  • The fog is applied in specific directions (vertical and horizontal lines).
  • This fog blurs out the text (the furniture) so it becomes unreadable.
  • Crucially, the fog is designed not to cover the walls (the separators). The walls remain sharp and clear.
  • The Result: The computer is forced to look at the sharp, clear walls to guess the shape of the room, because the furniture is completely hidden. It learns the geometry of the page, not the content.

Analogy B: The "Mirror Trick" (Reflections)

Since they didn't have enough photos, they needed to create more without lying.

  • They took a page and held up a mirror to it (flipping it horizontally or vertically).
  • The Catch: If you flip an "L" shape, it becomes a backward "L" (which is a different category in their system).
  • The Fix: They created a rulebook. "If you flip this image, you must also change the label from 'L' to 'Backward L'."
  • This allowed them to double or triple their tiny dataset while keeping the rules of the game honest.

3. The Engine: A Specialized Detective

They used a specific type of AI model called ConvNeXt.

  • Think of this model as a detective trained to look for edges and lines rather than specific objects.
  • Because the "Foggy Window" technique hid the text, the detective couldn't cheat by reading words. It had to rely on its natural talent for spotting lines and shapes.
  • This detective was much better at the job than other popular AI models (like ViT or ResNet), which usually try to memorize textures and details.

4. The Results: From "Guessing" to "Knowing"

  • Without the special tricks: The AI guessed correctly only about 30% of the time. It was just guessing based on random patterns.
  • With the "Foggy Window" and "Mirror Trick": The AI's accuracy jumped to 90%.
  • The Real-World Test: They tested this AI on a massive, unseen collection of thousands of books from the National Library of Israel. Even though it had never seen these specific books before, it correctly identified the layout of complex pages about 84% of the time when it was very confident in its answer.

Summary

The paper is essentially a recipe for teaching a computer to recognize the shape of a page when you only have a few examples to teach it.

  1. Blur the text so the computer can't cheat by reading words.
  2. Keep the lines clear so the computer learns the structure.
  3. Flip the images and update the labels to create more practice data.
  4. Train a specialized model that focuses on these lines.

The result is a system that can sort messy, ancient documents into the right processing pipelines, even when there is very little data available to teach it how to do so.

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 →