CS Paper Radar

Sliced Tensor Operators for Large-Scale Topology Optimization

Pedro Zuidberg Dos Martires, Gustavo Assis da Silva

cs.CE ·submitted 2026-11-21 20:04 UTC · v1
benchmarkhot direction

Abstract

Large-scale three-dimensional topology optimization is constrained by both the cost of repeatedly solving the governing finite-element equations and the memory required by these computations. Memory consumption can be controlled through specialized low-level implementations, but developing, optimizing, and extending such code requires substantial effort and hardware-specific expertise. High-level tensor programming frameworks, which support automatic differentiation, offer an attractive alternative: numerical operations can be expressed compactly, while their compilers generate highly optimized code for CPUs and GPUs. However, a direct tensor formulation creates intermediate arrays that can quickly exhaust the available memory. We address this limitation through memory-bounded tensor operators for matrix-free finite-element analysis and Galerkin multigrid. The fine-grid stiffness action is evaluated in overlapping spatial slices, and on coarse grids, the Galerkin operator is retained in a factorized representation consisting of fine-grid stiffness interpolation coefficients and precomputed local operators. This representation permits its action to be evaluated without materializing a spatially varying stiffness operator on every coarse grid, while preserving the exact Galerkin hierarchy. We implement these formulations in topax, a modular JAX library for two- and three-dimensional density-based topology optimization supporting CPUs and GPUs. On a single NVIDIA GH200, topax performs 50 design iterations for a problem with more than 809 million displacement degrees of freedom in approximately $24.5$ minutes. Across the common GPU benchmark, it is up to $13.6$ times faster than the fastest competing implementation and uses less than half the device memory for the largest problem.

Closest papers

Nearest neighbours by meaning across the whole index.

Extensible Programmatic Specification of Finite Element Methods

cs.MS cs.GRcs.PL ·2026-11-01 ·Theadora Fields Collin, Oded Stein, Gilbert Bernstein, Saman Amarasinghe
similarity 0.64
Abstract · 52 pages, 25 figures, including appendices

Finite element methods (FEMs) are a powerful and ubiquitous tool for solving engineering problems. Experimenting with different finite elements can improve the quality and efficiency of solutions. In some cases, the wrong (but nonetheless most common) choice of finite element will produce solutions which converge to the wrong answer regardless of mesh resolution. However, in practice, the choice of finite element is not explored due to the complexity of re-deriving and re-implementing finite element methods. Trying a new finite element is challenging because practitioners must manually deduce formulas to use these elements and implement them within a potentially complex system. We address this problem by introducing ElementForge, a finite element system that is parametric over the literate mathematical specification of a finite element in a domain-specific language (DSL). The ElementForge compiler reasons about tensor spaces, tensors, and tensor bases from first principles to derive implementations of finite elements. The ElementForge compiler is able to automatically derive implementations of finite elements previously only derived by hand. Further, ElementForge minimally couples several key mathematical concepts, mainly tensor fields, mesh topologies, sparse tensors, and assembled finite element operators, to produce a complete finite element system that is parametric over the choice of element. Consequently, the elements derived by the compiler can be applied parametrically to new meshes, PDEs, and boundary conditions. We evaluate our system by implementing several simulations with different finite elements, demonstrating that our system can explore tradeoffs in generality, accuracy, speed, and representational complexity. For example, we are able to implement the Morley, Bell, Argyris, and Hermite like elements with less than 50 lines of code and use them all in a single simulation.

0.29

Axion: A differentiable, GPU-native finite element framework,demonstrated on phase-field fracture

cs.CE ·2026-11-18 ·Wei Wang, Meenu Krishnan U., Somdatta Goswami
benchmarkcode/data similarity 0.62
Abstract · 35 pages, 9 figures

We introduce Axion (Autodifferentiable, XLA-compiled, Implicit, On-device Numerics), a differentiable, GPU-native finite element framework written in JAX. The element kernels, Newton and Krylov iterations, bound-constrained updates, staggered coupling of fields, and the loop over load increments are expressed as a single program that is just-in-time compiled and executed on the GPU without host intervention. Consistent tangent operators are obtained by forward-mode automatic differentiation of the element residual, and derivatives of the discrete solution with respect to model parameters are obtained by differentiating the same program. Global operators are applied element by element without assembling a sparse matrix, octree mesh refinement is performed within fixed-size arrays, and a cell-based domain decomposition runs the same program on several GPUs. Phase-field fracture is implemented as the first module because it combines fine mesh resolution, bound-constrained damage, and repeated nonlinear solves over a loading history, which together make it computationally expensive. On two- and three-dimensional single-edge-notched tension benchmarks, a uniformly refined Axion computation completes faster than the corresponding adaptive FEniCSx computation. At identical discretization, the two-dimensional benchmark runs 37.9 times faster on one GPU than a FEniCSx implementation on one CPU. Strong and weak scaling efficiencies on four GPUs are 92% and 96%, respectively. Large-scale demonstrations include hydraulic fracture in a poroelastic medium (0.38M degrees of freedom), fracture of a multi-material premolar under contact loading (0.69M degrees of freedom), and a concrete gravity dam (96M degrees of freedom) on a single GPU. The implementation is available as open-source software.

0.52

AscSpMM: Efficient SpMM on Ascend NPUs via Pipelined Vector-Cube Collaboration

cs.AR ·2026-11-09 ·Fei Li, Haoxin Li, Kehong Liu, Yanzi Zhou, Weiguo Wu +3 more
code/data similarity 0.62
Abstract · 13 pages, 11 figures

Neural processing units (NPUs) provide high compute density and energy efficiency through specialized matrix engines and software-managed on-chip memory. However, their libraries primarily target dense computation. Sparse matrix-dense matrix multiplication (SpMM), a key kernel in graph analytics, sparse neural networks, and scientific computing, requires index-driven operand selection, indirect addressing, scattered memory accesses, and load balancing. These requirements conflict with the fixed shapes and contiguous layouts preferred by NPU matrix engines. GPU Tensor Core SpMM methods cannot be directly transferred to NPUs with decoupled vector and matrix engines. We present AscSpMM, which separates irregular operand preparation from regular matrix computation through a parameterized Vector-CSR representation. The vector engine decodes indices and gathers and reorganizes dense operands, while the Cube engine performs matrix multiply-accumulate operations. A double-slot ring buffer enables dependency-aware asynchronous pipelining, while operand reuse and runtime-adaptive tiling reduce cross-engine stalls. On an Ascend 910B3, AscSpMM achieves geometric-mean speedups of 2.36x over GEMM, 19.92x over an existing SpMM implementation, and 5.82x over cuSPARSE on an A100. It reduces matrix-input storage and peak HBM footprint by 48.24% and 22.98% on average, while remaining competitive with specialized GPU Tensor Core SpMM kernels. The code is available at https://github.com/LfLab-AI/Ascend-NPU-SpMM.

0.31

Mixed-precision GPU algorithms for efficient turbulent flow simulations with Raviart-Thomas finite elements

cs.MS physics.flu-dynmath.NA ·2026-09-17 ·Ivan Prusak, Enes Mustafa Soydan, Ivan Pribec, Martin Kronbichler
similarity 0.62
Abstract · 19 pages, 9 figures, 5 tables

We propose GPU algorithms for high-fidelity simulation of incompressible turbulent flows. Discretization in space is performed with H(div)-conforming high-order Raviart-Thomas finite elements for the velocity and an $L^2$-conforming discontinuous Galerkin approximation for the pressure. In time, a consistent splitting scheme based on higher-order BDF time stepping is used, with convection treated explicitly. In this scheme, a pressure Poisson equation and a symmetric reaction-diffusion-type equation for the velocity need to be solved in each time step. We develop a solution framework with fast matrix-free operator evaluation for all ingredients, combined with multigrid solvers for the Poisson problem, and propose a robust mixed-precision algorithmic framework. A key to mixed-precision efficiency is a least-squares projection to generate accurate initial guesses for the iterative linear solvers, enabling us to work with relative residual tolerances of $10^{-3}$. In this regime, running the solvers entirely in single precision leads to almost no change in overall iteration counts and maintains the crucial turbulence statistics, while showing up to $1.7\times$ speedup over pure double-precision simulations.

0.52

Performance Analysis of Low-Order, GPU-accelerated Finite Element Kernels using Kokkos

cs.PF ·2026-09-18 ·Fabian Böhm, Nils Kohl, Harald Köstler, Ulrich Rüde
similarity 0.61
Abstract

We study performance portability for low-order, matrix-free finite element kernels, using the example of a vectorial, variable-coefficient PDE operator originating in geophysical models. Written in Kokkos, the kernel is compared on NVIDIA H100, AMD MI250X, AMD MI300A and Intel PVC Max 1550 GPUs. Owing to its low order and to optimizations that reduce the arithmetic, the kernel has a low arithmetic intensity, so that its performance is determined by how the finite element assembly is mapped onto the memory hierarchy. This is a dimension in which the architectures differ even within one vendor family, causing different performance characteristics. We examine how Kokkos' hierarchical parallelism and shared scratch memory, which are used for the shared degrees of freedom of the conforming discretization, behave on each device. Finally, we show how portability gaps can be narrowed with tuning levers such as the size of the thread groups, the balance between occupancy and register use, and the atomic accumulation strategy at the end of the kernel.

0.48

SparseConflicts: Handling Conflicting Data Layouts in Sparse Tensor Contractions

cs.PL ·2026-09-06 ·Adhitha Dias, Kirshanthan Sundararajah, Artem Pelenitsyn, Milind Kulkarni
similarity 0.61
Abstract · 25 pages, 18 figures, 2 tables

Optimizing sparse tensor computations is challenging due to the use of compressed storage formats, which leads to non-affine loop nests and a vast, complex schedule space. The performance of a given schedule is sensitive to the sparsity pattern of the input tensors, making it difficult to find a single optimal solution. When input tensors in the same tensor contraction have conflicting data layouts in relation to the iteration order, it requires costly-both in time and memory-layout transformation, such as transposition. A promising but under-explored alternative is to generate a schedule that avoids explicit transposition, but this has not been systematically supported in existing compilers. This paper presents a new code generation strategy that generalizes the intermediate representation of the TACO sparse tensor compiler to generate a single loop nest, circumventing explicit transposition of tensors when the tensors have conflicting data layout iteration orders. We extend TACOś iteration graph to express a search-based strategy for locating elements in tensors with conflicting layouts, and we introduce new intermediate representation nodes to lower these schedules to efficient code. This enables the systematic generation of loops that do not require explicit transposition, thus avoiding the overhead of materializing temporary tensors. We evaluate our approach on a set of sparse tensor contractions using both real-world and synthetic datasets. Our results demonstrate that for computations with misaligned data layouts, our fused approach achieves up to 2x speedup for some sparsity patterns over the traditional approach of explicitly creating a transposed temporary. We also provide guidelines for when this new scheduling strategy is likely to be beneficial.

0.35

Representing Tensors as Compositions for Efficient Computation on Sparse and Structured Data

cs.LG cs.MScs.PL ·2026-11-07 ·Valérian Rey, Praneth Paruchuri
code/data similarity 0.61
Abstract · 15 pages, 6 figures

We propose a new mathematical formalism in which all kinds of tensors and of operations on those tensors are represented as simple function compositions. Tensors are functions from indices to values. An element-wise operation (e.g. an activation function) is a composition with a function applied to values; re-indexing (e.g. reshape, transposition) is a composition with a function applied to indices; and a reduction is a composition with both an index function, mapping each index to several indices, and a reduction operation (e.g. product, sum, max). Combined with tensor stacking, these compositions can represent most interesting kinds of tensors (e.g. dense, jagged, all kinds of sparsity patterns, matrix factorizations), as well as lazy versions of almost every operation available in modern tensor computation frameworks, including einsums between tensors of any kind. Identities between compositions can then be used to rewrite such expressions into equivalent ones, without evaluating them. For instance, the product of two sparse matrices can be rewritten so that only products between non-zero values are computed, turning a sparse problem into a dense one. Using this algebra as the intermediate representation of a tensor computation engine would shift the focus from defining operations on tensors (e.g. einsum between sparse tensors) to defining an algebra on index functions. This should reduce the codebase complexity from $\mathcal{O}(mn^2)$, with $m$ the number of binary operations between tensors and $n$ the number of tensor types, to $\mathcal{O}(m + k^2)$, with $k$ the number of types of index functions. A draft implementation of a tensor computation framework based on this algebra is publicly available.

0.19

ParaBMG: A Parallel Block Multigrid Framework for Large-Scale Evolving Sparse Systems on Unstructured Meshes

cs.GR ·2026-11-20 ·Kangbo Lyu, Mingqi Geng, Jinchen Jiang, Yu Wang, Minchen Li +1 more
benchmark similarity 0.61
Abstract

Solving large-scale, evolving sparse linear systems on unstructured meshes remains the primary performance bottleneck in many GPU-accelerated geometry processing pipelines. Although modern linear solvers like multigrid and multilevel additive Schwarz (MAS) methods offer fast convergence and strong parallelization potential, a unified benchmark and solver design tailored for geometry processing tasks have been lacking. Addressing this gap, we present ParaBMG, a parallel block multigrid preconditioning framework that combines fully parallel geometric hierarchy construction, fast block-Jacobi smoothing, and GPU-optimized operators. We develop CUDA implementations of four standard geometry processing pipelines to form a large-scale benchmark for GPU linear solvers, comprising more than 40K linear systems with up to 6.6M unknowns. Across comparisons in this dataset, ParaBMG achieves speedups of 3.7x-7.7x over strong general-purpose algebraic multigrid baselines, 6x-105x speedups over our custom GPU implementations of the state-of-the-art CPU multigrid solvers for Poisson problems, and 6x-96x speedups over MAS. Compared with open-sourced multigrid baselines, ParaBMG reduces repeated hierarchy construction costs through hierarchy reuse and improves convergence through MAS-inspired block-Jacobi smoothing. Compared with MAS, the complementary coarse corrections reduce iteration counts by an order of magnitude while maintaining low per-iteration costs. It enables three interactive geometry processing applications with order-of-magnitude speedups over their public implementations.

0.13