Decoupling algorithms from schedules for easy optimization of image processing pipelines
Open accessThe DOI matches its Crossref record; 1 of the 1 references it cites were found in a registry or an index.
Abstract
Using existing programming tools, writing high-performance image processing code requires sacrificing readability, portability, and modularity. We argue that this is a consequence of conflating what computations define the algorithm , with decisions about storage and the order of computation. We refer to these latter two concerns as the schedule , including choices of tiling, fusion, recomputation vs. storage, vectorization, and parallelism. We propose a representation for feed-forward imaging pipelines that separates the algorithm from its schedule, enabling high-performance without sacrificing code clarity. This decoupling simplifies the algorithm specification: images and intermediate buffers become functions over an infinite integer domain, with no explicit storage or boundary conditions. Imaging pipelines are compositions of functions. Programmers separately specify scheduling strategies for the various functions composing the algorithm, which allows them to efficiently explore different optimizations without changing the algorithmic code. We demonstrate the power of this representation by expressing a range of recent image processing applications in an embedded domain specific language called Halide, and compiling them for ARM, x86, and GPUs. Our compiler targets SIMD units, multiple cores, and complex memory hierarchies. We demonstrate that it can handle algorithms such as a camera raw pipeline, the bilateral grid, fast local Laplacian filtering, and image segmentation. The algorithms expressed in our language are both shorter and faster than state-of-the-art implementations.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
SPIRAL: Code Generation for DSP Transforms
Puschel, M., Moura, J. M. F., Johnson, J. R., Padua, D., Veloso, M. M., Singer, B. W., Xiong, J., Franchetti, F., Gacic, A., Voronenko, Y., et al. (2005) · Proceedings of the IEEE · doi:10.1109/jproc.2004.840306 · Cited by 826
Cited by
(2013) · doi:10.1145/2491956.2462176 · Cited by 885
Self-citationDeep bilateral learning for real-time image enhancement
Gharbi, M., Chen, J., Barron, J. T., Hasinoff, S. W., & Durand, F. (2017) · ACM Transactions on Graphics · doi:10.1145/3072959.3073592 · Cited by 800
Self-citationOpenTuner: an extensible framework for program autotuning
Ansel, J., Kamil, S., Veeramachaneni, K., Ragan-Kelley, J., Bosboom, J., O'Reilly, U.-M., & Amarasinghe, S. (2014) · Proceedings of the 23rd international conference on Parallel architectures and compilation · doi:10.1145/2628071.2628092 · Cited by 530
Self-citationRagan-Kelley, J., Barnes, C., Adams, A., Paris, S., Durand, F., & Amarasinghe, S. (2013) · ACM SIGPLAN Notices · doi:10.1145/2499370.2462176 · Cited by 513
Self-citationBurst photography for high dynamic range and low-light imaging on mobile cameras
Hasinoff, S. W., Sharlet, D., Geiss, R., Adams, A., Barron, J. T., Kainz, F., Chen, J., & Levoy, M. (2016) · ACM Transactions on Graphics · doi:10.1145/2980179.2980254 · Cited by 483
Self-citationFast Image Processing with Fully-Convolutional Networks
Chen, Q., Xu, J., & Koltun, V. (2017) · 2017 IEEE International Conference on Computer Vision (ICCV) · doi:10.1109/iccv.2017.273 · Cited by 341
Taichi: a language for high-performance computation on spatially sparse data structures
Hu, Y., Li, T.-M., Anderson, L., Ragan-Kelley, J., & Durand, F. (2019) · ACM Transactions on Graphics · doi:10.1145/3355089.3356506 · Cited by 257
Self-citationAnderson, R., Gallup, D., Barron, J. T., Kontkanen, J., Snavely, N., Hernández, C., Agarwal, S., & Seitz, S. M. (2016) · ACM Transactions on Graphics · doi:10.1145/2980179.2980257 · Cited by 225
Barron, J. T., & Tsai, Y.-T. (2017) · 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr.2017.735 · Cited by 204
“Runtimes for the “full” model were produced using an unoptimized Matlab implementation, while runtimes for the “thumb” model were produced using a well-optimized Halide [26] implementation running on the CPU (our unoptimized Matlab implementation is 2.37 milliseconds per image).”
MethodInfluentialDeep Guided Learning for Fast Multi-Exposure Image Fusion
Ma, K., Duanmu, Z., Zhu, H., Fang, Y., & Wang, Z. (2020) · IEEE Transactions on Image Processing · doi:10.1109/tip.2019.2952716 · Cited by 203
“Algorithm acceleration through code optimization is possible [10], [11], but it may not generalize across different MEF methods.”
BackgroundA compiler for 3D machine knitting
McCann, J., Albaugh, L., Narayanan, V., Grow, A., Matusik, W., Mankoff, J., & Hodgins, J. (2016) · ACM Transactions on Graphics · doi:10.1145/2897824.2925940 · Cited by 163
PolyMage: Automatic Optimization for Image Processing Pipelines
Mullapudi, R. T., Vasista, V., & Bondhugula, U. (2015) · Proceedings of the Twentieth International Conference on Architectural Support for Programming Languages and Operating Systems · doi:10.1145/2694344.2694364 · Cited by 160
“Halide is a recent domain-specific language for image processing pipelines [36] that decouples the algorithm and schedule specification.”
BackgroundMethodInfluentialHIPAcc: A Domain-Specific Language and Compiler for Image Processing
Membarth, R., Reiche, O., Hannig, F., Teich, J., Korner, M., & Eckert, W. (2016) · IEEE Transactions on Parallel and Distributed Systems · doi:10.1109/tpds.2015.2394802 · Cited by 102
“Index Terms—Domain-specific language, image processing, code generation, source-to-source translation, GPU, CUDA, OpenCL, Renderscript Ç”
Metadata
- Authors
- Ragan-Kelley, J., Adams, A., Paris, S., Levoy, M., Amarasinghe, S., & Durand, F.
- Venue
- ACM Transactions on Graphics
- Published
- 2012-07
- Volume
- 31
- Issue
- 4
- Pages
- 1-12
- ISSN
- 0730-0301 (ISSN-L)
- 1557-7368
- OpenAlex
- W1989988531
- Cited by
- 251
- References
- 1
- FWCI
- 30.41
- Type
- journal article
- Language
- en
- Open access
- bronze
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.