# tensors

Published articles for tensors.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## What's in a Tree ? Hierarchical $n$-gram models as controlled approximators of language

DevFeed: [What's in a Tree ? Hierarchical $n$-gram models as controlled approximators of language](<https://devfeed.tech/articles/what-s-in-a-tree-hierarchical-n-gram-models-as-controlled-approximators-of-language-140119.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.23093>)

Author: Aritra Das, Francesco Cagnetta, Darshil Doshi, Victor V. Albert, Maissam Barkeshli, Andrey Gromov

Published: 2026-11-18T05:00:00Z

Content type: news

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [scaling laws](<https://devfeed.tech/topics/scaling-laws.md>)

Tags: [autoregressive](<https://devfeed.tech/tags/autoregressive.md>), [capacity](<https://devfeed.tech/tags/capacity.md>), [composition](<https://devfeed.tech/tags/composition.md>), [cond-mat-dis-nn](<https://devfeed.tech/tags/cond-mat-dis-nn.md>), [conditional](<https://devfeed.tech/tags/conditional.md>), [conditional-probability](<https://devfeed.tech/tags/conditional-probability.md>), [context](<https://devfeed.tech/tags/context.md>), [context-window](<https://devfeed.tech/tags/context-window.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [entropy](<https://devfeed.tech/tags/entropy.md>), [fine-tuning](<https://devfeed.tech/tags/fine-tuning.md>), [generative-models](<https://devfeed.tech/tags/generative-models.md>), [gram](<https://devfeed.tech/tags/gram.md>), [language](<https://devfeed.tech/tags/language.md>), [models](<https://devfeed.tech/tags/models.md>), [performance](<https://devfeed.tech/tags/performance.md>), [pruning](<https://devfeed.tech/tags/pruning.md>), [routing](<https://devfeed.tech/tags/routing.md>), [sparsity](<https://devfeed.tech/tags/sparsity.md>), [tensors](<https://devfeed.tech/tags/tensors.md>), [transformer](<https://devfeed.tech/tags/transformer.md>)

### AI overview

Tree-grams are autoregressive n-gram models that compose order-2 and order-3 tensors to form conditional probabilities. Their context window is controlled by n and their capacity by rank d, providing interpretable controls over each. The authors report that tree-grams outperform existing n-gram baselines and remain competitive with deep transformers. As generative models, they make narrower-model hyperparameter transfer under μP more robust when tuning on simpler tree-gram-generated data with moderate n and d. The abstract also reports that entropy and correlation range shape post-fine-tuning performance gaps, and that routing across candidate topologies becomes sparse enough to prune up to 95% without significant performance change.

### Source excerpt

arXiv:2611.23093v1 Announce Type: cross Abstract: Hierarchical models have been proposed as synthetic settings for studying language. However, their relevance to realistic language corpora remains underexplored. In this work, we introduce tree-grams, autoregressive generative $n$-gram models that build the conditional probability tensor $p(x_n \mid x_{1:n-1})$ through a hierarchical composition of order-2 and order-3 tensors. $n$ controls the maximal context window, whereas a rank hyperparameter $d$ controls model capacity, yielding an interpretable and systematically scalable family of approximators of language. We show how tree-grams outperform existing $n$-gram baselines, while remaining competitive with deep transformer-based language models. We demonstrate the utility of such controlled approximations by using tree-grams as generative models. In particular, we show that hyperparameter transfer under $\mu$P can be made more robust when narrower models are tuned on simpler data, generated by tree-grams with moderate $n$ and $d$. In addition, we show that entropy and effective range of correlations control performance gap after fine-tuning. This is because tree-grams allow us to explicitly control horizon and capacity. When allowed to route across candidate topologies, we observe emergent sparsity in tree-grams. Such concentrated routing permits pruning upto 95\% of topologies without significant change in performance.

## Computed Permutation Trellis Coding: Near-Optimal Quantization from Two Multiplications and a 64-Byte Table

DevFeed: [Computed Permutation Trellis Coding: Near-Optimal Quantization from Two Multiplications and a 64-Byte Table](<https://devfeed.tech/articles/computed-permutation-trellis-coding-near-optimal-quantization-from-two-multiplications-and-a-64-byte-table-139947.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.22019>)

Author: Muhammed Fatih Bal{\\i}n

Published: 2026-11-18T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [quantization](<https://devfeed.tech/topics/quantization.md>), [Post-training optimization](<https://devfeed.tech/topics/post-training-optimization.md>), [AWS Trainium](<https://devfeed.tech/topics/aws-trainium.md>)

Tags: [ai-accelerator](<https://devfeed.tech/tags/ai-accelerator.md>), [aws](<https://devfeed.tech/tags/aws.md>), [aws-trainium](<https://devfeed.tech/tags/aws-trainium.md>), [bits](<https://devfeed.tech/tags/bits.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-ar](<https://devfeed.tech/tags/cs-ar.md>), [cs-it](<https://devfeed.tech/tags/cs-it.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [encoding](<https://devfeed.tech/tags/encoding.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [fp4](<https://devfeed.tech/tags/fp4.md>), [fp8](<https://devfeed.tech/tags/fp8.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [kernels](<https://devfeed.tech/tags/kernels.md>), [kl-divergence](<https://devfeed.tech/tags/kl-divergence.md>), [llama](<https://devfeed.tech/tags/llama.md>), [llama-3-1](<https://devfeed.tech/tags/llama-3-1.md>), [llm](<https://devfeed.tech/tags/llm.md>), [math-it](<https://devfeed.tech/tags/math-it.md>), [permutation](<https://devfeed.tech/tags/permutation.md>), [quantization](<https://devfeed.tech/tags/quantization.md>), [table](<https://devfeed.tech/tags/table.md>), [tensors](<https://devfeed.tech/tags/tensors.md>), [trellis](<https://devfeed.tech/tags/trellis.md>)

### AI overview

CPTC jointly encodes tensor values and decodes them using two multiplications plus a 64-byte table, whose unevenly accessed entries can represent tail values. One decoder supports bit widths 1-6 and exactly reproduces standard integer and floating-point formats. The abstract reports that at 4 bits it comes within 0.07 bits of the information-theoretic ideal, matches a random-permutation trellis code with a table thousands of times larger, and exceeds QTIP codebooks. Without fine-tuning, it reports the lowest KL divergence to unquantized Llama 3.1 8B and 70B Instruct weights among tested QTIP comparisons at every tested width, by up to 27%. The decoder is built into AWS Trainium 4; reported throughput matches native FP4/FP8, while fused kernels quantize an 8B model's linear layers in under two minutes on one GPU. The Trainium encoding time is from cycle-level simulation.

### Source excerpt

arXiv:2611.22019v1 Announce Type: cross Abstract: We propose Computed Permutation Trellis Coding (CPTC), a low-bit quantization format for tensors written once and read many times. Formats that round each value on its own, such as INT4 and FP4, waste a large part of their bits against the information-theoretic ideal. Trellis codes recover this loss by encoding values jointly, but prior decoders either need a large lookup table for their best quality or compute values with a hash that restricts what they can decode. CPTC's decoder multiplies its state by two coefficients and adds the top bits of the products to index a 64-byte table. Because that sum is not uniformly distributed, the rarely used ends of a small table can hold values far out in the tails. One decoder serves every bit width from 1 to 6, reproduces the standard integer and floating-point formats exactly, and comes within 0.07 bits of the ideal at 4 bits. It matches a random-permutation trellis code whose table is thousands of times larger, and exceeds every QTIP codebook. In LLM weight quantization without fine-tuning, CPTC has the lowest KL divergence to the unquantized model at every tested bit width on Llama 3.1 8B and 70B Instruct against QTIP's codebooks (by up to 27%). The decoder has been built into the AWS Trainium 4 AI accelerator, where it runs at the throughput of the native FP4 and FP8 formats for a negligible fraction of the systolic array's area. Fused encoding kernels quantize an 8B model's linear layers in under two minutes on one GPU and, in cycle-level simulation, on one Trainium 4 chip.

## DiffATS: Diffusion in Aligned Tensor Space

DevFeed: [DiffATS: Diffusion in Aligned Tensor Space](<https://devfeed.tech/articles/diffats-diffusion-in-aligned-tensor-space-141556.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2605.09275>)

Author: Jinhua Lyu, Tianmin Yu, Brian Kim, Lizhuo Zhou, Chanwook Park, Naichen Shi

Published: 2026-11-18T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Representation learning](<https://devfeed.tech/topics/representation-learning.md>), [Image](<https://devfeed.tech/topics/image.md>)

Tags: [adaptive](<https://devfeed.tech/tags/adaptive.md>), [align](<https://devfeed.tech/tags/align.md>), [alignment](<https://devfeed.tech/tags/alignment.md>), [autoencoders](<https://devfeed.tech/tags/autoencoders.md>), [compression](<https://devfeed.tech/tags/compression.md>), [conditional](<https://devfeed.tech/tags/conditional.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [deep](<https://devfeed.tech/tags/deep.md>), [diffusion](<https://devfeed.tech/tags/diffusion.md>), [diffusion-modeling](<https://devfeed.tech/tags/diffusion-modeling.md>), [diffusion-models](<https://devfeed.tech/tags/diffusion-models.md>), [generation](<https://devfeed.tech/tags/generation.md>), [generative](<https://devfeed.tech/tags/generative.md>), [images](<https://devfeed.tech/tags/images.md>), [low-rank](<https://devfeed.tech/tags/low-rank.md>), [tensors](<https://devfeed.tech/tags/tensors.md>), [videos](<https://devfeed.tech/tags/videos.md>)

### AI overview

DiffATS models images, videos, and PDE solutions by training diffusion models on compact, data-dependent tensor primitives instead of the original high-dimensional fields. It starts with Tucker decomposition, then uses orthogonal Procrustes alignment to resolve ambiguity from rotated factor matrices, with medoid matrices from the data as anchors. The resulting Grassmannian primitives can be decoded through explicit multilinear reconstruction and require no pretrained compression autoencoder. The authors report strong unconditional and conditional generation performance and compression of 3.9x to 210x; the excerpt does not provide dataset-specific results or comparisons.

### Source excerpt

arXiv:2605.09275v2 Announce Type: replace Abstract: Direct diffusion modeling of high-resolution spatiotemporal fields is computationally challenging. Parameter-efficient primitives address this by representing high-dimensional data with a compact set of parameters. In this paper, we construct data-dependent tensor primitives without pretrained compression autoencoders. Our construction starts from Tucker decomposition, which captures low-rank multilinear structure through a core tensor and mode-wise factors. However, Tucker factors are non-unique: the same tensor can be represented by different rotated factors, which complicates generative modeling. We address this issue with orthogonal Procrustes (OP) alignment. Specifically, we select medoid anchor matrices from the data and align the factor matrices to resolve the gauge ambiguity. This yields matrix Grassmannian primitives and tensor Grassmannian primitives that are compact, data-adaptive, and directly decodable by explicit multilinear reconstruction. Theoretically, we prove that the proposed primitive maps are homeomorphisms between low-rank tensors and their corresponding primitive spaces, certifying that the representations are non-degenerate and topologically faithful. Building on these primitives, we propose *Diffusion in Aligned Tensor Space* (DiffATS), a generative framework that trains diffusion models directly on aligned tensor primitives. Across images, videos, and PDE solutions, DiffATS achieves strong unconditional and conditional generation performance while compressing original data by $3.9\times$ to $210\times$, without relying on any pretrained deep compression autoencoders.

## MegNIST, A Benchmark for Non-Invasive Inner Speech Decoding

DevFeed: [MegNIST, A Benchmark for Non-Invasive Inner Speech Decoding](<https://devfeed.tech/articles/megnist-a-benchmark-for-non-invasive-inner-speech-decoding-139164.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.21399>)

Author: Teyun Kwon, Pratik Somaiya, Gereon Elvers, Francesco Mantegna, Anna Camera, Sven Braeutigam, Mark Woolrich, Oiwi Parker Jones

Published: 2026-11-17T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Decoding](<https://devfeed.tech/topics/decoding.md>), [PyTorch](<https://devfeed.tech/topics/pytorch.md>), [reproducibility](<https://devfeed.tech/topics/reproducibility.md>)

Tags: [benchmark](<https://devfeed.tech/tags/benchmark.md>), [benchmark-dataset](<https://devfeed.tech/tags/benchmark-dataset.md>), [classification](<https://devfeed.tech/tags/classification.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [dataset](<https://devfeed.tech/tags/dataset.md>), [decoding](<https://devfeed.tech/tags/decoding.md>), [format](<https://devfeed.tech/tags/format.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [python](<https://devfeed.tech/tags/python.md>), [pytorch](<https://devfeed.tech/tags/pytorch.md>), [recordings](<https://devfeed.tech/tags/recordings.md>), [speech](<https://devfeed.tech/tags/speech.md>), [tensors](<https://devfeed.tech/tags/tensors.md>)

### AI overview

MegNIST provides 12,000 MEG trials from one participant imagining the digits zero through nine across four sessions, offering a benchmark for non-invasive inner-speech decoding. Recordings have 306 channels sampled at 250 Hz and are split by experimental run into 10,000 training, 1,000 validation, and 1,000 test trials to preserve temporal independence. The data are available in BIDS and serialized-tensor formats; the description also notes example code and a PyTorch-compatible loader in pnpl. Baseline classifiers decode imagined digits significantly above chance. The evidence describes a single participant and digit task, so it does not establish performance across people or broader inner speech.

### Source excerpt

arXiv:2611.21399v1 Announce Type: new Abstract: MegNIST is a benchmark dataset for developing and evaluating machine learning methods for inner speech decoding from magnetoencephalography (MEG). The dataset comprises 12,000 trials of a single participant imagining speaking the digits zero through nine, recorded across four sessions. Each trial contains 306-channel MEG recordings sampled at 250 Hz, preprocessed using signal space separation, filtering, and downsampling. Data are provided as pre-defined training (10,000 trials), validation (1,000 trials), and test (1,000 trials) splits, with entire experimental runs assigned to each split to preserve temporal independence. The dataset is available in both BIDS format for neuroimaging analysis and as serialised tensors for machine learning workflows. Baseline classification results demonstrate that imagined digits can be decoded significantly above chance. Standardised splits, validated baselines, example code, and a PyTorch-compatible loader in the pnpl Python library enable straightforward integration with machine learning frameworks, lowering barriers for researchers to rapidly develop and benchmark inner speech decoding methods for non-invasive brain-computer interfaces.

## mlr3torch: A Deep Learning Framework in R based on mlr3 and torch

DevFeed: [mlr3torch: A Deep Learning Framework in R based on mlr3 and torch](<https://devfeed.tech/articles/mlr3torch-a-deep-learning-framework-in-r-based-on-mlr3-and-torch-135680.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2604.18152>)

Author: Sebastian Fischer, Lukas Burk, Carson Zhang, Bernd Bischl, Martin Binder

Published: 2026-11-16T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Deep learning](<https://devfeed.tech/topics/deep-learning.md>), [Neural Network](<https://devfeed.tech/topics/neural-network.md>), [PyTorch](<https://devfeed.tech/topics/pytorch.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Hyperparameter optimization](<https://devfeed.tech/topics/hyperparameter-optimization.md>), [Fine-tuning](<https://devfeed.tech/topics/fine-tuning.md>), [data augmentation](<https://devfeed.tech/topics/data-augmentation.md>)

Tags: [benchmarking](<https://devfeed.tech/tags/benchmarking.md>), [classification](<https://devfeed.tech/tags/classification.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [data-augmentation](<https://devfeed.tech/tags/data-augmentation.md>), [deep-learning](<https://devfeed.tech/tags/deep-learning.md>), [fine-tuning](<https://devfeed.tech/tags/fine-tuning.md>), [framework](<https://devfeed.tech/tags/framework.md>), [graph](<https://devfeed.tech/tags/graph.md>), [multimodal](<https://devfeed.tech/tags/multimodal.md>), [neural-networks](<https://devfeed.tech/tags/neural-networks.md>), [r](<https://devfeed.tech/tags/r.md>), [regression](<https://devfeed.tech/tags/regression.md>), [runtime](<https://devfeed.tech/tags/runtime.md>), [stat-ml](<https://devfeed.tech/tags/stat-ml.md>), [tabular-data](<https://devfeed.tech/tags/tabular-data.md>), [tensors](<https://devfeed.tech/tags/tensors.md>), [torch](<https://devfeed.tech/tags/torch.md>), [use-cases](<https://devfeed.tech/tags/use-cases.md>), [workflow](<https://devfeed.tech/tags/workflow.md>)

### AI overview

mlr3torch brings deep learning into R's mlr3 ecosystem, using torch to define, train, and evaluate neural networks for classification and regression on tabular data or tensors such as images. It provides predefined architectures, converts torch models into mlr3 learners, and lets users represent preprocessing, data augmentation, and network architecture together as graphs based on mlr3pipelines. Its integration supports resampling and benchmarking. The abstract also reports examples of hyperparameter tuning, fine-tuning, multimodal architectures, and runtime benchmarks, but gives no benchmark results.

### Source excerpt

arXiv:2604.18152v2 Announce Type: replace-cross Abstract: Deep learning (DL) has become a cornerstone of modern machine learning (ML) praxis. We introduce the R package mlr3torch, which is an extensible DL framework for the mlr3 ecosystem. It is built upon the torch package, and simplifies the definition, training, and evaluation of neural networks for both tabular data and generic tensors (e.g., images) for classification and regression. The package implements predefined architectures, and torch models can easily be converted to mlr3 learners. It also allows users to define neural networks as graphs. This representation is based on the graph language defined in mlr3pipelines and allows users to define the entire modeling workflow, including preprocessing, data augmentation, and network architecture, in a single graph. Through its integration into the mlr3 ecosystem, the package allows for convenient resampling, benchmarking, preprocessing, and more. We explain the package's design and features and show how to customize and extend it to new problems. Furthermore, we demonstrate the package's capabilities using three use cases, namely hyperparameter tuning, fine-tuning, and defining architectures for multimodal data. Finally, we present some runtime benchmarks.

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

DevFeed: [Representing Tensors as Compositions for Efficient Computation on Sparse and Structured Data](<https://devfeed.tech/articles/representing-tensors-as-compositions-for-efficient-computation-on-sparse-and-structured-data-125265.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.10855>)

Author: Val\\'erian Rey, Praneth Paruchuri

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Functional programming](<https://devfeed.tech/topics/functional-programming.md>), [ggml](<https://devfeed.tech/topics/ggml.md>), [vectorization techniques](<https://devfeed.tech/topics/vectorization-techniques.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [abstract](<https://devfeed.tech/tags/abstract.md>), [activation](<https://devfeed.tech/tags/activation.md>), [activation-function](<https://devfeed.tech/tags/activation-function.md>), [algebra](<https://devfeed.tech/tags/algebra.md>), [all](<https://devfeed.tech/tags/all.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [based](<https://devfeed.tech/tags/based.md>), [can](<https://devfeed.tech/tags/can.md>), [combined](<https://devfeed.tech/tags/combined.md>), [complexity](<https://devfeed.tech/tags/complexity.md>), [composition](<https://devfeed.tech/tags/composition.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cs-ms](<https://devfeed.tech/tags/cs-ms.md>), [cs-pl](<https://devfeed.tech/tags/cs-pl.md>), [data](<https://devfeed.tech/tags/data.md>), [draft](<https://devfeed.tech/tags/draft.md>), [element](<https://devfeed.tech/tags/element.md>), [engine](<https://devfeed.tech/tags/engine.md>), [focus](<https://devfeed.tech/tags/focus.md>), [structured](<https://devfeed.tech/tags/structured.md>), [structured-data](<https://devfeed.tech/tags/structured-data.md>), [tensors](<https://devfeed.tech/tags/tensors.md>)

### AI overview

The paper proposes representing tensors as index-to-value functions and tensor operations as compositions: value functions handle element-wise operations, index functions handle re-indexing, and combined index and reduction functions handle reductions. With tensor stacking, this is intended to cover dense, jagged, sparse, and factorized tensors, plus lazy forms of operations such as einsum. Algebraic identities can rewrite computations without evaluating them; for example, the product of two sparse matrices can be rewritten to compute only products of nonzero values. The authors propose using this algebra as a computation engine's intermediate representation, shifting implementation work toward index-function algebra. They project codebase complexity changing from O(mn²) to O(m + k²), where m is the number of binary tensor operations, n the number of tensor types, and k the number of index-function types. The supplied abstract mentions a draft implementation but gives no performance evaluation.

### Source excerpt

arXiv:2611.10855v1 Announce Type: new Abstract: 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.

## Trust the Mass: Forced Weights in KV-Cache Eviction

DevFeed: [Trust the Mass: Forced Weights in KV-Cache Eviction](<https://devfeed.tech/articles/trust-the-mass-forced-weights-in-kv-cache-eviction-120478.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2608.25230>)

Author: Jack Shi, Jerry Gu

Published: 2026-11-06T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [Compression](<https://devfeed.tech/topics/compression.md>), [Neural Network](<https://devfeed.tech/topics/neural-network.md>)

Tags: [attention](<https://devfeed.tech/tags/attention.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [budget](<https://devfeed.tech/tags/budget.md>), [constraint](<https://devfeed.tech/tags/constraint.md>), [context](<https://devfeed.tech/tags/context.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [full](<https://devfeed.tech/tags/full.md>), [keys](<https://devfeed.tech/tags/keys.md>), [kv-cache](<https://devfeed.tech/tags/kv-cache.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [masks](<https://devfeed.tech/tags/masks.md>), [memory](<https://devfeed.tech/tags/memory.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [ruler](<https://devfeed.tech/tags/ruler.md>), [score](<https://devfeed.tech/tags/score.md>), [target](<https://devfeed.tech/tags/target.md>), [tensors](<https://devfeed.tech/tags/tensors.md>), [token](<https://devfeed.tech/tags/token.md>), [top-k](<https://devfeed.tech/tags/top-k.md>), [training](<https://devfeed.tech/tags/training.md>)

### AI overview

Keeping the largest attention weights appears near-optimal when a fixed subset of keys is retained and weights are renormalized: the best subset found closes only a median 2-5% of the remaining gap to full attention. The authors report that some KVPress methods mask the full cache to accommodate equal-length dense tensors; physically truncating heads to their target budgets lowered benchmark scores by 14-62 points. Computing token importance with the question in context accounted for 87.6 points in retrieval accuracy. Their training-free ContourKV applies KVzip's score under a physically enforced budget. Across RULER and LongBench, it beat KVzip in 93 of 160 runs using 28-1,078 times less memory, and tied Compactor at equal memory.

### Source excerpt

arXiv:2608.25230v3 Announce Type: replace Abstract: Every deployed KV-cache-eviction rule and every top-$k$ sparse-attention rule keeps a subset of the keys, discards the rest, and renormalizes the attention weights over the kept set. Identifying the exact best subset under that constraint, we find that keeping the largest weights is already near-optimal, since the best subset we find closes only a median $2$ to $5\%$ of the remaining gap to full attention. We evaluate deployed eviction methods in KVPress and find that methods with non-uniform per-head budgets apply attention masks over the full cache because dense cache tensors require equal length across heads. Truncating each head to the target budget lowers benchmark scores by $14$ to $62$ points, and computing token importance with the question in context accounts for $87.6$ points in retrieval accuracy. We propose ContourKV, a training-free rule that applies KVzip's score under a physically enforced budget. It beats KVzip in $93$ of $160$ benchmark runs across RULER and LongBench while using $28$ to $1078$ times less memory, and ties Compactor, the strongest baseline at equal memory.

## Split-KV: Efficient Context Parallelism for Training Diffusion Drafters

DevFeed: [Split-KV: Efficient Context Parallelism for Training Diffusion Drafters](<https://devfeed.tech/articles/split-kv-efficient-context-parallelism-for-training-diffusion-drafters-118404.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.05926>)

Author: Geng Zhang, Fangzhao Zhang, Cong Xie, Tiantian Fan, Yang You

Published: 2026-11-05T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [distributed-training](<https://devfeed.tech/topics/distributed-training.md>), [Parallelism](<https://devfeed.tech/topics/parallelism.md>), [Load Balancing](<https://devfeed.tech/topics/load-balancing.md>), [High-Performance Computing](<https://devfeed.tech/topics/high-performance-computing.md>)

Tags: [attention](<https://devfeed.tech/tags/attention.md>), [block](<https://devfeed.tech/tags/block.md>), [cost](<https://devfeed.tech/tags/cost.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [diffusion](<https://devfeed.tech/tags/diffusion.md>), [efficiency](<https://devfeed.tech/tags/efficiency.md>), [faster](<https://devfeed.tech/tags/faster.md>), [first](<https://devfeed.tech/tags/first.md>), [global](<https://devfeed.tech/tags/global.md>), [load-balancing](<https://devfeed.tech/tags/load-balancing.md>), [parallelism](<https://devfeed.tech/tags/parallelism.md>), [query](<https://devfeed.tech/tags/query.md>), [speculative-decoding](<https://devfeed.tech/tags/speculative-decoding.md>), [tensors](<https://devfeed.tech/tags/tensors.md>), [tokens](<https://devfeed.tech/tags/tokens.md>), [training](<https://devfeed.tech/tags/training.md>)

### AI overview

The abstract reports that diffusion drafter training can operate with query budgets far shorter than context: acceptance length stayed stable as context grew at a fixed query budget, while larger budgets brought diminishing quality gains. Split-KV addresses this setting with exact context parallelism, keeping key/value shards local and limiting per-layer attention communication to query-sized tensors, independent of context length. Its global query view enables cost-aware longest-processing-time-first balancing of context chunks by realized attention cost. At context-parallel size 64, the authors report 85-91% weak-scaling efficiency and up to 3.67x speedup over the fastest available baseline; their LPT planner achieved under 1% imbalance and planned three orders of magnitude faster than the best load-balancing baseline.

### Source excerpt

arXiv:2611.05926v1 Announce Type: new Abstract: Diffusion drafters accelerate speculative decoding by denoising multiple draft tokens in parallel. Their training uses anchor sampling to construct compact draft queries and performs cross-attention with a block-sparse mask over a much longer context. We empirically show that acceptance length remains stable as context scales with a fixed query budget, while increasing the query budget yields diminishing quality gains, jointly establishing a practical regime with queries far shorter than the context. No existing context parallelism (CP) method jointly exploits this query--context asymmetry and meets the nonlinear, sample-dependent load-balancing requirement created by anchor sampling. We present Split-KV, an exact CP method that keeps key/value shards local and limits per-layer attention communication to query-sized tensors, making this communication independent of context length. Its global query view further enables a cost-aware longest-processing-time-first (LPT) strategy that balances context key/value chunks by their realized attention cost. At a CP size of 64, Split-KV retains 85--91\% weak-scaling efficiency and achieves up to $3.67\times$ speedup over the fastest available CP baseline. LPT achieves $<$1\% imbalance and plans three orders of magnitude faster than the best load-balancing baseline. Code is available at https://github.com/zxgx/verl.

## A Random Matrix Analysis of Symmetric Tensor Unfolding

DevFeed: [A Random Matrix Analysis of Symmetric Tensor Unfolding](<https://devfeed.tech/articles/a-random-matrix-analysis-of-symmetric-tensor-unfolding-117022.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.05137>)

Author: Tom Szwagier, Xiaoyi Mai, Jos\\'e Henrique de Morais Goulart

Published: 2026-11-04T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [outlier-detection](<https://devfeed.tech/topics/outlier-detection.md>)

Tags: [2014](<https://devfeed.tech/tags/2014.md>), [algorithm](<https://devfeed.tech/tags/algorithm.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [distribution](<https://devfeed.tech/tags/distribution.md>), [gaussian](<https://devfeed.tech/tags/gaussian.md>), [learning](<https://devfeed.tech/tags/learning.md>), [machine](<https://devfeed.tech/tags/machine.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [math-pr](<https://devfeed.tech/tags/math-pr.md>), [matrix](<https://devfeed.tech/tags/matrix.md>), [overlap](<https://devfeed.tech/tags/overlap.md>), [random](<https://devfeed.tech/tags/random.md>), [random-matrix-theory](<https://devfeed.tech/tags/random-matrix-theory.md>), [recovery](<https://devfeed.tech/tags/recovery.md>), [signal](<https://devfeed.tech/tags/signal.md>), [square](<https://devfeed.tech/tags/square.md>), [stat-ml](<https://devfeed.tech/tags/stat-ml.md>), [study](<https://devfeed.tech/tags/study.md>), [tensors](<https://devfeed.tech/tags/tensors.md>), [theory](<https://devfeed.tech/tags/theory.md>)

### AI overview

The paper analyzes partial recovery of a planted signal from a spiked tensor with symmetric Gaussian noise, directly accounting for dependencies in the noise. For square unfolding, it finds a sharp recovery transition at signal strength λ ≍ n^((p−2)/4), validating a conjecture from Montanari and Richard (2014). It gives limiting spectral distributions, deterministic equivalents, thresholds, and signal overlaps, and shows that unfolded symmetric tensors behave spectrally like Wigner matrices after transformations for their higher-order symmetries. Extensions cover multiple orthogonal spikes, recursive unfolding, and non-square unfolding; the square-versus-long choice leads to a conjectured statistical-computational tradeoff.

### Source excerpt

arXiv:2611.05137v1 Announce Type: cross Abstract: We study a fundamental problem in machine learning: partial recovery of a planted signal $\boldsymbol{v} \in \mathbb{S}^{n-1}$ from a spiked tensor $\boldsymbol{\mathsf{X}} = \lambda \, \boldsymbol{v}^{\otimes p} + \boldsymbol{\mathsf{Z}}$, where $\boldsymbol{\mathsf{Z}}$ has symmetric Gaussian entries of variance $\asymp n^{-1}$. While previous works replace $\boldsymbol{\mathsf{Z}}$ by an i.i.d. standard Gaussian tensor to circumvent technical difficulties caused by dependencies, this paper directly analyzes the symmetric model via random matrix theory. We show that the square unfolding algorithm is subject to a sharp phase transition for partial recovery at $\lambda \asymp n^{(p-2) / 4}$, validating an open conjecture from Montanari and Richard (2014). We get precise expressions for the limiting spectral distribution, deterministic equivalent, phase transition threshold and overlap. The main message is that unfolded symmetric tensors spectrally behave like standard Wigner matrices, up to simple transformations accounting for high-order symmetries. We consider extensions to multiple orthogonal spikes, recursive unfolding and non-square unfolding via disproportionate random matrix theory, leading to an interesting conjectured statistical-computational tradeoff regarding the choice of unfolding: square versus long.

## Lightweight Representation Learning for Low Tucker Rank Tensors

DevFeed: [Lightweight Representation Learning for Low Tucker Rank Tensors](<https://devfeed.tech/articles/lightweight-representation-learning-for-low-tucker-rank-tensors-114500.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.01168>)

Author: Hiroki Hasegawa, Yukihiko Okada

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Representation learning](<https://devfeed.tech/topics/representation-learning.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>)

Tags: [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [learning](<https://devfeed.tech/tags/learning.md>), [lightweight](<https://devfeed.tech/tags/lightweight.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [rank](<https://devfeed.tech/tags/rank.md>), [tensors](<https://devfeed.tech/tags/tensors.md>)

### AI overview

The paper reduces computation and memory overhead in low Tucker rank tensor learning while preserving the original objective, parameterization, and learning trajectories. It extracts only required spectral components, performs factor-wise contractions without forming large Kronecker operators, and updates compact latent states instead of storing full tensor iterates. Across five estimators, results match the original trajectories to numerical precision. Reported per-iteration runtime improves by up to 3.12x and resident memory by up to 616x on the main order-3 benchmark at n=100; memory reductions exceed 900x across the full evaluation suite.

### Source excerpt

arXiv:2611.01168v1 Announce Type: new Abstract: Low Tucker rank tensors provide compact representations of multidimensional dependencies, but standard learning pipelines can incur substantial computational and memory overhead from redundant intermediate quantities. We reduce this overhead without modifying the underlying representation objective or parameterization. Our approach combines three complementary components: (i) sequential extraction of only task-required spectral components, avoiding unnecessary full decompositions; (ii) factor-wise multilinear contractions without materializing large Kronecker operators; and (iii) compact latent-state updates without storing full ambient tensor iterates. These components preserve the algebraic operations and learning trajectories of the original algorithms while reducing their computational and memory footprints. Across five low Tucker rank tensor estimators, our implementations match the original trajectories to numerical precision (relative discrepancies of $10^{-16}$ to $10^{-13}$), while reducing per-iteration runtime by up to $3.12\times$ and resident memory by up to $616\times$ ($99.8\%$) on the main order-3 benchmark at $n=100$, with memory reductions exceeding $900\times$ across the full evaluation suite. These results show that substantial computational redundancy can be eliminated from Tucker representation learning without changing the underlying model or learned representation.

## TensorLOB: Structure-Preserving Tensor Learning for Limit Order Book Forecasting

DevFeed: [TensorLOB: Structure-Preserving Tensor Learning for Limit Order Book Forecasting](<https://devfeed.tech/articles/tensorlob-structure-preserving-tensor-learning-for-limit-order-book-forecasting-114747.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.02866>)

Author: Yuxuan Gu, Danilo Mandic

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Finance](<https://devfeed.tech/topics/finance.md>)

Tags: [benchmark](<https://devfeed.tech/tags/benchmark.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [financial](<https://devfeed.tech/tags/financial.md>), [forecasting](<https://devfeed.tech/tags/forecasting.md>), [learning](<https://devfeed.tech/tags/learning.md>), [limit-order-book](<https://devfeed.tech/tags/limit-order-book.md>), [market-microstructure](<https://devfeed.tech/tags/market-microstructure.md>), [q-fin-st](<https://devfeed.tech/tags/q-fin-st.md>), [structure](<https://devfeed.tech/tags/structure.md>), [tensors](<https://devfeed.tech/tags/tensors.md>)

### AI overview

TensorLOB preserves the limit order book's time, market-side, price-level, and order-attribute dimensions by learning and predicting directly in the tensor domain. It extracts features through mode-wise tensor contractions and uses low-rank class-weight tensors for prediction. On the FI-2010 benchmark, it achieved the highest accuracy, recall, and F1 score among evaluated models at all four forecast horizons. The abstract presents this as a proof of concept; it provides no further detail here on performance margins or limitations.

### Source excerpt

arXiv:2611.02866v1 Announce Type: new Abstract: The limit order book (LOB) records outstanding buy and sell orders across multiple price levels. Its state evolves over time across market side, price level, and order attribute, naturally forming a multiway structure. However, existing LOB models typically flatten these dimensions into a matrix model, thus obscuring the existing structural relationships. Starting from first principles and the market-microstructure intuition of the LOB, we design TensorLOB to operate entirely in the tensor domain. TensorLOB uses mode-wise tensor contractions for feature extraction and directly contracts the learned representation with low-rank class-weight tensors for prediction, retaining the distinct roles of time, side, level, and attribute modes. Experiments on the FI-2010 benchmark show that TensorLOB achieves the highest accuracy, recall, and F1 score across all four evaluated horizons. This proof of concept highlights the potential of high-dimensional modelling of multi-way latent information intrinsic to financial markets, which has so far been largely overlooked.

## TIRx: A Unified Tile Primitive ML Compiler Across Heterogeneous Backends

DevFeed: [TIRx: A Unified Tile Primitive ML Compiler Across Heterogeneous Backends](<https://devfeed.tech/articles/tirx-a-unified-tile-primitive-ml-compiler-across-heterogeneous-backends-111370.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2601.19092>)

Author: Bohan Hou, Hongyi Jin, Guanjie Wang, Shushi Hong, Jinqi Chen, Yaxing Cai, Lijie Yang, Zihao Ye, Yaoyao Ding, Ruihang Lai, Todd Mowry, Tianqi Chen

Published: 2026-11-02T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Compiler](<https://devfeed.tech/topics/compiler.md>), [GPU optimization](<https://devfeed.tech/topics/gpu-optimization.md>), [Distributed Systems & Parallel Computing](<https://devfeed.tech/topics/distributed-systems-parallel-computing.md>), [High-Performance Computing](<https://devfeed.tech/topics/high-performance-computing.md>)

Tags: [accelerators](<https://devfeed.tech/tags/accelerators.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-accelerators](<https://devfeed.tech/tags/ai-accelerators.md>), [backends](<https://devfeed.tech/tags/backends.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cs-pl](<https://devfeed.tech/tags/cs-pl.md>), [dispatch](<https://devfeed.tech/tags/dispatch.md>), [gpus](<https://devfeed.tech/tags/gpus.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [kernels](<https://devfeed.tech/tags/kernels.md>), [layout](<https://devfeed.tech/tags/layout.md>), [layouts](<https://devfeed.tech/tags/layouts.md>), [memory](<https://devfeed.tech/tags/memory.md>), [ml](<https://devfeed.tech/tags/ml.md>), [performance](<https://devfeed.tech/tags/performance.md>), [scope](<https://devfeed.tech/tags/scope.md>), [tensors](<https://devfeed.tech/tags/tensors.md>)

### AI overview

TIRx aims to retain native-level performance control while simplifying ML kernel implementation across GPUs and AI accelerators. It makes participating hardware teams explicit through execution scopes, maps logical tensors to hardware spaces with named-axis layouts and shard/replica/offset semantics, and dispatches tile primitives based on scope, layout, and backend. This automates recurring address calculations, operand preparation, and instruction-loop generation. The abstract reports vendor-level performance on recent GPUs and AI accelerators and substantial reductions in low-level code in native-code case studies; it gives no benchmark details or specific backend comparisons.

### Source excerpt

arXiv:2601.19092v3 Announce Type: replace-cross Abstract: Modern ML kernels evolve rapidly with new optimizations and hardware features. ML compiler abstractions must accommodate richer memory hierarchies, more forms of thread cooperation, and increasingly heterogeneous backends while retaining the control required for peak performance. We present TIRx, an ML compiler for GPUs and AI accelerators that exposes these ingredients through explicit interfaces. TIRx introduces an explicit execution-scope abstraction that captures participating hardware teams at multiple granularities. It also uses tensor layouts to map logical tensors to heterogeneous hardware spaces through named axes and shard/replica/offset semantics. Finally, it introduces tile-primitive dispatch, which lowers high-level operations to efficient implementations according to scope, layout, and backend. This design preserves native-level control while automating recurring address calculation, operand preparation, and instruction-loop generation. Our evaluation shows vendor-level performance across the latest GPUs and AI accelerators, while native-code case studies show substantial reductions in low-level implementation code.

## Low-degree polynomials lower bounds for clustering in small dimension

DevFeed: [Low-degree polynomials lower bounds for clustering in small dimension](<https://devfeed.tech/articles/low-degree-polynomials-lower-bounds-for-clustering-in-small-dimension-104061.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.37272>)

Author: Alexandra Carpentier (MISTEA), Nicolas Verzelen (MISTEA)

Published: 2026-10-28T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [clustering](<https://devfeed.tech/topics/clustering.md>), [polynomials](<https://devfeed.tech/topics/polynomials.md>)

Tags: [bernoulli](<https://devfeed.tech/tags/bernoulli.md>), [bipartite-graphs](<https://devfeed.tech/tags/bipartite-graphs.md>), [clustering](<https://devfeed.tech/tags/clustering.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [dimension](<https://devfeed.tech/tags/dimension.md>), [distribution](<https://devfeed.tech/tags/distribution.md>), [distributions](<https://devfeed.tech/tags/distributions.md>), [field](<https://devfeed.tech/tags/field.md>), [gaussian](<https://devfeed.tech/tags/gaussian.md>), [lower-bounds](<https://devfeed.tech/tags/lower-bounds.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [partition](<https://devfeed.tech/tags/partition.md>), [polynomials](<https://devfeed.tech/tags/polynomials.md>), [small](<https://devfeed.tech/tags/small.md>), [solutions](<https://devfeed.tech/tags/solutions.md>), [stat-ml](<https://devfeed.tech/tags/stat-ml.md>), [systems](<https://devfeed.tech/tags/systems.md>), [tensors](<https://devfeed.tech/tags/tensors.md>)

### AI overview

The abstract establishes a low-degree polynomial hardness bound for clustering when the number of groups K is much larger than dimension d. For fixed m, clustering remains hard when Δ² is much smaller than (K²d^{3/2}/n)^{1/(2m+2)} ∧ √d, up to polylogarithmic factors; at polylogarithmic separation, the bound requires roughly K²d^{3/2} samples. The construction uses 2K product Bernoulli distributions whose centers come from a dual BCH code, matching uniform-distribution moments through order 2m+1. The authors say a Gaussianization reduction extends the hardness to isotropic Gaussian mixtures. This strengthens earlier low-degree lower bounds cited in the abstract, while the comparison to tensor methods is that those recover with polylogarithmic separation but require a large, non-explicit polynomial sample size.

### Source excerpt

arXiv:2610.37272v1 Announce Type: cross Abstract: We study the computational limits of clustering $n$ observations drawn from a mixture of $K$ isotropic distributions in $\mathbb R^d$, in the regime where the number $K$ of groups is much larger than the dimension $d$. In this regime, tensor-based procedures recover the partition with a polylogarithmic separation between the centers, but they require a sample size that is a large and non-explicit polynomial of $dK$, whereas the existing low-degree lower bounds only show that $n$ must be larger than $dK^2$. We introduce a mixture of $2K$ product Bernoulli distributions on $\{0,1\}^d$, with $K=(d+1)^m$, whose centers are built from a dual BCH code. This construction ensures that the moment tensors of the observations coincide with those of the uniform distribution on $\{-1,1\}^d$ up to the order $2m+1$. For any fixed $m$, we establish a low-degree polynomial lower bound showing that clustering is hard as long as the separation $\Delta$ satisfies $\Delta^2\ll(K^2d^{3/2}/n)^{1/(2m+2)}\wedge\sqrt d$, up to polylogarithmic factors. In particular, with a polylogarithmic separation, low-degree polynomials require $n\gtrsim K^2d^{3/2}$ observations, up to polylogarithmic factors. Through a Gaussianization argument, this hardness carries over, in the sense of reductions, to isotropic Gaussian mixtures. Our proof relies on a family of polynomials of the observations, indexed by bipartite graphs, which is almost orthonormal. The moments of these polynomials are governed by the number of solutions of polynomial systems over the finite field $\mathbb F\_{d+1}$ that are induced by the BCH code, and the crux of our analysis is to connect the combinatorial structure of the bipartite graphs with the structure of the solution sets of these systems.

## LatentStore: An Efficient Latent-First Storage System for AI-Generated Images

DevFeed: [LatentStore: An Efficient Latent-First Storage System for AI-Generated Images](<https://devfeed.tech/articles/latentstore-an-efficient-latent-first-storage-system-for-ai-generated-images-96705.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2605.19385>)

Author: Zirui Wang, Yunjia Zheng, Tingfeng Lan, Zhaoyuan Su, Haoran Ni, Juncheng Yang, Yue Cheng

Published: 2026-10-23T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>), [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>)

Topics: [Image](<https://devfeed.tech/topics/image.md>), [Persistence](<https://devfeed.tech/topics/persistence.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [big-data](<https://devfeed.tech/topics/big-data.md>), [systems](<https://devfeed.tech/topics/systems.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-generated-images](<https://devfeed.tech/tags/ai-generated-images.md>), [bandwidth](<https://devfeed.tech/tags/bandwidth.md>), [cache](<https://devfeed.tech/tags/cache.md>), [cluster](<https://devfeed.tech/tags/cluster.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [generative](<https://devfeed.tech/tags/generative.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [images](<https://devfeed.tech/tags/images.md>), [latency](<https://devfeed.tech/tags/latency.md>), [prototype](<https://devfeed.tech/tags/prototype.md>), [request](<https://devfeed.tech/tags/request.md>), [storage](<https://devfeed.tech/tags/storage.md>), [storage-infrastructure](<https://devfeed.tech/tags/storage-infrastructure.md>), [sustainability](<https://devfeed.tech/tags/sustainability.md>), [system](<https://devfeed.tech/tags/system.md>), [tensors](<https://devfeed.tech/tags/tensors.md>), [trace](<https://devfeed.tech/tags/trace.md>), [trade](<https://devfeed.tech/tags/trade.md>), [user](<https://devfeed.tech/tags/user.md>)

### AI overview

LatentStore reduces persistent storage for AI-generated images by storing compressed, model-native latents and reconstructing images on demand with GPUs. Guided by a 35-month production trace covering 2 billion requests, its design keeps frequently accessed images in decoded pixel form for fast hits, stores less-active objects as latents to expand cache capacity, and continuously adjusts the balance between the two caches to manage user-perceived latency. In a prototype evaluated against the trace, LatentStore cut persistent storage by 78.7% while achieving competitive or lower mean and tail latency than pure image-based storage.

### Source excerpt

arXiv:2605.19385v3 Announce Type: replace-cross Abstract: The explosive growth of AI-generated images has created a sustainability challenge for storage infrastructure. Platforms like Midjourney and Adobe Firefly already host billions of generative images, yet conventional object stores persist them as blobs with full-resolution pixels, consuming huge amounts of storage capacity and bandwidth. Unlike natural photos, however, AI-generated images can be deterministically reconstructed from compact, model-native latent tensors, making persistent image storage fundamentally redundant. This paper presents LatentStore, a latent-first storage system for AI-generated images. LatentStore treats compressed latents as durable storage objects and uses on-demand GPU reconstruction on the read path to trade inexpensive compute for large persistent storage savings. Our design is guided by the first large-scale analysis of AI-generated image access we are aware of, based on a 35-month, 2-billion-request production trace from a major generative-content platform. Motivated by the trace analysis, LatentStore keeps frequently accessed images in decoded pixel format for fast hits, stores less-active objects as compressed latents to expand effective cache capacity, and continuously adjusts the splits between the image and latent cache to optimize user-perceived access latency. We build a LatentStore prototype and evaluate it with the production trace. LatentStore reduces persistent storage by 78.7% with competitive or even lower mean and tail latency over a pure image-based storage.

## Tensor Cookbook: Mastering Tensors through Diagrams

DevFeed: [Tensor Cookbook: Mastering Tensors through Diagrams](<https://devfeed.tech/articles/tensor-cookbook-mastering-tensors-through-diagrams-94131.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2605.16610>)

Author: Beheshteh T. Rakhshan, Guillaume Rabusseau

Published: 2026-10-21T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [String Diagrams](<https://devfeed.tech/topics/string-diagrams.md>), [graph theory](<https://devfeed.tech/topics/graph-theory.md>), [Learning](<https://devfeed.tech/topics/learning.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>)

Tags: [cs-gl](<https://devfeed.tech/tags/cs-gl.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [gradient](<https://devfeed.tech/tags/gradient.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [networks](<https://devfeed.tech/tags/networks.md>), [numerical-analysis](<https://devfeed.tech/tags/numerical-analysis.md>), [quantum-physics](<https://devfeed.tech/tags/quantum-physics.md>), [signal-processing](<https://devfeed.tech/tags/signal-processing.md>), [statistics](<https://devfeed.tech/tags/statistics.md>), [tensors](<https://devfeed.tech/tags/tensors.md>)

### AI overview

The manuscript presents tensor network diagrams as a way to make high-dimensional tensor algebra easier to express and interpret: contractions become graph edges, reducing index-heavy notation and exposing structure. It offers a self-contained guide to tensor operations, products, reshaping, and classical decompositions, then applies the diagrams to gradients and high-dimensional probability distributions. The authors say this approach yields shorter, more transparent derivations of identities, rank bounds, and gradient formulas. The supplied text is an abstract and does not provide worked examples or further detail.

### Source excerpt

arXiv:2605.16610v2 Announce Type: replace Abstract: High-dimensional data arise naturally in many areas of science and engineering, including machine learning, signal processing, computational physics, and statistics. Such data are often represented as tensors, multi-dimensional generalizations of matrices. While tensors provide a natural representation for multi-modal structure, their direct manipulation quickly becomes challenging as the order grows: the number of parameters increases exponentially, and algebraic expressions involving many indices become difficult to interpret and implement. Tensor networks (TNs) provide an effective framework for addressing these challenges. Originally introduced by Penrose and developed extensively in quantum physics, the graphical language of tensor networks encodes contractions as edges in a graph, reducing notational overhead and revealing structural properties obscured by index notation. Despite the central role of high-dimensional tensors in modern machine learning and numerical analysis, tensor network diagrams remain underutilized outside quantum computing, partly due to the lack of a self-contained mathematical reference accessible to a broad technical audience. This manuscript provides a self-contained guide to tensor networks and their use in tensor algebra. We present the main operations on tensors, contractions, products, and reshaping through, graphical notation, and show how classical tensor decompositions and related computations are naturally expressed in this framework. We also illustrate how tensor networks simplify the derivation of gradients and the manipulation of high-dimensional probability distributions. Throughout, we show that the diagrammatic approach yields genuinely shorter and more transparent proofs of classical identities, rank bounds, and gradient formulas that would otherwise require laborious index manipulation.

## T-MUON: Tensorizing Muon via t-SVD for Large Language Model Pre-training

DevFeed: [T-MUON: Tensorizing Muon via t-SVD for Large Language Model Pre-training](<https://devfeed.tech/articles/t-muon-tensorizing-muon-via-t-svd-for-large-language-model-pre-training-93388.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.24938>)

Author: Dongyang Li, Mingsong Yan, Zheng Zhang, Sui Tang

Published: 2026-10-21T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Large Language Model](<https://devfeed.tech/topics/llm.md>), [LLM Techniques](<https://devfeed.tech/topics/llm-techniques.md>), [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [LLM evaluation / benchmarking](<https://devfeed.tech/topics/llm-evaluation-benchmarking.md>)

Tags: [convergence](<https://devfeed.tech/tags/convergence.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [experiments](<https://devfeed.tech/tags/experiments.md>), [gpt](<https://devfeed.tech/tags/gpt.md>), [large-language-model](<https://devfeed.tech/tags/large-language-model.md>), [llama](<https://devfeed.tech/tags/llama.md>), [matrix](<https://devfeed.tech/tags/matrix.md>), [muon](<https://devfeed.tech/tags/muon.md>), [perplexity](<https://devfeed.tech/tags/perplexity.md>), [pretraining](<https://devfeed.tech/tags/pretraining.md>), [tensors](<https://devfeed.tech/tags/tensors.md>), [training](<https://devfeed.tech/tags/training.md>), [transformer](<https://devfeed.tech/tags/transformer.md>)

### AI overview

T-MUON groups structurally related Transformer gradients into third-order tensors and defines Muon-style updates using the M-transform, extending matrix-wise Muon. The authors characterize its exact update as a steepest-descent direction under the star_M-spectral norm and report a convergence guarantee. In experiments with GPT-2-style and LLaMA-style models (51M-1.3B parameters) trained on FineWeb and FineWeb-Edu, head-wise T-MUON with the identity transform achieved lower validation perplexity than AdamW, Muon, and T-MUON variants using DFT, DCT, or DST transforms. The reported gains also held in longer-context and larger-token-budget experiments, while the preferred tensorization mode varied by setting.

### Source excerpt

arXiv:2610.24938v1 Announce Type: new Abstract: Muon has recently emerged as a strong optimizer for large language model pretraining by exploiting matrix structure through polar orthogonalization. However, it processes each parameter matrix independently, whereas recent tensor-aware extensions of Muon jointly update groups of eligible matrix parameters through matrix unfoldings. In contrast, we propose T-MUON, a t-SVD-based generalization that groups structurally related Transformer gradients into third-order tensors and defines the corresponding Muon-style update directly through the $M$-transform. We show that the exact T-MUON update is a steepest-descent direction under the $\star_M$-spectral norm and establish a convergence guarantee. Across GPT-2-style and LLaMA-style models from 51M to 1.3B parameters trained on FineWeb and FineWeb-Edu, head-wise T-MUON with the identity transform consistently achieves lower validation perplexity than AdamW, Muon, and variants using DFT, DCT, or DST transforms. These gains persist in additional experiments with longer context lengths and larger token budgets, although the preferred tensorization mode varies across settings.

## TinyTorch: Don't Just Import PyTorch. Build It.

DevFeed: [TinyTorch: Don't Just Import PyTorch. Build It.](<https://devfeed.tech/articles/tinytorch-don-t-just-import-pytorch-build-it-57757.md>)

Original publisher: [Read original article](<https://pytorch.org/blog/tinytorch-dont-just-import-pytorch-build-it/>)

Author: Vijay Janapa Reddi, Harvard University and ETH Zurich - Andrea Mattia Garavagno, ETH Zurich

Published: 2026-09-21T20:41:14Z

Content type: article

Language: en

Sources: [PyTorch](<https://devfeed.tech/sources/blog-pytorch.md>)

Topics: [PyTorch](<https://devfeed.tech/topics/pytorch.md>), [Framework](<https://devfeed.tech/topics/framework.md>), [systems](<https://devfeed.tech/topics/systems.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Python](<https://devfeed.tech/topics/python.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [blog](<https://devfeed.tech/tags/blog.md>), [framework](<https://devfeed.tech/tags/framework.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [python](<https://devfeed.tech/tags/python.md>), [pytorch](<https://devfeed.tech/tags/pytorch.md>), [systems](<https://devfeed.tech/tags/systems.md>), [teaching](<https://devfeed.tech/tags/teaching.md>), [tensors](<https://devfeed.tech/tags/tensors.md>), [transformers](<https://devfeed.tech/tags/transformers.md>)

### AI overview

This article introduces TinyTorch, a free open-source curriculum for building a working machine-learning framework from scratch in pure Python. It explains why teaching versions of mature systems help students and self-learners understand production frameworks, and argues that this foundation can grow the pool of engineers able to reason about PyTorch internals.

### Source excerpt

A framework you write yourself, tensors through transformers TL;DR Every mature systems project eventually needs a teaching version. TinyTorch is a free, open-source curriculum where you build a working ML...

## Accelerating Dropless MoE Training in JAX with NVIDIA Transformer Engine

DevFeed: [Accelerating Dropless MoE Training in JAX with NVIDIA Transformer Engine](<https://devfeed.tech/articles/accelerating-dropless-moe-training-in-jax-with-nvidia-transformer-engine-21079.md>)

Original publisher: [Read original article](<https://developer.nvidia.com/blog/accelerating-dropless-moe-training-in-jax-with-nvidia-transformer-engine/>)

Author: Tanya Lenz

Published: 2026-09-14T16:39:15Z

Content type: article

Language: en

Sources: [NVIDIA Developer](<https://devfeed.tech/sources/nvidia-developer.md>), [NVIDIA Technical Blog](<https://devfeed.tech/sources/nvidia-technical-blog.md>)

Topics: [Mixture of Experts (MoE)](<https://devfeed.tech/topics/mixture-of-experts-moe.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [GPU](<https://devfeed.tech/topics/gpu.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Nvidia](<https://devfeed.tech/topics/nvidia.md>), [Routing (disambiguation)](<https://devfeed.tech/topics/routing.md>), [GB200](<https://devfeed.tech/topics/gb200.md>), [Network](<https://devfeed.tech/topics/network.md>), [Python](<https://devfeed.tech/topics/python.md>), [deepseek](<https://devfeed.tech/topics/deepseek.md>), [mixtral](<https://devfeed.tech/topics/mixtral.md>), [qwen](<https://devfeed.tech/topics/qwen.md>)

Tags: [agentic-ai-generative-ai](<https://devfeed.tech/tags/agentic-ai-generative-ai.md>), [ai](<https://devfeed.tech/tags/ai.md>), [communication](<https://devfeed.tech/tags/communication.md>), [deepseek](<https://devfeed.tech/tags/deepseek.md>), [developer-tools-techniques](<https://devfeed.tech/tags/developer-tools-techniques.md>), [gb200](<https://devfeed.tech/tags/gb200.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [mixtral](<https://devfeed.tech/tags/mixtral.md>), [mixture-of-experts-moe](<https://devfeed.tech/tags/mixture-of-experts-moe.md>), [mlops](<https://devfeed.tech/tags/mlops.md>), [moe](<https://devfeed.tech/tags/moe.md>), [networks](<https://devfeed.tech/tags/networks.md>), [nvfp4](<https://devfeed.tech/tags/nvfp4.md>), [nvidia](<https://devfeed.tech/tags/nvidia.md>), [performance](<https://devfeed.tech/tags/performance.md>), [python](<https://devfeed.tech/tags/python.md>), [qwen](<https://devfeed.tech/tags/qwen.md>), [router](<https://devfeed.tech/tags/router.md>), [routing](<https://devfeed.tech/tags/routing.md>), [tensors](<https://devfeed.tech/tags/tensors.md>), [token](<https://devfeed.tech/tags/token.md>), [tokens](<https://devfeed.tech/tags/tokens.md>), [training-ai-models](<https://devfeed.tech/tags/training-ai-models.md>)

### AI overview

This article explains how NVIDIA Transformer Engine and JAX kernel optimizations accelerate dropless Mixture of Experts (MoE) training. It describes bottlenecks from token routing, expert dispatch and gathering, all-to-all communication, and ragged expert matrix operations. In DeepSeek-V3 training on NVIDIA GB200, the optimized approach increased performance from 103 to 1,068 TFLOPS per GPU, a 10.4x improvement.

### Source excerpt

Mixture of experts (MoE) has become one of the defining architectural trends in large-scale AI model training. DeepSeek, Qwen, and Mixtral are examples of MoE...

## Scaling a Vespa Application: Feeding Fast and Furiously

DevFeed: [Scaling a Vespa Application: Feeding Fast and Furiously](<https://devfeed.tech/articles/scaling-a-vespa-application-feeding-fast-and-furiously-12797.md>)

Original publisher: [Read original article](<https://blog.vespa.ai/scaling-a-vespa-application-feeding-fast-and-furiously/>)

Author: Kai Borgen

Published: 2026-04-28T00:00:00Z

Content type: tutorial

Language: en

Sources: [Vespa Blog](<https://devfeed.tech/sources/vespa-blog.md>)

Topics: [AI search](<https://devfeed.tech/topics/ai-search.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [dataset](<https://devfeed.tech/topics/dataset.md>), [information retrieval](<https://devfeed.tech/topics/information-retrieval.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>), [Homebrew](<https://devfeed.tech/topics/homebrew.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [onnx](<https://devfeed.tech/topics/onnx.md>), [optimum](<https://devfeed.tech/topics/optimum.md>), [XML](<https://devfeed.tech/topics/xml.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-search](<https://devfeed.tech/tags/ai-search.md>), [cli](<https://devfeed.tech/tags/cli.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [dataset](<https://devfeed.tech/tags/dataset.md>), [genai](<https://devfeed.tech/tags/genai.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [information-retrieval](<https://devfeed.tech/tags/information-retrieval.md>), [install](<https://devfeed.tech/tags/install.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [onnx](<https://devfeed.tech/tags/onnx.md>), [optimum](<https://devfeed.tech/tags/optimum.md>), [performance](<https://devfeed.tech/tags/performance.md>), [rag](<https://devfeed.tech/tags/rag.md>), [ranking](<https://devfeed.tech/tags/ranking.md>), [tensors](<https://devfeed.tech/tags/tensors.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

This tutorial demonstrates how to scale a Vespa application while feeding the full MS_marco passages dataset. It covers preparing the dataset, configuring access, deploying a sample application, and using scaling and metrics to improve feed throughput and performance.

### Source excerpt

A tutorial on how to scale the resources in a Vespa application to increase feed throughput. Using the metrics dashboard for informed and optimised scaling.

## Not One, Not Two, Not Even Three, but Four Ways to Run an ONNX AI Model on GPU with CUDA

DevFeed: [Not One, Not Two, Not Even Three, but Four Ways to Run an ONNX AI Model on GPU with CUDA](<https://devfeed.tech/articles/not-one-not-two-not-even-three-but-four-ways-to-run-an-onnx-ai-model-on-gpu-with-cuda-20728.md>)

Original publisher: [Read original article](<http://dragan.rocks/articles/25/Four-Ways-to-ONNX-on-GPU-in-Clojure-and-CUDA>)

Published: 2025-11-09T17:49:00Z

Content type: tutorial

Language: en

Sources: [Dragan Djuric](<https://devfeed.tech/sources/dragan-djuric.md>)

Topics: [onnx](<https://devfeed.tech/topics/onnx.md>), [CUDA](<https://devfeed.tech/topics/cuda.md>), [onnx runtime](<https://devfeed.tech/topics/onnx-runtime.md>), [cudnn](<https://devfeed.tech/topics/cudnn.md>), [Neural Network](<https://devfeed.tech/topics/neural-network.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-model](<https://devfeed.tech/tags/ai-model.md>), [backend](<https://devfeed.tech/tags/backend.md>), [best](<https://devfeed.tech/tags/best.md>), [blog](<https://devfeed.tech/tags/blog.md>), [book](<https://devfeed.tech/tags/book.md>), [built-in](<https://devfeed.tech/tags/built-in.md>), [but](<https://devfeed.tech/tags/but.md>), [can](<https://devfeed.tech/tags/can.md>), [clojure](<https://devfeed.tech/tags/clojure.md>), [core](<https://devfeed.tech/tags/core.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [cuda](<https://devfeed.tech/tags/cuda.md>), [cudnn](<https://devfeed.tech/tags/cudnn.md>), [deep](<https://devfeed.tech/tags/deep.md>), [diamond](<https://devfeed.tech/tags/diamond.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [model](<https://devfeed.tech/tags/model.md>), [onnx](<https://devfeed.tech/tags/onnx.md>), [run](<https://devfeed.tech/tags/run.md>), [tensors](<https://devfeed.tech/tags/tensors.md>), [with](<https://devfeed.tech/tags/with.md>)

### AI overview

The excerpt shows four ways to run an MNIST ONNX model with CUDA through Deep Diamond. With the cuDNN factory, tensors use the GPU backend: either wrap the ONNX model in a Deep Diamond network or use an ONNX-created blueprint directly. Alternatively, keep input and output tensors in main memory and set `:ep [:cuda]` in the ONNX configuration; this works both inside a network wrapper and with a standalone blueprint. All four examples return class index 7, and the article presents them as options without preferring one.

### Source excerpt

Two weeks ago, I announced a new Clojure ML library, Diamond ONNX RT, which integrates ONNX Runtime into Deep Diamond. In that post, we explored the classic Hello World example of Neural Networks, MNIST handwritten image recognition, step-by-step. We run that example on the CPU, from main memory. The next logical step is to execute this stuff on the GPU. You'll see that with a little help of ClojureCUDA and Deep Diamond built-in CUDA machinery, this is both easy and simple, requiring almost no effort from a curious Clojure programmer. But don't just trust me; let's fire up your REPL, and we can continue together. Here's how you can evaluate this directly in your REPL (you can use the Hello World that is provided in the ./examples sub-folder of Diamond ONNX RT as a springboard). Require Diamond's namespaces First things first, we refer functions that we're going to use. (require '[uncomplicate.commons.core :refer [with-release]] '[uncomplicate.neanderthal.core :refer [transfer! iamax native]] '[uncomplicate.diamond [tensor :refer [tensor with-diamond]] [dnn :refer [network]] [onnxrt :refer [onnx]]] '[uncomplicate.diamond.internal.dnnl.factory :refer [dnnl-factory]] '[uncomplicate.diamond.internal.cudnn.factory :refer [cudnn-factory]] '[hello-world.native :refer [input-desc input-tz mnist-onnx]]) None of the following ways to run CUDA models has preference, you use the one that best suits your needs. Way one One of the ways to run ONNX models on your GPU is to simply use Deep Diamond's cuDNN factory as the backend for your tensors. Then, the machinery recognizes what you need and proceeds doing everything on the GPU, using the right stream for tensors, Deep Diamond operations, and ONNX Runtime operations. This looks exactly the same as any other Deep Diamond example from this blog or the DLFP book. (with-diamond cudnn-factory [] (with-release [cuda-input-tz (tensor input-desc) mnist (network cuda-input-tz [mnist-onnx]) classify! (mnist cuda-input-tz)] (transfer! input

## Get Ready for Clojure, GPU, and AI in 2026 with CUDA 13.0

DevFeed: [Get Ready for Clojure, GPU, and AI in 2026 with CUDA 13.0](<https://devfeed.tech/articles/get-ready-for-clojure-gpu-and-ai-in-2026-with-cuda-13-0-20730.md>)

Original publisher: [Read original article](<http://dragan.rocks/articles/25/Get-Ready-Clojure-GPU-AI-2026-CUDA-13>)

Published: 2025-10-30T16:37:00Z

Content type: tutorial

Language: en

Sources: [Dragan Djuric](<https://devfeed.tech/sources/dragan-djuric.md>)

Topics: [CUDA](<https://devfeed.tech/topics/cuda.md>), [Clojure](<https://devfeed.tech/topics/clojure.md>), [OpenCL](<https://devfeed.tech/topics/opencl.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [addition](<https://devfeed.tech/tags/addition.md>), [ai](<https://devfeed.tech/tags/ai.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [clojure](<https://devfeed.tech/tags/clojure.md>), [cuda](<https://devfeed.tech/tags/cuda.md>), [deep](<https://devfeed.tech/tags/deep.md>), [diamond](<https://devfeed.tech/tags/diamond.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [interactive](<https://devfeed.tech/tags/interactive.md>), [opencl](<https://devfeed.tech/tags/opencl.md>), [parallel](<https://devfeed.tech/tags/parallel.md>), [programming](<https://devfeed.tech/tags/programming.md>), [repl](<https://devfeed.tech/tags/repl.md>), [tensors](<https://devfeed.tech/tags/tensors.md>)

### AI overview

ClojureCUDA 0.25.0 adds support for CUDA 13.0.2 and lets developers manage GPU work interactively from the Clojure REPL while writing kernels in C++ CUDA. The example walks through initializing a CUDA context, loading and compiling a `.cu` kernel, allocating GPU memory through either the runtime or driver API, copying vectors to the GPU, launching an asynchronous addition kernel, synchronizing, reading back the result `(3.0 5.0 7.0)`, and releasing resources. The author argues that this low-level setup is manageable and says library helpers can simplify resource handling; higher-level vector, matrix, and tensor libraries mean custom kernels are only occasionally needed. The excerpt cautions that GPU transfers and setup can outweigh computation for small or simple workloads, so GPUs make sense when there is substantial, more demanding work.

### Source excerpt

A little anniversary Did you know that CUDA has been available in Clojure for the last 9 years through ClojureCUDA, and GPU programming through OpenCL for more than 10? I almost forgot about these anniversaries. Ten years ago most people liked it a lot, starred it on Github, patted me on the back, but then concluded that they don't have an Nvidia card available on their laptops, or, if they had GPUs, that they won't have time to learn to think in massive parallel algorithms, or if they have time and will, that there are no GPUs in the servers, so what would they do with their applications, even if they created them in Clojure, and so on, and so off :) But, ClojureCUDA and ClojureCL continued living on for these 10 years, I used them in creating Neanderthal, Deep Diamond, and Diamond ML, and they proved themselves as simple and reliable tools. I still had trouble convincing Clojure programmers that they can write GPU programs that run as fast as they'd wrote them in C++, but interactively in the Cloujre REPL, without C++ hell. But I'm not easy to shake off! If it's necessary, I'll continue for 10 more years, for I'm convinced there'd be a moment when Clojure programmers are going to say "hmmm, this is something that we can use and be good at!". CUDA 13 is here! I've recently released ClojureCUDA 0.25.0, with support for the latest CUDA 13.0.2! Why not celebrate that by opening the REPL, and coding your first Hello World application on the GPU? I promise, it won't be a usual GPU carpet of text; this is ClojureCUDA, it follows the Clojure philosophy by being simple and interactive! There's not much sense in wielding a GPU to print out "Hello World". Note that it is also not very useful to work with scalar numbers and call a GPU function to add or multiply two numbers. No. Unless you have many, many, numbers to crunch, stay by your trusty CPU. For our purposes, many, many, numbers would be two vectors of dimension 3 (hey, it's hello world; imagine it's 3 billion). Also,

## Clojure Runs ONNX AI Models Now - Join the AI fun!

DevFeed: [Clojure Runs ONNX AI Models Now - Join the AI fun!](<https://devfeed.tech/articles/clojure-runs-onnx-ai-models-now-join-the-ai-fun-20727.md>)

Original publisher: [Read original article](<http://dragan.rocks/articles/25/Clojure-Runs-ONNX-AI-Models-Now>)

Published: 2025-10-26T15:56:00Z

Content type: tutorial

Language: en

Sources: [Dragan Djuric](<https://devfeed.tech/sources/dragan-djuric.md>)

Topics: [onnx](<https://devfeed.tech/topics/onnx.md>), [onnx runtime](<https://devfeed.tech/topics/onnx-runtime.md>), [AI Models](<https://devfeed.tech/topics/ai-models.md>), [Clojure](<https://devfeed.tech/topics/clojure.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Image](<https://devfeed.tech/topics/image.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-models](<https://devfeed.tech/tags/ai-models.md>), [clojure](<https://devfeed.tech/tags/clojure.md>), [deep](<https://devfeed.tech/tags/deep.md>), [diamond](<https://devfeed.tech/tags/diamond.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [gpu-computing](<https://devfeed.tech/tags/gpu-computing.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [ml](<https://devfeed.tech/tags/ml.md>), [ml-models](<https://devfeed.tech/tags/ml-models.md>), [model](<https://devfeed.tech/tags/model.md>), [models](<https://devfeed.tech/tags/models.md>), [onnx](<https://devfeed.tech/tags/onnx.md>), [onnx-runtime](<https://devfeed.tech/tags/onnx-runtime.md>), [python](<https://devfeed.tech/tags/python.md>), [pytorch](<https://devfeed.tech/tags/pytorch.md>), [tensors](<https://devfeed.tech/tags/tensors.md>)

### AI overview

The article presents a Clojure API that loads pretrained ONNX models through ONNX Runtime's underlying C library, with no Python runtime or Python interop required. Its `onnx` function turns a model into a component for Deep Diamond networks and tensors; the example loads an MNIST model, supplies a single 28x28 grayscale image, runs inference, and uses Neanderthal's `iamax` to select digit 7 from the output. The author says GPU support is desired through Clojure numerical libraries, while noting ONNX Runtime is for production inference and training is not available in this setup. The example is single-image and shows a simple tensor transfer, while the API also has options and clojurized access to internals that are left for later discussion.

### Source excerpt

Hello, Clojurians! I haven't written here in a long time. Was I tired? Is anybody reading blogs anymore? Who knows. But that was not the main reason. I've been working on several Clojure projects sponsored by the Clojurists Together Foundation. I did a ton of things, but after all this programming, I was kinda tired, and kept slugging when it comes to telling people about the work done! That's not very smart, but you know how it goes... :) But, then, if we don't tell people about awesome software that we have, nobody is going to use it, so finally I had to stop kicking this down the road, sit, and write the first post. It's been long overdue, so expect more posts soon! ONNX Runtime in one line of Clojure The most recent thing I'm currently working on started its life as Clojure ML (again, superthanks to Clojurists Together for sponsoring this). I proposed to create a human-friendly Clojure API for AI/DL/ML models, and back it by the first implementation, in this case based on ONNX Runtime. Of course, it should all be integrated into existing Clojure libraries, and follow the Clojure way of doing stuff as much as possible! The idea is to get an existing, pre-trained ML model previously exported to the ONNX format from whatever technology the authors chose (which in today's world is typically Python and PyTorch), and put it into production in Clojure and JVM. It should be seamless and in-process, without any clunky interoperability, copy, translation, etc. Of course, our Clojure numerical libraries fully support GPU computing, so it goes without saying that we want that, too! Just to be clear, we do not use nor need any Python or Python interop for this, we use the ONNX Runtime's underlying C library. Nice idea, but what parts of this well intended story can we evaluate in our REPLs right now? At least some promising demo? Are we on the trail? To access that AI goodness, we surely have to do a sophisticated dance? Are the steps hard to learn? Do we need to watch careful

## Remote VAEs for decoding with Inference Endpoints 🤗

DevFeed: [Remote VAEs for decoding with Inference Endpoints 🤗](<https://devfeed.tech/articles/remote-vaes-for-decoding-with-inference-endpoints-7456.md>)

Original publisher: [Read original article](<https://huggingface.co/blog/remote_vae>)

Author: hlky; Sayak Paul

Published: 2025-02-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [Hugging Face](<https://devfeed.tech/sources/hugging-face-blog.md>)

Topics: [VAE](<https://devfeed.tech/topics/vae.md>), [inference-endpoints](<https://devfeed.tech/topics/inference-endpoints.md>), [diffusers](<https://devfeed.tech/topics/diffusers.md>), [hugging face](<https://devfeed.tech/topics/hugging-face.md>), [Inference](<https://devfeed.tech/topics/inference.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Deadlock](<https://devfeed.tech/topics/deadlock.md>)

Tags: [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [data](<https://devfeed.tech/tags/data.md>), [diffusers](<https://devfeed.tech/tags/diffusers.md>), [diffusion](<https://devfeed.tech/tags/diffusion.md>), [generate](<https://devfeed.tech/tags/generate.md>), [generation](<https://devfeed.tech/tags/generation.md>), [getting-started](<https://devfeed.tech/tags/getting-started.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [hdd](<https://devfeed.tech/tags/hdd.md>), [inference](<https://devfeed.tech/tags/inference.md>), [inference-endpoints](<https://devfeed.tech/tags/inference-endpoints.md>), [nvme](<https://devfeed.tech/tags/nvme.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [queue](<https://devfeed.tech/tags/queue.md>), [remote](<https://devfeed.tech/tags/remote.md>), [tensors](<https://devfeed.tech/tags/tensors.md>), [time](<https://devfeed.tech/tags/time.md>), [vae](<https://devfeed.tech/tags/vae.md>)

### AI overview

This article presents an experimental approach for decoding latent-space diffusion outputs with remote VAEs hosted on Inference Endpoints. It explains how remote decoding can reduce consumer GPU memory pressure, avoid the quality loss associated with tiled decoding, and improve concurrency by queueing generation requests. The article includes setup and usage examples for random tensors and pipelines involving SD v1.5, Flux, and HunyuanVideo.

### Source excerpt

We're on a journey to advance and democratize artificial intelligence through open source and open science.

## Visualize and understand GPU memory in PyTorch

DevFeed: [Visualize and understand GPU memory in PyTorch](<https://devfeed.tech/articles/visualize-and-understand-gpu-memory-in-pytorch-7532.md>)

Original publisher: [Read original article](<https://huggingface.co/blog/train_memory>)

Author: Quentin Gallouédec

Published: 2024-12-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [Hugging Face](<https://devfeed.tech/sources/hugging-face-blog.md>)

Topics: [PyTorch](<https://devfeed.tech/topics/pytorch.md>), [GPU](<https://devfeed.tech/topics/gpu.md>), [Deep neural networks](<https://devfeed.tech/topics/deep-neural-networks.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [graph](<https://devfeed.tech/tags/graph.md>), [memory](<https://devfeed.tech/tags/memory.md>), [neural-networks](<https://devfeed.tech/tags/neural-networks.md>), [pytorch](<https://devfeed.tech/tags/pytorch.md>), [tensors](<https://devfeed.tech/tags/tensors.md>), [train](<https://devfeed.tech/tags/train.md>), [training](<https://devfeed.tech/tags/training.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

A tutorial on visualizing and understanding GPU memory usage in PyTorch during training. It explains how model creation, input and output tensors, activations, forward passes, backpropagation, and variable reassignment affect memory, and discusses estimating requirements and optimizing usage.

### Source excerpt

We're on a journey to advance and democratize artificial intelligence through open source and open science.

[Next page](<https://devfeed.tech/tags/tensors.md?cursor=WyIyMDI0LTEyLTI0VDAwOjAwOjAwKzAwOjAwIiwgImI4MTZjOGRlLWJkYmMtNGIxNy04N2MzLWE5YWFkZDk3MDYxNCJd>)