E2E-Tiling: Automated CNN Tiling for Very High-Resolution Image Processing via Multi-Agent Collaboration
Convolutional neural networks (CNNs) face GPU memory bottlenecks when processing Very High-Resolution (VHR) images, such as in remote sensing and medical imaging domains. CNN tiling offers an effective solution by partitioning CNN computations into tiles while preserving input resolution and computational semantics. However, applying CNN tiling with existing methods requires substantial manual effort to analyze network architectures and implement operator tiling. This process becomes increasingly challenging as CNN architectures grow more diverse and complex. To automate this process, we propose E2E-Tiling, a multi-agent approach that leverages Large Language Models (LLMs) to generate executable tiled CNN programs automatically. E2E-Tiling employs (1) Tiling-Aware Network Partitioning (TNP) that analyzes operator types, tensor shapes, and dependencies using a Graph-Based Network Representation (GNet) to determine an appropriate tiled subgraph, and (2) Subgraph Dataflow Construction (SDC) to identify producer-consumer relationships and build a subgraph-level single Directed Acyclic Graph (DAG) that guides the Coding Agent in generating executable tiled CNN programs. We also introduce a failure-attribution-guided feedback (FAF) mechanism for the Feedback Agent to enable targeted refinement. We design JSON-based inter-agent communication schemes to facilitate agent collaborations. Experiments across 64 real-world CNN models show that the tiled CNN program generation success rate of E2E-Tiling using GPT-5.5 is 1.93× the compilation coverage of the State-of-the-Art rule-based MCU compiler that adopts CNN tiling. E2E-Tiling using GPT-5.5 also improves Pass@3 by 38.5% and 27.6% over single-agent and multi-agent baselines. On five representative CNNs with three-channel 16K VHR inputs, the generated programs reduce GPU memory consumption by 95.4% on average compared with conventional execution.
Authors
- Mengting Yuan (ORCID: https://orcid.org/0000-0001-8758-8668)
- Yuanzhao Yang
Institutions
- Wuhan University (CN)
Publication Details
- Journal
- Algorithms
- Published
- 2026-12-01
- DOI
- https://doi.org/10.3390/a19121061
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00