Papers.
Research connected to its authors, projects, companies, talks, events, and the rest of the graph.
Add a paper ↗Improving language models by retrieving from trillions of tokens
ICML · arXiv 2112.04426 · 1,841 citations · Source: arxiv+semantic-scholarWe enhance auto-regressive language models by conditioning on document chunks retrieved from a large corpus, based on local similarity with preceding tokens. With a $2$ trillion token database, our Retrieval-Enhanced Transformer (RETRO) obtains comparable performance to GPT-3 and Jurassic-1 on the Pile, despite using 25$\times$ fewer parameters. After fine-tuning, RETRO performance translates to downstream knowledge-intensive tasks such as question answering. RETRO combines a frozen Bert retriever, a differentiable encoder and a chunked cross-attention mechanism to predict tokens based on an order of magnitude more data than what is typically consumed during training. We typically train RETRO from scratch, yet can also rapidly RETROfit pre-trained transformers with retrieval and still achieve good performance. Our work opens up new avenues for improving language models through explicit memory at unprecedented scale.
Erich Elsen, Sebastian Borgeaud, Arthur Mensch, Jordan Hoffmann, Trevor Cai, Eliza Rutherford, Katie Millican, George van den Driessche · 28 authors totalHindsight Task Relabelling: Experience Replay for Sparse Reward Meta-RL
Advances in Neural Information Processing Systems · arXiv 2112.00901 · Source: neurips+berkeley-authorityCharles Packer, Pieter Abbeel, Joseph E. Gonzalez · 3 authors totalA General Language Assistant as a Laboratory for Alignment
arXiv.org · arXiv 2112.00861 · 1,203 citations · Source: semantic-scholarGiven the broad capabilities of large language models, it should be possible to work towards a general-purpose, text-based assistant that is aligned with human values, meaning that it is helpful, honest, and harmless. As an initial foray in this direction we study simple baseline techniques and evaluations, such as prompting. We find that the benefits from modest interventions increase with model size, generalize to a variety of alignment evaluations, and do not compromise the performance of large models. Next we investigate scaling trends for several training objectives relevant to alignment, comparing imitation learning, binary discrimination, and ranked preference modeling. We find that ranked preference modeling performs much better than imitation learning, and often scales more favorably with model size. In contrast, binary discrimination typically performs and scales very similarly to imitation learning. Finally we study a `preference model pre-training' stage of training, with the goal of improving sample efficiency when finetuning on human preferences.
Tom Brown, Amanda Askell, Yuntao Bai, Anna Chen, Dawn Drain, Deep Ganguli, T. Henighan, Andy Jones · 22 authors totalShow Your Work: Scratchpads for Intermediate Computation with Language Models
CoRR · arXiv 2112.00114 · Source: first-party+openalexMaarten Bosma, Maxwell Nye, Anders Johan Andreassen, Guy Gur-Ari, Henryk Michalewski, Jacob Austin, David Bieber, David Dohan · 12 authors totalPersonalized Benchmarking with the Ludwig Benchmarking Toolkit
arXiv · DOI 10.48550/arxiv.2111.04260 · arXiv 2111.04260 · 1 citations · Source: openalexThe rapid proliferation of machine learning models across domains and deployment settings has given rise to various communities (e.g. industry practitioners) which seek to benchmark models across tasks and objectives of personal value. Unfortunately, these users cannot use standard benchmark results to perform such value-driven comparisons as traditional benchmarks evaluate models on a single objective (e.g. average accuracy) and fail to facilitate a standardized training framework that controls for confounding variables (e.g. computational budget), making fair comparisons difficult. To address these challenges, we introduce the open-source Ludwig Benchmarking Toolkit (LBT), a personalized benchmarking toolkit for running end-to-end benchmark studies (from hyperparameter optimization to evaluation) across an easily extensible set of tasks, deep learning models, datasets and evaluation metrics. LBT provides a configurable interface for controlling training and customizing evaluation, a standardized training framework for eliminating confounding variables, and support for multi-objective evaluation. We demonstrate how LBT can be used to create personalized benchmark studies with a large-scale comparative analysis for text classification across 7 models and 9 datasets. We explore the trade-offs between inference latency and performance, relationships between dataset attributes and performance, and the effects of pretraining on convergence and robustness, showing how LBT can be used to satisfy various benchmarking objectives.
Piero Molino, Avanika Narayan, Karan Goel, Willie Neiswanger, Christopher Ré · 5 authors totalAugMax: Adversarial Composition of Random Augmentations for Robust Training
Neural Information Processing Systems · arXiv 2110.13771 · 149 citations · Source: semantic-scholarData augmentation is a simple yet effective way to improve the robustness of deep neural networks (DNNs). Diversity and hardness are two complementary dimensions of data augmentation to achieve robustness. For example, AugMix explores random compositions of a diverse set of augmentations to enhance broader coverage, while adversarial training generates adversarially hard samples to spot the weakness. Motivated by this, we propose a data augmentation framework, termed AugMax, to unify the two aspects of diversity and hardness. AugMax first randomly samples multiple augmentation operators and then learns an adversarial mixture of the selected operators. Being a stronger form of data augmentation, AugMax leads to a significantly augmented input distribution which makes model training more challenging. To solve this problem, we further design a disentangled normalization module, termed DuBIN (Dual-Batch-and-Instance Normalization), that disentangles the instance-wise feature heterogeneity arising from AugMax. Experiments show that AugMax-DuBIN leads to significantly improved out-of-distribution robustness, outperforming prior arts by 3.03%, 3.49%, 1.82% and 0.71% on CIFAR10-C, CIFAR100-C, Tiny ImageNet-C and ImageNet-C. Codes and pretrained models are available: https://github.com/VITA-Group/AugMax.
Jean Kossaifi, Haotao Wang, Chaowei Xiao, Zhiding Yu, Anima Anandkumar, Zhangyang Wang · 6 authors totalBristle: Decentralized Federated Learning in Byzantine, Non-i.i.d. Environments
arXiv (Cornell University) · DOI 10.48550/arxiv.2110.11006 · 0 citations · Source: openalex+orcid+dblp-identityJohan Pouwelse, Joost Verbraeken, Martijn de Vos · 3 authors totalLooper: An end-to-end ML platform for product decisions
arXiv (Cornell University) · DOI 10.48550/arxiv.2110.07554 · 0 citations · Source: openalex+career-authoritySal Uryasev, Igor L. Markov, Hanson Wang, Nitya Kasturi, Shaun Singh, Sze Wai Yuen, Mia R. Garrard, Sarah Tran · 19 authors totalFrequency-aware SGD for Efficient Embedding Learning with Provable Benefits
arXiv · DOI 10.48550/arxiv.2110.04844 · arXiv 2110.04844 · 0 citations · Source: openalexEmbedding learning has found widespread applications in recommendation systems and natural language modeling, among other domains. To learn quality embeddings efficiently, adaptive learning rate algorithms have demonstrated superior empirical performance over SGD, largely accredited to their token-dependent learning rate. However, the underlying mechanism for the efficiency of token-dependent learning rate remains underexplored. We show that incorporating frequency information of tokens in the embedding learning problems leads to provably efficient algorithms, and demonstrate that common adaptive algorithms implicitly exploit the frequency information to a large extent. Specifically, we propose (Counter-based) Frequency-aware Stochastic Gradient Descent, which applies a frequency-dependent learning rate for each token, and exhibits provable speed-up compared to SGD when the token distribution is imbalanced. Empirically, we show the proposed algorithms are able to improve or match adaptive algorithms on benchmark recommendation tasks and a large-scale industrial recommendation system, closing the performance gap between SGD and adaptive algorithms. Our results are the first to show token-dependent learning rate provably improves convergence for non-convex embedding learning problems.
Dhruv Choudhary, Yan Li, Xiaohan Wei, Baichuan Yuan, Bhargav Bhushanam, Tuo Zhao, Guanghui Lan · 7 authors totalSYGMA: System for Generalizable Modular Question Answering OverKnowledge Bases
arXiv.org · arXiv 2109.13430 · 17 citations · Source: arxiv+semantic-scholarKnowledge Base Question Answering (KBQA) tasks that in-volve complex reasoning are emerging as an important re-search direction. However, most KBQA systems struggle withgeneralizability, particularly on two dimensions: (a) acrossmultiple reasoning types where both datasets and systems haveprimarily focused on multi-hop reasoning, and (b) across mul-tiple knowledge bases, where KBQA approaches are specif-ically tuned to a single knowledge base. In this paper, wepresent SYGMA, a modular approach facilitating general-izability across multiple knowledge bases and multiple rea-soning types. Specifically, SYGMA contains three high levelmodules: 1) KB-agnostic question understanding module thatis common across KBs 2) Rules to support additional reason-ing types and 3) KB-specific question mapping and answeringmodule to address the KB-specific aspects of the answer ex-traction. We demonstrate effectiveness of our system by evalu-ating on datasets belonging to two distinct knowledge bases,DBpedia and Wikidata. In addition, to demonstrate extensi-bility to additional reasoning types we evaluate on multi-hopreasoning datasets and a new Temporal KBQA benchmarkdataset on Wikidata, namedTempQA-WD1, introduced in thispaper. We show that our generalizable approach has bettercompetetive performance on multiple datasets on DBpediaand Wikidata that requires both multi-hop and temporal rea-soning
Rosario Uceda-Sosa, Sumit Neelam, Udit Sharma, Hima Karanam, Shajith Ikbal, Pavan Kapanipathi, Ibrahim Abdelaziz, Nandana Mihindukulasooriya · 24 authors totalNanoBatch DPSGD: Exploring Differentially Private learning on ImageNet with low batch sizes on the IPU
CoRR · arXiv 2109.12191 · Source: dblp+career-authorityAlexander Tsyplikhin, Edward H. Lee, Mario Michael Krell, Victoria Rege, Errol Colak, Kristen W. Yeom · 6 authors totalA Deep Learning Approach for Masking Fetal Gender in Ultrasound Images
arXiv · arXiv 2109.06790 · Source: arxiv+career-authorityArshak Navruzyan, Amit Borundiya, Dennis Igoschev, Feras C. Oughali, Hemanth Pasupuleti, Mike Fuller, Vinay Kanigicherla, T S Aniruddha Kashyap · 10 authors totalFinetuned Language Models Are Zero-Shot Learners
CoRR · arXiv 2109.01652 · Source: first-party+openalexMaarten Bosma, Jason Wei, Vincent Y. Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M. Dai · 9 authors totalProgram Synthesis with Large Language Models
CoRR · arXiv 2108.07732 · Source: first-party+openalexMaarten Bosma, Jacob Austin, Augustus Odena, Maxwell Nye, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai · 11 authors totalOn the Opportunities and Risks of Foundation Models
arXiv.org · DOI 10.48550/arxiv.2108.07258 · arXiv 2108.07258 · 7,170 citations · Source: semantic-scholar+openalexAI is undergoing a paradigm shift with the rise of models (e.g., BERT, DALL-E, GPT-3) that are trained on broad data at scale and are adaptable to a wide range of downstream tasks. We call these models foundation models to underscore their critically central yet incomplete character. This report provides a thorough account of the opportunities and risks of foundation models, ranging from their capabilities (e.g., language, vision, robotics, reasoning, human interaction) and technical principles(e.g., model architectures, training procedures, data, systems, security, evaluation, theory) to their applications (e.g., law, healthcare, education) and societal impact (e.g., inequity, misuse, economic and environmental impact, legal and ethical considerations). Though foundation models are based on standard deep learning and transfer learning, their scale results in new emergent capabilities,and their effectiveness across so many tasks incentivizes homogenization. Homogenization provides powerful leverage but demands caution, as the defects of the foundation model are inherited by all the adapted models downstream. Despite the impending widespread deployment of foundation models, we currently lack a clear understanding of how they work, when they fail, and what they are even capable of due to their emergent properties. To tackle these questions, we believe much of the critical research on foundation models will require deep interdisciplinary collaboration commensurate with their fundamentally sociotechnical nature.
Matei Zaharia, Rishi Bommasani, Drew A. Hudson, Ehsan Adeli, R. Altman, Simran Arora, Sydney von Arx, Michael S. Bernstein · 114 authors totalA Limitlessly Scalable Transaction System
CoRR · arXiv 2108.05236 · Source: arxiv+lakera-first-party-careerMax Mathys, Roland Schmid, Jakub Sliwinski, Roger Wattenhofer · 4 authors totalPrivacy-Preserving Machine Learning: Methods, Challenges and Directions
arXiv.org · arXiv 2108.04417 · 169 citations · Source: semantic-scholar+arxivMachine learning (ML) is increasingly being adopted in a wide variety of application domains. Usually, a well-performing ML model relies on a large volume of training data and high-powered computational resources. Such a need for and the use of huge volumes of data raise serious privacy concerns because of the potential risks of leakage of highly privacy-sensitive information; further, the evolving regulatory environments that increasingly restrict access to and use of privacy-sensitive data add significant challenges to fully benefiting from the power of ML for data-driven applications. A trained ML model may also be vulnerable to adversarial attacks such as membership, attribute, or property inference attacks and model inversion attacks. Hence, well-designed privacy-preserving ML (PPML) solutions are critically needed for many emerging applications. Increasingly, significant research efforts from both academia and industry can be seen in PPML areas that aim toward integrating privacy-preserving techniques into ML pipeline or specific algorithms, or designing various PPML architectures. In particular, existing PPML research cross-cut ML, systems and applications design, as well as security and privacy areas; hence, there is a critical need to understand state-of-the-art research, related challenges and a research roadmap for future research in PPML area. In this paper, we systematically review and summarize existing privacy-preserving approaches and propose a Phase, Guarantee, and Utility (PGU) triad based model to understand and guide the evaluation of various PPML solutions by decomposing their privacy-preserving functionalities. We discuss the unique characteristics and challenges of PPML and outline possible research directions that leverage as well as benefit multiple research communities such as ML, distributed systems, security and privacy.
Nathalie Baracaldo, Runhua Xu, J. Joshi · 3 authors totalAutomatic recognition of suprasegmentals in speech
arXiv (Cornell University) · DOI 10.48550/arxiv.2108.01122 · 2 citations · Source: openalex+first-party-career-authorityMark Liberman, Jiahong Yuan, Neville Ryant, Xingyu Cai, Kenneth Church · 5 authors totalProof: Accelerating Approximate Aggregation Queries with Expensive Predicates
arXiv (Cornell University) · DOI 10.48550/arxiv.2107.12525 · 0 citations · Source: openalex+authoritative-profilePeter Bailis, Daniel Kang, John Guibas, Tatsunori Hashimoto, Yi Sun, Matei Zaharia · 6 authors totalAccuracy on the Line: on the Strong Correlation Between Out-of-Distribution and In-Distribution Generalization
International Conference on Machine Learning · arXiv 2107.04649 · 342 citations · Source: semantic-scholarFor machine learning systems to be reliable, we must understand their performance in unseen, out-of-distribution environments. In this paper, we empirically show that out-of-distribution performance is strongly correlated with in-distribution performance for a wide range of models and distribution shifts. Specifically, we demonstrate strong correlations between in-distribution and out-of-distribution performance on variants of CIFAR-10&ImageNet, a synthetic pose estimation task derived from YCB objects, satellite imagery classification in FMoW-WILDS, and wildlife classification in iWildCam-WILDS. The strong correlations hold across model architectures, hyperparameters, training set size, and training duration, and are more precise than what is expected from existing domain adaptation theory. To complete the picture, we also investigate cases where the correlation is weaker, for instance some synthetic distribution shifts from CIFAR-10-C and the tissue classification dataset Camelyon17-WILDS. Finally, we provide a candidate theory based on a Gaussian data model that shows how changes in the data covariance arising from distribution shift can affect the observed correlations.
Vaishaal Shankar, John Miller, Rohan Taori, Aditi Raghunathan, Shiori Sagawa, Pang Wei Koh, Percy Liang, Y. Carmon · 9 authors totalNative Implementation of Mutable Value Semantics
arXiv · DOI 10.48550/arxiv.2106.12678 · arXiv 2106.12678 · 0 citations · Source: openalexUnrestricted mutation of shared state is a source of many well-known problems. The predominant safe solutions are pure functional programming, which bans mutation outright, and flow sensitive type systems, which depend on sophisticated typing rules. Mutable value semantics is a third approach that bans sharing instead of mutation, thereby supporting part-wise in-place mutation and local reasoning, while maintaining a simple type system. In the purest form of mutable value semantics, references are second-class: they are only created implicitly, at function boundaries, and cannot be stored in variables or object fields. Hence, variables can never share mutable state. Because references are often regarded as an indispensable tool to write efficient programs, it is legitimate to wonder whether such a discipline can compete other approaches. As a basis for answering that question, we demonstrate how a language featuring mutable value semantics can be compiled to efficient native code. This approach relies on stack allocation for static garbage collection and leverages runtime knowledge to sidestep unnecessary copies.
Brennan Saeta, Denys Shabalin, Dimitri Racordon, Daniel Zheng, Dave Abrahams · 5 authors totalGRAND: Graph Neural Diffusion
ICML 2021 · arXiv 2106.10934 · 399 citations · Source: arxiv+semantic-scholarWe present Graph Neural Diffusion (GRAND) that approaches deep learning on graphs as a continuous diffusion process and treats Graph Neural Networks (GNNs) as discretisations of an underlying PDE. In our model, the layer structure and topology correspond to the discretisation choices of temporal and spatial operators. Our approach allows a principled development of a broad new class of GNNs that are able to address the common plights of graph learning models such as depth, oversmoothing, and bottlenecks. Key to the success of our models are stability with respect to perturbations in the data and this is addressed for both implicit and explicit discretisation schemes. We develop linear and nonlinear versions of GRAND, which achieve competitive results on many standard graph benchmarks.
Stefan Webb, B. Chamberlain, J. Rowbottom, Maria I. Gorinova, Emanuele Rossi, M. Bronstein · 6 authors totalProcess for Adapting Language Models to Society (PALMS) with Values-Targeted Datasets
NeurIPS · arXiv 2106.10328 · Source: neurips+arxiv+dblpIrene Solaiman, Christy Dennison · 2 authors totalOn-Device Personalization of Automatic Speech Recognition Models for Disordered Speech.
CoRR · arXiv 2106.10259 · Source: dblpKatrin Tomanek, Françoise Beaufays, Julie Cattiau, Angad Chandorkar, Khe Chai Sim · 5 authors totalTop-KAST: Top-K Always Sparse Training
NeurIPS · arXiv 2106.03517 · 116 citations · Source: arxiv+semantic-scholarSparse neural networks are becoming increasingly important as the field seeks to improve the performance of existing models by scaling them up, while simultaneously trying to reduce power consumption and computational footprint. Unfortunately, most existing methods for inducing performant sparse models still entail the instantiation of dense parameters, or dense gradients in the backward-pass, during training. For very large models this requirement can be prohibitive. In this work we propose Top-KAST, a method that preserves constant sparsity throughout training (in both the forward and backward-passes). We demonstrate the efficacy of our approach by showing that it performs comparably to or better than previous works when training models on the established ImageNet benchmark, whilst fully maintaining sparsity. In addition to our ImageNet results, we also demonstrate our approach in the domain of language modeling where the current best performing architectures tend to have tens of billions of parameters and scaling up does not yet seem to have saturated performance. Sparse versions of these architectures can be run with significantly fewer resources, making them more widely accessible and applicable. Furthermore, in addition to being effective, our approach is straightforward and can easily be implemented in a wide range of existing machine learning frameworks with only a few additional lines of code. We therefore hope that our contribution will help enable the broader community to explore the potential held by massive models, without incurring massive computational cost.
Erich Elsen, Siddhant M. Jayakumar, Razvan Pascanu, Jack W. Rae, Simon Osindero · 5 authors totalCounterfactual Explanations Can Be Manipulated
Neural Information Processing Systems · arXiv 2106.02666 · 178 citations · Source: semantic-scholarCounterfactual explanations are emerging as an attractive option for providing recourse to individuals adversely impacted by algorithmic decisions. As they are deployed in critical applications (e.g. law enforcement, financial lending), it becomes important to ensure that we clearly understand the vulnerabilities of these methods and find ways to address them. However, there is little understanding of the vulnerabilities and shortcomings of counterfactual explanations. In this work, we introduce the first framework that describes the vulnerabilities of counterfactual explanations and shows how they can be manipulated. More specifically, we show counterfactual explanations may converge to drastically different counterfactuals under a small perturbation indicating they are not robust. Leveraging this insight, we introduce a novel objective to train seemingly fair models where counterfactual explanations find much lower cost recourse under a slight perturbation. We describe how these models can unfairly provide low-cost recourse for specific subgroups in the data while appearing fair to auditors. We perform experiments on loan and violent crime prediction data sets where certain subgroups achieve up to 20x lower cost recourse under the perturbation. These results raise concerns regarding the dependability of current counterfactual explanation techniques, which we hope will inspire investigations in robust counterfactual explanations.
Sameer Singh, Dylan Slack, Sophie Hilgard, Himabindu Lakkaraju · 4 authors totalTesseract: Tensorised Actors for Multi-Agent Reinforcement Learning
International Conference on Machine Learning · arXiv 2106.00136 · 41 citations · Source: semantic-scholarReinforcement Learning in large action spaces is a challenging problem. This is especially true for cooperative multi-agent reinforcement learning (MARL), which often requires tractable learning while respecting various constraints like communication budget and information about other agents. In this work, we focus on the fundamental hurdle affecting both value-based and policy-gradient approaches: an exponential blowup of the action space with the number of agents. For value-based methods, it poses challenges in accurately representing the optimal value function for value-based methods, thus inducing suboptimality. For policy gradient methods, it renders the critic ineffective and exacerbates the problem of the lagging critic. We show that from a learning theory perspective, both problems can be addressed by accurately representing the associated action-value function with a low-complexity hypothesis class. This requires accurately modelling the agent interactions in a sample efficient way. To this end, we propose a novel tensorised formulation of the Bellman equation. This gives rise to our method Tesseract, which utilises the view of Q-function seen as a tensor where the modes correspond to action spaces of different agents. Algorithms derived from Tesseract decompose the Q-tensor across the agents and utilise low-rank tensor approximations to model the agent interactions relevant to the task. We provide PAC analysis for Tesseract based algorithms and highlight their relev
Jean Kossaifi, Anuj Mahajan, Mikayel Samvelyan, Lei Mao, Viktor Makoviychuk, Animesh Garg, Shimon Whiteson, Yuke Zhu · 9 authors totalCARLS: Cross-platform Asynchronous Representation Learning System
arXiv.org · arXiv 2105.12849 · 0 citations · Source: semantic-scholarIn this work, we propose CARLS, a novel framework for augmenting the capacity of existing deep learning frameworks by enabling multiple components -- model trainers, knowledge makers and knowledge banks -- to concertedly work together in an asynchronous fashion across hardware platforms. The proposed CARLS is particularly suitable for learning paradigms where model training benefits from additional knowledge inferred or discovered during training, such as node embeddings for graph neural networks or reliable pseudo labels from model predictions. We also describe three learning paradigms -- semi-supervised learning, curriculum learning and multimodal learning -- as examples that can be scaled up efficiently by CARLS. One version of CARLS has been open-sourced and available for download at: https://github.com/tensorflow/neural-structured-learning/tree/master/research/carls
Reah Miyara, Chun-Ta Lu, Yun Zeng, Da-Cheng Juan, Yicheng Fan, Zhe Li, Jan Dlabal, Yi-Ting Chen · 16 authors totalCodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Tasks
NeurIPS 2021 Datasets and Benchmarks · arXiv 2105.12655 · 404 citations · Source: semantic-scholar+arxivOver the last several decades, software has been woven into the fabric of every aspect of our society. As software development surges and code infrastructure of enterprise applications ages, it is now more critical than ever to increase software development productivity and modernize legacy applications. Advances in deep learning and machine learning algorithms have enabled numerous breakthroughs, motivating researchers to leverage AI techniques to improve software development efficiency. Thus, the fast-emerging research area of AI for Code has garnered new interest and gathered momentum. In this paper, we present a large-scale dataset CodeNet, consisting of over 14 million code samples and about 500 million lines of code in 55 different programming languages, which is aimed at teaching AI to code. In addition to its large scale, CodeNet has a rich set of high-quality annotations to benchmark and help accelerate research in AI techniques for a variety of critical coding tasks, including code similarity and classification, code translation between a large variety of programming languages, and code performance (runtime and memory) improvement techniques. Additionally, CodeNet provides sample input and output test sets for 98.5% of the code samples, which can be used as an oracle for determining code correctness and potentially guide reinforcement learning for code quality improvements. As a usability feature, we provide several pre-processing tools in CodeNet to transform source code into representations that can be readily used as inputs into machine learning models. Results of code classification and code similarity experiments using the CodeNet dataset are provided as a reference. We hope that the scale, diversity and rich, high-quality annotations of CodeNet will offer unprecedented research opportunities at the intersection of AI and Software Engineering.
Susan Malaika, Ruchi Puri, David S. Kung, G. Janssen, Wei Zhang, Giacomo Domeniconi, Vladmir A. Zolotov, Julian Dolby · 14 authors totalTracking Captured Variables in Types
arXiv 2105.11896 · 11 citations · Source: arxivType systems usually characterize the shape of values but not their free variables. However, there are many desirable safety properties one could guarantee if one could track how references can escape. For example, one may implement algebraic effect handlers using capabilities -- a value which permits one to perform the effect -- safely if one can guarantee that the capability itself does not escape the scope bound by the effect handler. To this end, we study the $\textrm{CF}_{<:}$ calculus, a conservative and lightweight extension of $\textrm{System F}_{<:}$, to track how values and their references can be captured and escape. We show that existing terms in $\textrm{System F}_{<:}$ embed naturally in our calculus, and that many natural problems can be expressed in a system that tracks variable references like we do in $\textrm{CF}_{<:}$. We also give mechanized proofs of the soundness properties of $\textrm{CF}_{<:}$ in Coq. The type system presented in $\textrm{CF}_{<:}$ is powerful enough to reason about safety in the context of many natural extensions of $\textrm{CF}_{<:}$ such as region-based memory-management, non-local returns, and effect handlers.
Martin Odersky, Aleksander Boruch-Gruszecki, Jonathan Immanuel Brachthäuser, Edward Lee, Ondřej Lhoták · 5 authors totalEASE: Extractive-Abstractive Summarization with Explanations
arXiv · arXiv 2105.06982 · 16 citations · Source: semantic-scholarCurrent abstractive summarization systems outperform their extractive counterparts, but their widespread adoption is inhibited by the inherent lack of interpretability. To achieve the best of both worlds, we propose EASE, an extractive-abstractive framework for evidence-based text generation and apply it to document summarization. We present an explainable summarization system based on the Information Bottleneck principle that is jointly trained for extraction and abstraction in an end-to-end fashion. Inspired by previous research that humans use a two-stage framework to summarize long documents (Jing and McKeown, 2000), our framework first extracts a pre-defined amount of evidence spans as explanations and then generates a summary using only the evidence. Using automatic and human evaluations, we show that explanations from our framework are more relevant than simple baselines, without substantially sacrificing the quality of the generated summary.
Sonal Gupta, Haoran Li, Arash Einolghozati, Srini Iyer, Bhargavi Paranjape, Yashar Mehdad, Marjan Ghazvininejad · 7 authors totalBring Your Own Codegen to Deep Learning Compiler
arXiv · arXiv 2105.03215 · 20 citations · Source: semantic-scholar+dblpDeep neural networks (DNNs) have been ubiquitously applied in many applications, and accelerators are emerged as an enabler to support the fast and efficient inference tasks of these applications. However, to achieve high model coverage with high performance, each accelerator vendor has to develop a full compiler stack to ingest, optimize, and execute the DNNs. This poses significant challenges in the development and maintenance of the software stack. In addition, the vendors have to contiguously update their hardware and/or software to cope with the rapid evolution of the DNN model architectures and operators. To address these issues, this paper proposes an open source framework that enables users to only concentrate on the development of their proprietary code generation tools by reusing as many as possible components in the existing deep learning compilers. Our framework provides users flexible and easy-to-use interfaces to partition their models into segments that can be executed on"the best"processors to take advantage of the powerful computation capability of accelerators. Our case study shows that our framework has been deployed in multiple commercial vendors' compiler stacks with only a few thousand lines of code.
Jared Roesch, Zhi Chen, C. Yu, T. Morris, Jorn Tuyls, Yi-Hsiang Lai, Elliott Delaye, Vin Sharma · 9 authors totalQuantum Algorithms for Financial Applications
arXiv · arXiv 2105.02868 · Source: arxiv+jpmorgan-career-authorityConstantin Gonciulea, Marco Pistoia, Abhijit Rao · 3 authors totalASTANA: Practical String Deobfuscation for Android Applications Using Program Slicing
arXiv (Cornell University) · DOI 10.48550/arxiv.2104.02612 · 4 citations · Source: openalex+orcid+dblp-identityJohan Pouwelse, Martijn de Vos · 2 authors totalRepresentation range needs for 16-bit neural network training
arXiv preprint · arXiv 2103.15940 · 3 citations · Source: arxivDeep learning has grown rapidly thanks to its state-of-the-art performance across a wide range of real-world applications. While neural networks have been trained using IEEE-754 binary32 arithmetic, the rapid growth of computational demands in deep learning has boosted interest in faster, low precision training. Mixed-precision training that combines IEEE-754 binary16 with IEEE-754 binary32 has been tried, and other $16$-bit formats, for example Google's bfloat16, have become popular. In floating-point arithmetic there is a tradeoff between precision and representation range as the number of exponent bits changes; denormal numbers extend the representation range. This raises questions of how much exponent range is needed, of whether there is a format between binary16 (5 exponent bits) and bfloat16 (8 exponent bits) that works better than either of them, and whether or not denormals are necessary. In the current paper we study the need for denormal numbers for mixed-precision training, and we propose a 1/6/9 format, i.e., 6-bit exponent and 9-bit explicit mantissa, that offers a better range-precision tradeoff. We show that 1/6/9 mixed-precision training is able to speed up training on hardware that incurs a performance slowdown on denormal operations or eliminates the need for denormal numbers altogether. And, for a number of fully connected and convolutional neural networks in computer vision and natural language processing, 1/6/9 achieves numerical parity to standard mixed-precision.
Abhi Venigalla, Valentina Popescu, Abhinav Venigalla, Di Wu, Robert Schreiber · 5 authors totalLazyTensor: combining eager execution with domain-specific compilers
arXiv · DOI 10.48550/arxiv.2102.13267 · arXiv 2102.13267 · 6 citations · Source: openalexDomain-specific optimizing compilers have demonstrated significant performance and portability benefits, but require programs to be represented in their specialized IRs. Existing frontends to these compilers suffer from the "language subset problem" where some host language features are unsupported in the subset of the user's program that interacts with the domain-specific compiler. By contrast, define-by-run ML frameworks-colloquially called "eager" mode-are popular due to their ease of use and expressivity, where the full power of the host programming language can be used. LazyTensor is a technique to target domain specific compilers without sacrificing define-by-run ergonomics. Initially developed to support PyTorch on Cloud TPUs, the technique, along with a substantially shared implementation, has been used by Swift for TensorFlow across CPUs, GPUs, and TPUs, demonstrating the generality of the approach across (1) Tensor implementations, (2) hardware accelerators, and (3) programming languages.
Brennan Saeta, Denys Shabalin, Alex Suhan, Davide Libenzi, Ailing Zhang, Parker Schuh, Jie Young Sohn · 7 authors totalTensors Fitting Perfectly
arXiv preprint · DOI 10.48550/arXiv.2102.13254 · arXiv 2102.13254 · 3 citations · Source: arxiv+dblpMultidimensional 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.
Brennan Saeta, Adam Paszke · 2 authors totalSwift for TensorFlow: A portable, flexible platform for deep learning
arXiv · DOI 10.48550/arxiv.2102.13243 · arXiv 2102.13243 · 3 citations · Source: openalexSwift for TensorFlow is a deep learning platform that scales from mobile devices to clusters of hardware accelerators in data centers. It combines a language-integrated automatic differentiation system and multiple Tensor implementations within a modern ahead-of-time compiled language oriented around mutable value semantics. The resulting platform has been validated through use in over 30 deep learning models and has been employed across data center and mobile applications.
Brennan Saeta, Denys Shabalin, Michelle Casbon, Marc Rasi, Brad Larson, Xihui Wu, Parker Schuh, Daniel Zheng · 13 authors totalCalibrate Before Use: Improving Few-Shot Performance of Language Models
International Conference on Machine Learning · arXiv 2102.09690 · 2,015 citations · Source: semantic-scholarGPT-3 can perform numerous tasks when provided a natural language prompt that contains a few training examples. We show that this type of few-shot learning can be unstable: the choice of prompt format, training examples, and even the order of the training examples can cause accuracy to vary from near chance to near state-of-the-art. We demonstrate that this instability arises from the bias of language models towards predicting certain answers, e.g., those that are placed near the end of the prompt or are common in the pre-training data. To mitigate this, we first estimate the model's bias towards each answer by asking for its prediction when given the training prompt and a content-free test input such as "N/A". We then fit calibration parameters that cause the prediction for this input to be uniform across answers. On a diverse set of tasks, this contextual calibration procedure substantially improves GPT-3 and GPT-2's average accuracy (up to 30.0% absolute) and reduces variance across different choices of the prompt.
Sameer Singh, Tony Zhao, Eric Wallace, Shi Feng, D. Klein · 5 authors totalSinkhorn Label Allocation: Semi-Supervised Classification via Annealed\n Self-Training
arXiv (Cornell University) · DOI 10.48550/arxiv.2102.08622 · 9 citations · Source: openalex+authoritative-profilePeter Bailis, Kai Sheng Tai, Gregory Valiant · 3 authors totalTeraPipe: Token-Level Pipeline Parallelism for Training Large-Scale Language Models
ICML 2021 · arXiv 2102.07988 · 169 citations · Source: arxiv+semantic-scholarModel parallelism has become a necessity for training modern large-scale deep language models. In this work, we identify a new and orthogonal dimension from existing model parallel approaches: it is possible to perform pipeline parallelism within a single training sequence for Transformer-based language models thanks to its autoregressive property. This enables a more fine-grained pipeline compared with previous work. With this key idea, we design TeraPipe, a high-performance token-level pipeline parallel algorithm for synchronous model-parallel training of Transformer-based language models. We develop a novel dynamic programming-based algorithm to calculate the optimal pipelining execution scheme given a specific model and cluster configuration. We show that TeraPipe can speed up the training by 5.0x for the largest GPT-3 model with 175 billion parameters on an AWS cluster with 48 p3.16xlarge instances compared with state-of-the-art model-parallel methods. The code for reproduction can be found at https://github.com/zhuohan123/terapipe
Zhuohan Li, Siyuan Zhuang, Shiyuan Guo, Danyang Zhuo, Hao Zhang, D. Song, Ion Stoica · 7 authors totalBeyond Domain APIs: Task-oriented Conversational Modeling with Unstructured Knowledge Access Track in DSTC9
CoRR · arXiv 2101.09276 · Source: dblp+first-party-homepageMihail Eric, Seokhwan Kim, Behnam Hedayatnia, Karthik Gopalakrishnan, Yang Liu, Chao-Wei Huang, Dilek Hakkani-Tür · 7 authors totalNeurIPS 2020 EfficientQA Competition: Systems, Analyses and Lessons Learned
NeurIPS 2020 Competition Track · arXiv 2101.00133 · 67 citations · Source: semantic-scholarWe review the EfficientQA competition from NeurIPS 2020. The competition focused on open-domain question answering (QA), where systems take natural language questions as input and return natural language answers. The aim of the competition was to build systems that can predict correct answers while also satisfying strict on-disk memory budgets. These memory budgets were designed to encourage contestants to explore the trade-off between storing retrieval corpora or the parameters of learned models. In this report, we describe the motivation and organization of the competition, review the best submissions, and analyze system predictions to inform a discussion of evaluation for open-domain QA.
Sonal Gupta, Sewon Min, Jordan Boyd-Graber, Chris Alberti, Danqi Chen, Eunsol Choi, Michael Collins, Kelvin Guu · 53 authors totalAccelerating Metropolis-Hastings with Lightweight Inference Compilation
AISTATS 2021 (PMLR 130:181-189) · DOI 10.48550/arXiv.2010.12128 · arXiv 2010.12128 · 5 citations · Source: semanticscholar+arxivLightweight Inference Compilation (LIC) implements amortized inference within an open-universe declarative probabilistic programming language, using a neural network to construct Metropolis-Hastings proposals that leverage the Markov blanket structure of the model; it achieves lower Kullback-Leibler divergence and faster mixing than prior inference-compilation and hand-tuned MCMC approaches.
Feynman Liang, Nimar Arora, Nazanin Khosravani Tehrani, Yucen Lily Li, Michael Tingley, Erik Meijer · 6 authors totalDynamic Tensor Rematerialization
ICLR · arXiv 2006.09616 · 121 citations · Source: semantic-scholar+dblpCheckpointing enables training larger models by freeing intermediate activations and recomputing them on demand. Previous checkpointing techniques are difficult to generalize to dynamic models because they statically plan recomputations offline. We present Dynamic Tensor Rematerialization (DTR), a greedy online algorithm for heuristically checkpointing arbitrary models. DTR is extensible and general: it is parameterized by an eviction policy and only collects lightweight metadata on tensors and operators. Though DTR has no advance knowledge of the model or training task, we prove it can train an $N$-layer feedforward network on an $\Omega(\sqrt{N})$ memory budget with only $\mathcal{O}(N)$ tensor operations. Moreover, we identify a general eviction heuristic and show how it allows DTR to automatically provide favorable checkpointing performance across a variety of models and memory budgets.
Jared Roesch, Marisa Kirisame, Steven Lyubomirsky, A. Haan, Jennifer Brennan, Mike He, Tianqi Chen, Zachary Tatlock · 8 authors totalNimble: Efficiently Compiling Dynamic Neural Networks for Model Inference
MLSys · arXiv 2006.03031 · 74 citations · Source: semantic-scholar+dblpModern deep neural networks increasingly make use of features such as dynamic control flow, data structures and dynamic tensor shapes. Existing deep learning systems focus on optimizing and executing static neural networks which assume a pre-determined model architecture and input data shapes--assumptions which are violated by dynamic neural networks. Therefore, executing dynamic models with deep learning systems is currently both inflexible and sub-optimal, if not impossible. Optimizing dynamic neural networks is more challenging than static neural networks; optimizations must consider all possible execution paths and tensor shapes. This paper proposes Nimble, a high-performance and flexible system to optimize, compile, and execute dynamic neural networks on multiple platforms. Nimble handles model dynamism by introducing a dynamic type system, a set of dynamism-oriented optimizations, and a light-weight virtual machine runtime. Our evaluation demonstrates that Nimble outperforms state-of-the-art deep learning frameworks and runtime systems for dynamic neural networks by up to 20x on hardware platforms including Intel CPUs, ARM CPUs, and Nvidia GPUs.
Jared Roesch, Haichen Shen, Zhi Chen, Wei Chen, Yong Wu, Mu Li, Vin Sharma, Zachary Tatlock · 9 authors totalPipelined Backpropagation at Scale: Training Large Models without Batches
MLSys 2021 · arXiv 2003.11666 · 38 citations · Source: arxivNew hardware can substantially increase the speed and efficiency of deep neural network training. To guide the development of future hardware architectures, it is pertinent to explore the hardware and machine learning properties of alternative training algorithms. In this work we evaluate the use of small batch, fine-grained Pipelined Backpropagation, an asynchronous pipeline parallel training algorithm that has significant hardware advantages. We introduce two methods, Spike Compensation and Linear Weight Prediction, that effectively mitigate the downsides caused by the asynchronicity of Pipelined Backpropagation and outperform existing techniques in our setting. We show that appropriate normalization and small batch sizes can also aid training. With our methods, fine-grained Pipelined Backpropagation using a batch size of one can match the accuracy of SGD for multiple networks trained on CIFAR-10 and ImageNet. Simple scaling rules allow the use of existing hyperparameters for traditional training without additional tuning.
Abhi Venigalla, Atli Kosson, Vitaliy Chiley, Abhinav Venigalla, Joel Hestness, Urs Koster · 6 authors total