arxiv_id
stringlengths
9
10
label
stringclasses
3 values
title
stringlengths
8
155
authors
sequencelengths
1
1.35k
published
stringclasses
845 values
abstract
stringlengths
343
1.92k
doi
stringclasses
81 values
primary_category
stringclasses
45 values
categories
sequencelengths
1
7
2307.06440
AnswerAI
No Train No Gain: Revisiting Efficient Training Algorithms For Transformer-based Language Models
[ "Jean Kaddour", "Oscar Key", "Piotr Nawrot", "Pasquale Minervini", "Matt J. Kusner" ]
2023-07-12
The computation necessary for training Transformer-based language models has skyrocketed in recent years. This trend has motivated research on efficient training algorithms designed to improve training, validation, and downstream performance faster than standard training. In this work, we revisit three categories of such algorithms: dynamic architectures (layer stacking, layer dropping), batch selection (selective backprop, RHO loss), and efficient optimizers (Lion, Sophia). When pre-training BERT and T5 with a fixed computation budget using such methods, we find that their training, validation, and downstream gains vanish compared to a baseline with a fully-decayed learning rate. We define an evaluation protocol that enables computation to be done on arbitrary machines by mapping all computation time to a reference machine which we call reference system time. We discuss the limitations of our proposed protocol and release our code to encourage rigorous research in efficient training procedures: https://github.com/JeanKaddour/NoTrainNoGain.
null
cs.LG
[ "cs.LG", "cs.AI", "cs.CL", "cs.NE", "cs.PF" ]
2308.02453
HF
Getting the Ball Rolling: Learning a Dexterous Policy for a Biomimetic Tendon-Driven Hand with Rolling Contact Joints
[ "Yasunori Toshimitsu", "Benedek Forrai", "Barnabas Gavin Cangan", "Ulrich Steger", "Manuel Knecht", "Stefan Weirich", "Robert K. Katzschmann" ]
2023-08-04
Biomimetic, dexterous robotic hands have the potential to replicate much of the tasks that a human can do, and to achieve status as a general manipulation platform. Recent advances in reinforcement learning (RL) frameworks have achieved remarkable performance in quadrupedal locomotion and dexterous manipulation tasks. Combined with GPU-based highly parallelized simulations capable of simulating thousands of robots in parallel, RL-based controllers have become more scalable and approachable. However, in order to bring RL-trained policies to the real world, we require training frameworks that output policies that can work with physical actuators and sensors as well as a hardware platform that can be manufactured with accessible materials yet is robust enough to run interactive policies. This work introduces the biomimetic tendon-driven Faive Hand and its system architecture, which uses tendon-driven rolling contact joints to achieve a 3D printable, robust high-DoF hand design. We model each element of the hand and integrate it into a GPU simulation environment to train a policy with RL, and achieve zero-shot transfer of a dexterous in-hand sphere rotation skill to the physical robot hand.
10.1109/Humanoids57100.2023.10375231
cs.RO
[ "cs.RO" ]
2409.00492
HF
Accurate Compression of Text-to-Image Diffusion Models via Vector Quantization
[ "Vage Egiazarian", "Denis Kuznedelev", "Anton Voronov", "Ruslan Svirschevski", "Michael Goin", "Daniil Pavlov", "Dan Alistarh", "Dmitry Baranchuk" ]
2024-08-31
Text-to-image diffusion models have emerged as a powerful framework for high-quality image generation given textual prompts. Their success has driven the rapid development of production-grade diffusion models that consistently increase in size and already contain billions of parameters. As a result, state-of-the-art text-to-image models are becoming less accessible in practice, especially in resource-limited environments. Post-training quantization (PTQ) tackles this issue by compressing the pretrained model weights into lower-bit representations. Recent diffusion quantization techniques primarily rely on uniform scalar quantization, providing decent performance for the models compressed to 4 bits. This work demonstrates that more versatile vector quantization (VQ) may achieve higher compression rates for large-scale text-to-image diffusion models. Specifically, we tailor vector-based PTQ methods to recent billion-scale text-to-image models (SDXL and SDXL-Turbo), and show that the diffusion models of 2B+ parameters compressed to around 3 bits using VQ exhibit the similar image quality and textual alignment as previous 4-bit compression techniques.
null
cs.CV
[ "cs.CV" ]
2408.15836
HF
Knowledge Navigator: LLM-guided Browsing Framework for Exploratory Search in Scientific Literature
[ "Uri Katz", "Mosh Levy", "Yoav Goldberg" ]
2024-08-28
The exponential growth of scientific literature necessitates advanced tools for effective knowledge exploration. We present Knowledge Navigator, a system designed to enhance exploratory search abilities by organizing and structuring the retrieved documents from broad topical queries into a navigable, two-level hierarchy of named and descriptive scientific topics and subtopics. This structured organization provides an overall view of the research themes in a domain, while also enabling iterative search and deeper knowledge discovery within specific subtopics by allowing users to refine their focus and retrieve additional relevant documents. Knowledge Navigator combines LLM capabilities with cluster-based methods to enable an effective browsing method. We demonstrate our approach's effectiveness through automatic and manual evaluations on two novel benchmarks, CLUSTREC-COVID and SCITOC. Our code, prompts, and benchmarks are made publicly available.
null
cs.IR
[ "cs.IR", "cs.AI", "cs.CL" ]
2310.16832
HF
LightSpeed: Light and Fast Neural Light Fields on Mobile Devices
[ "Aarush Gupta", "Junli Cao", "Chaoyang Wang", "Ju Hu", "Sergey Tulyakov", "Jian Ren", "László A Jeni" ]
2023-10-25
Real-time novel-view image synthesis on mobile devices is prohibitive due to the limited computational power and storage. Using volumetric rendering methods, such as NeRF and its derivatives, on mobile devices is not suitable due to the high computational cost of volumetric rendering. On the other hand, recent advances in neural light field representations have shown promising real-time view synthesis results on mobile devices. Neural light field methods learn a direct mapping from a ray representation to the pixel color. The current choice of ray representation is either stratified ray sampling or Plucker coordinates, overlooking the classic light slab (two-plane) representation, the preferred representation to interpolate between light field views. In this work, we find that using the light slab representation is an efficient representation for learning a neural light field. More importantly, it is a lower-dimensional ray representation enabling us to learn the 4D ray space using feature grids which are significantly faster to train and render. Although mostly designed for frontal views, we show that the light-slab representation can be further extended to non-frontal scenes using a divide-and-conquer strategy. Our method offers superior rendering quality compared to previous light field methods and achieves a significantly improved trade-off between rendering quality and speed.
null
cs.CV
[ "cs.CV" ]
2312.13834
HF
Fairy: Fast Parallelized Instruction-Guided Video-to-Video Synthesis
[ "Bichen Wu", "Ching-Yao Chuang", "Xiaoyan Wang", "Yichen Jia", "Kapil Krishnakumar", "Tong Xiao", "Feng Liang", "Licheng Yu", "Peter Vajda" ]
2023-12-20
In this paper, we introduce Fairy, a minimalist yet robust adaptation of image-editing diffusion models, enhancing them for video editing applications. Our approach centers on the concept of anchor-based cross-frame attention, a mechanism that implicitly propagates diffusion features across frames, ensuring superior temporal coherence and high-fidelity synthesis. Fairy not only addresses limitations of previous models, including memory and processing speed. It also improves temporal consistency through a unique data augmentation strategy. This strategy renders the model equivariant to affine transformations in both source and target images. Remarkably efficient, Fairy generates 120-frame 512x384 videos (4-second duration at 30 FPS) in just 14 seconds, outpacing prior works by at least 44x. A comprehensive user study, involving 1000 generated samples, confirms that our approach delivers superior quality, decisively outperforming established methods.
null
cs.CV
[ "cs.CV" ]
2407.21783
HF
The Llama 3 Herd of Models
[ "Abhimanyu Dubey", "Abhinav Jauhri", "Abhinav Pandey", "Abhishek Kadian", "Ahmad Al-Dahle", "Aiesha Letman", "Akhil Mathur", "Alan Schelten", "Amy Yang", "Angela Fan", "Anirudh Goyal", "Anthony Hartshorn", "Aobo Yang", "Archi Mitra", "Archie Sravankumar", "Artem Korenev", "Arthur Hinsvark", "Arun Rao", "Aston Zhang", "Aurelien Rodriguez", "Austen Gregerson", "Ava Spataru", "Baptiste Roziere", "Bethany Biron", "Binh Tang", "Bobbie Chern", "Charlotte Caucheteux", "Chaya Nayak", "Chloe Bi", "Chris Marra", "Chris McConnell", "Christian Keller", "Christophe Touret", "Chunyang Wu", "Corinne Wong", "Cristian Canton Ferrer", "Cyrus Nikolaidis", "Damien Allonsius", "Daniel Song", "Danielle Pintz", "Danny Livshits", "David Esiobu", "Dhruv Choudhary", "Dhruv Mahajan", "Diego Garcia-Olano", "Diego Perino", "Dieuwke Hupkes", "Egor Lakomkin", "Ehab AlBadawy", "Elina Lobanova", "Emily Dinan", "Eric Michael Smith", "Filip Radenovic", "Frank Zhang", "Gabriel Synnaeve", "Gabrielle Lee", "Georgia Lewis Anderson", "Graeme Nail", "Gregoire Mialon", "Guan Pang", "Guillem Cucurell", "Hailey Nguyen", "Hannah Korevaar", "Hu Xu", "Hugo Touvron", "Iliyan Zarov", "Imanol Arrieta Ibarra", "Isabel Kloumann", "Ishan Misra", "Ivan Evtimov", "Jade Copet", "Jaewon Lee", "Jan Geffert", "Jana Vranes", "Jason Park", "Jay Mahadeokar", "Jeet Shah", "Jelmer van der Linde", "Jennifer Billock", "Jenny Hong", "Jenya Lee", "Jeremy Fu", "Jianfeng Chi", "Jianyu Huang", "Jiawen Liu", "Jie Wang", "Jiecao Yu", "Joanna Bitton", "Joe Spisak", "Jongsoo Park", "Joseph Rocca", "Joshua Johnstun", "Joshua Saxe", "Junteng Jia", "Kalyan Vasuden Alwala", "Kartikeya Upasani", "Kate Plawiak", "Ke Li", "Kenneth Heafield", "Kevin Stone", "Khalid El-Arini", "Krithika Iyer", "Kshitiz Malik", "Kuenley Chiu", "Kunal Bhalla", "Lauren Rantala-Yeary", "Laurens van der Maaten", "Lawrence Chen", "Liang Tan", "Liz Jenkins", "Louis Martin", "Lovish Madaan", "Lubo Malo", "Lukas Blecher", "Lukas Landzaat", "Luke de Oliveira", "Madeline Muzzi", "Mahesh Pasupuleti", "Mannat Singh", "Manohar Paluri", "Marcin Kardas", "Mathew Oldham", "Mathieu Rita", "Maya Pavlova", "Melanie Kambadur", "Mike Lewis", "Min Si", "Mitesh Kumar Singh", "Mona Hassan", "Naman Goyal", "Narjes Torabi", "Nikolay Bashlykov", "Nikolay Bogoychev", "Niladri Chatterji", "Olivier Duchenne", "Onur Çelebi", "Patrick Alrassy", "Pengchuan Zhang", "Pengwei Li", "Petar Vasic", "Peter Weng", "Prajjwal Bhargava", "Pratik Dubal", "Praveen Krishnan", "Punit Singh Koura", "Puxin Xu", "Qing He", "Qingxiao Dong", "Ragavan Srinivasan", "Raj Ganapathy", "Ramon Calderer", "Ricardo Silveira Cabral", "Robert Stojnic", "Roberta Raileanu", "Rohit Girdhar", "Rohit Patel", "Romain Sauvestre", "Ronnie Polidoro", "Roshan Sumbaly", "Ross Taylor", "Ruan Silva", "Rui Hou", "Rui Wang", "Saghar Hosseini", "Sahana Chennabasappa", "Sanjay Singh", "Sean Bell", "Seohyun Sonia Kim", "Sergey Edunov", "Shaoliang Nie", "Sharan Narang", "Sharath Raparthy", "Sheng Shen", "Shengye Wan", "Shruti Bhosale", "Shun Zhang", "Simon Vandenhende", "Soumya Batra", "Spencer Whitman", "Sten Sootla", "Stephane Collot", "Suchin Gururangan", "Sydney Borodinsky", "Tamar Herman", "Tara Fowler", "Tarek Sheasha", "Thomas Georgiou", "Thomas Scialom", "Tobias Speckbacher", "Todor Mihaylov", "Tong Xiao", "Ujjwal Karn", "Vedanuj Goswami", "Vibhor Gupta", "Vignesh Ramanathan", "Viktor Kerkez", "Vincent Gonguet", "Virginie Do", "Vish Vogeti", "Vladan Petrovic", "Weiwei Chu", "Wenhan Xiong", "Wenyin Fu", "Whitney Meers", "Xavier Martinet", "Xiaodong Wang", "Xiaoqing Ellen Tan", "Xinfeng Xie", "Xuchao Jia", "Xuewei Wang", "Yaelle Goldschlag", "Yashesh Gaur", "Yasmine Babaei", "Yi Wen", "Yiwen Song", "Yuchen Zhang", "Yue Li", "Yuning Mao", "Zacharie Delpierre Coudert", "Zheng Yan", "Zhengxing Chen", "Zoe Papakipos", "Aaditya Singh", "Aaron Grattafiori", "Abha Jain", "Adam Kelsey", "Adam Shajnfeld", "Adithya Gangidi", "Adolfo Victoria", "Ahuva Goldstand", "Ajay Menon", "Ajay Sharma", "Alex Boesenberg", "Alex Vaughan", "Alexei Baevski", "Allie Feinstein", "Amanda Kallet", "Amit Sangani", "Anam Yunus", "Andrei Lupu", "Andres Alvarado", "Andrew Caples", "Andrew Gu", "Andrew Ho", "Andrew Poulton", "Andrew Ryan", "Ankit Ramchandani", "Annie Franco", "Aparajita Saraf", "Arkabandhu Chowdhury", "Ashley Gabriel", "Ashwin Bharambe", "Assaf Eisenman", "Azadeh Yazdan", "Beau James", "Ben Maurer", "Benjamin Leonhardi", "Bernie Huang", "Beth Loyd", "Beto De Paola", "Bhargavi Paranjape", "Bing Liu", "Bo Wu", "Boyu Ni", "Braden Hancock", "Bram Wasti", "Brandon Spence", "Brani Stojkovic", "Brian Gamido", "Britt Montalvo", "Carl Parker", "Carly Burton", "Catalina Mejia", "Changhan Wang", "Changkyu Kim", "Chao Zhou", "Chester Hu", "Ching-Hsiang Chu", "Chris Cai", "Chris Tindal", "Christoph Feichtenhofer", "Damon Civin", "Dana Beaty", "Daniel Kreymer", "Daniel Li", "Danny Wyatt", "David Adkins", "David Xu", "Davide Testuggine", "Delia David", "Devi Parikh", "Diana Liskovich", "Didem Foss", "Dingkang Wang", "Duc Le", "Dustin Holland", "Edward Dowling", "Eissa Jamil", "Elaine Montgomery", "Eleonora Presani", "Emily Hahn", "Emily Wood", "Erik Brinkman", "Esteban Arcaute", "Evan Dunbar", "Evan Smothers", "Fei Sun", "Felix Kreuk", "Feng Tian", "Firat Ozgenel", "Francesco Caggioni", "Francisco Guzmán", "Frank Kanayet", "Frank Seide", "Gabriela Medina Florez", "Gabriella Schwarz", "Gada Badeer", "Georgia Swee", "Gil Halpern", "Govind Thattai", "Grant Herman", "Grigory Sizov", "Guangyi", "Zhang", "Guna Lakshminarayanan", "Hamid Shojanazeri", "Han Zou", "Hannah Wang", "Hanwen Zha", "Haroun Habeeb", "Harrison Rudolph", "Helen Suk", "Henry Aspegren", "Hunter Goldman", "Ibrahim Damlaj", "Igor Molybog", "Igor Tufanov", "Irina-Elena Veliche", "Itai Gat", "Jake Weissman", "James Geboski", "James Kohli", "Japhet Asher", "Jean-Baptiste Gaya", "Jeff Marcus", "Jeff Tang", "Jennifer Chan", "Jenny Zhen", "Jeremy Reizenstein", "Jeremy Teboul", "Jessica Zhong", "Jian Jin", "Jingyi Yang", "Joe Cummings", "Jon Carvill", "Jon Shepard", "Jonathan McPhie", "Jonathan Torres", "Josh Ginsburg", "Junjie Wang", "Kai Wu", "Kam Hou U", "Karan Saxena", "Karthik Prasad", "Kartikay Khandelwal", "Katayoun Zand", "Kathy Matosich", "Kaushik Veeraraghavan", "Kelly Michelena", "Keqian Li", "Kun Huang", "Kunal Chawla", "Kushal Lakhotia", "Kyle Huang", "Lailin Chen", "Lakshya Garg", "Lavender A", "Leandro Silva", "Lee Bell", "Lei Zhang", "Liangpeng Guo", "Licheng Yu", "Liron Moshkovich", "Luca Wehrstedt", "Madian Khabsa", "Manav Avalani", "Manish Bhatt", "Maria Tsimpoukelli", "Martynas Mankus", "Matan Hasson", "Matthew Lennie", "Matthias Reso", "Maxim Groshev", "Maxim Naumov", "Maya Lathi", "Meghan Keneally", "Michael L. Seltzer", "Michal Valko", "Michelle Restrepo", "Mihir Patel", "Mik Vyatskov", "Mikayel Samvelyan", "Mike Clark", "Mike Macey", "Mike Wang", "Miquel Jubert Hermoso", "Mo Metanat", "Mohammad Rastegari", "Munish Bansal", "Nandhini Santhanam", "Natascha Parks", "Natasha White", "Navyata Bawa", "Nayan Singhal", "Nick Egebo", "Nicolas Usunier", "Nikolay Pavlovich Laptev", "Ning Dong", "Ning Zhang", "Norman Cheng", "Oleg Chernoguz", "Olivia Hart", "Omkar Salpekar", "Ozlem Kalinli", "Parkin Kent", "Parth Parekh", "Paul Saab", "Pavan Balaji", "Pedro Rittner", "Philip Bontrager", "Pierre Roux", "Piotr Dollar", "Polina Zvyagina", "Prashant Ratanchandani", "Pritish Yuvraj", "Qian Liang", "Rachad Alao", "Rachel Rodriguez", "Rafi Ayub", "Raghotham Murthy", "Raghu Nayani", "Rahul Mitra", "Raymond Li", "Rebekkah Hogan", "Robin Battey", "Rocky Wang", "Rohan Maheswari", "Russ Howes", "Ruty Rinott", "Sai Jayesh Bondu", "Samyak Datta", "Sara Chugh", "Sara Hunt", "Sargun Dhillon", "Sasha Sidorov", "Satadru Pan", "Saurabh Verma", "Seiji Yamamoto", "Sharadh Ramaswamy", "Shaun Lindsay", "Shaun Lindsay", "Sheng Feng", "Shenghao Lin", "Shengxin Cindy Zha", "Shiva Shankar", "Shuqiang Zhang", "Shuqiang Zhang", "Sinong Wang", "Sneha Agarwal", "Soji Sajuyigbe", "Soumith Chintala", "Stephanie Max", "Stephen Chen", "Steve Kehoe", "Steve Satterfield", "Sudarshan Govindaprasad", "Sumit Gupta", "Sungmin Cho", "Sunny Virk", "Suraj Subramanian", "Sy Choudhury", "Sydney Goldman", "Tal Remez", "Tamar Glaser", "Tamara Best", "Thilo Kohler", "Thomas Robinson", "Tianhe Li", "Tianjun Zhang", "Tim Matthews", "Timothy Chou", "Tzook Shaked", "Varun Vontimitta", "Victoria Ajayi", "Victoria Montanez", "Vijai Mohan", "Vinay Satish Kumar", "Vishal Mangla", "Vítor Albiero", "Vlad Ionescu", "Vlad Poenaru", "Vlad Tiberiu Mihailescu", "Vladimir Ivanov", "Wei Li", "Wenchen Wang", "Wenwen Jiang", "Wes Bouaziz", "Will Constable", "Xiaocheng Tang", "Xiaofang Wang", "Xiaojian Wu", "Xiaolan Wang", "Xide Xia", "Xilun Wu", "Xinbo Gao", "Yanjun Chen", "Ye Hu", "Ye Jia", "Ye Qi", "Yenda Li", "Yilin Zhang", "Ying Zhang", "Yossi Adi", "Youngjin Nam", "Yu", "Wang", "Yuchen Hao", "Yundi Qian", "Yuzi He", "Zach Rait", "Zachary DeVito", "Zef Rosnbrick", "Zhaoduo Wen", "Zhenyu Yang", "Zhiwei Zhao" ]
2024-07-31
Modern artificial intelligence (AI) systems are powered by foundation models. This paper presents a new set of foundation models, called Llama 3. It is a herd of language models that natively support multilinguality, coding, reasoning, and tool usage. Our largest model is a dense Transformer with 405B parameters and a context window of up to 128K tokens. This paper presents an extensive empirical evaluation of Llama 3. We find that Llama 3 delivers comparable quality to leading language models such as GPT-4 on a plethora of tasks. We publicly release Llama 3, including pre-trained and post-trained versions of the 405B parameter language model and our Llama Guard 3 model for input and output safety. The paper also presents the results of experiments in which we integrate image, video, and speech capabilities into Llama 3 via a compositional approach. We observe this approach performs competitively with the state-of-the-art on image, video, and speech recognition tasks. The resulting models are not yet being broadly released as they are still under development.
null
cs.AI
[ "cs.AI", "cs.CL", "cs.CV" ]
2406.12034
HF
Self-MoE: Towards Compositional Large Language Models with Self-Specialized Experts
[ "Junmo Kang", "Leonid Karlinsky", "Hongyin Luo", "Zhen Wang", "Jacob Hansen", "James Glass", "David Cox", "Rameswar Panda", "Rogerio Feris", "Alan Ritter" ]
2024-06-17
We present Self-MoE, an approach that transforms a monolithic LLM into a compositional, modular system of self-specialized experts, named MiXSE (MiXture of Self-specialized Experts). Our approach leverages self-specialization, which constructs expert modules using self-generated synthetic data, each equipped with a shared base LLM and incorporating self-optimized routing. This allows for dynamic and capability-specific handling of various target tasks, enhancing overall capabilities, without extensive human-labeled data and added parameters. Our empirical results reveal that specializing LLMs may exhibit potential trade-offs in performances on non-specialized tasks. On the other hand, our Self-MoE demonstrates substantial improvements over the base LLM across diverse benchmarks such as knowledge, reasoning, math, and coding. It also consistently outperforms other methods, including instance merging and weight merging, while offering better flexibility and interpretability by design with semantic experts and routing. Our findings highlight the critical role of modularity and the potential of self-improvement in achieving efficient, scalable, and adaptable systems.
null
cs.CL
[ "cs.CL", "cs.LG" ]
2402.01613
HF
Nomic Embed: Training a Reproducible Long Context Text Embedder
[ "Zach Nussbaum", "John X. Morris", "Brandon Duderstadt", "Andriy Mulyar" ]
2024-02-02
This technical report describes the training of nomic-embed-text-v1, the first fully reproducible, open-source, open-weights, open-data, 8192 context length English text embedding model that outperforms both OpenAI Ada-002 and OpenAI text-embedding-3-small on short and long-context tasks. We release the training code and model weights under an Apache 2 license. In contrast with other open-source models, we release a training data loader with 235 million curated text pairs that allows for the full replication of nomic-embed-text-v1. You can find code and data to replicate the model at https://github.com/nomic-ai/contrastors
null
cs.CL
[ "cs.CL", "cs.AI" ]
2402.17463
HF
Training-Free Long-Context Scaling of Large Language Models
[ "Chenxin An", "Fei Huang", "Jun Zhang", "Shansan Gong", "Xipeng Qiu", "Chang Zhou", "Lingpeng Kong" ]
2024-02-27
The ability of Large Language Models (LLMs) to process and generate coherent text is markedly weakened when the number of input tokens exceeds their pretraining length. Given the expensive overhead of finetuning large-scale models with longer sequences, we propose Dual Chunk Attention (DCA), which enables Llama2 70B to support context windows of more than 100k tokens without continual training. By decomposing the attention computation for long sequences into chunk-based modules, DCA manages to effectively capture the relative positional information of tokens within the same chunk (Intra-Chunk) and across distinct chunks (Inter-Chunk), as well as integrates seamlessly with Flash Attention. In addition to its impressive extrapolation capability, DCA achieves performance on practical long-context tasks that is comparable to or even better than that of finetuned models. When compared with proprietary models, our training-free 70B model attains 94% of the performance of gpt-3.5-16k, indicating it is a viable open-source alternative. All code and data used in this work are released at \url{https://github.com/HKUNLP/ChunkLlama}.
null
cs.CL
[ "cs.CL" ]
2406.06424
HF
Margin-aware Preference Optimization for Aligning Diffusion Models without Reference
[ "Jiwoo Hong", "Sayak Paul", "Noah Lee", "Kashif Rasul", "James Thorne", "Jongheon Jeong" ]
2024-06-10
Modern alignment techniques based on human preferences, such as RLHF and DPO, typically employ divergence regularization relative to the reference model to ensure training stability. However, this often limits the flexibility of models during alignment, especially when there is a clear distributional discrepancy between the preference data and the reference model. In this paper, we focus on the alignment of recent text-to-image diffusion models, such as Stable Diffusion XL (SDXL), and find that this "reference mismatch" is indeed a significant problem in aligning these models due to the unstructured nature of visual modalities: e.g., a preference for a particular stylistic aspect can easily induce such a discrepancy. Motivated by this observation, we propose a novel and memory-friendly preference alignment method for diffusion models that does not depend on any reference model, coined margin-aware preference optimization (MaPO). MaPO jointly maximizes the likelihood margin between the preferred and dispreferred image sets and the likelihood of the preferred sets, simultaneously learning general stylistic features and preferences. For evaluation, we introduce two new pairwise preference datasets, which comprise self-generated image pairs from SDXL, Pick-Style and Pick-Safety, simulating diverse scenarios of reference mismatch. Our experiments validate that MaPO can significantly improve alignment on Pick-Style and Pick-Safety and general preference alignment when used with Pick-a-Pic v2, surpassing the base SDXL and other existing methods. Our code, models, and datasets are publicly available via https://mapo-t2i.github.io
null
cs.CV
[ "cs.CV" ]
2312.11897
HF
Text-Conditioned Resampler For Long Form Video Understanding
[ "Bruno Korbar", "Yongqin Xian", "Alessio Tonioni", "Andrew Zisserman", "Federico Tombari" ]
2023-12-19
In this paper we present a text-conditioned video resampler (TCR) module that uses a pre-trained and frozen visual encoder and large language model (LLM) to process long video sequences for a task. TCR localises relevant visual features from the video given a text condition and provides them to a LLM to generate a text response. Due to its lightweight design and use of cross-attention, TCR can process more than 100 frames at a time with plain attention and without optimised implementations. We make the following contributions: (i) we design a transformer-based sampling architecture that can process long videos conditioned on a task, together with a training method that enables it to bridge pre-trained visual and language models; (ii) we identify tasks that could benefit from longer video perception; and (iii) we empirically validate its efficacy on a wide variety of evaluation tasks including NextQA, EgoSchema, and the EGO4D-LTA challenge.
null
cs.CV
[ "cs.CV" ]
2405.14862
AnswerAI
Bitune: Bidirectional Instruction-Tuning
[ "Dawid J. Kopiczko", "Tijmen Blankevoort", "Yuki M. Asano" ]
2024-05-23
We introduce Bitune, a method that improves instruction-tuning of pretrained decoder-only large language models, leading to consistent gains on downstream tasks. Bitune applies both causal and bidirectional attention to the prompt, to obtain a better representation of the query or instruction. We realize this by introducing two sets of parameters, for which we apply parameter-efficient finetuning techniques. These causal and bidirectional features are then combined into a weighted average with trainable coefficients, which is subsequently used to generate new tokens. We demonstrate significant improvements in zero-shot performance on commonsense reasoning, arithmetic, and language understanding tasks, while extensive ablation studies validate the role of each component and demonstrate the method's agnosticism to different PEFT techniques.
null
cs.CL
[ "cs.CL" ]
2407.14958
HF
Temporal Residual Jacobians For Rig-free Motion Transfer
[ "Sanjeev Muralikrishnan", "Niladri Shekhar Dutt", "Siddhartha Chaudhuri", "Noam Aigerman", "Vladimir Kim", "Matthew Fisher", "Niloy J. Mitra" ]
2024-07-20
We introduce Temporal Residual Jacobians as a novel representation to enable data-driven motion transfer. Our approach does not assume access to any rigging or intermediate shape keyframes, produces geometrically and temporally consistent motions, and can be used to transfer long motion sequences. Central to our approach are two coupled neural networks that individually predict local geometric and temporal changes that are subsequently integrated, spatially and temporally, to produce the final animated meshes. The two networks are jointly trained, complement each other in producing spatial and temporal signals, and are supervised directly with 3D positional information. During inference, in the absence of keyframes, our method essentially solves a motion extrapolation problem. We test our setup on diverse meshes (synthetic and scanned shapes) to demonstrate its superiority in generating realistic and natural-looking animations on unseen body shapes against SoTA alternatives. Supplemental video and code are available at https://temporaljacobians.github.io/ .
null
cs.CV
[ "cs.CV", "cs.GR" ]
2402.10790
HF
In Search of Needles in a 11M Haystack: Recurrent Memory Finds What LLMs Miss
[ "Yuri Kuratov", "Aydar Bulatov", "Petr Anokhin", "Dmitry Sorokin", "Artyom Sorokin", "Mikhail Burtsev" ]
2024-02-16
This paper addresses the challenge of processing long documents using generative transformer models. To evaluate different approaches, we introduce BABILong, a new benchmark designed to assess model capabilities in extracting and processing distributed facts within extensive texts. Our evaluation, which includes benchmarks for GPT-4 and RAG, reveals that common methods are effective only for sequences up to $10^4$ elements. In contrast, fine-tuning GPT-2 with recurrent memory augmentations enables it to handle tasks involving up to $11\times 10^6$ elements. This achievement marks a substantial leap, as it is by far the longest input processed by any neural network model to date, demonstrating a significant improvement in the processing capabilities for long sequences.
null
cs.CL
[ "cs.CL", "cs.AI", "cs.LG" ]
2306.15658
HF
CLIPA-v2: Scaling CLIP Training with 81.1% Zero-shot ImageNet Accuracy within a \$10,000 Budget; An Extra \$4,000 Unlocks 81.8% Accuracy
[ "Xianhang Li", "Zeyu Wang", "Cihang Xie" ]
2023-06-27
The recent work CLIPA presents an inverse scaling law for CLIP training -- whereby the larger the image/text encoders used, the shorter the sequence length of image/text tokens that can be applied in training. This finding enables us to train high-performance CLIP models with significantly reduced computations. Building upon this work, we hereby present CLIPA-v2 with two key contributions. Technically, we find this inverse scaling law is also applicable in the finetuning stage, enabling further reduction in computational needs. Empirically, we explore CLIPA at scale, extending the experiments up to the H/14 model with ~13B image-text pairs seen during training. Our results are exciting -- by only allocating a budget of \$10,000, our CLIP model achieves an impressive zero-shot ImageNet accuracy of 81.1%, surpassing the prior best CLIP model (from OpenCLIP, 80.1%) by 1.0% and meanwhile reducing the computational cost by ~39X. Moreover, with an additional investment of $4,000, we can further elevate the zero-shot ImageNet accuracy to 81.8%. Our code and models are available at https://github.com/UCSC-VLAA/CLIPA.
null
cs.CV
[ "cs.CV" ]
2305.05862
HF
Are ChatGPT and GPT-4 General-Purpose Solvers for Financial Text Analytics? A Study on Several Typical Tasks
[ "Xianzhi Li", "Samuel Chan", "Xiaodan Zhu", "Yulong Pei", "Zhiqiang Ma", "Xiaomo Liu", "Sameena Shah" ]
2023-05-10
The most recent large language models(LLMs) such as ChatGPT and GPT-4 have shown exceptional capabilities of generalist models, achieving state-of-the-art performance on a wide range of NLP tasks with little or no adaptation. How effective are such models in the financial domain? Understanding this basic question would have a significant impact on many downstream financial analytical tasks. In this paper, we conduct an empirical study and provide experimental evidences of their performance on a wide variety of financial text analytical problems, using eight benchmark datasets from five categories of tasks. We report both the strengths and limitations of the current models by comparing them to the state-of-the-art fine-tuned approaches and the recently released domain-specific pretrained models. We hope our study can help understand the capability of the existing models in the financial domain and facilitate further improvements.
null
cs.CL
[ "cs.CL", "cs.AI" ]
2403.15484
HF
RakutenAI-7B: Extending Large Language Models for Japanese
[ "Rakuten Group", "Aaron Levine", "Connie Huang", "Chenguang Wang", "Eduardo Batista", "Ewa Szymanska", "Hongyi Ding", "Hou Wei Chou", "Jean-François Pessiot", "Johanes Effendi", "Justin Chiu", "Kai Torben Ohlhus", "Karan Chopra", "Keiji Shinzato", "Koji Murakami", "Lee Xiong", "Lei Chen", "Maki Kubota", "Maksim Tkachenko", "Miroku Lee", "Naoki Takahashi", "Prathyusha Jwalapuram", "Ryutaro Tatsushima", "Saurabh Jain", "Sunil Kumar Yadav", "Ting Cai", "Wei-Te Chen", "Yandi Xia", "Yuki Nakayama", "Yutaka Higashiyama" ]
2024-03-21
We introduce RakutenAI-7B, a suite of Japanese-oriented large language models that achieve the best performance on the Japanese LM Harness benchmarks among the open 7B models. Along with the foundation model, we release instruction- and chat-tuned models, RakutenAI-7B-instruct and RakutenAI-7B-chat respectively, under the Apache 2.0 license.
null
cs.CL
[ "cs.CL", "cs.LG" ]
2209.09675
AnswerAI
Symbolic Regression with Fast Function Extraction and Nonlinear Least Squares Optimization
[ "Lukas Kammerer", "Gabriel Kronberger", "Michael Kommenda" ]
2022-09-20
Fast Function Extraction (FFX) is a deterministic algorithm for solving symbolic regression problems. We improve the accuracy of FFX by adding parameters to the arguments of nonlinear functions. Instead of only optimizing linear parameters, we optimize these additional nonlinear parameters with separable nonlinear least squared optimization using a variable projection algorithm. Both FFX and our new algorithm is applied on the PennML benchmark suite. We show that the proposed extensions of FFX leads to higher accuracy while providing models of similar length and with only a small increase in runtime on the given data. Our results are compared to a large set of regression methods that were already published for the given benchmark suite.
10.1007/978-3-031-25312-6_16
cs.LG
[ "cs.LG" ]
2406.05074
HF
Hibou: A Family of Foundational Vision Transformers for Pathology
[ "Dmitry Nechaev", "Alexey Pchelnikov", "Ekaterina Ivanova" ]
2024-06-07
Pathology, the microscopic examination of diseased tissue, is critical for diagnosing various medical conditions, particularly cancers. Traditional methods are labor-intensive and prone to human error. Digital pathology, which converts glass slides into high-resolution digital images for analysis by computer algorithms, revolutionizes the field by enhancing diagnostic accuracy, consistency, and efficiency through automated image analysis and large-scale data processing. Foundational transformer pretraining is crucial for developing robust, generalizable models as it enables learning from vast amounts of unannotated data. This paper introduces the Hibou family of foundational vision transformers for pathology, leveraging the DINOv2 framework to pretrain two model variants, Hibou-B and Hibou-L, on a proprietary dataset of over 1 million whole slide images (WSIs) representing diverse tissue types and staining techniques. Our pretrained models demonstrate superior performance on both patch-level and slide-level benchmarks, surpassing existing state-of-the-art methods. Notably, Hibou-L achieves the highest average accuracy across multiple benchmark datasets. To support further research and application in the field, we have open-sourced the Hibou models, which can be accessed at https://github.com/HistAI/hibou.
null
eess.IV
[ "eess.IV", "cs.CV" ]
2309.07974
HF
A Data Source for Reasoning Embodied Agents
[ "Jack Lanchantin", "Sainbayar Sukhbaatar", "Gabriel Synnaeve", "Yuxuan Sun", "Kavya Srinet", "Arthur Szlam" ]
2023-09-14
Recent progress in using machine learning models for reasoning tasks has been driven by novel model architectures, large-scale pre-training protocols, and dedicated reasoning datasets for fine-tuning. In this work, to further pursue these advances, we introduce a new data generator for machine reasoning that integrates with an embodied agent. The generated data consists of templated text queries and answers, matched with world-states encoded into a database. The world-states are a result of both world dynamics and the actions of the agent. We show the results of several baseline models on instantiations of train sets. These include pre-trained language models fine-tuned on a text-formatted representation of the database, and graph-structured Transformers operating on a knowledge-graph representation of the database. We find that these models can answer some questions about the world-state, but struggle with others. These results hint at new research directions in designing neural reasoning models and database representations. Code to generate the data will be released at github.com/facebookresearch/neuralmemory
null
cs.LG
[ "cs.LG", "cs.AI" ]
2310.16164
AnswerAI
Conversational Challenges in AI-Powered Data Science: Obstacles, Needs, and Design Opportunities
[ "Bhavya Chopra", "Ananya Singha", "Anna Fariha", "Sumit Gulwani", "Chris Parnin", "Ashish Tiwari", "Austin Z. Henley" ]
2023-10-24
Large Language Models (LLMs) are being increasingly employed in data science for tasks like data preprocessing and analytics. However, data scientists encounter substantial obstacles when conversing with LLM-powered chatbots and acting on their suggestions and answers. We conducted a mixed-methods study, including contextual observations, semi-structured interviews (n=14), and a survey (n=114), to identify these challenges. Our findings highlight key issues faced by data scientists, including contextual data retrieval, formulating prompts for complex tasks, adapting generated code to local environments, and refining prompts iteratively. Based on these insights, we propose actionable design recommendations, such as data brushing to support context selection, and inquisitive feedback loops to improve communications with AI-based assistants in data-science tools.
null
cs.HC
[ "cs.HC" ]
2406.13735
HF
StableSemantics: A Synthetic Language-Vision Dataset of Semantic Representations in Naturalistic Images
[ "Rushikesh Zawar", "Shaurya Dewan", "Andrew F. Luo", "Margaret M. Henderson", "Michael J. Tarr", "Leila Wehbe" ]
2024-06-19
Understanding the semantics of visual scenes is a fundamental challenge in Computer Vision. A key aspect of this challenge is that objects sharing similar semantic meanings or functions can exhibit striking visual differences, making accurate identification and categorization difficult. Recent advancements in text-to-image frameworks have led to models that implicitly capture natural scene statistics. These frameworks account for the visual variability of objects, as well as complex object co-occurrences and sources of noise such as diverse lighting conditions. By leveraging large-scale datasets and cross-attention conditioning, these models generate detailed and contextually rich scene representations. This capability opens new avenues for improving object recognition and scene understanding in varied and challenging environments. Our work presents StableSemantics, a dataset comprising 224 thousand human-curated prompts, processed natural language captions, over 2 million synthetic images, and 10 million attention maps corresponding to individual noun chunks. We explicitly leverage human-generated prompts that correspond to visually interesting stable diffusion generations, provide 10 generations per phrase, and extract cross-attention maps for each image. We explore the semantic distribution of generated images, examine the distribution of objects within images, and benchmark captioning and open vocabulary segmentation methods on our data. To the best of our knowledge, we are the first to release a diffusion dataset with semantic attributions. We expect our proposed dataset to catalyze advances in visual semantic understanding and provide a foundation for developing more sophisticated and effective visual models. Website: https://stablesemantics.github.io/StableSemantics
null
cs.CV
[ "cs.CV", "cs.LG" ]
2401.01055
HF
LLaMA Beyond English: An Empirical Study on Language Capability Transfer
[ "Jun Zhao", "Zhihao Zhang", "Luhui Gao", "Qi Zhang", "Tao Gui", "Xuanjing Huang" ]
2024-01-02
In recent times, substantial advancements have been witnessed in large language models (LLMs), exemplified by ChatGPT, showcasing remarkable proficiency across a range of complex tasks. However, many mainstream LLMs (e.g. LLaMA) are pretrained on English-dominant corpus, which limits their performance in other non-English languages. In this paper, we focus on how to effectively transfer the capabilities of language generation and following instructions to a non-English language. To answer this question, we conduct an extensive empirical investigation based on LLaMA, accumulating over 1440 GPU hours. We analyze the impact of key factors such as vocabulary extension, further pretraining, and instruction tuning on transfer. To accurately assess the model's level of knowledge, we employ four widely used standardized testing benchmarks: C-Eval, MMLU, AGI-Eval, and GAOKAO-Bench. Furthermore, a comprehensive evaluation of the model's response quality is conducted, considering aspects such as accuracy, fluency, informativeness, logical coherence, and harmlessness, based on LLM-Eval, a benchmarks consisting instruction tasks from 17 diverse categories. Our evaluation results demonstrate that comparable performance to state-of-the-art transfer models can be achieved with less than 1% of the pretraining data, both in terms of knowledge alignment and response quality. Furthermore, the experimental outcomes across the thirteen low-resource languages also exhibit similar trends. We anticipate that the conclusions revealed by the experiments will aid the community in developing non-English LLMs.
null
cs.CL
[ "cs.CL", "cs.AI" ]
2312.17661
HF
Gemini in Reasoning: Unveiling Commonsense in Multimodal Large Language Models
[ "Yuqing Wang", "Yun Zhao" ]
2023-12-29
The burgeoning interest in Multimodal Large Language Models (MLLMs), such as OpenAI's GPT-4V(ision), has significantly impacted both academic and industrial realms. These models enhance Large Language Models (LLMs) with advanced visual understanding capabilities, facilitating their application in a variety of multimodal tasks. Recently, Google introduced Gemini, a cutting-edge MLLM designed specifically for multimodal integration. Despite its advancements, preliminary benchmarks indicate that Gemini lags behind GPT models in commonsense reasoning tasks. However, this assessment, based on a limited dataset (i.e., HellaSWAG), does not fully capture Gemini's authentic commonsense reasoning potential. To address this gap, our study undertakes a thorough evaluation of Gemini's performance in complex reasoning tasks that necessitate the integration of commonsense knowledge across modalities. We carry out a comprehensive analysis of 12 commonsense reasoning datasets, ranging from general to domain-specific tasks. This includes 11 datasets focused solely on language, as well as one that incorporates multimodal elements. Our experiments across four LLMs and two MLLMs demonstrate Gemini's competitive commonsense reasoning capabilities. Additionally, we identify common challenges faced by current LLMs and MLLMs in addressing commonsense problems, underscoring the need for further advancements in enhancing the commonsense reasoning abilities of these models.
null
cs.CL
[ "cs.CL", "cs.AI", "cs.CV" ]
2401.14887
AnswerAI
The Power of Noise: Redefining Retrieval for RAG Systems
[ "Florin Cuconasu", "Giovanni Trappolini", "Federico Siciliano", "Simone Filice", "Cesare Campagnano", "Yoelle Maarek", "Nicola Tonellotto", "Fabrizio Silvestri" ]
2024-01-26
Retrieval-Augmented Generation (RAG) has recently emerged as a method to extend beyond the pre-trained knowledge of Large Language Models by augmenting the original prompt with relevant passages or documents retrieved by an Information Retrieval (IR) system. RAG has become increasingly important for Generative AI solutions, especially in enterprise settings or in any domain in which knowledge is constantly refreshed and cannot be memorized in the LLM. We argue here that the retrieval component of RAG systems, be it dense or sparse, deserves increased attention from the research community, and accordingly, we conduct the first comprehensive and systematic examination of the retrieval strategy of RAG systems. We focus, in particular, on the type of passages IR systems within a RAG solution should retrieve. Our analysis considers multiple factors, such as the relevance of the passages included in the prompt context, their position, and their number. One counter-intuitive finding of this work is that the retriever's highest-scoring documents that are not directly relevant to the query (e.g., do not contain the answer) negatively impact the effectiveness of the LLM. Even more surprising, we discovered that adding random documents in the prompt improves the LLM accuracy by up to 35%. These results highlight the need to investigate the appropriate strategies when integrating retrieval with LLMs, thereby laying the groundwork for future research in this area.
10.1145/3626772.3657834
cs.IR
[ "cs.IR", "cs.CL" ]
2409.02634
HF
Loopy: Taming Audio-Driven Portrait Avatar with Long-Term Motion Dependency
[ "Jianwen Jiang", "Chao Liang", "Jiaqi Yang", "Gaojie Lin", "Tianyun Zhong", "Yanbo Zheng" ]
2024-09-04
With the introduction of diffusion-based video generation techniques, audio-conditioned human video generation has recently achieved significant breakthroughs in both the naturalness of motion and the synthesis of portrait details. Due to the limited control of audio signals in driving human motion, existing methods often add auxiliary spatial signals to stabilize movements, which may compromise the naturalness and freedom of motion. In this paper, we propose an end-to-end audio-only conditioned video diffusion model named Loopy. Specifically, we designed an inter- and intra-clip temporal module and an audio-to-latents module, enabling the model to leverage long-term motion information from the data to learn natural motion patterns and improving audio-portrait movement correlation. This method removes the need for manually specified spatial motion templates used in existing methods to constrain motion during inference. Extensive experiments show that Loopy outperforms recent audio-driven portrait diffusion models, delivering more lifelike and high-quality results across various scenarios.
null
cs.CV
[ "cs.CV" ]
2402.19155
HF
Beyond Language Models: Byte Models are Digital World Simulators
[ "Shangda Wu", "Xu Tan", "Zili Wang", "Rui Wang", "Xiaobing Li", "Maosong Sun" ]
2024-02-29
Traditional deep learning often overlooks bytes, the basic units of the digital world, where all forms of information and operations are encoded and manipulated in binary format. Inspired by the success of next token prediction in natural language processing, we introduce bGPT, a model with next byte prediction to simulate the digital world. bGPT matches specialized models in performance across various modalities, including text, audio, and images, and offers new possibilities for predicting, simulating, and diagnosing algorithm or hardware behaviour. It has almost flawlessly replicated the process of converting symbolic music data, achieving a low error rate of 0.0011 bits per byte in converting ABC notation to MIDI format. In addition, bGPT demonstrates exceptional capabilities in simulating CPU behaviour, with an accuracy exceeding 99.99% in executing various operations. Leveraging next byte prediction, models like bGPT can directly learn from vast binary data, effectively simulating the intricate patterns of the digital world.
null
cs.LG
[ "cs.LG" ]
2405.11252
HF
Dreamer XL: Towards High-Resolution Text-to-3D Generation via Trajectory Score Matching
[ "Xingyu Miao", "Haoran Duan", "Varun Ojha", "Jun Song", "Tejal Shah", "Yang Long", "Rajiv Ranjan" ]
2024-05-18
In this work, we propose a novel Trajectory Score Matching (TSM) method that aims to solve the pseudo ground truth inconsistency problem caused by the accumulated error in Interval Score Matching (ISM) when using the Denoising Diffusion Implicit Models (DDIM) inversion process. Unlike ISM which adopts the inversion process of DDIM to calculate on a single path, our TSM method leverages the inversion process of DDIM to generate two paths from the same starting point for calculation. Since both paths start from the same starting point, TSM can reduce the accumulated error compared to ISM, thus alleviating the problem of pseudo ground truth inconsistency. TSM enhances the stability and consistency of the model's generated paths during the distillation process. We demonstrate this experimentally and further show that ISM is a special case of TSM. Furthermore, to optimize the current multi-stage optimization process from high-resolution text to 3D generation, we adopt Stable Diffusion XL for guidance. In response to the issues of abnormal replication and splitting caused by unstable gradients during the 3D Gaussian splatting process when using Stable Diffusion XL, we propose a pixel-by-pixel gradient clipping method. Extensive experiments show that our model significantly surpasses the state-of-the-art models in terms of visual quality and performance. Code: \url{https://github.com/xingy038/Dreamer-XL}.
null
cs.CV
[ "cs.CV" ]
2408.06190
HF
FruitNeRF: A Unified Neural Radiance Field based Fruit Counting Framework
[ "Lukas Meyer", "Andreas Gilson", "Ute Schmidt", "Marc Stamminger" ]
2024-08-12
We introduce FruitNeRF, a unified novel fruit counting framework that leverages state-of-the-art view synthesis methods to count any fruit type directly in 3D. Our framework takes an unordered set of posed images captured by a monocular camera and segments fruit in each image. To make our system independent of the fruit type, we employ a foundation model that generates binary segmentation masks for any fruit. Utilizing both modalities, RGB and semantic, we train a semantic neural radiance field. Through uniform volume sampling of the implicit Fruit Field, we obtain fruit-only point clouds. By applying cascaded clustering on the extracted point cloud, our approach achieves precise fruit count.The use of neural radiance fields provides significant advantages over conventional methods such as object tracking or optical flow, as the counting itself is lifted into 3D. Our method prevents double counting fruit and avoids counting irrelevant fruit.We evaluate our methodology using both real-world and synthetic datasets. The real-world dataset consists of three apple trees with manually counted ground truths, a benchmark apple dataset with one row and ground truth fruit location, while the synthetic dataset comprises various fruit types including apple, plum, lemon, pear, peach, and mango.Additionally, we assess the performance of fruit counting using the foundation model compared to a U-Net.
null
cs.CV
[ "cs.CV" ]
2401.16158
HF
Mobile-Agent: Autonomous Multi-Modal Mobile Device Agent with Visual Perception
[ "Junyang Wang", "Haiyang Xu", "Jiabo Ye", "Ming Yan", "Weizhou Shen", "Ji Zhang", "Fei Huang", "Jitao Sang" ]
2024-01-29
Mobile device agent based on Multimodal Large Language Models (MLLM) is becoming a popular application. In this paper, we introduce Mobile-Agent, an autonomous multi-modal mobile device agent. Mobile-Agent first leverages visual perception tools to accurately identify and locate both the visual and textual elements within the app's front-end interface. Based on the perceived vision context, it then autonomously plans and decomposes the complex operation task, and navigates the mobile Apps through operations step by step. Different from previous solutions that rely on XML files of Apps or mobile system metadata, Mobile-Agent allows for greater adaptability across diverse mobile operating environments in a vision-centric way, thereby eliminating the necessity for system-specific customizations. To assess the performance of Mobile-Agent, we introduced Mobile-Eval, a benchmark for evaluating mobile device operations. Based on Mobile-Eval, we conducted a comprehensive evaluation of Mobile-Agent. The experimental results indicate that Mobile-Agent achieved remarkable accuracy and completion rates. Even with challenging instructions, such as multi-app operations, Mobile-Agent can still complete the requirements. Code and model will be open-sourced at https://github.com/X-PLUG/MobileAgent.
null
cs.CL
[ "cs.CL", "cs.CV" ]
2309.04247
HF
Towards Practical Capture of High-Fidelity Relightable Avatars
[ "Haotian Yang", "Mingwu Zheng", "Wanquan Feng", "Haibin Huang", "Yu-Kun Lai", "Pengfei Wan", "Zhongyuan Wang", "Chongyang Ma" ]
2023-09-08
In this paper, we propose a novel framework, Tracking-free Relightable Avatar (TRAvatar), for capturing and reconstructing high-fidelity 3D avatars. Compared to previous methods, TRAvatar works in a more practical and efficient setting. Specifically, TRAvatar is trained with dynamic image sequences captured in a Light Stage under varying lighting conditions, enabling realistic relighting and real-time animation for avatars in diverse scenes. Additionally, TRAvatar allows for tracking-free avatar capture and obviates the need for accurate surface tracking under varying illumination conditions. Our contributions are two-fold: First, we propose a novel network architecture that explicitly builds on and ensures the satisfaction of the linear nature of lighting. Trained on simple group light captures, TRAvatar can predict the appearance in real-time with a single forward pass, achieving high-quality relighting effects under illuminations of arbitrary environment maps. Second, we jointly optimize the facial geometry and relightable appearance from scratch based on image sequences, where the tracking is implicitly learned. This tracking-free approach brings robustness for establishing temporal correspondences between frames under different lighting conditions. Extensive qualitative and quantitative experiments demonstrate that our framework achieves superior performance for photorealistic avatar animation and relighting.
null
cs.CV
[ "cs.CV" ]
2406.18790
HF
MUMU: Bootstrapping Multimodal Image Generation from Text-to-Image Data
[ "William Berman", "Alexander Peysakhovich" ]
2024-06-26
We train a model to generate images from multimodal prompts of interleaved text and images such as "a <picture of a man> man and his <picture of a dog> dog in an <picture of a cartoon> animated style." We bootstrap a multimodal dataset by extracting semantically meaningful image crops corresponding to words in the image captions of synthetically generated and publicly available text-image data. Our model, MUMU, is composed of a vision-language model encoder with a diffusion decoder and is trained on a single 8xH100 GPU node. Despite being only trained on crops from the same image, MUMU learns to compose inputs from different images into a coherent output. For example, an input of a realistic person and a cartoon will output the same person in the cartoon style, and an input of a standing subject and a scooter will output the subject riding the scooter. As a result, our model generalizes to tasks such as style transfer and character consistency. Our results show the promise of using multimodal models as general purpose controllers for image generation.
null
cs.CV
[ "cs.CV", "cs.AI" ]
2309.16588
HF
Vision Transformers Need Registers
[ "Timothée Darcet", "Maxime Oquab", "Julien Mairal", "Piotr Bojanowski" ]
2023-09-28
Transformers have recently emerged as a powerful tool for learning visual representations. In this paper, we identify and characterize artifacts in feature maps of both supervised and self-supervised ViT networks. The artifacts correspond to high-norm tokens appearing during inference primarily in low-informative background areas of images, that are repurposed for internal computations. We propose a simple yet effective solution based on providing additional tokens to the input sequence of the Vision Transformer to fill that role. We show that this solution fixes that problem entirely for both supervised and self-supervised models, sets a new state of the art for self-supervised visual models on dense visual prediction tasks, enables object discovery methods with larger models, and most importantly leads to smoother feature maps and attention maps for downstream visual processing.
null
cs.CV
[ "cs.CV" ]
1910.10683
AnswerAI
Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer
[ "Colin Raffel", "Noam Shazeer", "Adam Roberts", "Katherine Lee", "Sharan Narang", "Michael Matena", "Yanqi Zhou", "Wei Li", "Peter J. Liu" ]
2019-10-23
Transfer learning, where a model is first pre-trained on a data-rich task before being fine-tuned on a downstream task, has emerged as a powerful technique in natural language processing (NLP). The effectiveness of transfer learning has given rise to a diversity of approaches, methodology, and practice. In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts all text-based language problems into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled data sets, transfer approaches, and other factors on dozens of language understanding tasks. By combining the insights from our exploration with scale and our new ``Colossal Clean Crawled Corpus'', we achieve state-of-the-art results on many benchmarks covering summarization, question answering, text classification, and more. To facilitate future work on transfer learning for NLP, we release our data set, pre-trained models, and code.
null
cs.LG
[ "cs.LG", "cs.CL", "stat.ML" ]
2406.11794
Both
DataComp-LM: In search of the next generation of training sets for language models
[ "Jeffrey Li", "Alex Fang", "Georgios Smyrnis", "Maor Ivgi", "Matt Jordan", "Samir Gadre", "Hritik Bansal", "Etash Guha", "Sedrick Keh", "Kushal Arora", "Saurabh Garg", "Rui Xin", "Niklas Muennighoff", "Reinhard Heckel", "Jean Mercat", "Mayee Chen", "Suchin Gururangan", "Mitchell Wortsman", "Alon Albalak", "Yonatan Bitton", "Marianna Nezhurina", "Amro Abbas", "Cheng-Yu Hsieh", "Dhruba Ghosh", "Josh Gardner", "Maciej Kilian", "Hanlin Zhang", "Rulin Shao", "Sarah Pratt", "Sunny Sanyal", "Gabriel Ilharco", "Giannis Daras", "Kalyani Marathe", "Aaron Gokaslan", "Jieyu Zhang", "Khyathi Chandu", "Thao Nguyen", "Igor Vasiljevic", "Sham Kakade", "Shuran Song", "Sujay Sanghavi", "Fartash Faghri", "Sewoong Oh", "Luke Zettlemoyer", "Kyle Lo", "Alaaeldin El-Nouby", "Hadi Pouransari", "Alexander Toshev", "Stephanie Wang", "Dirk Groeneveld", "Luca Soldaini", "Pang Wei Koh", "Jenia Jitsev", "Thomas Kollar", "Alexandros G. Dimakis", "Yair Carmon", "Achal Dave", "Ludwig Schmidt", "Vaishaal Shankar" ]
2024-06-17
We introduce DataComp for Language Models (DCLM), a testbed for controlled dataset experiments with the goal of improving language models. As part of DCLM, we provide a standardized corpus of 240T tokens extracted from Common Crawl, effective pretraining recipes based on the OpenLM framework, and a broad suite of 53 downstream evaluations. Participants in the DCLM benchmark can experiment with data curation strategies such as deduplication, filtering, and data mixing at model scales ranging from 412M to 7B parameters. As a baseline for DCLM, we conduct extensive experiments and find that model-based filtering is key to assembling a high-quality training set. The resulting dataset, DCLM-Baseline enables training a 7B parameter language model from scratch to 64% 5-shot accuracy on MMLU with 2.6T training tokens. Compared to MAP-Neo, the previous state-of-the-art in open-data language models, DCLM-Baseline represents a 6.6 percentage point improvement on MMLU while being trained with 40% less compute. Our baseline model is also comparable to Mistral-7B-v0.3 and Llama 3 8B on MMLU (63% & 66%), and performs similarly on an average of 53 natural language understanding tasks while being trained with 6.6x less compute than Llama 3 8B. Our results highlight the importance of dataset design for training language models and offer a starting point for further research on data curation.
null
cs.LG
[ "cs.LG", "cs.CL" ]
2311.03226
HF
LDM3D-VR: Latent Diffusion Model for 3D VR
[ "Gabriela Ben Melech Stan", "Diana Wofk", "Estelle Aflalo", "Shao-Yen Tseng", "Zhipeng Cai", "Michael Paulitsch", "Vasudev Lal" ]
2023-11-06
Latent diffusion models have proven to be state-of-the-art in the creation and manipulation of visual outputs. However, as far as we know, the generation of depth maps jointly with RGB is still limited. We introduce LDM3D-VR, a suite of diffusion models targeting virtual reality development that includes LDM3D-pano and LDM3D-SR. These models enable the generation of panoramic RGBD based on textual prompts and the upscaling of low-resolution inputs to high-resolution RGBD, respectively. Our models are fine-tuned from existing pretrained models on datasets containing panoramic/high-resolution RGB images, depth maps and captions. Both models are evaluated in comparison to existing related methods.
null
cs.CV
[ "cs.CV", "cs.AI" ]
2409.08514
HF
Apollo: Band-sequence Modeling for High-Quality Audio Restoration
[ "Kai Li", "Yi Luo" ]
2024-09-13
Audio restoration has become increasingly significant in modern society, not only due to the demand for high-quality auditory experiences enabled by advanced playback devices, but also because the growing capabilities of generative audio models necessitate high-fidelity audio. Typically, audio restoration is defined as a task of predicting undistorted audio from damaged input, often trained using a GAN framework to balance perception and distortion. Since audio degradation is primarily concentrated in mid- and high-frequency ranges, especially due to codecs, a key challenge lies in designing a generator capable of preserving low-frequency information while accurately reconstructing high-quality mid- and high-frequency content. Inspired by recent advancements in high-sample-rate music separation, speech enhancement, and audio codec models, we propose Apollo, a generative model designed for high-sample-rate audio restoration. Apollo employs an explicit frequency band split module to model the relationships between different frequency bands, allowing for more coherent and higher-quality restored audio. Evaluated on the MUSDB18-HQ and MoisesDB datasets, Apollo consistently outperforms existing SR-GAN models across various bit rates and music genres, particularly excelling in complex scenarios involving mixtures of multiple instruments and vocals. Apollo significantly improves music restoration quality while maintaining computational efficiency. The source code for Apollo is publicly available at https://github.com/JusperLee/Apollo.
null
cs.SD
[ "cs.SD", "cs.AI", "eess.AS" ]
2310.15916
HF
In-Context Learning Creates Task Vectors
[ "Roee Hendel", "Mor Geva", "Amir Globerson" ]
2023-10-24
In-context learning (ICL) in Large Language Models (LLMs) has emerged as a powerful new learning paradigm. However, its underlying mechanism is still not well understood. In particular, it is challenging to map it to the "standard" machine learning framework, where one uses a training set $S$ to find a best-fitting function $f(x)$ in some hypothesis class. Here we make progress on this problem by showing that the functions learned by ICL often have a very simple structure: they correspond to the transformer LLM whose only inputs are the query $x$ and a single "task vector" calculated from the training set. Thus, ICL can be seen as compressing $S$ into a single task vector $\boldsymbol{\theta}(S)$ and then using this task vector to modulate the transformer to produce the output. We support the above claim via comprehensive experiments across a range of models and tasks.
null
cs.CL
[ "cs.CL" ]
2310.18628
HF
Personalised Distillation: Empowering Open-Sourced LLMs with Adaptive Learning for Code Generation
[ "Hailin Chen", "Amrita Saha", "Steven Hoi", "Shafiq Joty" ]
2023-10-28
With the rise of powerful closed-sourced LLMs (ChatGPT, GPT-4), there are increasing interests in distilling the capabilies of close-sourced LLMs to smaller open-sourced LLMs. Previous distillation methods usually prompt ChatGPT to generate a set of instructions and answers, for the student model to learn. However, such standard distillation approach neglects the merits and conditions of the student model. Inspired by modern teaching principles, we design a personalised distillation process, in which the student attempts to solve a task first, then the teacher provides an adaptive refinement for the student to improve. Instead of feeding the student with teacher's prior, personalised distillation enables personalised learning for the student model, as it only learns on examples it makes mistakes upon and learns to improve its own solution. On code generation, personalised distillation consistently outperforms standard distillation with only one third of the data. With only 2.5-3K personalised examples that incur a data-collection cost of 4-6$, we boost CodeGen-mono-16B by 7% to achieve 36.4% pass@1 and StarCoder by 12.2% to achieve 45.8% pass@1 on HumanEval.
null
cs.CL
[ "cs.CL", "cs.LG" ]
1804.03235
AnswerAI
Large scale distributed neural network training through online distillation
[ "Rohan Anil", "Gabriel Pereyra", "Alexandre Passos", "Robert Ormandi", "George E. Dahl", "Geoffrey E. Hinton" ]
2018-04-09
Techniques such as ensembling and distillation promise model quality improvements when paired with almost any base model. However, due to increased test-time cost (for ensembles) and increased complexity of the training pipeline (for distillation), these techniques are challenging to use in industrial settings. In this paper we explore a variant of distillation which is relatively straightforward to use as it does not require a complicated multi-stage setup or many new hyperparameters. Our first claim is that online distillation enables us to use extra parallelism to fit very large datasets about twice as fast. Crucially, we can still speed up training even after we have already reached the point at which additional parallelism provides no benefit for synchronous or asynchronous stochastic gradient descent. Two neural networks trained on disjoint subsets of the data can share knowledge by encouraging each model to agree with the predictions the other model would have made. These predictions can come from a stale version of the other model so they can be safely computed using weights that only rarely get transmitted. Our second claim is that online distillation is a cost-effective way to make the exact predictions of a model dramatically more reproducible. We support our claims using experiments on the Criteo Display Ad Challenge dataset, ImageNet, and the largest to-date dataset used for neural language modeling, containing $6\times 10^{11}$ tokens and based on the Common Crawl repository of web data.
null
cs.LG
[ "cs.LG", "cs.AI", "stat.ML" ]
2401.16468
HF
InstructIR: High-Quality Image Restoration Following Human Instructions
[ "Marcos V. Conde", "Gregor Geigle", "Radu Timofte" ]
2024-01-29
Image restoration is a fundamental problem that involves recovering a high-quality clean image from its degraded observation. All-In-One image restoration models can effectively restore images from various types and levels of degradation using degradation-specific information as prompts to guide the restoration model. In this work, we present the first approach that uses human-written instructions to guide the image restoration model. Given natural language prompts, our model can recover high-quality images from their degraded counterparts, considering multiple degradation types. Our method, InstructIR, achieves state-of-the-art results on several restoration tasks including image denoising, deraining, deblurring, dehazing, and (low-light) image enhancement. InstructIR improves +1dB over previous all-in-one restoration methods. Moreover, our dataset and results represent a novel benchmark for new research on text-guided image restoration and enhancement. Our code, datasets and models are available at: https://github.com/mv-lab/InstructIR
null
cs.CV
[ "cs.CV", "cs.LG", "eess.IV" ]
2401.09416
HF
TextureDreamer: Image-guided Texture Synthesis through Geometry-aware Diffusion
[ "Yu-Ying Yeh", "Jia-Bin Huang", "Changil Kim", "Lei Xiao", "Thu Nguyen-Phuoc", "Numair Khan", "Cheng Zhang", "Manmohan Chandraker", "Carl S Marshall", "Zhao Dong", "Zhengqin Li" ]
2024-01-17
We present TextureDreamer, a novel image-guided texture synthesis method to transfer relightable textures from a small number of input images (3 to 5) to target 3D shapes across arbitrary categories. Texture creation is a pivotal challenge in vision and graphics. Industrial companies hire experienced artists to manually craft textures for 3D assets. Classical methods require densely sampled views and accurately aligned geometry, while learning-based methods are confined to category-specific shapes within the dataset. In contrast, TextureDreamer can transfer highly detailed, intricate textures from real-world environments to arbitrary objects with only a few casually captured images, potentially significantly democratizing texture creation. Our core idea, personalized geometry-aware score distillation (PGSD), draws inspiration from recent advancements in diffuse models, including personalized modeling for texture information extraction, variational score distillation for detailed appearance synthesis, and explicit geometry guidance with ControlNet. Our integration and several essential modifications substantially improve the texture quality. Experiments on real images spanning different categories show that TextureDreamer can successfully transfer highly realistic, semantic meaningful texture to arbitrary objects, surpassing the visual quality of previous state-of-the-art.
null
cs.CV
[ "cs.CV", "cs.GR" ]
2307.06324
AnswerAI
Provably Faster Gradient Descent via Long Steps
[ "Benjamin Grimmer" ]
2023-07-12
This work establishes new convergence guarantees for gradient descent in smooth convex optimization via a computer-assisted analysis technique. Our theory allows nonconstant stepsize policies with frequent long steps potentially violating descent by analyzing the overall effect of many iterations at once rather than the typical one-iteration inductions used in most first-order method analyses. We show that long steps, which may increase the objective value in the short term, lead to provably faster convergence in the long term. A conjecture towards proving a faster $O(1/T\log T)$ rate for gradient descent is also motivated along with simple numerical validation.
null
math.OC
[ "math.OC", "cs.LG", "cs.NA", "math.NA" ]
2306.15400
HF
Length Generalization in Arithmetic Transformers
[ "Samy Jelassi", "Stéphane d'Ascoli", "Carles Domingo-Enrich", "Yuhuai Wu", "Yuanzhi Li", "François Charton" ]
2023-06-27
We examine how transformers cope with two challenges: learning basic integer arithmetic, and generalizing to longer sequences than seen during training. We find that relative position embeddings enable length generalization for simple tasks, such as addition: models trained on $5$-digit numbers can perform $15$-digit sums. However, this method fails for multiplication, and we propose train set priming: adding a few ($10$ to $50$) long sequences to the training set. We show that priming allows models trained on $5$-digit $\times$ $3$-digit multiplications to generalize to $35\times 3$ examples. We also show that models can be primed for different generalization lengths, and that the priming sample size scales as the logarithm of the training set size. Finally, we discuss potential applications of priming beyond arithmetic.
null
cs.LG
[ "cs.LG" ]
2403.03870
HF
Learning to Decode Collaboratively with Multiple Language Models
[ "Shannon Zejiang Shen", "Hunter Lang", "Bailin Wang", "Yoon Kim", "David Sontag" ]
2024-03-06
We propose a method to teach multiple large language models (LLM) to collaborate by interleaving their generations at the token level. We model the decision of which LLM generates the next token as a latent variable. By optimizing the marginal likelihood of a training set under our latent variable model, the base LLM automatically learns when to generate itself and when to call on one of the ``assistant'' language models to generate, all without direct supervision. Token-level collaboration during decoding allows for a fusion of each model's expertise in a manner tailored to the specific task at hand. Our collaborative decoding is especially useful in cross-domain settings where a generalist base LLM learns to invoke domain expert models. On instruction-following, domain-specific QA, and reasoning tasks, we show that the performance of the joint system exceeds that of the individual models. Through qualitative analysis of the learned latent decisions, we show models trained with our method exhibit several interesting collaboration patterns, e.g., template-filling. Our code is available at https://github.com/clinicalml/co-llm.
null
cs.CL
[ "cs.CL", "cs.LG" ]
2408.03356
HF
RayGauss: Volumetric Gaussian-Based Ray Casting for Photorealistic Novel View Synthesis
[ "Hugo Blanc", "Jean-Emmanuel Deschaud", "Alexis Paljic" ]
2024-08-06
Differentiable volumetric rendering-based methods made significant progress in novel view synthesis. On one hand, innovative methods have replaced the Neural Radiance Fields (NeRF) network with locally parameterized structures, enabling high-quality renderings in a reasonable time. On the other hand, approaches have used differentiable splatting instead of NeRF's ray casting to optimize radiance fields rapidly using Gaussian kernels, allowing for fine adaptation to the scene. However, differentiable ray casting of irregularly spaced kernels has been scarcely explored, while splatting, despite enabling fast rendering times, is susceptible to clearly visible artifacts. Our work closes this gap by providing a physically consistent formulation of the emitted radiance c and density {\sigma}, decomposed with Gaussian functions associated with Spherical Gaussians/Harmonics for all-frequency colorimetric representation. We also introduce a method enabling differentiable ray casting of irregularly distributed Gaussians using an algorithm that integrates radiance fields slab by slab and leverages a BVH structure. This allows our approach to finely adapt to the scene while avoiding splatting artifacts. As a result, we achieve superior rendering quality compared to the state-of-the-art while maintaining reasonable training times and achieving inference speeds of 25 FPS on the Blender dataset. Project page with videos and code: https://raygauss.github.io/
null
cs.CV
[ "cs.CV", "cs.GR" ]
2305.15328
AnswerAI
Visual Programming for Text-to-Image Generation and Evaluation
[ "Jaemin Cho", "Abhay Zala", "Mohit Bansal" ]
2023-05-24
As large language models have demonstrated impressive performance in many domains, recent works have adopted language models (LMs) as controllers of visual modules for vision-and-language tasks. While existing work focuses on equipping LMs with visual understanding, we propose two novel interpretable/explainable visual programming frameworks for text-to-image (T2I) generation and evaluation. First, we introduce VPGen, an interpretable step-by-step T2I generation framework that decomposes T2I generation into three steps: object/count generation, layout generation, and image generation. We employ an LM to handle the first two steps (object/count generation and layout generation), by finetuning it on text-layout pairs. Our step-by-step T2I generation framework provides stronger spatial control than end-to-end models, the dominant approach for this task. Furthermore, we leverage the world knowledge of pretrained LMs, overcoming the limitation of previous layout-guided T2I works that can only handle predefined object classes. We demonstrate that our VPGen has improved control in counts/spatial relations/scales of objects than state-of-the-art T2I generation models. Second, we introduce VPEval, an interpretable and explainable evaluation framework for T2I generation based on visual programming. Unlike previous T2I evaluations with a single scoring model that is accurate in some skills but unreliable in others, VPEval produces evaluation programs that invoke a set of visual modules that are experts in different skills, and also provides visual+textual explanations of the evaluation results. Our analysis shows that VPEval provides a more human-correlated evaluation for skill-specific and open-ended prompts than widely used single model-based evaluation. We hope that our work encourages future progress on interpretable/explainable generation and evaluation for T2I models.
null
cs.CV
[ "cs.CV", "cs.AI", "cs.CL", "cs.LG" ]
2305.05176
Both
FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performance
[ "Lingjiao Chen", "Matei Zaharia", "James Zou" ]
2023-05-09
There is a rapidly growing number of large language models (LLMs) that users can query for a fee. We review the cost associated with querying popular LLM APIs, e.g. GPT-4, ChatGPT, J1-Jumbo, and find that these models have heterogeneous pricing structures, with fees that can differ by two orders of magnitude. In particular, using LLMs on large collections of queries and text can be expensive. Motivated by this, we outline and discuss three types of strategies that users can exploit to reduce the inference cost associated with using LLMs: 1) prompt adaptation, 2) LLM approximation, and 3) LLM cascade. As an example, we propose FrugalGPT, a simple yet flexible instantiation of LLM cascade which learns which combinations of LLMs to use for different queries in order to reduce cost and improve accuracy. Our experiments show that FrugalGPT can match the performance of the best individual LLM (e.g. GPT-4) with up to 98% cost reduction or improve the accuracy over GPT-4 by 4% with the same cost. The ideas and findings presented here lay a foundation for using LLMs sustainably and efficiently.
null
cs.LG
[ "cs.LG", "cs.AI", "cs.CL", "cs.SE" ]
2311.12997
AnswerAI
Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks
[ "Rahul Ramesh", "Ekdeep Singh Lubana", "Mikail Khona", "Robert P. Dick", "Hidenori Tanaka" ]
2023-11-21
Transformers trained on huge text corpora exhibit a remarkable set of capabilities, e.g., performing basic arithmetic. Given the inherent compositional nature of language, one can expect the model to learn to compose these capabilities, potentially yielding a combinatorial explosion of what operations it can perform on an input. Motivated by the above, we train autoregressive Transformer models on a synthetic data-generating process that involves compositions of a set of well-defined monolithic capabilities. Through a series of extensive and systematic experiments on this data-generating process, we show that: (1) autoregressive Transformers can learn compositional structures from small amounts of training data and generalize to exponentially or even combinatorially many functions; (2) generating intermediate outputs when composing functions is more effective for generalizing to new, unseen compositions than not generating any intermediate outputs (3) biases in the order of the compositions in the training data result in Transformers that fail to compose some combinations of functions; and (4) the attention layers select which capability to apply while the feed-forward layers execute the selected capability.
null
cs.LG
[ "cs.LG" ]
2404.03592
Both
ReFT: Representation Finetuning for Language Models
[ "Zhengxuan Wu", "Aryaman Arora", "Zheng Wang", "Atticus Geiger", "Dan Jurafsky", "Christopher D. Manning", "Christopher Potts" ]
2024-04-04
Parameter-efficient finetuning (PEFT) methods seek to adapt large neural models via updates to a small number of weights. However, much prior interpretability work has shown that representations encode rich semantic information, suggesting that editing representations might be a more powerful alternative. We pursue this hypothesis by developing a family of Representation Finetuning (ReFT) methods. ReFT methods operate on a frozen base model and learn task-specific interventions on hidden representations. We define a strong instance of the ReFT family, Low-rank Linear Subspace ReFT (LoReFT), and we identify an ablation of this method that trades some performance for increased efficiency. Both are drop-in replacements for existing PEFTs and learn interventions that are 15x--65x more parameter-efficient than LoRA. We showcase LoReFT on eight commonsense reasoning tasks, four arithmetic reasoning tasks, instruction-tuning, and GLUE. In all these evaluations, our ReFTs deliver the best balance of efficiency and performance, and almost always outperform state-of-the-art PEFTs. We release a generic ReFT training library publicly at https://github.com/stanfordnlp/pyreft.
null
cs.CL
[ "cs.CL", "cs.AI", "cs.LG" ]
2408.12569
HF
Sapiens: Foundation for Human Vision Models
[ "Rawal Khirodkar", "Timur Bagautdinov", "Julieta Martinez", "Su Zhaoen", "Austin James", "Peter Selednik", "Stuart Anderson", "Shunsuke Saito" ]
2024-08-22
We present Sapiens, a family of models for four fundamental human-centric vision tasks -- 2D pose estimation, body-part segmentation, depth estimation, and surface normal prediction. Our models natively support 1K high-resolution inference and are extremely easy to adapt for individual tasks by simply fine-tuning models pretrained on over 300 million in-the-wild human images. We observe that, given the same computational budget, self-supervised pretraining on a curated dataset of human images significantly boosts the performance for a diverse set of human-centric tasks. The resulting models exhibit remarkable generalization to in-the-wild data, even when labeled data is scarce or entirely synthetic. Our simple model design also brings scalability -- model performance across tasks improves as we scale the number of parameters from 0.3 to 2 billion. Sapiens consistently surpasses existing baselines across various human-centric benchmarks. We achieve significant improvements over the prior state-of-the-art on Humans-5K (pose) by 7.6 mAP, Humans-2K (part-seg) by 17.1 mIoU, Hi4D (depth) by 22.4% relative RMSE, and THuman2 (normal) by 53.5% relative angular error. Project page: https://about.meta.com/realitylabs/codecavatars/sapiens.
null
cs.CV
[ "cs.CV" ]
2311.03736
HF
Neural MMO 2.0: A Massively Multi-task Addition to Massively Multi-agent Learning
[ "Joseph Suárez", "Phillip Isola", "Kyoung Whan Choe", "David Bloomin", "Hao Xiang Li", "Nikhil Pinnaparaju", "Nishaanth Kanna", "Daniel Scott", "Ryan Sullivan", "Rose S. Shuman", "Lucas de Alcântara", "Herbie Bradley", "Louis Castricato", "Kirsty You", "Yuhao Jiang", "Qimai Li", "Jiaxin Chen", "Xiaolong Zhu" ]
2023-11-07
Neural MMO 2.0 is a massively multi-agent environment for reinforcement learning research. The key feature of this new version is a flexible task system that allows users to define a broad range of objectives and reward signals. We challenge researchers to train agents capable of generalizing to tasks, maps, and opponents never seen during training. Neural MMO features procedurally generated maps with 128 agents in the standard setting and support for up to. Version 2.0 is a complete rewrite of its predecessor with three-fold improved performance and compatibility with CleanRL. We release the platform as free and open-source software with comprehensive documentation available at neuralmmo.github.io and an active community Discord. To spark initial research on this new platform, we are concurrently running a competition at NeurIPS 2023.
null
cs.AI
[ "cs.AI", "cs.LG", "cs.MA" ]
2403.14773
HF
StreamingT2V: Consistent, Dynamic, and Extendable Long Video Generation from Text
[ "Roberto Henschel", "Levon Khachatryan", "Daniil Hayrapetyan", "Hayk Poghosyan", "Vahram Tadevosyan", "Zhangyang Wang", "Shant Navasardyan", "Humphrey Shi" ]
2024-03-21
Text-to-video diffusion models enable the generation of high-quality videos that follow text instructions, making it easy to create diverse and individual content. However, existing approaches mostly focus on high-quality short video generation (typically 16 or 24 frames), ending up with hard-cuts when naively extended to the case of long video synthesis. To overcome these limitations, we introduce StreamingT2V, an autoregressive approach for long video generation of 80, 240, 600, 1200 or more frames with smooth transitions. The key components are:(i) a short-term memory block called conditional attention module (CAM), which conditions the current generation on the features extracted from the previous chunk via an attentional mechanism, leading to consistent chunk transitions, (ii) a long-term memory block called appearance preservation module, which extracts high-level scene and object features from the first video chunk to prevent the model from forgetting the initial scene, and (iii) a randomized blending approach that enables to apply a video enhancer autoregressively for infinitely long videos without inconsistencies between chunks. Experiments show that StreamingT2V generates high motion amount. In contrast, all competing image-to-video methods are prone to video stagnation when applied naively in an autoregressive manner. Thus, we propose with StreamingT2V a high-quality seamless text-to-long video generator that outperforms competitors with consistency and motion. Our code will be available at: https://github.com/Picsart-AI-Research/StreamingT2V
null
cs.CV
[ "cs.CV", "cs.AI", "cs.CL", "cs.LG", "cs.MM", "eess.IV" ]
2312.09067
HF
Holodeck: Language Guided Generation of 3D Embodied AI Environments
[ "Yue Yang", "Fan-Yun Sun", "Luca Weihs", "Eli VanderBilt", "Alvaro Herrasti", "Winson Han", "Jiajun Wu", "Nick Haber", "Ranjay Krishna", "Lingjie Liu", "Chris Callison-Burch", "Mark Yatskar", "Aniruddha Kembhavi", "Christopher Clark" ]
2023-12-14
3D simulated environments play a critical role in Embodied AI, but their creation requires expertise and extensive manual effort, restricting their diversity and scope. To mitigate this limitation, we present Holodeck, a system that generates 3D environments to match a user-supplied prompt fully automatedly. Holodeck can generate diverse scenes, e.g., arcades, spas, and museums, adjust the designs for styles, and can capture the semantics of complex queries such as "apartment for a researcher with a cat" and "office of a professor who is a fan of Star Wars". Holodeck leverages a large language model (i.e., GPT-4) for common sense knowledge about what the scene might look like and uses a large collection of 3D assets from Objaverse to populate the scene with diverse objects. To address the challenge of positioning objects correctly, we prompt GPT-4 to generate spatial relational constraints between objects and then optimize the layout to satisfy those constraints. Our large-scale human evaluation shows that annotators prefer Holodeck over manually designed procedural baselines in residential scenes and that Holodeck can produce high-quality outputs for diverse scene types. We also demonstrate an exciting application of Holodeck in Embodied AI, training agents to navigate in novel scenes like music rooms and daycares without human-constructed data, which is a significant step forward in developing general-purpose embodied agents.
null
cs.CV
[ "cs.CV", "cs.AI", "cs.CL", "cs.RO" ]
2311.13231
HF
Using Human Feedback to Fine-tune Diffusion Models without Any Reward Model
[ "Kai Yang", "Jian Tao", "Jiafei Lyu", "Chunjiang Ge", "Jiaxin Chen", "Qimai Li", "Weihan Shen", "Xiaolong Zhu", "Xiu Li" ]
2023-11-22
Using reinforcement learning with human feedback (RLHF) has shown significant promise in fine-tuning diffusion models. Previous methods start by training a reward model that aligns with human preferences, then leverage RL techniques to fine-tune the underlying models. However, crafting an efficient reward model demands extensive datasets, optimal architecture, and manual hyperparameter tuning, making the process both time and cost-intensive. The direct preference optimization (DPO) method, effective in fine-tuning large language models, eliminates the necessity for a reward model. However, the extensive GPU memory requirement of the diffusion model's denoising process hinders the direct application of the DPO method. To address this issue, we introduce the Direct Preference for Denoising Diffusion Policy Optimization (D3PO) method to directly fine-tune diffusion models. The theoretical analysis demonstrates that although D3PO omits training a reward model, it effectively functions as the optimal reward model trained using human feedback data to guide the learning process. This approach requires no training of a reward model, proving to be more direct, cost-effective, and minimizing computational overhead. In experiments, our method uses the relative scale of objectives as a proxy for human preference, delivering comparable results to methods using ground-truth rewards. Moreover, D3PO demonstrates the ability to reduce image distortion rates and generate safer images, overcoming challenges lacking robust reward models. Our code is publicly available at https://github.com/yk7333/D3PO.
null
cs.LG
[ "cs.LG", "cs.AI", "cs.CV" ]
2305.20081
HF
Efficient Diffusion Policies for Offline Reinforcement Learning
[ "Bingyi Kang", "Xiao Ma", "Chao Du", "Tianyu Pang", "Shuicheng Yan" ]
2023-05-31
Offline reinforcement learning (RL) aims to learn optimal policies from offline datasets, where the parameterization of policies is crucial but often overlooked. Recently, Diffsuion-QL significantly boosts the performance of offline RL by representing a policy with a diffusion model, whose success relies on a parametrized Markov Chain with hundreds of steps for sampling. However, Diffusion-QL suffers from two critical limitations. 1) It is computationally inefficient to forward and backward through the whole Markov chain during training. 2) It is incompatible with maximum likelihood-based RL algorithms (e.g., policy gradient methods) as the likelihood of diffusion models is intractable. Therefore, we propose efficient diffusion policy (EDP) to overcome these two challenges. EDP approximately constructs actions from corrupted ones at training to avoid running the sampling chain. We conduct extensive experiments on the D4RL benchmark. The results show that EDP can reduce the diffusion policy training time from 5 days to 5 hours on gym-locomotion tasks. Moreover, we show that EDP is compatible with various offline RL algorithms (TD3, CRR, and IQL) and achieves new state-of-the-art on D4RL by large margins over previous methods. Our code is available at https://github.com/sail-sg/edp.
null
cs.LG
[ "cs.LG", "cs.AI" ]
2311.10708
Both
SelfEval: Leveraging the discriminative nature of generative models for evaluation
[ "Sai Saketh Rambhatla", "Ishan Misra" ]
2023-11-17
In this work, we show that text-to-image generative models can be 'inverted' to assess their own text-image understanding capabilities in a completely automated manner. Our method, called SelfEval, uses the generative model to compute the likelihood of real images given text prompts, making the generative model directly applicable to discriminative tasks. Using SelfEval, we repurpose standard datasets created for evaluating multimodal text-image discriminative models to evaluate generative models in a fine-grained manner: assessing their performance on attribute binding, color recognition, counting, shape recognition, spatial understanding. To the best of our knowledge SelfEval is the first automated metric to show a high degree of agreement for measuring text-faithfulness with the gold-standard human evaluations across multiple models and benchmarks. Moreover, SelfEval enables us to evaluate generative models on challenging tasks such as Winoground image-score where they demonstrate competitive performance to discriminative models. We also show severe drawbacks of standard automated metrics such as CLIP-score to measure text faithfulness on benchmarks such as DrawBench, and how SelfEval sidesteps these issues. We hope SelfEval enables easy and reliable automated evaluation for diffusion models.
null
cs.CV
[ "cs.CV", "cs.LG" ]
2403.19154
AnswerAI
STaR-GATE: Teaching Language Models to Ask Clarifying Questions
[ "Chinmaya Andukuri", "Jan-Philipp Fränken", "Tobias Gerstenberg", "Noah D. Goodman" ]
2024-03-28
When prompting language models to complete a task, users often leave important aspects unsaid. While asking questions could resolve this ambiguity (GATE; Li et al., 2023), models often struggle to ask good questions. We explore a language model's ability to self-improve (STaR; Zelikman et al., 2022) by rewarding the model for generating useful questions-a simple method we dub STaR-GATE. We generate a synthetic dataset of 25,500 unique persona-task prompts to simulate conversations between a pretrained language model-the Questioner-and a Roleplayer whose preferences are unknown to the Questioner. By asking questions, the Questioner elicits preferences from the Roleplayer. The Questioner is iteratively finetuned on questions that increase the probability of high-quality responses to the task, which are generated by an Oracle with access to the Roleplayer's latent preferences. After two iterations of self-improvement, the Questioner asks better questions, allowing it to generate responses that are preferred over responses from the initial model on 72% of tasks. Our results indicate that teaching a language model to ask better questions leads to better personalized responses.
null
cs.CL
[ "cs.CL", "cs.AI" ]
2409.02795
HF
Towards a Unified View of Preference Learning for Large Language Models: A Survey
[ "Bofei Gao", "Feifan Song", "Yibo Miao", "Zefan Cai", "Zhe Yang", "Liang Chen", "Helan Hu", "Runxin Xu", "Qingxiu Dong", "Ce Zheng", "Wen Xiao", "Ge Zhang", "Daoguang Zan", "Keming Lu", "Bowen Yu", "Dayiheng Liu", "Zeyu Cui", "Jian Yang", "Lei Sha", "Houfeng Wang", "Zhifang Sui", "Peiyi Wang", "Tianyu Liu", "Baobao Chang" ]
2024-09-04
Large Language Models (LLMs) exhibit remarkably powerful capabilities. One of the crucial factors to achieve success is aligning the LLM's output with human preferences. This alignment process often requires only a small amount of data to efficiently enhance the LLM's performance. While effective, research in this area spans multiple domains, and the methods involved are relatively complex to understand. The relationships between different methods have been under-explored, limiting the development of the preference alignment. In light of this, we break down the existing popular alignment strategies into different components and provide a unified framework to study the current alignment strategies, thereby establishing connections among them. In this survey, we decompose all the strategies in preference learning into four components: model, data, feedback, and algorithm. This unified view offers an in-depth understanding of existing alignment algorithms and also opens up possibilities to synergize the strengths of different strategies. Furthermore, we present detailed working examples of prevalent existing algorithms to facilitate a comprehensive understanding for the readers. Finally, based on our unified perspective, we explore the challenges and future research directions for aligning large language models with human preferences.
null
cs.CL
[ "cs.CL" ]
2405.12399
HF
Diffusion for World Modeling: Visual Details Matter in Atari
[ "Eloi Alonso", "Adam Jelley", "Vincent Micheli", "Anssi Kanervisto", "Amos Storkey", "Tim Pearce", "François Fleuret" ]
2024-05-20
World models constitute a promising approach for training reinforcement learning agents in a safe and sample-efficient manner. Recent world models predominantly operate on sequences of discrete latent variables to model environment dynamics. However, this compression into a compact discrete representation may ignore visual details that are important for reinforcement learning. Concurrently, diffusion models have become a dominant approach for image generation, challenging well-established methods modeling discrete latents. Motivated by this paradigm shift, we introduce DIAMOND (DIffusion As a Model Of eNvironment Dreams), a reinforcement learning agent trained in a diffusion world model. We analyze the key design choices that are required to make diffusion suitable for world modeling, and demonstrate how improved visual details can lead to improved agent performance. DIAMOND achieves a mean human normalized score of 1.46 on the competitive Atari 100k benchmark; a new best for agents trained entirely within a world model. To foster future research on diffusion for world modeling, we release our code, agents and playable world models at https://github.com/eloialonso/diamond.
null
cs.LG
[ "cs.LG", "cs.AI", "cs.CV" ]
2404.00399
HF
Aurora-M: The First Open Source Multilingual Language Model Red-teamed according to the U.S. Executive Order
[ "Taishi Nakamura", "Mayank Mishra", "Simone Tedeschi", "Yekun Chai", "Jason T Stillerman", "Felix Friedrich", "Prateek Yadav", "Tanmay Laud", "Vu Minh Chien", "Terry Yue Zhuo", "Diganta Misra", "Ben Bogin", "Xuan-Son Vu", "Marzena Karpinska", "Arnav Varma Dantuluri", "Wojciech Kusa", "Tommaso Furlanello", "Rio Yokota", "Niklas Muennighoff", "Suhas Pai", "Tosin Adewumi", "Veronika Laippala", "Xiaozhe Yao", "Adalberto Junior", "Alpay Ariyak", "Aleksandr Drozd", "Jordan Clive", "Kshitij Gupta", "Liangyu Chen", "Qi Sun", "Ken Tsui", "Noah Persaud", "Nour Fahmy", "Tianlong Chen", "Mohit Bansal", "Nicolo Monti", "Tai Dang", "Ziyang Luo", "Tien-Tung Bui", "Roberto Navigli", "Virendra Mehta", "Matthew Blumberg", "Victor May", "Huu Nguyen", "Sampo Pyysalo" ]
2024-03-30
Pretrained language models underpin several AI applications, but their high computational cost for training limits accessibility. Initiatives such as BLOOM and StarCoder aim to democratize access to pretrained models for collaborative community development. However, such existing models face challenges: limited multilingual capabilities, continual pretraining causing catastrophic forgetting, whereas pretraining from scratch is computationally expensive, and compliance with AI safety and development laws. This paper presents Aurora-M, a 15B parameter multilingual open-source model trained on English, Finnish, Hindi, Japanese, Vietnamese, and code. Continually pretrained from StarCoderPlus on 435 billion additional tokens, Aurora-M surpasses 2 trillion tokens in total training token count. It is the first open-source multilingual model fine-tuned on human-reviewed safety instructions, thus aligning its development not only with conventional red-teaming considerations, but also with the specific concerns articulated in the Biden-Harris Executive Order on the Safe, Secure, and Trustworthy Development and Use of Artificial Intelligence. Aurora-M is rigorously evaluated across various tasks and languages, demonstrating robustness against catastrophic forgetting and outperforming alternatives in multilingual settings, particularly in safety evaluations. To promote responsible open-source LLM development, Aurora-M and its variants are released at https://huggingface.co/collections/aurora-m/aurora-m-models-65fdfdff62471e09812f5407 .
null
cs.CL
[ "cs.CL", "cs.AI", "cs.LG" ]
2404.04346
HF
Koala: Key frame-conditioned long video-LLM
[ "Reuben Tan", "Ximeng Sun", "Ping Hu", "Jui-hsien Wang", "Hanieh Deilamsalehy", "Bryan A. Plummer", "Bryan Russell", "Kate Saenko" ]
2024-04-05
Long video question answering is a challenging task that involves recognizing short-term activities and reasoning about their fine-grained relationships. State-of-the-art video Large Language Models (vLLMs) hold promise as a viable solution due to their demonstrated emergent capabilities on new tasks. However, despite being trained on millions of short seconds-long videos, vLLMs are unable to understand minutes-long videos and accurately answer questions about them. To address this limitation, we propose a lightweight and self-supervised approach, Key frame-conditioned long video-LLM (Koala), that introduces learnable spatiotemporal queries to adapt pretrained vLLMs for generalizing to longer videos. Our approach introduces two new tokenizers that condition on visual tokens computed from sparse video key frames for understanding short and long video moments. We train our proposed approach on HowTo100M and demonstrate its effectiveness on zero-shot long video understanding benchmarks, where it outperforms state-of-the-art large models by 3 - 6% in absolute accuracy across all tasks. Surprisingly, we also empirically show that our approach not only helps a pretrained vLLM to understand long videos but also improves its accuracy on short-term action recognition.
null
cs.CV
[ "cs.CV" ]
2205.01068
AnswerAI
OPT: Open Pre-trained Transformer Language Models
[ "Susan Zhang", "Stephen Roller", "Naman Goyal", "Mikel Artetxe", "Moya Chen", "Shuohui Chen", "Christopher Dewan", "Mona Diab", "Xian Li", "Xi Victoria Lin", "Todor Mihaylov", "Myle Ott", "Sam Shleifer", "Kurt Shuster", "Daniel Simig", "Punit Singh Koura", "Anjali Sridhar", "Tianlu Wang", "Luke Zettlemoyer" ]
2022-05-02
Large language models, which are often trained for hundreds of thousands of compute days, have shown remarkable capabilities for zero- and few-shot learning. Given their computational cost, these models are difficult to replicate without significant capital. For the few that are available through APIs, no access is granted to the full model weights, making them difficult to study. We present Open Pre-trained Transformers (OPT), a suite of decoder-only pre-trained transformers ranging from 125M to 175B parameters, which we aim to fully and responsibly share with interested researchers. We show that OPT-175B is comparable to GPT-3, while requiring only 1/7th the carbon footprint to develop. We are also releasing our logbook detailing the infrastructure challenges we faced, along with code for experimenting with all of the released models.
null
cs.CL
[ "cs.CL", "cs.LG" ]
2303.12003
AnswerAI
Artificial muses: Generative Artificial Intelligence Chatbots Have Risen to Human-Level Creativity
[ "Jennifer Haase", "Paul H. P. Hanel" ]
2023-03-21
A widespread view is that Artificial Intelligence cannot be creative. We tested this assumption by comparing human-generated ideas with those generated by six Generative Artificial Intelligence (GAI) chatbots: $alpa.\!ai$, $Copy.\!ai$, ChatGPT (versions 3 and 4), $Studio.\!ai$, and YouChat. Humans and a specifically trained AI independently assessed the quality and quantity of ideas. We found no qualitative difference between AI and human-generated creativity, although there are differences in how ideas are generated. Interestingly, 9.4 percent of humans were more creative than the most creative GAI, GPT-4. Our findings suggest that GAIs are valuable assistants in the creative process. Continued research and development of GAI in creative tasks is crucial to fully understand this technology's potential benefits and drawbacks in shaping the future of creativity. Finally, we discuss the question of whether GAIs are capable of being truly creative.
10.1016/j.yjoc.2023.100066
cs.AI
[ "cs.AI", "cs.HC" ]
2407.01470
HF
DogeRM: Equipping Reward Models with Domain Knowledge through Model Merging
[ "Tzu-Han Lin", "Chen-An Li", "Hung-yi Lee", "Yun-Nung Chen" ]
2024-07-01
Reinforcement learning from human feedback (RLHF) is a popular strategy for aligning large language models (LLMs) with desired behaviors. Reward modeling is a crucial step in RLHF. However, collecting paired preference data for training reward models is often costly and time-consuming, especially for domain-specific preferences requiring expert annotation. To address this challenge, we propose the \textbf{Do}main knowled\textbf{ge} merged \textbf{R}eward \textbf{M}odel (DogeRM), a novel framework that integrates domain-specific knowledge into a general reward model by model merging. The experiments demonstrate that DogeRM enhances performance across different benchmarks and provide a detailed analysis showcasing the effects of model merging, showing the great potential of facilitating model alignment.
null
cs.CL
[ "cs.CL" ]
2403.13044
HF
Magic Fixup: Streamlining Photo Editing by Watching Dynamic Videos
[ "Hadi Alzayer", "Zhihao Xia", "Xuaner Zhang", "Eli Shechtman", "Jia-Bin Huang", "Michael Gharbi" ]
2024-03-19
We propose a generative model that, given a coarsely edited image, synthesizes a photorealistic output that follows the prescribed layout. Our method transfers fine details from the original image and preserves the identity of its parts. Yet, it adapts it to the lighting and context defined by the new layout. Our key insight is that videos are a powerful source of supervision for this task: objects and camera motions provide many observations of how the world changes with viewpoint, lighting, and physical interactions. We construct an image dataset in which each sample is a pair of source and target frames extracted from the same video at randomly chosen time intervals. We warp the source frame toward the target using two motion models that mimic the expected test-time user edits. We supervise our model to translate the warped image into the ground truth, starting from a pretrained diffusion model. Our model design explicitly enables fine detail transfer from the source frame to the generated image, while closely following the user-specified layout. We show that by using simple segmentations and coarse 2D manipulations, we can synthesize a photorealistic edit faithful to the user's input while addressing second-order effects like harmonizing the lighting and physical interactions between edited objects.
null
cs.CV
[ "cs.CV" ]
2305.02790
HF
BranchNorm: Robustly Scaling Extremely Deep Transformers
[ "Yijin Liu", "Xianfeng Zeng", "Fandong Meng", "Jie Zhou" ]
2023-05-04
Recently, DeepNorm scales Transformers into extremely deep (i.e., 1000 layers) and reveals the promising potential of deep scaling. To stabilize the training of deep models, DeepNorm (Wang et al., 2022) attempts to constrain the model update to a constant value. Although applying such a constraint can benefit the early stage of model training, it may lead to undertrained models during the whole training procedure. In this paper, we propose BranchNorm, which dynamically rescales the non-residual branch of Transformer in accordance with the training period. BranchNorm not only theoretically stabilizes the training with smooth gradient norms at the early stage, but also encourages better convergence in the subsequent training stage. Experiment results on multiple translation tasks demonstrate that BranchNorm achieves a better trade-off between training stability and converge performance.
null
cs.LG
[ "cs.LG", "cs.CL" ]
2404.00376
AnswerAI
Small Language Models Learn Enhanced Reasoning Skills from Medical Textbooks
[ "Hyunjae Kim", "Hyeon Hwang", "Jiwoo Lee", "Sihyeon Park", "Dain Kim", "Taewhoo Lee", "Chanwoong Yoon", "Jiwoong Sohn", "Donghee Choi", "Jaewoo Kang" ]
2024-03-30
While recent advancements in commercial large language models (LM) have shown promising results in medical tasks, their closed-source nature poses significant privacy and security concerns, hindering their widespread use in the medical field. Despite efforts to create open-source models, their limited parameters often result in insufficient multi-step reasoning capabilities required for solving complex medical problems. To address this, we introduce Meerkat, a new family of medical AI systems ranging from 7 to 70 billion parameters. The models were trained using our new synthetic dataset consisting of high-quality chain-of-thought reasoning paths sourced from 18 medical textbooks, along with diverse instruction-following datasets. Our systems achieved remarkable accuracy across six medical benchmarks, surpassing the previous best models such as MediTron and BioMistral, and GPT-3.5 by a large margin. Notably, Meerkat-7B surpassed the passing threshold of the United States Medical Licensing Examination (USMLE) for the first time for a 7B-parameter model, while Meerkat-70B outperformed GPT-4 by an average of 1.3%. Additionally, Meerkat-70B correctly diagnosed 21 out of 38 complex clinical cases, outperforming humans' 13.8 and closely matching GPT-4's 21.8. Our systems offered more detailed free-form responses to clinical queries compared to existing small models, approaching the performance level of large commercial models. This significantly narrows the performance gap with large LMs, showcasing its effectiveness in addressing complex medical challenges.
null
cs.CL
[ "cs.CL" ]
2305.10429
Both
DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretraining
[ "Sang Michael Xie", "Hieu Pham", "Xuanyi Dong", "Nan Du", "Hanxiao Liu", "Yifeng Lu", "Percy Liang", "Quoc V. Le", "Tengyu Ma", "Adams Wei Yu" ]
2023-05-17
The mixture proportions of pretraining data domains (e.g., Wikipedia, books, web text) greatly affect language model (LM) performance. In this paper, we propose Domain Reweighting with Minimax Optimization (DoReMi), which first trains a small proxy model using group distributionally robust optimization (Group DRO) over domains to produce domain weights (mixture proportions) without knowledge of downstream tasks. We then resample a dataset with these domain weights and train a larger, full-sized model. In our experiments, we use DoReMi on a 280M-parameter proxy model to set the domain weights for training an 8B-parameter model (30x larger) more efficiently. On The Pile, DoReMi improves perplexity across all domains, even when it downweights a domain. DoReMi improves average few-shot downstream accuracy by 6.5% points over a baseline model trained using The Pile's default domain weights and reaches the baseline accuracy with 2.6x fewer training steps. On the GLaM dataset, DoReMi, which has no knowledge of downstream tasks, even matches the performance of using domain weights tuned on downstream tasks.
null
cs.CL
[ "cs.CL", "cs.LG" ]
2402.05468
HF
Implicit Diffusion: Efficient Optimization through Stochastic Sampling
[ "Pierre Marion", "Anna Korba", "Peter Bartlett", "Mathieu Blondel", "Valentin De Bortoli", "Arnaud Doucet", "Felipe Llinares-López", "Courtney Paquette", "Quentin Berthet" ]
2024-02-08
We present a new algorithm to optimize distributions defined implicitly by parameterized stochastic diffusions. Doing so allows us to modify the outcome distribution of sampling processes by optimizing over their parameters. We introduce a general framework for first-order optimization of these processes, that performs jointly, in a single loop, optimization and sampling steps. This approach is inspired by recent advances in bilevel optimization and automatic implicit differentiation, leveraging the point of view of sampling as optimization over the space of probability distributions. We provide theoretical guarantees on the performance of our method, as well as experimental results demonstrating its effectiveness. We apply it to training energy-based models and finetuning denoising diffusions.
null
cs.LG
[ "cs.LG" ]
2404.19525
HF
MicroDreamer: Zero-shot 3D Generation in $\sim$20 Seconds by Score-based Iterative Reconstruction
[ "Luxi Chen", "Zhengyi Wang", "Zihan Zhou", "Tingting Gao", "Hang Su", "Jun Zhu", "Chongxuan Li" ]
2024-04-30
Optimization-based approaches, such as score distillation sampling (SDS), show promise in zero-shot 3D generation but suffer from low efficiency, primarily due to the high number of function evaluations (NFEs) required for each sample. In this paper, we introduce score-based iterative reconstruction (SIR), an efficient and general algorithm mimicking a differentiable 3D reconstruction process to reduce the NFEs. Given a single set of images sampled from a multi-view score-based diffusion model, SIR repeatedly optimizes 3D parameters, unlike the single-step optimization in SDS. With other improvements in training, we present an efficient approach called MicroDreamer that generally applies to various 3D representations and 3D generation tasks. In particular, retaining a comparable performance, MicroDreamer is 5-20 times faster than SDS in generating neural radiance field and takes about 20 seconds to generate meshes from 3D Gaussian splatting on a single A100 GPU, halving the time of the fastest zero-shot baseline, DreamGaussian. Our code is available at \url{https://github.com/ML-GSAI/MicroDreamer}.
null
cs.CV
[ "cs.CV" ]
2310.15987
HF
Dissecting In-Context Learning of Translations in GPTs
[ "Vikas Raunak", "Hany Hassan Awadalla", "Arul Menezes" ]
2023-10-24
Most of the recent work in leveraging Large Language Models (LLMs) such as GPT-3 for Machine Translation (MT) has focused on selecting the few-shot samples for prompting. In this work, we try to better understand the role of demonstration attributes for the in-context learning of translations through perturbations of high-quality, in-domain demonstrations. We find that asymmetric perturbation of the source-target mappings yield vastly different results. We show that the perturbation of the source side has surprisingly little impact, while target perturbation can drastically reduce translation quality, suggesting that it is the output text distribution that provides the most important learning signal during in-context learning of translations. We propose a method named Zero-Shot-Context to add this signal automatically in Zero-Shot prompting. We demonstrate that it improves upon the zero-shot translation performance of GPT-3, even making it competitive with few-shot prompted translations.
null
cs.CL
[ "cs.CL", "cs.AI" ]
2210.14140
AnswerAI
Contrastive Search Is What You Need For Neural Text Generation
[ "Yixuan Su", "Nigel Collier" ]
2022-10-25
Generating text with autoregressive language models (LMs) is of great importance to many natural language processing (NLP) applications. Previous solutions for this task often produce text that contains degenerative expressions or lacks semantic consistency. Recently, Su et al. introduced a new decoding method, contrastive search, based on the isotropic representation space of the language model and obtained new state of the art on various benchmarks. Additionally, Su et al. argued that the representations of autoregressive LMs (e.g. GPT-2) are intrinsically anisotropic which is also shared by previous studies. Therefore, to ensure the language model follows an isotropic distribution, Su et al. proposed a contrastive learning scheme, SimCTG, which calibrates the language model's representations through additional training. In this study, we first answer the question: "Are autoregressive LMs really anisotropic?". To this end, we extensively evaluate the isotropy of LMs across 16 major languages. Surprisingly, we find that the anisotropic problem only exists in the two specific English GPT-2-small/medium models. On the other hand, all other evaluated LMs are naturally isotropic which is in contrast to the conclusion drawn by previous studies. Based on our findings, we further assess the contrastive search decoding method using off-the-shelf LMs on four generation tasks across 16 languages. Our experimental results demonstrate that contrastive search significantly outperforms previous decoding methods without any additional training. More notably, on 12 out of the 16 evaluated languages, contrastive search performs comparably with human-level performances as judged by human evaluations. Our code and other related resources are publicly available at https://github.com/yxuansu/Contrastive_Search_Is_What_You_Need.
null
cs.CL
[ "cs.CL" ]
2401.16465
HF
DressCode: Autoregressively Sewing and Generating Garments from Text Guidance
[ "Kai He", "Kaixin Yao", "Qixuan Zhang", "Jingyi Yu", "Lingjie Liu", "Lan Xu" ]
2024-01-29
Apparel's significant role in human appearance underscores the importance of garment digitalization for digital human creation. Recent advances in 3D content creation are pivotal for digital human creation. Nonetheless, garment generation from text guidance is still nascent. We introduce a text-driven 3D garment generation framework, DressCode, which aims to democratize design for novices and offer immense potential in fashion design, virtual try-on, and digital human creation. We first introduce SewingGPT, a GPT-based architecture integrating cross-attention with text-conditioned embedding to generate sewing patterns with text guidance. We then tailor a pre-trained Stable Diffusion to generate tile-based Physically-based Rendering (PBR) textures for the garments. By leveraging a large language model, our framework generates CG-friendly garments through natural language interaction. It also facilitates pattern completion and texture editing, streamlining the design process through user-friendly interaction. This framework fosters innovation by allowing creators to freely experiment with designs and incorporate unique elements into their work. With comprehensive evaluations and comparisons with other state-of-the-art methods, our method showcases superior quality and alignment with input prompts. User studies further validate our high-quality rendering results, highlighting its practical utility and potential in production settings. Our project page is https://IHe-KaiI.github.io/DressCode/.
null
cs.CV
[ "cs.CV", "cs.GR" ]
2404.00488
HF
Noise-Aware Training of Layout-Aware Language Models
[ "Ritesh Sarkhel", "Xiaoqi Ren", "Lauro Beltrao Costa", "Guolong Su", "Vincent Perot", "Yanan Xie", "Emmanouil Koukoumidis", "Arnab Nandi" ]
2024-03-30
A visually rich document (VRD) utilizes visual features along with linguistic cues to disseminate information. Training a custom extractor that identifies named entities from a document requires a large number of instances of the target document type annotated at textual and visual modalities. This is an expensive bottleneck in enterprise scenarios, where we want to train custom extractors for thousands of different document types in a scalable way. Pre-training an extractor model on unlabeled instances of the target document type, followed by a fine-tuning step on human-labeled instances does not work in these scenarios, as it surpasses the maximum allowable training time allocated for the extractor. We address this scenario by proposing a Noise-Aware Training method or NAT in this paper. Instead of acquiring expensive human-labeled documents, NAT utilizes weakly labeled documents to train an extractor in a scalable way. To avoid degradation in the model's quality due to noisy, weakly labeled samples, NAT estimates the confidence of each training sample and incorporates it as uncertainty measure during training. We train multiple state-of-the-art extractor models using NAT. Experiments on a number of publicly available and in-house datasets show that NAT-trained models are not only robust in performance -- it outperforms a transfer-learning baseline by up to 6% in terms of macro-F1 score, but it is also more label-efficient -- it reduces the amount of human-effort required to obtain comparable performance by up to 73%.
null
cs.CL
[ "cs.CL", "cs.AI", "cs.LG" ]
2402.08420
HF
Vision-Based Hand Gesture Customization from a Single Demonstration
[ "Soroush Shahi", "Cori Tymoszek Park", "Richard Kang", "Asaf Liberman", "Oron Levy", "Jun Gong", "Abdelkareem Bedri", "Gierad Laput" ]
2024-02-13
Hand gesture recognition is becoming a more prevalent mode of human-computer interaction, especially as cameras proliferate across everyday devices. Despite continued progress in this field, gesture customization is often underexplored. Customization is crucial since it enables users to define and demonstrate gestures that are more natural, memorable, and accessible. However, customization requires efficient usage of user-provided data. We introduce a method that enables users to easily design bespoke gestures with a monocular camera from one demonstration. We employ transformers and meta-learning techniques to address few-shot learning challenges. Unlike prior work, our method supports any combination of one-handed, two-handed, static, and dynamic gestures, including different viewpoints. We evaluated our customization method through a user study with 20 gestures collected from 21 participants, achieving up to 97% average recognition accuracy from one demonstration. Our work provides a viable path for vision-based gesture customization, laying the foundation for future advancements in this domain.
null
cs.HC
[ "cs.HC", "H.5.2; I.4" ]
2307.16715
HF
UniVTG: Towards Unified Video-Language Temporal Grounding
[ "Kevin Qinghong Lin", "Pengchuan Zhang", "Joya Chen", "Shraman Pramanick", "Difei Gao", "Alex Jinpeng Wang", "Rui Yan", "Mike Zheng Shou" ]
2023-07-31
Video Temporal Grounding (VTG), which aims to ground target clips from videos (such as consecutive intervals or disjoint shots) according to custom language queries (e.g., sentences or words), is key for video browsing on social media. Most methods in this direction develop taskspecific models that are trained with type-specific labels, such as moment retrieval (time interval) and highlight detection (worthiness curve), which limits their abilities to generalize to various VTG tasks and labels. In this paper, we propose to Unify the diverse VTG labels and tasks, dubbed UniVTG, along three directions: Firstly, we revisit a wide range of VTG labels and tasks and define a unified formulation. Based on this, we develop data annotation schemes to create scalable pseudo supervision. Secondly, we develop an effective and flexible grounding model capable of addressing each task and making full use of each label. Lastly, thanks to the unified framework, we are able to unlock temporal grounding pretraining from large-scale diverse labels and develop stronger grounding abilities e.g., zero-shot grounding. Extensive experiments on three tasks (moment retrieval, highlight detection and video summarization) across seven datasets (QVHighlights, Charades-STA, TACoS, Ego4D, YouTube Highlights, TVSum, and QFVS) demonstrate the effectiveness and flexibility of our proposed framework. The codes are available at https://github.com/showlab/UniVTG.
null
cs.CV
[ "cs.CV" ]
2207.14484
AnswerAI
Adaptive Gradient Methods at the Edge of Stability
[ "Jeremy M. Cohen", "Behrooz Ghorbani", "Shankar Krishnan", "Naman Agarwal", "Sourabh Medapati", "Michal Badura", "Daniel Suo", "David Cardoze", "Zachary Nado", "George E. Dahl", "Justin Gilmer" ]
2022-07-29
Very little is known about the training dynamics of adaptive gradient methods like Adam in deep learning. In this paper, we shed light on the behavior of these algorithms in the full-batch and sufficiently large batch settings. Specifically, we empirically demonstrate that during full-batch training, the maximum eigenvalue of the preconditioned Hessian typically equilibrates at a certain numerical value -- the stability threshold of a gradient descent algorithm. For Adam with step size $\eta$ and $\beta_1 = 0.9$, this stability threshold is $38/\eta$. Similar effects occur during minibatch training, especially as the batch size grows. Yet, even though adaptive methods train at the ``Adaptive Edge of Stability'' (AEoS), their behavior in this regime differs in a significant way from that of non-adaptive methods at the EoS. Whereas non-adaptive algorithms at the EoS are blocked from entering high-curvature regions of the loss landscape, adaptive gradient methods at the AEoS can keep advancing into high-curvature regions, while adapting the preconditioner to compensate. Our findings can serve as a foundation for the community's future understanding of adaptive gradient methods in deep learning.
null
cs.LG
[ "cs.LG" ]
2402.15319
HF
GPTVQ: The Blessing of Dimensionality for LLM Quantization
[ "Mart van Baalen", "Andrey Kuzmin", "Markus Nagel", "Peter Couperus", "Cedric Bastoul", "Eric Mahurin", "Tijmen Blankevoort", "Paul Whatmough" ]
2024-02-23
In this work we show that the size versus accuracy trade-off of neural network quantization can be significantly improved by increasing the quantization dimensionality. We propose the GPTVQ method, a new fast method for post-training vector quantization (VQ) that scales well to Large Language Models (LLMs). Our method interleaves quantization of one or more columns with updates to the remaining unquantized weights, using information from the Hessian of the per-layer output reconstruction MSE. Quantization codebooks are initialized using an efficient data-aware version of the EM algorithm. The codebooks are then updated, and further compressed by using integer quantization and SVD-based compression. GPTVQ establishes a new state-of-the art in the size vs accuracy trade-offs on a wide range of LLMs such as Llama-v2 and Mistral. Furthermore, our method is efficient: on a single H100 it takes between 3 and 11 hours to process a Llamav2-70B model, depending on quantization setting. Lastly, with on-device timings for VQ decompression on a mobile CPU we show that VQ leads to improved latency compared to using a 4-bit integer format.
null
cs.LG
[ "cs.LG", "cs.CL" ]
2408.15708
HF
Towards Realistic Example-based Modeling via 3D Gaussian Stitching
[ "Xinyu Gao", "Ziyi Yang", "Bingchen Gong", "Xiaoguang Han", "Sipeng Yang", "Xiaogang Jin" ]
2024-08-28
Using parts of existing models to rebuild new models, commonly termed as example-based modeling, is a classical methodology in the realm of computer graphics. Previous works mostly focus on shape composition, making them very hard to use for realistic composition of 3D objects captured from real-world scenes. This leads to combining multiple NeRFs into a single 3D scene to achieve seamless appearance blending. However, the current SeamlessNeRF method struggles to achieve interactive editing and harmonious stitching for real-world scenes due to its gradient-based strategy and grid-based representation. To this end, we present an example-based modeling method that combines multiple Gaussian fields in a point-based representation using sample-guided synthesis. Specifically, as for composition, we create a GUI to segment and transform multiple fields in real time, easily obtaining a semantically meaningful composition of models represented by 3D Gaussian Splatting (3DGS). For texture blending, due to the discrete and irregular nature of 3DGS, straightforwardly applying gradient propagation as SeamlssNeRF is not supported. Thus, a novel sampling-based cloning method is proposed to harmonize the blending while preserving the original rich texture and content. Our workflow consists of three steps: 1) real-time segmentation and transformation of a Gaussian model using a well-tailored GUI, 2) KNN analysis to identify boundary points in the intersecting area between the source and target models, and 3) two-phase optimization of the target model using sampling-based cloning and gradient constraints. Extensive experimental results validate that our approach significantly outperforms previous works in terms of realistic synthesis, demonstrating its practicality. More demos are available at https://ingra14m.github.io/gs_stitching_website.
null
cs.CV
[ "cs.CV" ]
2306.06638
HF
Face0: Instantaneously Conditioning a Text-to-Image Model on a Face
[ "Dani Valevski", "Danny Wasserman", "Yossi Matias", "Yaniv Leviathan" ]
2023-06-11
We present Face0, a novel way to instantaneously condition a text-to-image generation model on a face, in sample time, without any optimization procedures such as fine-tuning or inversions. We augment a dataset of annotated images with embeddings of the included faces and train an image generation model, on the augmented dataset. Once trained, our system is practically identical at inference time to the underlying base model, and is therefore able to generate images, given a user-supplied face image and a prompt, in just a couple of seconds. Our method achieves pleasing results, is remarkably simple, extremely fast, and equips the underlying model with new capabilities, like controlling the generated images both via text or via direct manipulation of the input face embeddings. In addition, when using a fixed random vector instead of a face embedding from a user supplied image, our method essentially solves the problem of consistent character generation across images. Finally, while requiring further research, we hope that our method, which decouples the model's textual biases from its biases on faces, might be a step towards some mitigation of biases in future text-to-image models.
null
cs.CV
[ "cs.CV", "cs.AI", "cs.GR", "cs.LG" ]
2404.14405
HF
Learning H-Infinity Locomotion Control
[ "Junfeng Long", "Wenye Yu", "Quanyi Li", "Zirui Wang", "Dahua Lin", "Jiangmiao Pang" ]
2024-04-22
Stable locomotion in precipitous environments is an essential task for quadruped robots, requiring the ability to resist various external disturbances. Recent neural policies enhance robustness against disturbances by learning to resist external forces sampled from a fixed distribution in the simulated environment. However, the force generation process doesn't consider the robot's current state, making it difficult to identify the most effective direction and magnitude that can push the robot to the most unstable but recoverable state. Thus, challenging cases in the buffer are insufficient to optimize robustness. In this paper, we propose to model the robust locomotion learning process as an adversarial interaction between the locomotion policy and a learnable disturbance that is conditioned on the robot state to generate appropriate external forces. To make the joint optimization stable, our novel $H_{\infty}$ constraint mandates the bound of the ratio between the cost and the intensity of the external forces. We verify the robustness of our approach in both simulated environments and real-world deployment, on quadrupedal locomotion tasks and a more challenging task where the quadruped performs locomotion merely on hind legs. Training and deployment code will be made public.
null
cs.RO
[ "cs.RO" ]
2311.02542
HF
VR-NeRF: High-Fidelity Virtualized Walkable Spaces
[ "Linning Xu", "Vasu Agrawal", "William Laney", "Tony Garcia", "Aayush Bansal", "Changil Kim", "Samuel Rota Bulò", "Lorenzo Porzi", "Peter Kontschieder", "Aljaž Božič", "Dahua Lin", "Michael Zollhöfer", "Christian Richardt" ]
2023-11-05
We present an end-to-end system for the high-fidelity capture, model reconstruction, and real-time rendering of walkable spaces in virtual reality using neural radiance fields. To this end, we designed and built a custom multi-camera rig to densely capture walkable spaces in high fidelity and with multi-view high dynamic range images in unprecedented quality and density. We extend instant neural graphics primitives with a novel perceptual color space for learning accurate HDR appearance, and an efficient mip-mapping mechanism for level-of-detail rendering with anti-aliasing, while carefully optimizing the trade-off between quality and speed. Our multi-GPU renderer enables high-fidelity volume rendering of our neural radiance field model at the full VR resolution of dual 2K$\times$2K at 36 Hz on our custom demo machine. We demonstrate the quality of our results on our challenging high-fidelity datasets, and compare our method and datasets to existing baselines. We release our dataset on our project website.
10.1145/3610548.3618139
cs.CV
[ "cs.CV", "cs.GR" ]
2303.06865
AnswerAI
FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU
[ "Ying Sheng", "Lianmin Zheng", "Binhang Yuan", "Zhuohan Li", "Max Ryabinin", "Daniel Y. Fu", "Zhiqiang Xie", "Beidi Chen", "Clark Barrett", "Joseph E. Gonzalez", "Percy Liang", "Christopher Ré", "Ion Stoica", "Ce Zhang" ]
2023-03-13
The high computational and memory requirements of large language model (LLM) inference make it feasible only with multiple high-end accelerators. Motivated by the emerging demand for latency-insensitive tasks with batched processing, this paper initiates the study of high-throughput LLM inference using limited resources, such as a single commodity GPU. We present FlexGen, a high-throughput generation engine for running LLMs with limited GPU memory. FlexGen can be flexibly configured under various hardware resource constraints by aggregating memory and computation from the GPU, CPU, and disk. By solving a linear programming problem, it searches for efficient patterns to store and access tensors. FlexGen further compresses the weights and the attention cache to 4 bits with negligible accuracy loss. These techniques enable FlexGen to have a larger space of batch size choices and thus significantly increase maximum throughput. As a result, when running OPT-175B on a single 16GB GPU, FlexGen achieves significantly higher throughput compared to state-of-the-art offloading systems, reaching a generation throughput of 1 token/s for the first time with an effective batch size of 144. On the HELM benchmark, FlexGen can benchmark a 30B model with a 16GB GPU on 7 representative sub-scenarios in 21 hours. The code is available at https://github.com/FMInference/FlexGen
null
cs.LG
[ "cs.LG", "cs.AI", "cs.PF" ]
2404.01475
HF
Are large language models superhuman chemists?
[ "Adrian Mirza", "Nawaf Alampara", "Sreekanth Kunchapu", "Benedict Emoekabu", "Aswanth Krishnan", "Mara Wilhelmi", "Macjonathan Okereke", "Juliane Eberhardt", "Amir Mohammad Elahi", "Maximilian Greiner", "Caroline T. Holick", "Tanya Gupta", "Mehrdad Asgari", "Christina Glaubitz", "Lea C. Klepsch", "Yannik Köster", "Jakob Meyer", "Santiago Miret", "Tim Hoffmann", "Fabian Alexander Kreth", "Michael Ringleb", "Nicole Roesner", "Ulrich S. Schubert", "Leanne M. Stafast", "Dinga Wonanke", "Michael Pieler", "Philippe Schwaller", "Kevin Maik Jablonka" ]
2024-04-01
Large language models (LLMs) have gained widespread interest due to their ability to process human language and perform tasks on which they have not been explicitly trained. This is relevant for the chemical sciences, which face the problem of small and diverse datasets that are frequently in the form of text. LLMs have shown promise in addressing these issues and are increasingly being harnessed to predict chemical properties, optimize reactions, and even design and conduct experiments autonomously. However, we still have only a very limited systematic understanding of the chemical reasoning capabilities of LLMs, which would be required to improve models and mitigate potential harms. Here, we introduce "ChemBench," an automated framework designed to rigorously evaluate the chemical knowledge and reasoning abilities of state-of-the-art LLMs against the expertise of human chemists. We curated more than 7,000 question-answer pairs for a wide array of subfields of the chemical sciences, evaluated leading open and closed-source LLMs, and found that the best models outperformed the best human chemists in our study on average. The models, however, struggle with some chemical reasoning tasks that are easy for human experts and provide overconfident, misleading predictions, such as about chemicals' safety profiles. These findings underscore the dual reality that, although LLMs demonstrate remarkable proficiency in chemical tasks, further research is critical to enhancing their safety and utility in chemical sciences. Our findings also indicate a need for adaptations to chemistry curricula and highlight the importance of continuing to develop evaluation frameworks to improve safe and useful LLMs.
null
cs.LG
[ "cs.LG", "cond-mat.mtrl-sci", "cs.AI", "physics.chem-ph" ]
2408.08926
HF
Cybench: A Framework for Evaluating Cybersecurity Capabilities and Risk of Language Models
[ "Andy K. Zhang", "Neil Perry", "Riya Dulepet", "Eliot Jones", "Justin W. Lin", "Joey Ji", "Celeste Menders", "Gashon Hussein", "Samantha Liu", "Donovan Jasper", "Pura Peetathawatchai", "Ari Glenn", "Vikram Sivashankar", "Daniel Zamoshchin", "Leo Glikbarg", "Derek Askaryar", "Mike Yang", "Teddy Zhang", "Rishi Alluri", "Nathan Tran", "Rinnara Sangpisit", "Polycarpos Yiorkadjis", "Kenny Osele", "Gautham Raghupathi", "Dan Boneh", "Daniel E. Ho", "Percy Liang" ]
2024-08-15
Language Model (LM) agents for cybersecurity that are capable of autonomously identifying vulnerabilities and executing exploits have the potential to cause real-world impact. Policymakers, model providers, and other researchers in the AI and cybersecurity communities are interested in quantifying the capabilities of such agents to help mitigate cyberrisk and investigate opportunities for penetration testing. Toward that end, we introduce Cybench, a framework for specifying cybersecurity tasks and evaluating agents on those tasks. We include 40 professional-level Capture the Flag (CTF) tasks from 4 distinct CTF competitions, chosen to be recent, meaningful, and spanning a wide range of difficulties. Each task includes its own description, starter files, and is initialized in an environment where an agent can execute bash commands and observe outputs. Since many tasks are beyond the capabilities of existing LM agents, we introduce subtasks, which break down a task into intermediary steps for more gradated evaluation; we add subtasks for 17 of the 40 tasks. To evaluate agent capabilities, we construct a cybersecurity agent and evaluate 7 models: GPT-4o, Claude 3 Opus, Claude 3.5 Sonnet, Mixtral 8x22b Instruct, Gemini 1.5 Pro, Llama 3 70B Chat, and Llama 3.1 405B Instruct. Without guidance, we find that agents are able to solve only the easiest complete tasks that took human teams up to 11 minutes to solve, with Claude 3.5 Sonnet and GPT-4o having the highest success rates. Finally, subtasks provide more signal for measuring performance compared to unguided runs, with models achieving a 3.2\% higher success rate on complete tasks with subtask-guidance than without subtask-guidance. All code and data are publicly available at https://cybench.github.io
null
cs.CR
[ "cs.CR", "cs.AI", "cs.CL", "cs.CY", "cs.LG" ]
2407.17398
HF
3D Question Answering for City Scene Understanding
[ "Penglei Sun", "Yaoxian Song", "Xiang Liu", "Xiaofei Yang", "Qiang Wang", "Tiefeng Li", "Yang Yang", "Xiaowen Chu" ]
2024-07-24
3D multimodal question answering (MQA) plays a crucial role in scene understanding by enabling intelligent agents to comprehend their surroundings in 3D environments. While existing research has primarily focused on indoor household tasks and outdoor roadside autonomous driving tasks, there has been limited exploration of city-level scene understanding tasks. Furthermore, existing research faces challenges in understanding city scenes, due to the absence of spatial semantic information and human-environment interaction information at the city level.To address these challenges, we investigate 3D MQA from both dataset and method perspectives. From the dataset perspective, we introduce a novel 3D MQA dataset named City-3DQA for city-level scene understanding, which is the first dataset to incorporate scene semantic and human-environment interactive tasks within the city. From the method perspective, we propose a Scene graph enhanced City-level Understanding method (Sg-CityU), which utilizes the scene graph to introduce the spatial semantic. A new benchmark is reported and our proposed Sg-CityU achieves accuracy of 63.94 % and 63.76 % in different settings of City-3DQA. Compared to indoor 3D MQA methods and zero-shot using advanced large language models (LLMs), Sg-CityU demonstrates state-of-the-art (SOTA) performance in robustness and generalization.
null
cs.CV
[ "cs.CV" ]
2308.01399
HF
Learning to Model the World with Language
[ "Jessy Lin", "Yuqing Du", "Olivia Watkins", "Danijar Hafner", "Pieter Abbeel", "Dan Klein", "Anca Dragan" ]
2023-07-31
To interact with humans and act in the world, agents need to understand the range of language that people use and relate it to the visual world. While current agents can learn to execute simple language instructions, we aim to build agents that leverage diverse language -- language like "this button turns on the TV" or "I put the bowls away" -- that conveys general knowledge, describes the state of the world, provides interactive feedback, and more. Our key idea is that agents should interpret such diverse language as a signal that helps them predict the future: what they will observe, how the world will behave, and which situations will be rewarded. This perspective unifies language understanding with future prediction as a powerful self-supervised learning objective. We instantiate this in Dynalang, an agent that learns a multimodal world model to predict future text and image representations, and learns to act from imagined model rollouts. While current methods that learn language-conditioned policies degrade in performance with more diverse types of language, we show that Dynalang learns to leverage environment descriptions, game rules, and instructions to excel on tasks ranging from game-playing to navigating photorealistic home scans. Finally, we show that our method enables additional capabilities due to learning a generative model: Dynalang can be pretrained on text-only data, enabling learning from offline datasets, and generate language grounded in an environment.
null
cs.CL
[ "cs.CL", "cs.AI", "cs.LG" ]
2307.04008
HF
Toward Interactive Dictation
[ "Belinda Z. Li", "Jason Eisner", "Adam Pauls", "Sam Thomson" ]
2023-07-08
Voice dictation is an increasingly important text input modality. Existing systems that allow both dictation and editing-by-voice restrict their command language to flat templates invoked by trigger words. In this work, we study the feasibility of allowing users to interrupt their dictation with spoken editing commands in open-ended natural language. We introduce a new task and dataset, TERTiUS, to experiment with such systems. To support this flexibility in real-time, a system must incrementally segment and classify spans of speech as either dictation or command, and interpret the spans that are commands. We experiment with using large pre-trained language models to predict the edited text, or alternatively, to predict a small text-editing program. Experiments show a natural trade-off between model accuracy and latency: a smaller model achieves 30% end-state accuracy with 1.3 seconds of latency, while a larger model achieves 55% end-state accuracy with 7 seconds of latency.
null
cs.CL
[ "cs.CL" ]
2402.02622
AnswerAI
DenseFormer: Enhancing Information Flow in Transformers via Depth Weighted Averaging
[ "Matteo Pagliardini", "Amirkeivan Mohtashami", "Francois Fleuret", "Martin Jaggi" ]
2024-02-04
The transformer architecture by Vaswani et al. (2017) is now ubiquitous across application domains, from natural language processing to speech processing and image understanding. We propose DenseFormer, a simple modification to the standard architecture that improves the perplexity of the model without increasing its size -- adding a few thousand parameters for large-scale models in the 100B parameters range. Our approach relies on an additional averaging step after each transformer block, which computes a weighted average of current and past representations -- we refer to this operation as Depth-Weighted-Average (DWA). The learned DWA weights exhibit coherent patterns of information flow, revealing the strong and structured reuse of activations from distant layers. Experiments demonstrate that DenseFormer is more data efficient, reaching the same perplexity of much deeper transformer models, and that for the same perplexity, these new models outperform transformer baselines in terms of memory efficiency and inference time.
null
cs.CL
[ "cs.CL", "cs.LG" ]
2406.17419
Both
Leave No Document Behind: Benchmarking Long-Context LLMs with Extended Multi-Doc QA
[ "Minzheng Wang", "Longze Chen", "Cheng Fu", "Shengyi Liao", "Xinghua Zhang", "Bingli Wu", "Haiyang Yu", "Nan Xu", "Lei Zhang", "Run Luo", "Yunshui Li", "Min Yang", "Fei Huang", "Yongbin Li" ]
2024-06-25
Long-context modeling capabilities have garnered widespread attention, leading to the emergence of Large Language Models (LLMs) with ultra-context windows. Meanwhile, benchmarks for evaluating long-context LLMs are gradually catching up. However, existing benchmarks employ irrelevant noise texts to artificially extend the length of test cases, diverging from the real-world scenarios of long-context applications. To bridge this gap, we propose a novel long-context benchmark, Loong, aligning with realistic scenarios through extended multi-document question answering (QA). Unlike typical document QA, in Loong's test cases, each document is relevant to the final answer, ignoring any document will lead to the failure of the answer. Furthermore, Loong introduces four types of tasks with a range of context lengths: Spotlight Locating, Comparison, Clustering, and Chain of Reasoning, to facilitate a more realistic and comprehensive evaluation of long-context understanding. Extensive experiments indicate that existing long-context language models still exhibit considerable potential for enhancement. Retrieval augmented generation (RAG) achieves poor performance, demonstrating that Loong can reliably assess the model's long-context modeling capabilities.
null
cs.CL
[ "cs.CL", "cs.AI" ]
2305.17306
HF
Chain-of-Thought Hub: A Continuous Effort to Measure Large Language Models' Reasoning Performance
[ "Yao Fu", "Litu Ou", "Mingyu Chen", "Yuhao Wan", "Hao Peng", "Tushar Khot" ]
2023-05-26
As large language models (LLMs) are continuously being developed, their evaluation becomes increasingly important yet challenging. This work proposes Chain-of-Thought Hub, an open-source evaluation suite on the multi-step reasoning capabilities of large language models. We are interested in this setting for two reasons: (1) from the behavior of GPT and PaLM model family, we observe that complex reasoning is likely to be a key differentiator between weaker and stronger LLMs; (2) we envisage large language models to become the next-generation computational platform and foster an ecosystem of LLM-based new applications, this naturally requires the foundation models to perform complex tasks that often involve the composition of linguistic and logical operations. Our approach is to compile a suite of challenging reasoning benchmarks to track the progress of LLMs. Our current results show that: (1) model scale clearly correlates with reasoning capabilities; (2) As of May 2023, Claude-v1.3 and PaLM-2 are the only two models that are comparable with GPT-4, while open-sourced models still lag behind; (3) LLaMA-65B performs closely to code-davinci-002, indicating that with successful further development such as reinforcement learning from human feedback (RLHF), it has great potential to be close to GPT-3.5-Turbo. Our results also suggest that for the open-source efforts to catch up, the community may focus more on building better base models and exploring RLHF.
null
cs.CL
[ "cs.CL", "cs.AI", "cs.LG" ]
2312.06134
HF
Order Matters in the Presence of Dataset Imbalance for Multilingual Learning
[ "Dami Choi", "Derrick Xin", "Hamid Dadkhahi", "Justin Gilmer", "Ankush Garg", "Orhan Firat", "Chih-Kuan Yeh", "Andrew M. Dai", "Behrooz Ghorbani" ]
2023-12-11
In this paper, we empirically study the optimization dynamics of multi-task learning, particularly focusing on those that govern a collection of tasks with significant data imbalance. We present a simple yet effective method of pre-training on high-resource tasks, followed by fine-tuning on a mixture of high/low-resource tasks. We provide a thorough empirical study and analysis of this method's benefits showing that it achieves consistent improvements relative to the performance trade-off profile of standard static weighting. We analyze under what data regimes this method is applicable and show its improvements empirically in neural machine translation (NMT) and multi-lingual language modeling.
null
cs.CL
[ "cs.CL", "cs.LG" ]
2312.08578
HF
A Picture is Worth More Than 77 Text Tokens: Evaluating CLIP-Style Models on Dense Captions
[ "Jack Urbanek", "Florian Bordes", "Pietro Astolfi", "Mary Williamson", "Vasu Sharma", "Adriana Romero-Soriano" ]
2023-12-14
Curation methods for massive vision-language datasets trade off between dataset size and quality. However, even the highest quality of available curated captions are far too short to capture the rich visual detail in an image. To show the value of dense and highly-aligned image-text pairs, we collect the Densely Captioned Images (DCI) dataset, containing 7805 natural images human-annotated with mask-aligned descriptions averaging above 1000 words each. With precise and reliable captions associated with specific parts of an image, we can evaluate vision-language models' (VLMs) understanding of image content with a novel task that matches each caption with its corresponding subcrop. As current models are often limited to 77 text tokens, we also introduce a summarized version (sDCI) in which each caption length is limited. We show that modern techniques that make progress on standard benchmarks do not correspond with significant improvement on our sDCI based benchmark. Lastly, we finetune CLIP using sDCI and show significant improvements over the baseline despite a small training set. By releasing the first human annotated dense image captioning dataset, we hope to enable the development of new benchmarks or fine-tuning recipes for the next generation of VLMs to come.
null
cs.CV
[ "cs.CV" ]
2408.01337
HF
MuChoMusic: Evaluating Music Understanding in Multimodal Audio-Language Models
[ "Benno Weck", "Ilaria Manco", "Emmanouil Benetos", "Elio Quinton", "George Fazekas", "Dmitry Bogdanov" ]
2024-08-02
Multimodal models that jointly process audio and language hold great promise in audio understanding and are increasingly being adopted in the music domain. By allowing users to query via text and obtain information about a given audio input, these models have the potential to enable a variety of music understanding tasks via language-based interfaces. However, their evaluation poses considerable challenges, and it remains unclear how to effectively assess their ability to correctly interpret music-related inputs with current methods. Motivated by this, we introduce MuChoMusic, a benchmark for evaluating music understanding in multimodal language models focused on audio. MuChoMusic comprises 1,187 multiple-choice questions, all validated by human annotators, on 644 music tracks sourced from two publicly available music datasets, and covering a wide variety of genres. Questions in the benchmark are crafted to assess knowledge and reasoning abilities across several dimensions that cover fundamental musical concepts and their relation to cultural and functional contexts. Through the holistic analysis afforded by the benchmark, we evaluate five open-source models and identify several pitfalls, including an over-reliance on the language modality, pointing to a need for better multimodal integration. Data and code are open-sourced.
null
cs.SD
[ "cs.SD", "cs.CL", "cs.LG", "cs.MM", "eess.AS" ]
2406.02507
HF
Guiding a Diffusion Model with a Bad Version of Itself
[ "Tero Karras", "Miika Aittala", "Tuomas Kynkäänniemi", "Jaakko Lehtinen", "Timo Aila", "Samuli Laine" ]
2024-06-04
The primary axes of interest in image-generating diffusion models are image quality, the amount of variation in the results, and how well the results align with a given condition, e.g., a class label or a text prompt. The popular classifier-free guidance approach uses an unconditional model to guide a conditional model, leading to simultaneously better prompt alignment and higher-quality images at the cost of reduced variation. These effects seem inherently entangled, and thus hard to control. We make the surprising observation that it is possible to obtain disentangled control over image quality without compromising the amount of variation by guiding generation using a smaller, less-trained version of the model itself rather than an unconditional model. This leads to significant improvements in ImageNet generation, setting record FIDs of 1.01 for 64x64 and 1.25 for 512x512, using publicly available networks. Furthermore, the method is also applicable to unconditional diffusion models, drastically improving their quality.
null
cs.CV
[ "cs.CV", "cs.AI", "cs.LG", "cs.NE", "stat.ML" ]
2402.08622
HF
NeRF Analogies: Example-Based Visual Attribute Transfer for NeRFs
[ "Michael Fischer", "Zhengqin Li", "Thu Nguyen-Phuoc", "Aljaz Bozic", "Zhao Dong", "Carl Marshall", "Tobias Ritschel" ]
2024-02-13
A Neural Radiance Field (NeRF) encodes the specific relation of 3D geometry and appearance of a scene. We here ask the question whether we can transfer the appearance from a source NeRF onto a target 3D geometry in a semantically meaningful way, such that the resulting new NeRF retains the target geometry but has an appearance that is an analogy to the source NeRF. To this end, we generalize classic image analogies from 2D images to NeRFs. We leverage correspondence transfer along semantic affinity that is driven by semantic features from large, pre-trained 2D image models to achieve multi-view consistent appearance transfer. Our method allows exploring the mix-and-match product space of 3D geometry and appearance. We show that our method outperforms traditional stylization-based methods and that a large majority of users prefer our method over several typical baselines.
null
cs.CV
[ "cs.CV", "cs.GR" ]
2406.14805
HF
How Well Do LLMs Represent Values Across Cultures? Empirical Analysis of LLM Responses Based on Hofstede Cultural Dimensions
[ "Julia Kharchenko", "Tanya Roosta", "Aman Chadha", "Chirag Shah" ]
2024-06-21
Large Language Models (LLMs) attempt to imitate human behavior by responding to humans in a way that pleases them, including by adhering to their values. However, humans come from diverse cultures with different values. It is critical to understand whether LLMs showcase different values to the user based on the stereotypical values of a user's known country. We prompt different LLMs with a series of advice requests based on 5 Hofstede Cultural Dimensions -- a quantifiable way of representing the values of a country. Throughout each prompt, we incorporate personas representing 36 different countries and, separately, languages predominantly tied to each country to analyze the consistency in the LLMs' cultural understanding. Through our analysis of the responses, we found that LLMs can differentiate between one side of a value and another, as well as understand that countries have differing values, but will not always uphold the values when giving advice, and fail to understand the need to answer differently based on different cultural values. Rooted in these findings, we present recommendations for training value-aligned and culturally sensitive LLMs. More importantly, the methodology and the framework developed here can help further understand and mitigate culture and language alignment issues with LLMs.
null
cs.CL
[ "cs.CL" ]
2302.08582
AnswerAI
Pretraining Language Models with Human Preferences
[ "Tomasz Korbak", "Kejian Shi", "Angelica Chen", "Rasika Bhalerao", "Christopher L. Buckley", "Jason Phang", "Samuel R. Bowman", "Ethan Perez" ]
2023-02-16
Language models (LMs) are pretrained to imitate internet text, including content that would violate human preferences if generated by an LM: falsehoods, offensive comments, personally identifiable information, low-quality or buggy code, and more. Here, we explore alternative objectives for pretraining LMs in a way that also guides them to generate text aligned with human preferences. We benchmark five objectives for pretraining with human feedback across three tasks and study how they affect the trade-off between alignment and capabilities of pretrained LMs. We find a Pareto-optimal and simple approach among those we explored: conditional training, or learning distribution over tokens conditional on their human preference scores given by a reward model. Conditional training reduces the rate of undesirable content by up to an order of magnitude, both when generating without a prompt and with an adversarially-chosen prompt. Moreover, conditional training maintains the downstream task performance of standard LM pretraining, both before and after task-specific finetuning. Pretraining with human feedback results in much better preference satisfaction than standard LM pretraining followed by finetuning with feedback, i.e., learning and then unlearning undesirable behavior. Our results suggest that we should move beyond imitation learning when pretraining LMs and incorporate human preferences from the start of training.
null
cs.CL
[ "cs.CL", "cs.LG" ]