Elamur Research

TVM: An Automated End-to-End Optimizing Compiler for Deep Learning

Paper · 2018 · Tianqi Chen, Thierry Moreau, Ziheng Jiang et al.

Summary

A deep learning computation can be easy to describe and difficult to run efficiently. The same mathematical operation may need different memory arrangements, parallel execution strategies, and machine instructions on a phone, a server GPU, or a specialized accelerator. TVM addresses the engineering burden behind that mismatch. It takes a computation described through an existing framework and compiles it into an executable adapted to the target device. The aim is to make efficient deployment possible without requiring someone to handcraft every operator variant for every machine.

The paper’s central argument is that optimization must connect the whole computation with the implementation of its individual operations. At the level of the computational graph, TVM can combine neighboring operations, evaluate constant expressions ahead of time, plan intermediate storage, and change tensor layouts. At the level of an individual operator, it describes the required calculation separately from the strategy used to execute it. A schedule then determines such details as loop ordering, division into tiles, placement of temporary data, and distribution of work among threads. This separation allows the compiler to generate implementations for operations created by graph transformations, including fused operations that might have no counterpart in an existing library.

Finding an effective schedule is itself a substantial problem. The possible combinations are too numerous for exhaustive hardware testing, while a manually constructed performance predictor would need to account for complicated and changing hardware behavior. TVM therefore uses a learned cost predictor to guide its search. It measures selected candidate programs on the device, trains the predictor on those observations, and uses its rankings to choose further experiments. The predictor improves during exploration; the hardware measurements remain the evidence on which optimization rests.

The evaluation covers a server GPU, an embedded CPU, a mobile GPU, and an accelerator implemented on an FPGA. Across the framework comparisons, the authors report speedups ranging from 1.2× to 3.8×. On the server GPU, the reported range is 1.6× to 3.8×; on the mobile GPU, it is 1.2× to 1.6×. The FPGA experiment demonstrates a different capability: TVM can express the accelerator’s tensor instructions and generate the synchronization needed to overlap computation with memory transfers. Its offloaded convolution layers obtain a 40× speedup, although operations left on the CPU constrain the complete application. Together, these results support TVM’s approach to portable optimization across the tested devices. They do not establish that one implementation strategy wins everywhere, or that every operation can be accelerated equally.

Interesting ideas

Separate meaning from execution. TVM keeps the description of a tensor calculation apart from decisions about loops, memory, and parallel work. This gives an optimizer room to change implementation while preserving the intended computation. The same principle can help any system that needs several execution strategies for a common operation: a data-processing engine, a numerical application, or a language-processing pipeline. The useful boundary is between the result that must be produced and the machinery allowed to produce it.

Make global transformations depend on generative implementations. Combining operations is more useful when the system can construct an implementation of the combination. Otherwise, an optimization pass remains limited by whatever patterns a library author anticipated. TVM connects graph rewriting to operator generation, allowing the lower layer to implement what the upper layer creates. Elsewhere, this suggests designing transformation systems and execution systems together, so a promising rewrite does not merely move a problem into an unsupported operation.

Learn which experiments deserve their cost. TVM uses inexpensive predictions to decide which candidate implementations should undergo relatively expensive measurements. The predictor does not replace the experiment; it directs attention towards candidates likely to improve the current result. This pattern applies when there are many plausible choices but limited evaluation resources. It is especially useful when observations from earlier trials can inform later decisions and when ranking candidates matters more than predicting an exact numerical outcome.

Classify operations by the transformations they permit. TVM’s fusion rules use a small set of operator categories instead of a separate rule for every possible sequence. An elementwise mapping, a reduction, and an operation with a fusible output have different legal combinations. The general lesson is to classify components by their relevant behavior. A compact taxonomy can expose reusable rules, provided the classification captures the dependencies that make a transformation safe.

Keep hardware capabilities explicit and extensible. TVM describes a hardware tensor instruction separately from the schedule that invokes it. Memory scopes similarly identify storage with particular sharing or placement requirements. These interfaces let the compiler reason about capabilities without embedding every device detail throughout the optimization system. A comparable design can help software that must accommodate new storage tiers, execution units, or external processing engines.

Compare alternatives within one implementation system. Several analyses generate both settings through TVM, including fused and separate operators and schedules with and without latency hiding. This makes the comparison more informative because a particular optimization changes while much of the surrounding machinery stays common. The idea transfers directly to experimental software: make important components switchable, keep the rest of the pipeline comparable, and interpret each result at the level that the comparison actually isolates.

Deep dive: TVM: An Automated End-to-End Optimizing Compiler for Deep Learning

How TVM combines graph rewrites, tensor scheduling, and learned search to generate efficient deep learning code across hardware. · about 35 minutes to read

How Mova uses it

For Mova, the small transparent language system written in Rust, TVM offers architectural ideas and experimental habits. The proposed connections concern its tree, learn, and tokens stages. They should be understood as possible applications: the connection does not establish that Mova already has TVM-style scheduling, learned candidate selection, or fused token processing. It also does not supply repository filenames or demonstrate changes to existing implementations.

A shared definition for parser calculations

In the tree stage, feature extraction and scoring for the perceptron parser and gparse could follow TVM’s separation between computation and execution. Mova could describe the common calculation once, then give it different execution plans for CPU and GPU processing. The shared definition would state which features are extracted and how their contributions produce a score. The execution plans would determine how work is grouped, where temporary values live, and how results are accumulated.

This would be useful only where the parsers actually share the same calculation. A common interface should not conceal a difference in feature meaning or scoring behavior. TVM’s example is valuable because its schedules are alternative implementations of a declared computation. For Mova, that makes agreement tests central: equivalent inputs should produce equivalent feature identities and scores under the supported execution plans, with any allowed numerical tolerance stated explicitly.

The relevant change would therefore involve both code organization and tests. Shared computation definitions would belong with the tree-stage logic; device-specific execution choices would remain separate. Tests would need to show that changing an execution plan preserves the parser calculation before performance measurements could justify using the faster plan. These are proposed design requirements, not reported Mova results.

Ranking expensive learning checks

In the learn stage, Mova could train a small predictor on previous outcomes to prioritize candidate repair rules or disagreements among silver trees. The expensive measurement would be a witness-parser check or an LLM-teacher judgment. A cheaper prediction could rank which cases deserve that attention first.

The transferable idea is selective evaluation. TVM learns from measured runtimes and uses those observations to direct subsequent measurements. Mova’s observations would be different: whether a repair helps, whether a disagreement exposes a useful error, or whether a proposed change survives a stronger check. A ranking would be useful if it concentrated evaluation effort on cases likely to produce actionable evidence.

The analogy has a boundary. Runtime is a performance measurement, whereas a language judgment may involve uncertainty about correctness or annotation quality. A high ranking would not establish that a repair is valid. Mova would still need the witness or teacher check, and held-out evaluation would need to establish whether the selection policy improves the use of that checking budget. Records of candidates, predictions, and eventual outcomes would make the procedure inspectable.

Finding safe opportunities in token processing

In the tokens stage, normalization, part-of-speech tagging, and lemmatization could be classified according to whether they preserve a one-to-one correspondence between input and output items. This resembles TVM’s use of operator categories to decide which neighboring operations can be combined.

The immediate question is whether intermediate arrays are necessary. If adjacent steps preserve the relevant correspondence and their dependencies allow it, a combined pass could avoid writing and rereading intermediate values. However, a token-level label alone does not establish that fusion is safe. A step may need surrounding context, alter segmentation, or depend on results unavailable when the current token is processed.

Mova could therefore use the classification as a starting point for inspection. Tests would compare the complete outputs of separate and combined processing, including token boundaries and annotations. The paper motivates looking for this opportunity; it does not demonstrate that Mova’s particular normalization, tagging, and lemma procedures can all share a pass.

Making learning comparisons attributable

Mova’s evaluations could also adopt TVM’s habit of generating alternatives within one system. A repair-rule set could be enabled or disabled inside the same pipeline build, with common inputs and evaluation settings. That would make it easier to attribute an observed change to the component under examination.

This fits alongside negative controls: the same evaluation machinery could check both a proposed improvement and changes expected not to help. The practical lesson concerns the structure of the experiment. A component should be easy to toggle, its outputs should remain inspectable, and performance claims should be tied to the exact comparison performed. TVM supplies a clear example of that discipline, rather than evidence that any particular Mova repair will succeed.

The problem and its context

A graph does not determine an efficient implementation

Deep learning frameworks already gave users a useful way to describe large computations. Systems such as TensorFlow and MXNet represented computations as graphs. A node described an operation, while connections expressed which results other operations needed. That representation supported work such as differentiation and management of intermediate memory.

A graph exposes relationships across an application, but it leaves substantial implementation questions unanswered. A convolution node identifies a calculation without specifying how to divide its loops, organize reuse, or assign work to a device’s execution units. Those questions become decisive when hardware differs in its memory hierarchy and available instructions.

The paper describes a division of responsibility in which frameworks handled the graph and specialized libraries handled individual operators. This arrangement gave frameworks access to substantial manual optimization, particularly on server GPUs. It also created a portability problem. A library implementation adapted to one device could not simply be assumed effective on another, and a new device required considerable engineering across the operators it needed.

The difficulty extended beyond adding another backend. A framework might discover that combining neighboring operations would reduce memory traffic, yet lack a tuned implementation of the combined operation. It then faced an unattractive choice: retain the original graph, or accept an implementation that did not exploit the target well. An apparently local limitation in the operator library could therefore prevent a useful transformation of the whole program.

Hardware diversity changes the compiler’s job

The hardware differences in the paper are substantive. CPUs, GPUs, and tensor accelerators expose different mechanisms for computation and storage. Efficient code needs to reflect those mechanisms rather than merely translate the same loop structure into another instruction syntax.

For a GPU, the implementation may need to coordinate many threads and arrange shared data so that neighboring threads reuse values. For a tensor accelerator, the useful unit of computation may itself consume a multidimensional block. Its data can require a particular layout, and its memories can demand explicit management.

The Tensor Processing Unit study appears in this context as an example of specialized hardware that changes the compilation problem. The TVM paper emphasizes that some accelerators simplify their own control machinery and leave more scheduling responsibility to software. A compiler may have to arrange transfers, computation, and synchronization explicitly to avoid both idle resources and incorrect execution.

This is why ordinary graph optimization is insufficient. The graph can say that a matrix operation depends on an earlier tensor, but it does not on its own determine which part of that tensor should be loaded next or when a hardware pipeline may safely advance. The compiler needs representations that reach from application structure down to those execution details.

Earlier approaches supplied useful pieces

TVM builds on Halide’s separation of a computation from its schedule. That separation allows the mathematical description to remain stable while execution choices change. The paper also draws on earlier work in tensor languages and loop transformation. Its contribution is not the claim that scheduling or declarative array computation begins with TVM.

The authors instead identify requirements that need additional scheduling mechanisms. GPU threads must sometimes cooperate through shared storage. Tensor instructions need an extensible way to be described and invoked. Some accelerators require the compiler to expose pipeline overlap and generate explicit synchronization. TVM adds these capabilities to a schedule-based approach and connects the result to graph rewriting.

The related-work discussion also distinguishes high-level graph languages from operator-generation systems. XLA and DLVM are discussed as graph-oriented approaches. The authors argue that this level of representation remains too coarse to solve the full range of device-specific operator transformations. Direct lowering rules or calls to a specialized library can bridge the gap, but each combination of target and operator variant adds engineering work.

Other cited systems address related areas. TACO concerns generation of sparse tensor operations on CPUs. Weld addresses data-processing computations. GPU languages and polyhedral transformation systems explore ways to represent parallel work and rearrange loops. TVM’s stated focus is the combination of deep learning graph optimization with the scheduling demands of GPUs and specialized accelerators.

Searching for implementations creates another bottleneck

Once an operator has many legal implementations, choosing one becomes a separate engineering problem. Loop order, tile dimensions, caching decisions, and parallel arrangements interact. The paper reports schedule spaces containing billions of configurations for its workloads.

Earlier high-performance libraries such as ATLAS and FFTW used automatic tuning. The basic attraction is empirical: try implementations on the machine and retain effective choices. But a sufficiently large space makes direct testing expensive.

A pre-defined performance predictor offers another route. It can estimate which implementation should be fast using knowledge of memory access, reuse, and hardware behavior. The paper’s objection is maintenance and accuracy. Modern hardware makes detailed prediction difficult, and a new target can require another carefully designed predictor.

TVM seeks a middle position. It retains hardware measurements, but uses machine learning to reduce the amount of measurement needed to locate useful schedules. The search system learns from the very optimization process it is directing. This connects the compiler problem to a broader experimental pattern: use accumulating observations to choose where the next costly observation should be made.

The method, step by step

Begin with a graph from an existing framework

TVM starts by accepting a computation from a framework and converting it into its own graph representation. The paper describes support for TensorFlow and MXNet, as well as PyTorch and Keras. It also names CNTK and exchange formats including CoreML and ONNX.

The graph records tensor-producing operations and the dependencies among them. Operators can carry attributes, such as convolution padding or stride, that determine their behavior. At this point, the representation expresses the application without committing every operation to a particular loop implementation.

An important assumption is that many relevant workloads have known input shapes. TVM uses this specificity when optimizing graphs and operators. Instead of requiring every generated kernel to serve a broad range of dimensions, it can specialize a kernel to the dimensions and layouts needed at a particular point in the computation.

The overall route from imported computation to executable is:

From framework computation to target executable

The steps in order.

From framework computation to target executableStep 1: Import computation into a tensor graph1. Import computation into a tensor graphStep 2: Rewrite graph and choose internal layouts2. Rewrite graph and choose internal layoutsStep 3: Describe fused operators with tensor expressions3. Describe fused operators with tensor expressionsStep 4: Explore schedules using predicted performance4. Explore schedules using predicted performanceStep 5: Measure candidates and update predictions5. Measure candidates and update predictionsStep 6: Package graph, code, and parameters6. Package graph, code, and parameters

The diagram separates activities that reinforce each other. Graph rewriting determines which operators need implementations. Operator generation makes a broader set of rewrites practical. Hardware measurements then help select among the valid implementations of those operators.

Rewrite the graph before choosing every loop

TVM applies several transformations at graph level. Constant folding evaluates expressions whose results are already determined. Static memory planning arranges storage for intermediate tensors ahead of execution. Layout transformation changes how tensor elements are organized internally. Fusion combines operations so they can execute without storing every intermediate tensor in external memory.

These transformations use the graph’s global view. A compiler looking at an isolated operation cannot necessarily know that its result will immediately undergo a simple elementwise transformation, or that an intermediate value has a lifetime allowing its storage to be reused. Graph structure supplies that information.

Fusion is especially important because writing an intermediate tensor can create avoidable work. Suppose an operation produces values that a following elementwise operation immediately transforms. A fused implementation can apply the transformation while producing the values, avoiding a separate kernel and intermediate storage. The paper measures this effect directly, rather than treating fusion as an automatic benefit under every condition.

TVM organizes fusion around categories of operator behavior. An injective operation maps elements without combining several input positions into an output; addition is the paper’s example. A reduction combines values, as a sum does. A complex operation such as convolution can accept suitable elementwise work on its output. An opaque operation falls outside the supported fusion rules; sorting is the example given.

The rules follow those categories. Several injective operations can form another injective computation. Injective work feeding a reduction can be merged into that reduction. Elementwise output processing can be attached to an operation such as convolution. These rules allow useful combinations without requiring a separately authored implementation for every possible chain.

The classification is a statement about supported transformations. It does not imply that all neighboring graph nodes can merge, or that an operator’s mathematical name alone settles every implementation issue. Dependencies and the category-specific rules still determine what the graph rewriter may do.

Choose layouts that fit the target

A tensor’s logical dimensions do not uniquely determine its physical arrangement. Even familiar row-oriented and column-oriented storage choices can change access behavior. Specialized hardware can need more structured arrangements.

The paper illustrates this with a device built around 4×4 matrix operations. Such a device may benefit from values stored in corresponding blocks. A layout that is convenient at an application boundary may therefore be inconvenient inside a sequence of accelerated operations.

TVM associates preferred layouts with operators in light of target requirements. When a producer and consumer prefer incompatible arrangements, the graph includes the necessary conversion. This makes layout a graph-level concern: the output organization chosen for one operation affects the next operation’s input.

Layout transformation also explains why a fixed catalog of kernels becomes restrictive. A fused operation may need a particular combination of layout, data type, and hardware instruction. As those choices multiply, maintaining every combination manually becomes increasingly difficult. Code generation is the mechanism that allows TVM to implement these choices without requiring a complete catalog in advance.

Describe the calculation with tensor expressions

Below the graph, TVM describes an operator through indexed tensor expressions. Such a description specifies the output’s shape and the calculation required at each output position. It identifies the arithmetic and dependencies while leaving execution details open.

The paper uses transposed matrix multiplication to introduce this level. The essential distinction is between defining which products contribute to an output element and deciding how the machine will obtain them. The expression establishes the former. A schedule determines the latter.

The tensor language supports arithmetic and mathematical operations sufficient for the common deep learning patterns considered in the paper. It is more explicit than an opaque graph node because the compiler can inspect the indexed calculation. Yet it remains less committed than a hand-written loop nest because choices about ordering, caching, and parallel execution have not all been fixed.

The paper does not present the automatic optimizer through a formal mathematical objective with a complete set of constraints. Its method is specified through representations, transformation primitives, prediction, and measurement. The crucial operational requirement is that a schedule transformation preserve the declared computation.

Construct alternative schedules through transformations

A schedule maps a tensor expression into executable structure. TVM constructs schedules by applying transformations incrementally. Internally, it tracks the evolving loop organization and related information, then lowers the resulting schedule into code.

Some choices concern locality. A large computation can be divided into tiles so that a smaller working set is reused before it leaves a fast memory. Other choices concern instruction overhead or parallel execution: loops can be unrolled, vectorized, or assigned to concurrent workers.

These choices interact. A tile size that improves reuse may change the amount of temporary storage required. A different loop order may expose or destroy a useful access pattern. Parallel work can increase throughput while changing how values must be shared. Accordingly, a schedule is a coordinated implementation plan rather than a collection of independently beneficial switches.

TVM reuses useful scheduling concepts and low-level infrastructure from Halide. Its additions address execution capabilities that need more explicit representation, particularly cooperative GPU memory use and specialized accelerator behavior.

Let GPU threads cooperate through memory scopes

The paper contrasts cooperation with a nested parallel arrangement in which sibling workers do not share data during the same stage. That arrangement can express substantial parallelism, but it may load the same input repeatedly for different workers.

TVM allows a group of threads to fetch common data into shared storage. Each participating thread can then reuse values fetched by the group. Matrix multiplication is a natural example because several output calculations may need overlapping parts of the inputs.

A memory scope identifies how a buffer is used. Marking a stage as shared changes the storage and coordination requirements of the generated program. Without that explicit information, a stage could be treated as private to an individual thread, losing the intended reuse.

Correctness requires more than allocating a shared buffer. The load must cover what the cooperating workers need, and barriers must ensure that consumers see data after it has become available. TVM incorporates these requirements into lowering.

Memory scopes also serve accelerators. A scope can identify a special buffer and trigger target-specific handling. The general mechanism therefore expresses a property of storage that remains useful beyond the particular GPU optimization motivating its introduction.

Replace matching computation regions with tensor instructions

Tensorization connects a tensor expression to a hardware operation that performs a block of work. Ordinary vectorization replaces suitable scalar calculations with vector instructions. Tensorization follows a related idea, but the inputs can have several dimensions and device-specific layout requirements.

The paper illustrates the declaration mechanism with an 8×8 tensor intrinsic. A declaration describes the intrinsic’s behavior and how a matching computation should lower to it. The schedule can then request that a suitable region use the intrinsic.

Separating this declaration from scheduling is important. The compiler does not need to assume that every future accelerator exposes the same fixed instruction. A new backend can describe its own operation while reusing the surrounding approach to scheduling.

Tensorization also offers a place for manually optimized code. A handcrafted micro-kernel can be exposed through the same mechanism and called as part of a generated implementation. TVM therefore accommodates useful manual work within its compiler structure.

The low-precision CPU example follows this route. A bit-serial matrix-vector micro-kernel operates on narrow representations and accumulates into larger types. TVM treats it as an intrinsic, then optimizes the surrounding schedule. The paper reports up to a 1.5× speedup from this tensorized version compared with its counterpart without tensorization.

Expose overlap for accelerators with simple control

Some hardware automatically hides memory delays. The paper discusses CPU mechanisms such as prefetching and simultaneous multithreading, and GPU execution that can switch among many groups of threads. Specialized accelerators may instead require software to arrange overlap explicitly.

TVM addresses a decoupled access-execute design in which memory operations and computation can proceed through distinct pipeline stages. Keeping these stages busy requires more than issuing commands in a simple serial order. Transfers should overlap useful computation, while dependencies must still prevent a stage from consuming unavailable data.

The compiler must therefore insert synchronization actions. In the hardware organization discussed by the authors, dependence tokens coordinate progress between stages. Missing or misplaced coordination can make execution incorrect, rather than merely slow.

Virtual threading gives the schedule a higher-level way to express the desired parallel work. TVM first establishes the synchronization required for each virtual thread. It then combines their operations into an instruction stream that the accelerator can execute using those dependency relationships.

A virtual thread here is a scheduling abstraction. Its purpose is to describe work whose memory and compute activities can overlap. Lowering turns that description into the explicit coordination expected by the hardware.

Specify a search space rather than a single schedule

Automatic optimization needs a definition of the available choices. TVM provides a template interface through which a developer exposes schedule parameters. Domain knowledge can shape that template, restricting choices to meaningful implementations or making useful transformations available.

The paper also describes a generic template for each backend that derives possible choices from the tensor expression. This reduces the need to define every search space manually, while retaining the ability to incorporate expertise where needed.

The search space includes both structural choices and parameter values. Changing loop order is different from changing a tile dimension, but both can affect performance. The optimizer must navigate their combinations for the particular operator shape and layout.

The presence of templates is an important qualification to the word “automatic.” TVM automatically searches within the implementations its representations and templates can express. It does not discover arbitrary machine programs without a compiler-defined structure.

Train a predictor from measured candidate programs

For a proposed schedule, TVM can lower the program and extract information relevant to performance. Its default predictor uses gradient-boosted trees implemented with XGBoost.

The features describe the resulting loop program. They include counts of memory accesses, estimates of buffer reuse at different loop levels, and encodings of annotations indicating vectorization, unrolling, or parallel work. These inputs make the prediction sensitive to program structure rather than merely to an arbitrary configuration identifier.

The training observations are measured runtimes of candidate implementations on the target device. This is the optimizer’s data procedure: propose programs, execute selected ones, record their performance, and update the predictor. If no earlier measurements are available, exploration begins with randomly chosen candidates.

The learning objective concerns ordering. The search needs to know which candidate appears faster, so accurate ranking can be useful even when absolute runtime estimates are imperfect. This aligns the predictor’s training with the decision it supports.

The authors also investigate TreeRNN, which summarizes the program’s abstract syntax tree instead of relying on the same engineered features. Both approaches achieve similar predictive quality in their comparison. Gradient boosting is selected as the default because it predicts twice as fast and requires less training time.

Search with predictions, then return to hardware

Even cheap prediction does not make exhaustive enumeration practical when the space is very large. TVM instead uses parallel simulated annealing. Explorers begin from random configurations and consider nearby alternatives.

A move predicted to reduce cost is favored. A move towards higher predicted cost may be rejected. This allows exploration to concentrate around promising regions without evaluating every possible schedule through the predictor.

The states of these searches survive predictor updates. When additional hardware results lead to retraining, exploration continues from its existing configurations. The system therefore combines an evolving view of performance with ongoing search trajectories.

At each measurement round, selected candidates run on the actual device. Their results become new training data. This feedback loop matters because a prediction is only a guide: the machine ultimately determines whether the proposed implementation is fast.

Automate remote measurements and package the result

TVM uses an RPC-based pool of devices to run experiments remotely. A host can compile code, obtain a suitable device, upload the generated module, execute it, and retrieve results within a common workflow.

This infrastructure serves both individual operator tuning and complete graph execution. It is particularly useful for embedded targets, where repeated compilation, deployment, and measurement would otherwise involve substantial manual handling.

The final deployment package contains the optimized graph, generated operator code, and parameters. The paper names runtime support through languages including C++, Java, and Python. Packaging completes the connection between compiler optimization and practical use: the result is an executable computation for the target, rather than a collection of isolated kernel experiments.

Experiments and results

What the evaluation measures

The evaluation asks whether the full stack can provide effective implementations across different devices, compete with established library-backed frameworks, handle less conventional operations, and accommodate a specialized accelerator.

The workloads are inference computations. They include ResNet and MobileNet, alongside DQN and DCGAN. The authors also evaluate an LSTM language computation associated with recurrent network regularization. These workloads exercise different operator patterns instead of a single uniformly optimized convolution case.

The reported performance evidence includes complete-application execution, individual operator comparisons, and targeted optimization analyses. These levels answer different questions. A fast convolution kernel demonstrates operator-generation quality. A faster application additionally depends on graph transformations, runtime behavior, and how much execution remains outside that kernel.

The paper reports speedups over the relevant baselines, together with an accelerator-utilization analysis. It does not use predictive accuracy on a held-out linguistic or image dataset as its central outcome. The compilation question is how efficiently the specified inference computation executes.

Server GPU comparisons

The server experiment uses an NVIDIA Titan X. TVM is compared with MXNet v1.1 and TensorFlow v1.7, and with TensorFlow XLA. Frameworks backed by libraries rely on cuDNN v7 to perform convolutions and on cuBLAS v8 to multiply matrices. XLA supplies a compilation-based comparison.

Depthwise convolution is a useful special case. The paper says the cited library support had not yet incorporated it, so the framework baselines used their own implementations. This matters when interpreting the results: the experiment includes both conventional operators with substantial library optimization and newer operations for which coverage was less mature.

For complete workloads on this GPU, the authors report TVM speedups from 1.6× to 3.8× over the baselines. They attribute the gains to the combination of graph optimization and automatically generated fused kernels. The evaluation therefore supports the complete stack, rather than isolating all of the speedup as an effect of learned search alone.

DQN supplies the largest specifically explained result, a 3.8× speedup. Its convolutions use 4×4 kernels with a stride of 2. According to the paper, these less conventional configurations were not well served by cuDNN. TVM could specialize generated implementations to them.

This comparison illustrates a motivation for generation: an operator can be familiar in name yet unusual in its dimensions or stride. A broad library implementation need not be equally effective across all such cases. The paper contrasts these DQN configurations with the more conventional ResNet workloads, while reporting useful optimization for both.

Individual GPU operators

The operator analysis covers the convolution operations in ResNet-18 and the depthwise convolutions in MobileNet. It adds Tensor Comprehensions as an automatic-tuning baseline, using commit ef644ba.

For each operator, the Tensor Comprehensions search uses 10 generations, a population of 100, and 2 random seeds. The paper identifies this as 2000 trials per operator. Those settings matter because a search-based comparison depends partly on the opportunity each system receives to discover an implementation.

The authors report that TVM produces faster kernels than cuDNN for most of the examined convolution layers. For depthwise convolution, both TVM and Tensor Comprehensions find efficient implementations relative to MXNet’s hand-written kernels.

The comparison also includes a TVM variant using pre-transformed weights for Winograd convolution, labeled TVM PT. The relevant convolution algorithm is connected to fast convolution methods. Its inclusion shows that the operator study considers algorithmic and preprocessing choices alongside schedule optimization.

The paper qualifies the Tensor Comprehensions comparison through a communication stating that the system was not yet intended for compute-bound cases. That caveat limits how broadly its ranking should be generalized. It remains a reference point for the tested operators, instead of a definitive verdict on every possible use of that system.

Embedded CPU comparisons

The CPU evaluation runs on an ARM Cortex A53 with Quad Core 1.2GHz hardware. TensorFlow Lite at commit 7558b085 is the baseline.

At operator level, TVM improves on the baseline’s implementations for the examined ResNet convolutions and MobileNet depthwise convolutions. This is evidence that generation and tuning can be effective outside the server GPU setting.

The complete-workload evaluation also favors TVM for the available comparisons. DCGAN and LSTM are omitted because the baseline did not support them. Their absence should therefore be read as a coverage limitation of the comparison, not as an unfavorable or favorable runtime result.

The CPU experiment is important to the paper’s portability claim. It changes both the execution hardware and the baseline implementation strategy. The result supports the usefulness of the compiler structure across the tested targets, while leaving the exact best schedule dependent on each target.

Very low precision on the embedded CPU

The low-precision experiments investigate representations narrower than 8-bits. The paper places this work in the context of approaches such as BinaryConnect and XNOR-Net, while evaluating implementation performance rather than introducing a new quantization-training method.

The concrete comparison uses ResNet inference with 2-bit activations and 1-bit weights. The baseline is a hand-optimized Caffe2 implementation at commit 39e07f7.

Bit-serial computation replaces ordinary multiplication with operations on packed bits and population-count reductions. Efficient execution requires narrow values to be packed into wider standard representations, such as int8 or int32. TVM uses an ARM-specific tensor intrinsic for a matrix-vector micro-kernel and searches the surrounding schedule.

Because the Caffe2 baseline is single-threaded, the authors include a single-threaded TVM comparison. TVM performs better, with notable advantages on C5, C8, and C11. These are 1×1 convolution layers with stride 2 that the baseline’s low-precision implementation did not optimize effectively.

The authors also generate a parallel TVM implementation, obtaining further improvement. They separately note that TVM can generate precision configurations outside the baseline’s supported choices. Performance and coverage are distinct findings: the measured configuration supports the speed comparison, while the generator’s additional configurations support a flexibility claim.

Mobile GPU comparisons

The mobile GPU experiment uses a Firefly-RK3399 board containing an ARM Mali-T860MP4. Its baseline is the vendor’s ARM Compute Library v18.03.

The comparison evaluates float16 and float32 execution. Across the available complete workloads, TVM achieves speedups ranging from 1.2× to 1.6×.

DCGAN and LSTM are again absent because the baseline lacks support. The reported range therefore applies to the supported comparisons, rather than to every workload used elsewhere in the evaluation.

These results add another form of hardware variation. Success on a server GPU would not on its own establish that the same compiler approach works well on an embedded GPU. The mobile measurements provide direct evidence for that part of the portability argument, within the device and library versions tested.

The FPGA accelerator case study

For the specialized accelerator experiment, the authors implement VDLA on a low-power PYNQ platform. The board combines a dual-core ARM Cortex A9 operating at 667MHz with Artix-7 FPGA resources.

The accelerator contains a 16×16 matrix-vector unit running at 200MHz. It multiplies 8-bit values and accumulates into a 32-bit register. Its theoretical peak throughput is about 102.4GOPS/s.

The memory allocation is deliberately relevant to scheduling. The design provides 32kB for activations, 32kB for parameters, and 32kB for microcode, alongside a 128kB register file. These buffers cannot hold an entire ResNet layer, so useful performance depends on reusing limited local storage and overlapping transfers with computation.

The software interface is a C runtime API that constructs and submits accelerator instructions. TVM lowers the accelerator program to calls through that interface. The specialized backend requires approximately 2k lines of Python, reported in the paper as ∼2k LoC. That is evidence about this backend’s implementation effort, not a general bound on the cost of supporting arbitrary hardware.

The latency-hiding analysis measures ResNet layers with the optimization enabled and disabled. It uses the Roofline framework to relate achieved performance to compute and memory constraints.

ResNet layers on VDLA, peak compute utilization

Virtual-thread scheduling raises the peak utilization reached in the accelerator analysis.

ResNet layers on VDLA, peak compute utilizationWithout latency hiding: 70Without latency hiding70TVM with latency hiding (this paper): 88TVM with latency hiding (this paper)88
The numbers
System or settingcompute utilization %
Without latency hiding70
TVM with latency hiding (this paper)88

The paper reports improvement across all examined ResNet layers when latency hiding is enabled. The chart describes peak utilization, so it should not be interpreted as an average across layers.

For complete ResNet inference, TVM offloads the suitable convolution layers to VDLA. The initial convolution remains on the CPU because its shallow depth makes offloading inefficient. Residual operations and activations also remain on the CPU because VDLA does not implement them.

The offloaded convolutions achieve a 40× speedup relative to the Cortex A9 execution. The complete application receives less benefit because the remaining CPU work becomes a bottleneck. This is a useful result precisely because it separates a successful accelerator kernel from the performance of the whole inference pipeline.

What the ablations show

Fusion reduces intermediate traffic

The fusion analysis generates both fused and separate implementations through TVM and runs them on an NVIDIA Titan X. The reported acceleration ranges from 1.2× to 2× for the compared workloads.

The proposed mechanism is reduced memory traffic. Intermediate values can remain within the combined calculation instead of being written out and then loaded by another operation. The comparison supports that explanation for the tested patterns.

Using the same generator for both settings improves attribution. A comparison between unrelated frameworks could reflect many differences in implementation quality. Here, the experiment changes whether the operations are combined while retaining a common compilation system.

It still does not show that fusion is universally beneficial. The evidence concerns the operators and conditions examined. The broader contribution is a compiler structure that makes these combinations possible and a direct measurement showing why some are worthwhile.

Cooperative fetching tests a specific GPU capability

The matrix-multiplication analysis compares TVM schedules with and without cooperative shared-memory fetching on an NVIDIA Titan X. This targets the value of letting threads load common data together and reuse it.

The comparison supports the inclusion of explicit memory scopes in the scheduling system. Merely expressing nested parallel work would not expose the same cooperation.

The paper presents this evidence graphically without supplying a single numerical speedup in its prose. The defensible conclusion is therefore about the demonstrated importance of the capability, rather than an invented aggregate improvement.

Tensorization can improve a generated implementation

The low-precision micro-kernel comparison reports up to a 1.5× speedup when tensorization is used instead of the corresponding non-tensorized implementation.

This result shows that an intrinsic interface can provide a practical performance benefit. It allows a useful low-level implementation to participate in generated code, while scheduling still controls how that implementation is used.

The result is narrower than a claim that every operation should be tensorized. Its value depends on the intrinsic, the surrounding computation, and the target.

Latency hiding improves resource use

The FPGA comparison produces schedules with and without virtual-thread-based overlap. All examined ResNet layers improve, and the peak compute utilization changes from 70% to 88%.

This isolates an accelerator-specific concern. Correct computation alone does not ensure that transfer and execution resources remain busy. The scheduling abstraction helps the compiler express independent work and translate it into the synchronization required by the device.

The Roofline analysis adds explanatory value by showing the relationship between achieved execution and hardware limits. It supports the proposed mechanism of improved overlap, instead of reporting only a faster total runtime.

The predictor comparison concerns search efficiency

The automatic-optimization analysis uses a ResNet-18 convolution on TITAN X to compare learned guidance with black-box tuning methods. The learned predictor begins without training observations and improves from measurements collected during the search.

The authors report that this approach reaches better configurations more quickly. They also report an average gradient-boosting prediction time of 0.67 ms, making prediction much cheaper than a real measurement in their setup.

The comparison between gradient boosting and TreeRNN addresses another tradeoff. Similar predictive quality is insufficient if one option imposes more search overhead. Faster prediction and lower training cost explain the default choice.

These studies support the components individually, but they do not form a complete factorial experiment over every optimization combination. The full-workload gains arise from interacting graph and operator decisions, so the paper does not assign a separate share of each application speedup to every component.

Limitations

Limits explicitly acknowledged by the authors

The FPGA application retains substantial CPU work. VDLA cannot execute residual operations and activations, and the initial convolution does not offload efficiently. The authors identify the resulting application bottleneck and suggest broader accelerator support as a way to improve it. The reported 40× result belongs to the offloaded convolutions, not complete ResNet inference.

Some baseline systems cannot run all the selected workloads. The embedded CPU and mobile GPU comparisons omit DCGAN and LSTM where baseline support is missing. This reduces the scope of the direct comparisons. It does not establish what the omitted baseline runtimes would have been.

The paper also qualifies its use of Tensor Comprehensions for compute-bound cases. The cited communication says that this was not yet the system’s intended use. That qualification matters when interpreting the comparison as evidence about the wider design space.

The authors recognize that exhaustive search is impractical and that predictor overhead must remain small. Their optimizer searches for effective implementations within a large space; it does not provide a proof that the selected schedule is globally optimal.

Limits implied by the experimental setup

The portability evidence covers particular devices and software versions. The server GPU, mobile GPU, embedded CPU, and FPGA case study demonstrate breadth, but they do not exhaust the possible combinations of hardware, operators, and application shapes.

Shape specialization is a source of performance and a boundary of the evidence. TVM creates implementations for particular shapes and layouts. The experiments do not establish equivalent behavior for every application whose dimensions change unpredictably at runtime, nor do they quantify every cost of maintaining many specialized variants.

The workloads evaluate inference. The paper discusses framework capabilities such as differentiation in its background, but its performance results do not establish corresponding gains for complete training workloads. Training can introduce a different mix of operations, storage demands, and execution patterns.

The reported framework speedups also combine several sources of improvement. Fusion, layout decisions, specialization, and search can all contribute. Component comparisons help explain the system, but the complete results do not isolate learned guidance as the sole cause.

Automatic optimization still depends on designed interfaces

TVM requires a way to express an operator and a space of legal schedules. Backend templates, lowering rules, memory descriptions, and intrinsic declarations remain engineering artifacts. Automation reduces repeated manual tuning within that structure; it does not remove the need to design the structure.

The FPGA case makes this particularly clear. The authors build a hardware interface and a backend before automatic scheduling can use the device. The reported implementation size is encouraging for that case, but it does not demonstrate equal effort for a substantially different accelerator.

Similarly, the default predictor uses features selected to describe loop-program behavior. Its success supports that representation on the tested workloads. It does not show that the same features capture every future performance mechanism.

The exploration process also consumes real device time. A fast predictor reduces the burden of choosing experiments, but candidate measurements remain necessary. The paper demonstrates a useful search strategy without establishing a universal tuning budget for all targets.

Runtime evidence is not a complete deployment evaluation

Execution speed is the main outcome. The results do not provide a general evaluation of energy use, long-term operational reliability, or every aspect of deployment overhead. Those questions may matter in practice, especially on constrained devices, but they require their own measurements.

The paper states that TVM is open source and already used in production by several major companies. That establishes the authors’ reported deployment status, but the experimental sections do not turn those deployments into a detailed comparative study.

Finally, the operator descriptions and schedule transformations are intended to preserve the computation. The performance comparisons should not be read as a comprehensive analysis of numerical behavior across every generated implementation. Correctness and speed are connected requirements, but a runtime result alone cannot settle every question about arithmetic choices or output agreement.

What came after

TVM’s continuing significance lies in the connected questions it makes concrete: how to represent a computation, how to generate efficient implementations, how to search among them, and how to retain whole-program visibility. The later citation record spans these questions at different levels.

A citation establishes that a later work engages with TVM in some way. It does not, by itself, establish code reuse, direct technical inheritance, or adoption of a particular scheduling mechanism. The following connections are therefore clearest where the later work’s stated subject identifies the shared problem.

Learning and searching over tensor implementations

Learning to Optimize Tensor Programs is the most direct thematic continuation of TVM’s automatic-optimization component. Its stated subject places learning inside the process of choosing tensor implementations. TVM’s relevant contribution is the feedback loop between candidate programs, measured execution, and a predictor that helps choose further candidates.

The citation record supports identifying this as continuing research on learned tensor optimization. It does not supply enough detail to compare its training procedure, search algorithm, or results with the earlier compiler.

Triton addresses an intermediate language and compiler for tiled neural computations. This shares TVM’s concern with the representation between a high-level operation and efficient execution. Tiling is precisely the kind of implementation structure that TVM places within scheduling.

The connection is useful conceptually: a compiler’s representation determines which performance choices can be expressed and optimized. The citation alone does not show that Triton adopts TVM’s template system or learned predictor.

Whole-program compilation and graph transformation

PyTorch 2 concerns dynamic Python bytecode transformation together with graph compilation. Its stated scope returns to the boundary between a user-facing programming environment and an optimizing compiler.

TVM had already argued that a practical optimization stack must accept computations from familiar frameworks and connect graph decisions to executable code. The later work belongs to that broader compilation problem, although its particular transformations and performance results cannot be reconstructed from the citation information.

TASO focuses on automatically generating graph substitutions. It addresses the high-level transformation side of the problem that TVM combines with operator generation.

The relationship highlights complementary concerns. A system needs to identify useful alternative graphs, and it needs efficient implementations of the operations those graphs contain. TVM’s architecture makes the latter important to the practical value of the former. The later title supports a connection through graph substitution, without establishing that the systems use the same substitution rules.

Alpa addresses automatic parallelism both between operations and within them for distributed deep learning. Its scope brings the interaction between optimization levels into a distributed setting.

TVM’s own distinction is between graph-level decisions and operator-level schedules on its targets. Alpa’s stated subject makes the related lesson visible: decisions about where operations execute and how each operation executes cannot always be treated independently. The citation information does not establish identical algorithms or representations.

Specialized kernels and application-wide bottlenecks

Flex Attention concerns a programming interface for generating optimized attention kernels. Its stated purpose shares TVM’s interest in descriptions that expose enough structure for efficient code generation.

Liger Kernel concerns efficient Triton kernels for training. It belongs to the continuing effort to make specialized operations execute well. The citation does not establish that either work uses TVM’s learned search or tensor-intrinsic interface.

Deep Kernel Fusion for Transformers takes fusion as its explicit subject. TVM’s fusion analysis supplies an earlier example of why removing intermediate storage can matter. The later title indicates a more specific application area, but the available information does not support transferring TVM’s measured speedups to it.

Orca concerns distributed serving for transformer-based generation. This shifts attention from kernel compilation to the behavior of a serving system. TVM’s FPGA experiment provides a relevant caution for that broader setting: accelerating selected operations does not determine application performance when other work remains dominant.

These later citations show the range of research questions around TVM’s central proposition. Efficient execution depends on coordinated choices across representations, generated kernels, and complete systems. What each later work inherits technically must be established from its own account; TVM’s paper establishes the earlier compiler design and the measurements supporting it.

 Institutions

 Fields, topics and concepts

Appears in

Mentioned in articles aboutSacramento Shanghai

Cite

Cite as Tianqi Chen, Thierry Moreau, Ziheng Jiang, Lianmin Zheng, Eddie Yan, Meghan Cowan, Haichen Shen, Leyuan Wang, Yuwei Hu, Luis Ceze, Carlos Guestrin and Arvind Krishnamurthy. 2018. TVM: An Automated End-to-End Optimizing Compiler for Deep Learning. arXiv:1802.04799.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.1802.04799 · arXiv 1802.04799

@misc{chen2018tvm,
  title = {{TVM: An Automated End-to-End Optimizing Compiler for Deep Learning}},
  author = {Tianqi Chen, Thierry Moreau, Ziheng Jiang, Lianmin Zheng, Eddie Yan, Meghan Cowan, Haichen Shen, Leyuan Wang, Yuwei Hu, Luis Ceze, Carlos Guestrin and Arvind Krishnamurthy},
  year = {2018},
  doi = {10.48550/arxiv.1802.04799},
  eprint = {1802.04799},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1802.04799}
}

References

48 references, from the paper's own bibliography.

  1. NVIDIA Tesla V100 GPU Architecture: The World's Most Advanced Data Center GPU, 2017. our card
  2. Abadi, M., Agarwal, A., Barham, P., Brevdo, E., Chen, Z., Citro, C., Corrado, G. S., Davis, A., Dean, J., Devin, M., Ghemawat, S., Goodfellow, I., Harp, A., Irving, G., Isard, M., Jia, Y., Jozefowicz, R., Kaiser, L., Kudlur, M., Levenberg, J., Mané, D., Monga, R., Moore, S., Murray, D., Olah, C., Schuster, M., Shlens, J., Steiner, B., Sutskever, I., Talwar, K., Tucker, P., Vanhoucke, V., Vasudevan, V., Viégas, F., Vinyals, O., Warden, P., Wattenberg, M., Wicke, M., Yu, Y., and Zheng, X. TensorFlow: Large-scale machine learning on heterogeneous systems, 2015. Software available from tensorflow.org. OpenAlex ↗ · Scholar ↗
  3. Abadi, M., Barham, P., Chen, J., Chen, Z., Davis, A., Dean, J., Devin, M., Ghemawat, S., Irving, G., Isard, M., Kudlur, M., Levenberg, J., Monga, R., Moore, S., Murray, D. G., Steiner, B., Tucker, P., Vasudevan, V., Warden, P., Wicke, M., Yu, Y., and Zheng, X. Tensorflow: A system for large-scale machine learning. In 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI 16) (2016), pp. 265–283. our card
  4. Agarwal, A., Akchurin, E., Basoglu, C., Chen, G., Cyphers, S., Droppo, J., Eversole, A., Guenter, B., Hillebrand, M., Hoens, R., Huang, X., Huang, Z., Ivanov, V., Kamenev, A., Kranen, P., Kuchaiev, O., Manousek, W., May, A., Mitra, B., Nano, O., Navarro, G., Orlov, A., Padmilac, M., Parthasarathi, H., Peng, B., Reznichenko, A., Seide, F., Seltzer, M. L., Slaney, M., Stolcke, A., Wang, Y., Wang, H., Yao, K., Yu, D., Zhang, Y., and Zweig, G. An introduction to computational networks and the computational network toolkit. Tech. Rep. MSR-TR-2014-112, August 2014. OpenAlex ↗ · Scholar ↗
  5. Ansel, J., Kamil, S., Veeramachaneni, K., Ragan-Kelley, J., Bosboom, J., O'Reilly, U.-M., and Amarasinghe, S. Opentuner: An extensible framework for program autotuning. In International Conference on Parallel Architectures and Compilation Techniques (Edmonton, Canada, August 2014). OpenAlex ↗ · Scholar ↗
  6. Baghdadi, R., Beaugnon, U., Cohen, A., Grosser, T., Kruse, M., Reddy, C., Verdoolaege, S., Betts, A., Donaldson, A. F., Ketema, J., Absar, J., Haastregt, S. v., Kravets, A., Lokhmotov, A., David, R., and Hajiyev, E. Pencil: A platform-neutral compute intermediate language for accelerator programming. In Proceedings of the 2015 International Conference on Parallel Architecture and Compilation (PACT) (Washington, DC, USA, 2015), PACT '15, IEEE Computer Society, pp. 138–149. OpenAlex ↗ · Scholar ↗
  7. Bastien, F., Lamblin, P., Pascanu, R., Bergstra, J., Goodfellow, I. J., Bergeron, A., Bouchard, N., and Bengio, Y. Theano: new features and speed improvements. Deep Learning and Unsupervised Feature Learning NIPS 2012 Workshop, 2012. our card
  8. Chen, T., and Guestrin, C. Xgboost: A scalable tree boosting system. In Proceedings of the 22Nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (New York, NY, USA, 2016), KDD '16, ACM, pp. 785–794. our card
  9. Chen, T., Li, M., Li, Y., Lin, M., Wang, N., Wang, M., Xiao, T., Xu, B., Zhang, C., , and Zhang, Z. MXNet: A flexible and efficient machine learning library for heterogeneous distributed systems. In Neural Information Processing Systems, Workshop on Machine Learning Systems (LearningSys'15) (2015). our card
  10. Chen, T.-F., and Baer, J.-L. Effective hardware-based data prefetching for high-performance processors. IEEE Transactions on Computers 44, 5 (May 1995), 609–623. OpenAlex ↗ · Scholar ↗
  11. Chen, Y., Luo, T., Liu, S., Zhang, S., He, L., Wang, J., Li, L., Chen, T., Xu, Z., Sun, N., and Temam, O. Dadiannao: A machine-learning supercomputer. In Proceedings of the 47th Annual IEEE/ACM International Symposium on Microarchitecture (Washington, DC, USA, 2014), MICRO-47, IEEE Computer Society, pp. 609–622. OpenAlex ↗ · Scholar ↗
  12. Chen, Y.-H., Emer, J., and Sze, V. Eyeriss: A spatial architecture for energy-efficient dataflow for convolutional neural networks. In Proceedings of the 43rd International Symposium on Computer Architecture (Piscataway, NJ, USA, 2016), ISCA '16, IEEE Press, pp. 367–379. OpenAlex ↗ · Scholar ↗
  13. Courbariaux, M., Bengio, Y., and David, J. Binaryconnect: Training deep neural networks with binary weights during propagations. CoRR abs/1511.00363 (2015). our card
  14. Eggers, S. J., Emer, J. S., Levy, H. M., Lo, J. L., Stamm, R. L., and Tullsen, D. M. Simultaneous multithreading: a platform for next-generation processors. IEEE Micro 17, 5 (Sept 1997), 12–19. OpenAlex ↗ · Scholar ↗
  15. Frigo, M., and Johnson, S. G. Fftw: an adaptive software architecture for the fft. In Acoustics, Speech and Signal Processing, 1998. Proceedings of the 1998 IEEE International Conference on (May 1998), vol. 3, pp. 1381–1384 vol.3. OpenAlex ↗ · Scholar ↗
  16. He, K., Zhang, X., Ren, S., and Sun, J. Identity mappings in deep residual networks. arXiv preprint arXiv:1603.05027 (2016). OpenAlex ↗ · Scholar ↗
  17. Hegarty, J., Brunhaver, J., DeVito, Z., Ragan-Kelley, J., Cohen, N., Bell, S., Vasilyev, A., Horowitz, M., and Hanrahan, P. Darkroom: Compiling high-level image processing code into hardware pipelines. ACM Trans. Graph. 33, 4 (July 2014), 144:1–144:11. OpenAlex ↗ · Scholar ↗
  18. Henriksen, T., Serup, N. G. W., Elsman, M., Henglein, F., and Oancea, C. E. Futhark: Purely functional gpu-programming with nested parallelism and in-place array updates. In Proceedings of the 38th ACM SIGPLAN Conference on Programming Language Design and Implementation (New York, NY, USA, 2017), PLDI 2017, ACM, pp. 556–571. OpenAlex ↗ · Scholar ↗
  19. Howard, A. G., Zhu, M., Chen, B., Kalenichenko, D., Wang, W., Weyand, T., Andreetto, M., and Adam, H. Mobilenets: Efficient convolutional neural networks for mobile vision applications. CoRR abs/1704.04861 (2017). our card
  20. Jouppi, N. P. Improving direct-mapped cache performance by the addition of a small fully-associative cache and prefetch buffers. In [1990] Proceedings. The 17th Annual International Symposium on Computer Architecture (May 1990), pp. 364–373. OpenAlex ↗ · Scholar ↗
  21. Jouppi, N. P., Young, C., Patil, N., Patterson, D., Agrawal, G., Bajwa, R., Bates, S., Bhatia, S., Boden, N., Borchers, A., Boyle, R., Cantin, P.-l., Chao, C., Clark, C., Coriell, J., Daley, M., Dau, M., Dean, J., Gelb, B., Ghaemmaghami, T. V., Gottipati, R., Gulland, W., Hagmann, R., Ho, C. R., Hogberg, D., Hu, J., Hundt, R., Hurt, D., Ibarz, J., Jaffey, A., Jaworski, A., Kaplan, A., Khaitan, H., Killebrew, D., Koch, A., Kumar, N., Lacy, S., Laudon, J., Law, J., Le, D., Leary, C., Liu, Z., Lucke, K., Lundin, A., MacKean, G., Maggiore, A., Mahony, M., Miller, K., Nagarajan, R., Narayanaswami, R., Ni, R., Nix, K., Norrie, T., Omernick, M., Penukonda, N., Phelps, A., Ross, J., Ross, M., Salek, A., Samadiani, E., Severn, C., Sizikov, G., Snelham, M., Souter, J., Steinberg, D., Swing, A., Tan, M., Thorson, G., Tian, B., Toma, H., Tuttle, E., Vasudevan, V., Walter, R., Wang, W., Wilcox, E., and Yoon, D. H. In-datacenter performance analysis of a tensor processing unit. In Proceedings of the 44th Annual International Symposium on Computer Architecture (New York, NY, USA, 2017), ISCA '17, ACM, pp. 1–12. our card
  22. Kirkpatrick, S., Gelatt, C. D., and Vecchi, M. P. Optimization by simulated annealing. Science 220, 4598 (1983), 671–680. OpenAlex ↗ · Scholar ↗
  23. Kjolstad, F., Kamil, S., Chou, S., Lugato, D., and Amarasinghe, S. The tensor algebra compiler. Proc. ACM Program. Lang. 1, OOPSLA (Oct. 2017), 77:1–77:29. OpenAlex ↗ · Scholar ↗
  24. Klöckner, A. Loo.py: transformation-based code generation for GPUs and CPUs. In Proceedings of ARRAY `14: ACM SIGPLAN Workshop on Libraries, Languages, and Compilers for Array Programming (Edinburgh, Scotland., 2014), Association for Computing Machinery. OpenAlex ↗ · Scholar ↗
  25. Lavin, A., and Gray, S. Fast algorithms for convolutional neural networks. In 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016 (2016), pp. 4013–4021. our card
  26. Li, L., Jamieson, K. G., DeSalvo, G., Rostamizadeh, A., and Talwalkar, A. Efficient hyperparameter optimization and infinitely many armed bandits. CoRR abs/1603.06560 (2016). OpenAlex ↗ · Scholar ↗
  27. Liu, D., Chen, T., Liu, S., Zhou, J., Zhou, S., Teman, O., Feng, X., Zhou, X., and Chen, Y. Pudiannao: A polyvalent machine learning accelerator. In Proceedings of the Twentieth International Conference on Architectural Support for Programming Languages and Operating Systems (New York, NY, USA, 2015), ASPLOS '15, ACM, pp. 369–381. OpenAlex ↗ · Scholar ↗
  28. Mnih, V., Kavukcuoglu, K., Silver, D., Rusu, A. A., Veness, J., Bellemare, M. G., Graves, A., Riedmiller, M., Fidjeland, A. K., Ostrovski, G., et al. Human-level control through deep reinforcement learning. Nature 518, 7540 (2015), 529. OpenAlex ↗ · Scholar ↗
  29. Mullapudi, R. T., Adams, A., Sharlet, D., Ragan-Kelley, J., and Fatahalian, K. Automatically scheduling halide image processing pipelines. ACM Trans. Graph. 35, 4 (July 2016), 83:1–83:11. OpenAlex ↗ · Scholar ↗
  30. Palkar, S., Thomas, J. J., Narayanan, D., Shanbhag, A., Palamuttam, R., Pirk, H., Schwarzkopf, M., Amarasinghe, S. P., Madden, S., and Zaharia, M. Weld: Rethinking the interface between data-intensive applications. CoRR abs/1709.06416 (2017). OpenAlex ↗ · Scholar ↗
  31. Radford, A., Metz, L., and Chintala, S. Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434 (2015). our card
  32. Ragan-Kelley, J., Barnes, C., Adams, A., Paris, S., Durand, F., and Amarasinghe, S. Halide: A language and compiler for optimizing parallelism, locality, and recomputation in image processing pipelines. In Proceedings of the 34th ACM SIGPLAN Conference on Programming Language Design and Implementation (New York, NY, USA, 2013), PLDI '13, ACM, pp. 519–530. OpenAlex ↗ · Scholar ↗
  33. Rastegari, M., Ordonez, V., Redmon, J., and Farhadi, A. Xnor-net: Imagenet classification using binary convolutional neural networks. In European Conference on Computer Vision (2016), Springer, pp. 525–542. our card
  34. Sharma, H., Park, J., Mahajan, D., Amaro, E., Kim, J. K., Shao, C., Mishra, A., and Esmaeilzadeh, H. From high-level deep neural models to fpgas. In Microarchitecture (MICRO), 2016 49th Annual IEEE/ACM International Symposium on (2016), IEEE, pp. 1–12. OpenAlex ↗ · Scholar ↗
  35. Smith, J. E. Decoupled access/execute computer architectures. In Proceedings of the 9th Annual Symposium on Computer Architecture (Los Alamitos, CA, USA, 1982), ISCA '82, IEEE Computer Society Press, pp. 112–119. OpenAlex ↗ · Scholar ↗
  36. Steuwer, M., Remmelg, T., and Dubach, C. Lift: A functional data-parallel ir for high-performance gpu code generation. In Proceedings of the 2017 International Symposium on Code Generation and Optimization (Piscataway, NJ, USA, 2017), CGO '17, IEEE Press, pp. 74–85. OpenAlex ↗ · Scholar ↗
  37. Sujeeth, A. K., Lee, H., Brown, K. J., Chafi, H., Wu, M., Atreya, A. R., Olukotun, K., Rompf, T., and Odersky, M. Optiml: An implicitly parallel domain-specific language for machine learning. In Proceedings of the 28th International Conference on International Conference on Machine Learning (USA, 2011), ICML'11, pp. 609–616. OpenAlex ↗ · Scholar ↗
  38. Tai, K. S., Socher, R., and Manning, C. D. Improved semantic representations from tree-structured long short-term memory networks. arXiv preprint arXiv:1503.00075 (2015). our card
  39. Tulloch, A., and Jia, Y. High performance ultra-low-precision convolutions on mobile devices. arXiv preprint arXiv:1712.02427 (2017). OpenAlex ↗ · Scholar ↗
  40. Umuroglu, Y., Fraser, N. J., Gambardella, G., Blott, M., Leong, P. H. W., Jahre, M., and Vissers, K. A. FINN: A framework for fast, scalable binarized neural network inference. CoRR abs/1612.07119 (2016). OpenAlex ↗ · Scholar ↗
  41. Vasilache, N. personal communication. OpenAlex ↗ · Scholar ↗
  42. Vasilache, N., Zinenko, O., Theodoridis, T., Goyal, P., DeVito, Z., Moses, W. S., Verdoolaege, S., Adams, A., and Cohen, A. Tensor comprehensions: Framework-agnostic high-performance machine learning abstractions. CoRR abs/1802.04730 (2018). our card
  43. Verdoolaege, S., Carlos Juega, J., Cohen, A., Ignacio Gómez, J., Tenllado, C., and Catthoor, F. Polyhedral parallel code generation for cuda. ACM Trans. Archit. Code Optim. 9, 4 (Jan. 2013), 54:1–54:23. OpenAlex ↗ · Scholar ↗
  44. Volkov, V. Understanding Latency Hiding on GPUs. PhD thesis, University of California at Berkeley, 2016. OpenAlex ↗ · Scholar ↗
  45. Wei, R., Adve, V., and Schwartz, L. Dlvm: A modern compiler infrastructure for deep learning systems. CoRR abs/1711.03016 (2017). OpenAlex ↗ · Scholar ↗
  46. Whaley, R. C., and Dongarra, J. J. Automatically tuned linear algebra software. In Proceedings of the 1998 ACM/IEEE Conference on Supercomputing (Washington, DC, USA, 1998), SC '98, IEEE Computer Society, pp. 1–27. OpenAlex ↗ · Scholar ↗
  47. Williams, S., Waterman, A., and Patterson, D. Roofline: An insightful visual performance model for multicore architectures. Commun. ACM 52, 4 (Apr. 2009), 65–76. our card
  48. Zaremba, W., Sutskever, I., and Vinyals, O. Recurrent neural network regularization. arXiv preprint arXiv:1409.2329 (2014). our card

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/chen-2018-tvm-automated-end-end-optimizing/