paper-with-me

홈 › Papers

Tensors Fitting Perfectly

2021-02-26 · Adam Paszke, Brennan Saeta

Multidimensional arrays (NDArrays) are a central abstraction in modern scientific computing environments. Unfortunately, they can make reasoning about programs harder as the number of different array shapes used in an execution of a program is usually very large, and they rarely appear explicitly in program text. To make things worse, many operators make implicit assumptions about the shapes of their inputs: array addition is commonly enriched with broadcasting semantics, while matrix multiplication assumes that the lengths of contracted dimensions are equal. Because precise reasoning about shapes is crucial to write correct programs using NDArrays, and because shapes are often hard to infer from a quick glance at the program, we developed Tensors Fitting Perfectly, a static analysis tool that reasons about NDArray shapes in Swift for TensorFlow programs by synthesizing a set of shape constraints from an abstract interpretation of the program. It can both (1) check for possible inconsistencies, and (2) provide direct insights about the shapes of intermediate values appearing in the program, including via a mechanism called shape holes. The static analysis works in concert with optional runtime assertions to improve the productivity of program authors.

📄 PDF Abstract BibTeX arXiv:2102.13254

Code (1)

google-research/swift-tfp 공식 구현 tf

Similar Papers 제목 키워드 기반

Provable Tempered Overfitting of Minimal Nets and Typical Nets

2024-10-24 · Itamar Harel, William M. Hoza, Gal Vardi, Itay Evron 외

We study the overfitting behavior of fully connected deep Neural Networks (NNs) with binary weights fitted to perfectly classify a noisy training set. We consider interpolation using both the smallest NN (having the mini…

Benign Overfitting in Single-Head Attention

2024-10-10 · Roey Magen, Shuning Shang, Zhiwei Xu, Spencer Frei 외

The phenomenon of benign overfitting, where a trained neural network perfectly fits noisy training data but still achieves near-optimal test performance, has been extensively studied in recent years for linear models and…

Self-Supervised Nonlinear Transform-Based Tensor Nuclear Norm for Multi-Dimensional Image Recovery

2021-05-29 · Yi-Si Luo, Xi-Le Zhao, Tai-Xiang Jiang, Yi Chang 외

In this paper, we study multi-dimensional image recovery. Recently, transform-based tensor nuclear norm minimization methods are considered to capture low-rank tensor structures to recover third-order tensors in multi-di…

Exact Tensor Completion Powered by Slim Transforms

2024-02-02 · Li Ge, Lin Chen, Yudong Chen, Xue Jiang

In this work, a tensor completion problem is studied, which aims to perfectly recover the tensor from partial observations. The existing theoretical guarantee requires the involved transform to be orthogonal, which hinde…

Embedding Lexical Features via Low-Rank Tensors

2016-04-02 · NAACL 2016 6 · Mo Yu, Mark Dredze, Raman Arora, Matthew Gormley

Modern NLP models rely heavily on engineered features, which often combine word and contextual information into complex lexical features. Such combination results in large numbers of features, which can lead to over-fitt…

Relation Extraction