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.02469 | HF | What Matters in Training a GPT4-Style Language Model with Multimodal Inputs? | [
"Yan Zeng",
"Hanbo Zhang",
"Jiani Zheng",
"Jiangnan Xia",
"Guoqiang Wei",
"Yang Wei",
"Yuchen Zhang",
"Tao Kong"
] | 2023-07-05 | Recent advancements in Large Language Models (LLMs) such as GPT4 have
displayed exceptional multi-modal capabilities in following open-ended
instructions given images. However, the performance of these models heavily
relies on design choices such as network structures, training data, and
training strategies, and these choices have not been extensively discussed in
the literature, making it difficult to quantify progress in this field. To
address this issue, this paper presents a systematic and comprehensive study,
quantitatively and qualitatively, on training such models. We implement over 20
variants with controlled settings. Concretely, for network structures, we
compare different LLM backbones and model designs. For training data, we
investigate the impact of data and sampling strategies. For instructions, we
explore the influence of diversified prompts on the instruction-following
ability of the trained models. For benchmarks, we contribute the first, to our
best knowledge, comprehensive evaluation set including both image and video
tasks through crowd-sourcing. Based on our findings, we present Lynx, which
performs the most accurate multi-modal understanding while keeping the best
multi-modal generation ability compared to existing open-sourced GPT4-style
models. | null | cs.CV | [
"cs.CV",
"cs.CL"
] |
2406.14539 | HF | Invertible Consistency Distillation for Text-Guided Image Editing in Around 7 Steps | [
"Nikita Starodubcev",
"Mikhail Khoroshikh",
"Artem Babenko",
"Dmitry Baranchuk"
] | 2024-06-20 | Diffusion distillation represents a highly promising direction for achieving
faithful text-to-image generation in a few sampling steps. However, despite
recent successes, existing distilled models still do not provide the full
spectrum of diffusion abilities, such as real image inversion, which enables
many precise image manipulation methods. This work aims to enrich distilled
text-to-image diffusion models with the ability to effectively encode real
images into their latent space. To this end, we introduce invertible
Consistency Distillation (iCD), a generalized consistency distillation
framework that facilitates both high-quality image synthesis and accurate image
encoding in only 3-4 inference steps. Though the inversion problem for
text-to-image diffusion models gets exacerbated by high classifier-free
guidance scales, we notice that dynamic guidance significantly reduces
reconstruction errors without noticeable degradation in generation performance.
As a result, we demonstrate that iCD equipped with dynamic guidance may serve
as a highly effective tool for zero-shot text-guided image editing, competing
with more expensive state-of-the-art alternatives. | null | cs.CV | [
"cs.CV"
] |
2303.11341 | AnswerAI | What does it take to catch a Chinchilla? Verifying Rules on Large-Scale Neural Network Training via Compute Monitoring | [
"Yonadav Shavit"
] | 2023-03-20 | As advanced machine learning systems' capabilities begin to play a
significant role in geopolitics and societal order, it may become imperative
that (1) governments be able to enforce rules on the development of advanced ML
systems within their borders, and (2) countries be able to verify each other's
compliance with potential future international agreements on advanced ML
development. This work analyzes one mechanism to achieve this, by monitoring
the computing hardware used for large-scale NN training. The framework's
primary goal is to provide governments high confidence that no actor uses large
quantities of specialized ML chips to execute a training run in violation of
agreed rules. At the same time, the system does not curtail the use of consumer
computing devices, and maintains the privacy and confidentiality of ML
practitioners' models, data, and hyperparameters. The system consists of
interventions at three stages: (1) using on-chip firmware to occasionally save
snapshots of the the neural network weights stored in device memory, in a form
that an inspector could later retrieve; (2) saving sufficient information about
each training run to prove to inspectors the details of the training run that
had resulted in the snapshotted weights; and (3) monitoring the chip supply
chain to ensure that no actor can avoid discovery by amassing a large quantity
of un-tracked chips. The proposed design decomposes the ML training rule
verification problem into a series of narrow technical challenges, including a
new variant of the Proof-of-Learning problem [Jia et al. '21]. | null | cs.LG | [
"cs.LG",
"cs.AI"
] |
2307.04683 | AnswerAI | CORE-GPT: Combining Open Access research and large language models for credible, trustworthy question answering | [
"David Pride",
"Matteo Cancellieri",
"Petr Knoth"
] | 2023-07-06 | In this paper, we present CORE-GPT, a novel question-answering platform that
combines GPT-based language models and more than 32 million full-text open
access scientific articles from CORE. We first demonstrate that GPT3.5 and GPT4
cannot be relied upon to provide references or citations for generated text. We
then introduce CORE-GPT which delivers evidence-based answers to questions,
along with citations and links to the cited papers, greatly increasing the
trustworthiness of the answers and reducing the risk of hallucinations.
CORE-GPT's performance was evaluated on a dataset of 100 questions covering the
top 20 scientific domains in CORE, resulting in 100 answers and links to 500
relevant articles. The quality of the provided answers and and relevance of the
links were assessed by two annotators. Our results demonstrate that CORE-GPT
can produce comprehensive and trustworthy answers across the majority of
scientific domains, complete with links to genuine, relevant scientific
articles. | null | cs.CL | [
"cs.CL",
"cs.AI"
] |
2406.11402 | HF | Are Small Language Models Ready to Compete with Large Language Models for Practical Applications? | [
"Neelabh Sinha",
"Vinija Jain",
"Aman Chadha"
] | 2024-06-17 | The rapid rise of Language Models (LMs) has expanded their use in several
applications. Yet, due to constraints of model size, associated cost, or
proprietary restrictions, utilizing state-of-the-art (SOTA) LLMs is not always
feasible. With open, smaller LMs emerging, more applications can leverage their
capabilities, but selecting the right LM can be challenging as smaller LMs
don't perform well universally. This work tries to bridge this gap by proposing
a framework to experimentally evaluate small, open LMs in practical settings
through measuring semantic correctness of outputs across three practical
aspects: task types, application domains and reasoning types, using diverse
prompt styles. It also conducts an in-depth comparison of 10 small, open LMs to
identify best LM and prompt style depending on specific application requirement
using the proposed framework. We also show that if selected appropriately, they
can outperform SOTA LLMs like DeepSeek-v2, GPT-4o-mini, Gemini-1.5-Pro, and
even compete with GPT-4o. | null | cs.CL | [
"cs.CL",
"cs.AI",
"cs.LG"
] |
2405.13817 | HF | Thermodynamic Natural Gradient Descent | [
"Kaelan Donatella",
"Samuel Duffield",
"Maxwell Aifer",
"Denis Melanson",
"Gavin Crooks",
"Patrick J. Coles"
] | 2024-05-22 | Second-order training methods have better convergence properties than
gradient descent but are rarely used in practice for large-scale training due
to their computational overhead. This can be viewed as a hardware limitation
(imposed by digital computers). Here we show that natural gradient descent
(NGD), a second-order method, can have a similar computational complexity per
iteration to a first-order method, when employing appropriate hardware. We
present a new hybrid digital-analog algorithm for training neural networks that
is equivalent to NGD in a certain parameter regime but avoids prohibitively
costly linear system solves. Our algorithm exploits the thermodynamic
properties of an analog system at equilibrium, and hence requires an analog
thermodynamic computer. The training occurs in a hybrid digital-analog loop,
where the gradient and Fisher information matrix (or any other positive
semi-definite curvature matrix) are calculated at given time intervals while
the analog dynamics take place. We numerically demonstrate the superiority of
this approach over state-of-the-art digital first- and second-order training
methods on classification tasks and language model fine-tuning tasks. | null | cs.LG | [
"cs.LG",
"cs.ET"
] |
2303.09752 | AnswerAI | CoLT5: Faster Long-Range Transformers with Conditional Computation | [
"Joshua Ainslie",
"Tao Lei",
"Michiel de Jong",
"Santiago Ontañón",
"Siddhartha Brahma",
"Yury Zemlyanskiy",
"David Uthus",
"Mandy Guo",
"James Lee-Thorp",
"Yi Tay",
"Yun-Hsuan Sung",
"Sumit Sanghai"
] | 2023-03-17 | Many natural language processing tasks benefit from long inputs, but
processing long documents with Transformers is expensive -- not only due to
quadratic attention complexity but also from applying feedforward and
projection layers to every token. However, not all tokens are equally
important, especially for longer documents. We propose CoLT5, a long-input
Transformer model that builds on this intuition by employing conditional
computation, devoting more resources to important tokens in both feedforward
and attention layers. We show that CoLT5 achieves stronger performance than
LongT5 with much faster training and inference, achieving SOTA on the
long-input SCROLLS benchmark. Moreover, CoLT5 can effectively and tractably
make use of extremely long inputs, showing strong gains up to 64k input length. | null | cs.CL | [
"cs.CL",
"cs.LG"
] |
2409.07129 | HF | MVLLaVA: An Intelligent Agent for Unified and Flexible Novel View Synthesis | [
"Hanyu Jiang",
"Jian Xue",
"Xing Lan",
"Guohong Hu",
"Ke Lu"
] | 2024-09-11 | This paper introduces MVLLaVA, an intelligent agent designed for novel view
synthesis tasks. MVLLaVA integrates multiple multi-view diffusion models with a
large multimodal model, LLaVA, enabling it to handle a wide range of tasks
efficiently. MVLLaVA represents a versatile and unified platform that adapts to
diverse input types, including a single image, a descriptive caption, or a
specific change in viewing azimuth, guided by language instructions for
viewpoint generation. We carefully craft task-specific instruction templates,
which are subsequently used to fine-tune LLaVA. As a result, MVLLaVA acquires
the capability to generate novel view images based on user instructions,
demonstrating its flexibility across diverse tasks. Experiments are conducted
to validate the effectiveness of MVLLaVA, demonstrating its robust performance
and versatility in tackling diverse novel view synthesis challenges. | null | cs.CV | [
"cs.CV"
] |
2406.07457 | HF | Estimating the Hallucination Rate of Generative AI | [
"Andrew Jesson",
"Nicolas Beltran-Velez",
"Quentin Chu",
"Sweta Karlekar",
"Jannik Kossen",
"Yarin Gal",
"John P. Cunningham",
"David Blei"
] | 2024-06-11 | This work is about estimating the hallucination rate for in-context learning
(ICL) with Generative AI. In ICL, a conditional generative model (CGM) is
prompted with a dataset and asked to make a prediction based on that dataset.
The Bayesian interpretation of ICL assumes that the CGM is calculating a
posterior predictive distribution over an unknown Bayesian model of a latent
parameter and data. With this perspective, we define a \textit{hallucination}
as a generated prediction that has low-probability under the true latent
parameter. We develop a new method that takes an ICL problem -- that is, a CGM,
a dataset, and a prediction question -- and estimates the probability that a
CGM will generate a hallucination. Our method only requires generating queries
and responses from the model and evaluating its response log probability. We
empirically evaluate our method on synthetic regression and natural language
ICL tasks using large language models. | null | cs.LG | [
"cs.LG",
"stat.ML"
] |
2401.12202 | HF | OK-Robot: What Really Matters in Integrating Open-Knowledge Models for Robotics | [
"Peiqi Liu",
"Yaswanth Orru",
"Jay Vakil",
"Chris Paxton",
"Nur Muhammad Mahi Shafiullah",
"Lerrel Pinto"
] | 2024-01-22 | Remarkable progress has been made in recent years in the fields of vision,
language, and robotics. We now have vision models capable of recognizing
objects based on language queries, navigation systems that can effectively
control mobile systems, and grasping models that can handle a wide range of
objects. Despite these advancements, general-purpose applications of robotics
still lag behind, even though they rely on these fundamental capabilities of
recognition, navigation, and grasping. In this paper, we adopt a systems-first
approach to develop a new Open Knowledge-based robotics framework called
OK-Robot. By combining Vision-Language Models (VLMs) for object detection,
navigation primitives for movement, and grasping primitives for object
manipulation, OK-Robot offers a integrated solution for pick-and-drop
operations without requiring any training. To evaluate its performance, we run
OK-Robot in 10 real-world home environments. The results demonstrate that
OK-Robot achieves a 58.5% success rate in open-ended pick-and-drop tasks,
representing a new state-of-the-art in Open Vocabulary Mobile Manipulation
(OVMM) with nearly 1.8x the performance of prior work. On cleaner, uncluttered
environments, OK-Robot's performance increases to 82%. However, the most
important insight gained from OK-Robot is the critical role of nuanced details
when combining Open Knowledge systems like VLMs with robotic modules. Videos of
our experiments and code are available on our website:
https://ok-robot.github.io | null | cs.RO | [
"cs.RO",
"cs.AI",
"cs.CV",
"cs.LG"
] |
2306.10763 | HF | Guiding Language Models of Code with Global Context using Monitors | [
"Lakshya A Agrawal",
"Aditya Kanade",
"Navin Goyal",
"Shuvendu K. Lahiri",
"Sriram K. Rajamani"
] | 2023-06-19 | Language models of code (LMs) work well when the surrounding code provides
sufficient context. This is not true when it becomes necessary to use types,
functionality or APIs defined elsewhere in the repository or a linked library,
especially those not seen during training. LMs suffer from limited awareness of
such global context and end up hallucinating.
Integrated development environments (IDEs) assist developers in understanding
repository context using static analysis. We extend this assistance, enjoyed by
developers, to LMs. We propose monitor-guided decoding (MGD) where a monitor
uses static analysis to guide the decoding. We construct a repository-level
dataset PragmaticCode for method-completion in Java and evaluate MGD on it. On
models of varying parameter scale, by monitoring for type-consistent object
dereferences, MGD consistently improves compilation rates and agreement with
ground truth. Further, LMs with fewer parameters, when augmented with MGD, can
outperform larger LMs. With MGD, SantaCoder-1.1B achieves better compilation
rate and next-identifier match than the much larger text-davinci-003 model.
We also conduct a generalizability study to evaluate the ability of MGD to
generalize to multiple programming languages (Java, C# and Rust), coding
scenarios (e.g., correct number of arguments to method calls), and to enforce
richer semantic constraints (e.g., stateful API protocols). Our data and
implementation are available at https://github.com/microsoft/monitors4codegen . | null | cs.CL | [
"cs.CL",
"cs.AI",
"cs.LG",
"cs.PL",
"cs.SE",
"I.2.2; I.2.7; I.2.5"
] |
2408.15914 | HF | CoRe: Context-Regularized Text Embedding Learning for Text-to-Image Personalization | [
"Feize Wu",
"Yun Pang",
"Junyi Zhang",
"Lianyu Pang",
"Jian Yin",
"Baoquan Zhao",
"Qing Li",
"Xudong Mao"
] | 2024-08-28 | Recent advances in text-to-image personalization have enabled high-quality
and controllable image synthesis for user-provided concepts. However, existing
methods still struggle to balance identity preservation with text alignment.
Our approach is based on the fact that generating prompt-aligned images
requires a precise semantic understanding of the prompt, which involves
accurately processing the interactions between the new concept and its
surrounding context tokens within the CLIP text encoder. To address this, we
aim to embed the new concept properly into the input embedding space of the
text encoder, allowing for seamless integration with existing tokens. We
introduce Context Regularization (CoRe), which enhances the learning of the new
concept's text embedding by regularizing its context tokens in the prompt. This
is based on the insight that appropriate output vectors of the text encoder for
the context tokens can only be achieved if the new concept's text embedding is
correctly learned. CoRe can be applied to arbitrary prompts without requiring
the generation of corresponding images, thus improving the generalization of
the learned text embedding. Additionally, CoRe can serve as a test-time
optimization technique to further enhance the generations for specific prompts.
Comprehensive experiments demonstrate that our method outperforms several
baseline methods in both identity preservation and text alignment. Code will be
made publicly available. | null | cs.CV | [
"cs.CV"
] |
2305.09993 | AnswerAI | Reprompting: Automated Chain-of-Thought Prompt Inference Through Gibbs Sampling | [
"Weijia Xu",
"Andrzej Banburski-Fahey",
"Nebojsa Jojic"
] | 2023-05-17 | We introduce Reprompting, an iterative sampling algorithm that automatically
learns the Chain-of-Thought (CoT) recipes for a given task without human
intervention. Through Gibbs sampling, Reprompting infers the CoT recipes that
work consistently well for a set of training samples by iteratively sampling
new recipes using previously sampled recipes as parent prompts to solve other
training problems. We conduct extensive experiments on 20 challenging reasoning
tasks. Results show that Reprompting outperforms human-written CoT prompts
substantially by +9.4 points on average. It also achieves consistently better
performance than the state-of-the-art prompt optimization and decoding
algorithms. | null | cs.LG | [
"cs.LG",
"cs.AI",
"cs.CL"
] |
2401.06121 | HF | TOFU: A Task of Fictitious Unlearning for LLMs | [
"Pratyush Maini",
"Zhili Feng",
"Avi Schwarzschild",
"Zachary C. Lipton",
"J. Zico Kolter"
] | 2024-01-11 | Large language models trained on massive corpora of data from the web can
memorize and reproduce sensitive or private data raising both legal and ethical
concerns. Unlearning, or tuning models to forget information present in their
training data, provides us with a way to protect private data after training.
Although several methods exist for such unlearning, it is unclear to what
extent they result in models equivalent to those where the data to be forgotten
was never learned in the first place. To address this challenge, we present
TOFU, a Task of Fictitious Unlearning, as a benchmark aimed at helping deepen
our understanding of unlearning. We offer a dataset of 200 diverse synthetic
author profiles, each consisting of 20 question-answer pairs, and a subset of
these profiles called the forget set that serves as the target for unlearning.
We compile a suite of metrics that work together to provide a holistic picture
of unlearning efficacy. Finally, we provide a set of baseline results from
existing unlearning algorithms. Importantly, none of the baselines we consider
show effective unlearning motivating continued efforts to develop approaches
for unlearning that effectively tune models so that they truly behave as if
they were never trained on the forget data at all. | null | cs.LG | [
"cs.LG",
"cs.CL"
] |
2405.19888 | HF | Parrot: Efficient Serving of LLM-based Applications with Semantic Variable | [
"Chaofan Lin",
"Zhenhua Han",
"Chengruidong Zhang",
"Yuqing Yang",
"Fan Yang",
"Chen Chen",
"Lili Qiu"
] | 2024-05-30 | The rise of large language models (LLMs) has enabled LLM-based applications
(a.k.a. AI agents or co-pilots), a new software paradigm that combines the
strength of LLM and conventional software. Diverse LLM applications from
different tenants could design complex workflows using multiple LLM requests to
accomplish one task. However, they have to use the over-simplified
request-level API provided by today's public LLM services, losing essential
application-level information. Public LLM services have to blindly optimize
individual LLM requests, leading to sub-optimal end-to-end performance of LLM
applications.
This paper introduces Parrot, an LLM service system that focuses on the
end-to-end experience of LLM-based applications. Parrot proposes Semantic
Variable, a unified abstraction to expose application-level knowledge to public
LLM services. A Semantic Variable annotates an input/output variable in the
prompt of a request, and creates the data pipeline when connecting multiple LLM
requests, providing a natural way to program LLM applications. Exposing
Semantic Variables to the public LLM service allows it to perform conventional
data flow analysis to uncover the correlation across multiple LLM requests.
This correlation opens a brand-new optimization space for the end-to-end
performance of LLM-based applications. Extensive evaluations demonstrate that
Parrot can achieve up to an order-of-magnitude improvement for popular and
practical use cases of LLM applications. | null | cs.LG | [
"cs.LG",
"cs.AI"
] |
2406.00888 | HF | Show, Don't Tell: Aligning Language Models with Demonstrated Feedback | [
"Omar Shaikh",
"Michelle Lam",
"Joey Hejna",
"Yijia Shao",
"Michael Bernstein",
"Diyi Yang"
] | 2024-06-02 | Language models are aligned to emulate the collective voice of many,
resulting in outputs that align with no one in particular. Steering LLMs away
from generic output is possible through supervised finetuning or RLHF, but
requires prohibitively large datasets for new ad-hoc tasks. We argue that it is
instead possible to align an LLM to a specific setting by leveraging a very
small number ($<10$) of demonstrations as feedback. Our method, Demonstration
ITerated Task Optimization (DITTO), directly aligns language model outputs to a
user's demonstrated behaviors. Derived using ideas from online imitation
learning, DITTO cheaply generates online comparison data by treating users'
demonstrations as preferred over output from the LLM and its intermediate
checkpoints. We evaluate DITTO's ability to learn fine-grained style and task
alignment across domains such as news articles, emails, and blog posts.
Additionally, we conduct a user study soliciting a range of demonstrations from
participants ($N=16$). Across our benchmarks and user study, we find that
win-rates for DITTO outperform few-shot prompting, supervised fine-tuning, and
other self-play methods by an average of 19% points. By using demonstrations as
feedback directly, DITTO offers a novel method for effective customization of
LLMs. | null | cs.CL | [
"cs.CL",
"cs.HC"
] |
2403.03234 | HF | Caduceus: Bi-Directional Equivariant Long-Range DNA Sequence Modeling | [
"Yair Schiff",
"Chia-Hsiang Kao",
"Aaron Gokaslan",
"Tri Dao",
"Albert Gu",
"Volodymyr Kuleshov"
] | 2024-03-05 | Large-scale sequence modeling has sparked rapid advances that now extend into
biology and genomics. However, modeling genomic sequences introduces challenges
such as the need to model long-range token interactions, the effects of
upstream and downstream regions of the genome, and the reverse complementarity
(RC) of DNA. Here, we propose an architecture motivated by these challenges
that builds off the long-range Mamba block, and extends it to a BiMamba
component that supports bi-directionality, and to a MambaDNA block that
additionally supports RC equivariance. We use MambaDNA as the basis of
Caduceus, the first family of RC equivariant bi-directional long-range DNA
language models, and we introduce pre-training and fine-tuning strategies that
yield Caduceus DNA foundation models. Caduceus outperforms previous long-range
models on downstream benchmarks; on a challenging long-range variant effect
prediction task, Caduceus exceeds the performance of 10x larger models that do
not leverage bi-directionality or equivariance. | null | q-bio.GN | [
"q-bio.GN",
"cs.LG"
] |
2401.07781 | HF | Towards A Better Metric for Text-to-Video Generation | [
"Jay Zhangjie Wu",
"Guian Fang",
"Haoning Wu",
"Xintao Wang",
"Yixiao Ge",
"Xiaodong Cun",
"David Junhao Zhang",
"Jia-Wei Liu",
"Yuchao Gu",
"Rui Zhao",
"Weisi Lin",
"Wynne Hsu",
"Ying Shan",
"Mike Zheng Shou"
] | 2024-01-15 | Generative models have demonstrated remarkable capability in synthesizing
high-quality text, images, and videos. For video generation, contemporary
text-to-video models exhibit impressive capabilities, crafting visually
stunning videos. Nonetheless, evaluating such videos poses significant
challenges. Current research predominantly employs automated metrics such as
FVD, IS, and CLIP Score. However, these metrics provide an incomplete analysis,
particularly in the temporal assessment of video content, thus rendering them
unreliable indicators of true video quality. Furthermore, while user studies
have the potential to reflect human perception accurately, they are hampered by
their time-intensive and laborious nature, with outcomes that are often tainted
by subjective bias. In this paper, we investigate the limitations inherent in
existing metrics and introduce a novel evaluation pipeline, the Text-to-Video
Score (T2VScore). This metric integrates two pivotal criteria: (1) Text-Video
Alignment, which scrutinizes the fidelity of the video in representing the
given text description, and (2) Video Quality, which evaluates the video's
overall production caliber with a mixture of experts. Moreover, to evaluate the
proposed metrics and facilitate future improvements on them, we present the
TVGE dataset, collecting human judgements of 2,543 text-to-video generated
videos on the two criteria. Experiments on the TVGE dataset demonstrate the
superiority of the proposed T2VScore on offering a better metric for
text-to-video generation. | null | cs.CV | [
"cs.CV"
] |
2409.09214 | HF | Seed-Music: A Unified Framework for High Quality and Controlled Music Generation | [
"Ye Bai",
"Haonan Chen",
"Jitong Chen",
"Zhuo Chen",
"Yi Deng",
"Xiaohong Dong",
"Lamtharn Hantrakul",
"Weituo Hao",
"Qingqing Huang",
"Zhongyi Huang",
"Dongya Jia",
"Feihu La",
"Duc Le",
"Bochen Li",
"Chumin Li",
"Hui Li",
"Xingxing Li",
"Shouda Liu",
"Wei-Tsung Lu",
"Yiqing Lu",
"Andrew Shaw",
"Janne Spijkervet",
"Yakun Sun",
"Bo Wang",
"Ju-Chiang Wang",
"Yuping Wang",
"Yuxuan Wang",
"Ling Xu",
"Yifeng Yang",
"Chao Yao",
"Shuo Zhang",
"Yang Zhang",
"Yilin Zhang",
"Hang Zhao",
"Ziyi Zhao",
"Dejian Zhong",
"Shicen Zhou",
"Pei Zou"
] | 2024-09-13 | We introduce Seed-Music, a suite of music generation systems capable of
producing high-quality music with fine-grained style control. Our unified
framework leverages both auto-regressive language modeling and diffusion
approaches to support two key music creation workflows: controlled music
generation and post-production editing. For controlled music generation, our
system enables vocal music generation with performance controls from
multi-modal inputs, including style descriptions, audio references, musical
scores, and voice prompts. For post-production editing, it offers interactive
tools for editing lyrics and vocal melodies directly in the generated audio.
We encourage readers to listen to demo audio examples at
https://team.doubao.com/seed-music. | null | cs.SD | [
"cs.SD",
"eess.AS"
] |
2312.10332 | HF | ProTIP: Progressive Tool Retrieval Improves Planning | [
"Raviteja Anantha",
"Bortik Bandyopadhyay",
"Anirudh Kashi",
"Sayantan Mahinder",
"Andrew W Hill",
"Srinivas Chappidi"
] | 2023-12-16 | Large language models (LLMs) are increasingly employed for complex multi-step
planning tasks, where the tool retrieval (TR) step is crucial for achieving
successful outcomes. Two prevalent approaches for TR are single-step retrieval,
which utilizes the complete query, and sequential retrieval using task
decomposition (TD), where a full query is segmented into discrete atomic
subtasks. While single-step retrieval lacks the flexibility to handle
"inter-tool dependency," the TD approach necessitates maintaining "subtask-tool
atomicity alignment," as the toolbox can evolve dynamically. To address these
limitations, we introduce the Progressive Tool retrieval to Improve Planning
(ProTIP) framework. ProTIP is a lightweight, contrastive learning-based
framework that implicitly performs TD without the explicit requirement of
subtask labels, while simultaneously maintaining subtask-tool atomicity. On the
ToolBench dataset, ProTIP outperforms the ChatGPT task decomposition-based
approach by a remarkable margin, achieving a 24% improvement in Recall@K=10 for
TR and a 41% enhancement in tool accuracy for plan generation. | null | cs.IR | [
"cs.IR",
"cs.AI",
"cs.LG"
] |
2204.07937 | AnswerAI | Unsupervised Cross-Task Generalization via Retrieval Augmentation | [
"Bill Yuchen Lin",
"Kangmin Tan",
"Chris Miller",
"Beiwen Tian",
"Xiang Ren"
] | 2022-04-17 | Humans can perform unseen tasks by recalling relevant skills acquired
previously and then generalizing them to the target tasks, even if there is no
supervision at all. In this paper, we aim to improve this kind of cross-task
generalization ability of massive multi-task language models, such as T0 and
FLAN, in an unsupervised setting. We propose a retrieval-augmentation method
named ReCross that takes a few unlabelled examples as queries to retrieve a
small subset of upstream data and uses them to update the multi-task model for
better generalization. ReCross is a straightforward yet effective retrieval
method that combines both efficient dense retrieval and effective pair-wise
reranking. Our results and analysis show that it significantly outperforms both
non-retrieval methods and other baseline methods. | null | cs.CL | [
"cs.CL",
"cs.AI",
"cs.LG"
] |
2405.19107 | HF | Offline Regularised Reinforcement Learning for Large Language Models Alignment | [
"Pierre Harvey Richemond",
"Yunhao Tang",
"Daniel Guo",
"Daniele Calandriello",
"Mohammad Gheshlaghi Azar",
"Rafael Rafailov",
"Bernardo Avila Pires",
"Eugene Tarassov",
"Lucas Spangher",
"Will Ellsworth",
"Aliaksei Severyn",
"Jonathan Mallinson",
"Lior Shani",
"Gil Shamir",
"Rishabh Joshi",
"Tianqi Liu",
"Remi Munos",
"Bilal Piot"
] | 2024-05-29 | The dominant framework for alignment of large language models (LLM), whether
through reinforcement learning from human feedback or direct preference
optimisation, is to learn from preference data. This involves building datasets
where each element is a quadruplet composed of a prompt, two independent
responses (completions of the prompt) and a human preference between the two
independent responses, yielding a preferred and a dis-preferred response. Such
data is typically scarce and expensive to collect. On the other hand,
\emph{single-trajectory} datasets where each element is a triplet composed of a
prompt, a response and a human feedback is naturally more abundant. The
canonical element of such datasets is for instance an LLM's response to a
user's prompt followed by a user's feedback such as a thumbs-up/down.
Consequently, in this work, we propose DRO, or \emph{Direct Reward
Optimisation}, as a framework and associated algorithms that do not require
pairwise preferences. DRO uses a simple mean-squared objective that can be
implemented in various ways. We validate our findings empirically, using T5
encoder-decoder language models, and show DRO's performance over selected
baselines such as Kahneman-Tversky Optimization (KTO). Thus, we confirm that
DRO is a simple and empirically compelling method for single-trajectory policy
optimisation. | null | cs.LG | [
"cs.LG",
"cs.AI"
] |
2310.03025 | AnswerAI | Retrieval meets Long Context Large Language Models | [
"Peng Xu",
"Wei Ping",
"Xianchao Wu",
"Lawrence McAfee",
"Chen Zhu",
"Zihan Liu",
"Sandeep Subramanian",
"Evelina Bakhturina",
"Mohammad Shoeybi",
"Bryan Catanzaro"
] | 2023-10-04 | Extending the context window of large language models (LLMs) is getting
popular recently, while the solution of augmenting LLMs with retrieval has
existed for years. The natural questions are: i) Retrieval-augmentation versus
long context window, which one is better for downstream tasks? ii) Can both
methods be combined to get the best of both worlds? In this work, we answer
these questions by studying both solutions using two state-of-the-art
pretrained LLMs, i.e., a proprietary 43B GPT and Llama2-70B. Perhaps
surprisingly, we find that LLM with 4K context window using simple
retrieval-augmentation at generation can achieve comparable performance to
finetuned LLM with 16K context window via positional interpolation on long
context tasks, while taking much less computation. More importantly, we
demonstrate that retrieval can significantly improve the performance of LLMs
regardless of their extended context window sizes. Our best model,
retrieval-augmented Llama2-70B with 32K context window, outperforms
GPT-3.5-turbo-16k and Davinci003 in terms of average score on nine long context
tasks including question answering, query-based summarization, and in-context
few-shot learning tasks. It also outperforms its non-retrieval Llama2-70B-32k
baseline by a margin, while being much faster at generation. Our study provides
general insights on the choice of retrieval-augmentation versus long context
extension of LLM for practitioners. | null | cs.CL | [
"cs.CL",
"cs.AI",
"cs.IR",
"cs.LG"
] |
2404.04465 | HF | Aligning Diffusion Models by Optimizing Human Utility | [
"Shufan Li",
"Konstantinos Kallidromitis",
"Akash Gokul",
"Yusuke Kato",
"Kazuki Kozuka"
] | 2024-04-06 | We present Diffusion-KTO, a novel approach for aligning text-to-image
diffusion models by formulating the alignment objective as the maximization of
expected human utility. Since this objective applies to each generation
independently, Diffusion-KTO does not require collecting costly pairwise
preference data nor training a complex reward model. Instead, our objective
requires simple per-image binary feedback signals, e.g. likes or dislikes,
which are abundantly available. After fine-tuning using Diffusion-KTO,
text-to-image diffusion models exhibit superior performance compared to
existing techniques, including supervised fine-tuning and Diffusion-DPO, both
in terms of human judgment and automatic evaluation metrics such as PickScore
and ImageReward. Overall, Diffusion-KTO unlocks the potential of leveraging
readily available per-image binary signals and broadens the applicability of
aligning text-to-image diffusion models with human preferences. | null | cs.CV | [
"cs.CV"
] |
2311.02382 | HF | Ultra-Long Sequence Distributed Transformer | [
"Xiao Wang",
"Isaac Lyngaas",
"Aristeidis Tsaris",
"Peng Chen",
"Sajal Dash",
"Mayanka Chandra Shekar",
"Tao Luo",
"Hong-Jun Yoon",
"Mohamed Wahib",
"John Gouley"
] | 2023-11-04 | Transformer models trained on long sequences often achieve higher accuracy
than short sequences. Unfortunately, conventional transformers struggle with
long sequence training due to the overwhelming computation and memory
requirements. Existing methods for long sequence training offer limited speedup
and memory reduction, and may compromise accuracy. This paper presents a novel
and efficient distributed training method, the Long Short-Sequence Transformer
(LSS Transformer), for training transformer with long sequences. It distributes
a long sequence into segments among GPUs, with each GPU computing a partial
self-attention for its segment. Then, it uses a fused communication and a novel
double gradient averaging technique to avoid the need to aggregate partial
self-attention and minimize communication overhead. We evaluated the
performance between LSS Transformer and the state-of-the-art Nvidia sequence
parallelism on a Wikipedia enwik8 dataset. Results show that our proposed
method lead to 5.6x faster and 10.2x more memory-efficient implementation
compared to state-of-the-art sequence parallelism on 144 Nvidia V100 GPUs.
Moreover, our algorithm scales to an extreme sequence length of 50,112 at 3,456
GPUs, achieving 161% super-linear parallel efficiency and a throughput of 32
petaflops. | null | cs.DC | [
"cs.DC",
"cs.AI"
] |
2312.08914 | HF | CogAgent: A Visual Language Model for GUI Agents | [
"Wenyi Hong",
"Weihan Wang",
"Qingsong Lv",
"Jiazheng Xu",
"Wenmeng Yu",
"Junhui Ji",
"Yan Wang",
"Zihan Wang",
"Yuxuan Zhang",
"Juanzi Li",
"Bin Xu",
"Yuxiao Dong",
"Ming Ding",
"Jie Tang"
] | 2023-12-14 | People are spending an enormous amount of time on digital devices through
graphical user interfaces (GUIs), e.g., computer or smartphone screens. Large
language models (LLMs) such as ChatGPT can assist people in tasks like writing
emails, but struggle to understand and interact with GUIs, thus limiting their
potential to increase automation levels. In this paper, we introduce CogAgent,
an 18-billion-parameter visual language model (VLM) specializing in GUI
understanding and navigation. By utilizing both low-resolution and
high-resolution image encoders, CogAgent supports input at a resolution of
1120*1120, enabling it to recognize tiny page elements and text. As a
generalist visual language model, CogAgent achieves the state of the art on
five text-rich and four general VQA benchmarks, including VQAv2, OK-VQA,
Text-VQA, ST-VQA, ChartQA, infoVQA, DocVQA, MM-Vet, and POPE. CogAgent, using
only screenshots as input, outperforms LLM-based methods that consume extracted
HTML text on both PC and Android GUI navigation tasks -- Mind2Web and AITW,
advancing the state of the art. The model and codes are available at
https://github.com/THUDM/CogVLM . | null | cs.CV | [
"cs.CV"
] |
2306.00637 | Both | Wuerstchen: An Efficient Architecture for Large-Scale Text-to-Image Diffusion Models | [
"Pablo Pernias",
"Dominic Rampas",
"Mats L. Richter",
"Christopher J. Pal",
"Marc Aubreville"
] | 2023-06-01 | We introduce W\"urstchen, a novel architecture for text-to-image synthesis
that combines competitive performance with unprecedented cost-effectiveness for
large-scale text-to-image diffusion models. A key contribution of our work is
to develop a latent diffusion technique in which we learn a detailed but
extremely compact semantic image representation used to guide the diffusion
process. This highly compressed representation of an image provides much more
detailed guidance compared to latent representations of language and this
significantly reduces the computational requirements to achieve
state-of-the-art results. Our approach also improves the quality of
text-conditioned image generation based on our user preference study. The
training requirements of our approach consists of 24,602 A100-GPU hours -
compared to Stable Diffusion 2.1's 200,000 GPU hours. Our approach also
requires less training data to achieve these results. Furthermore, our compact
latent representations allows us to perform inference over twice as fast,
slashing the usual costs and carbon footprint of a state-of-the-art (SOTA)
diffusion model significantly, without compromising the end performance. In a
broader comparison against SOTA models our approach is substantially more
efficient and compares favorably in terms of image quality. We believe that
this work motivates more emphasis on the prioritization of both performance and
computational accessibility. | null | cs.CV | [
"cs.CV"
] |
2403.12881 | HF | Agent-FLAN: Designing Data and Methods of Effective Agent Tuning for Large Language Models | [
"Zehui Chen",
"Kuikun Liu",
"Qiuchen Wang",
"Wenwei Zhang",
"Jiangning Liu",
"Dahua Lin",
"Kai Chen",
"Feng Zhao"
] | 2024-03-19 | Open-sourced Large Language Models (LLMs) have achieved great success in
various NLP tasks, however, they are still far inferior to API-based models
when acting as agents. How to integrate agent ability into general LLMs becomes
a crucial and urgent problem. This paper first delivers three key observations:
(1) the current agent training corpus is entangled with both formats following
and agent reasoning, which significantly shifts from the distribution of its
pre-training data; (2) LLMs exhibit different learning speeds on the
capabilities required by agent tasks; and (3) current approaches have
side-effects when improving agent abilities by introducing hallucinations.
Based on the above findings, we propose Agent-FLAN to effectively Fine-tune
LANguage models for Agents. Through careful decomposition and redesign of the
training corpus, Agent-FLAN enables Llama2-7B to outperform prior best works by
3.5\% across various agent evaluation datasets. With comprehensively
constructed negative samples, Agent-FLAN greatly alleviates the hallucination
issues based on our established evaluation benchmark. Besides, it consistently
improves the agent capability of LLMs when scaling model sizes while slightly
enhancing the general capability of LLMs. The code will be available at
https://github.com/InternLM/Agent-FLAN. | null | cs.CL | [
"cs.CL"
] |
2311.04205 | AnswerAI | Rephrase and Respond: Let Large Language Models Ask Better Questions for Themselves | [
"Yihe Deng",
"Weitong Zhang",
"Zixiang Chen",
"Quanquan Gu"
] | 2023-11-07 | Misunderstandings arise not only in interpersonal communication but also
between humans and Large Language Models (LLMs). Such discrepancies can make
LLMs interpret seemingly unambiguous questions in unexpected ways, yielding
incorrect responses. While it is widely acknowledged that the quality of a
prompt, such as a question, significantly impacts the quality of the response
provided by LLMs, a systematic method for crafting questions that LLMs can
better comprehend is still underdeveloped. In this paper, we present a method
named `Rephrase and Respond' (RaR), which allows LLMs to rephrase and expand
questions posed by humans and provide responses in a single prompt. This
approach serves as a simple yet effective prompting method for improving
performance. We also introduce a two-step variant of RaR, where a rephrasing
LLM first rephrases the question and then passes the original and rephrased
questions together to a different responding LLM. This facilitates the
effective utilization of rephrased questions generated by one LLM with another.
Our experiments demonstrate that our methods significantly improve the
performance of different models across a wide range to tasks. We further
provide a comprehensive comparison between RaR and the popular Chain-of-Thought
(CoT) methods, both theoretically and empirically. We show that RaR is
complementary to CoT and can be combined with CoT to achieve even better
performance. Our work not only contributes to enhancing LLM performance
efficiently and effectively but also sheds light on a fair evaluation of LLM
capabilities. Data and codes are available at
https://github.com/uclaml/Rephrase-and-Respond. | null | cs.CL | [
"cs.CL",
"cs.AI",
"cs.LG"
] |
2403.08268 | HF | Follow-Your-Click: Open-domain Regional Image Animation via Short Prompts | [
"Yue Ma",
"Yingqing He",
"Hongfa Wang",
"Andong Wang",
"Chenyang Qi",
"Chengfei Cai",
"Xiu Li",
"Zhifeng Li",
"Heung-Yeung Shum",
"Wei Liu",
"Qifeng Chen"
] | 2024-03-13 | Despite recent advances in image-to-video generation, better controllability
and local animation are less explored. Most existing image-to-video methods are
not locally aware and tend to move the entire scene. However, human artists may
need to control the movement of different objects or regions. Additionally,
current I2V methods require users not only to describe the target motion but
also to provide redundant detailed descriptions of frame contents. These two
issues hinder the practical utilization of current I2V tools. In this paper, we
propose a practical framework, named Follow-Your-Click, to achieve image
animation with a simple user click (for specifying what to move) and a short
motion prompt (for specifying how to move). Technically, we propose the
first-frame masking strategy, which significantly improves the video generation
quality, and a motion-augmented module equipped with a short motion prompt
dataset to improve the short prompt following abilities of our model. To
further control the motion speed, we propose flow-based motion magnitude
control to control the speed of target movement more precisely. Our framework
has simpler yet precise user control and better generation performance than
previous methods. Extensive experiments compared with 7 baselines, including
both commercial tools and research methods on 8 metrics, suggest the
superiority of our approach. Project Page: https://follow-your-click.github.io/ | null | cs.CV | [
"cs.CV"
] |
2305.17333 | HF | Fine-Tuning Language Models with Just Forward Passes | [
"Sadhika Malladi",
"Tianyu Gao",
"Eshaan Nichani",
"Alex Damian",
"Jason D. Lee",
"Danqi Chen",
"Sanjeev Arora"
] | 2023-05-27 | Fine-tuning language models (LMs) has yielded success on diverse downstream
tasks, but as LMs grow in size, backpropagation requires a prohibitively large
amount of memory. Zeroth-order (ZO) methods can in principle estimate gradients
using only two forward passes but are theorized to be catastrophically slow for
optimizing large models. In this work, we propose a memory-efficient
zerothorder optimizer (MeZO), adapting the classical ZO-SGD method to operate
in-place, thereby fine-tuning LMs with the same memory footprint as inference.
For example, with a single A100 80GB GPU, MeZO can train a 30-billion parameter
model, whereas fine-tuning with backpropagation can train only a 2.7B LM with
the same budget. We conduct comprehensive experiments across model types
(masked and autoregressive LMs), model scales (up to 66B), and downstream tasks
(classification, multiple-choice, and generation). Our results demonstrate that
(1) MeZO significantly outperforms in-context learning and linear probing; (2)
MeZO achieves comparable performance to fine-tuning with backpropagation across
multiple tasks, with up to 12x memory reduction and up to 2x GPU-hour reduction
in our implementation; (3) MeZO is compatible with both full-parameter and
parameter-efficient tuning techniques such as LoRA and prefix tuning; (4) MeZO
can effectively optimize non-differentiable objectives (e.g., maximizing
accuracy or F1). We support our empirical findings with theoretical insights,
highlighting how adequate pre-training and task prompts enable MeZO to
fine-tune huge models, despite classical ZO analyses suggesting otherwise. | null | cs.LG | [
"cs.LG",
"cs.CL"
] |
2306.00029 | HF | CodeTF: One-stop Transformer Library for State-of-the-art Code LLM | [
"Nghi D. Q. Bui",
"Hung Le",
"Yue Wang",
"Junnan Li",
"Akhilesh Deepak Gotmare",
"Steven C. H. Hoi"
] | 2023-05-31 | Code intelligence plays a key role in transforming modern software
engineering. Recently, deep learning-based models, especially Transformer-based
large language models (LLMs), have demonstrated remarkable potential in
tackling these tasks by leveraging massive open-source code data and
programming language features. However, the development and deployment of such
models often require expertise in both machine learning and software
engineering, creating a barrier for the model adoption. In this paper, we
present CodeTF, an open-source Transformer-based library for state-of-the-art
Code LLMs and code intelligence. Following the principles of modular design and
extensible framework, we design CodeTF with a unified interface to enable rapid
access and development across different types of models, datasets and tasks.
Our library supports a collection of pretrained Code LLM models and popular
code benchmarks, including a standardized interface to train and serve code
LLMs efficiently, and data features such as language-specific parsers and
utility functions for extracting code attributes. In this paper, we describe
the design principles, the architecture, key modules and components, and
compare with other related library tools. Finally, we hope CodeTF is able to
bridge the gap between machine learning/generative AI and software engineering,
providing a comprehensive open-source solution for developers, researchers, and
practitioners. | null | cs.SE | [
"cs.SE",
"cs.AI"
] |
2401.02117 | HF | Mobile ALOHA: Learning Bimanual Mobile Manipulation with Low-Cost Whole-Body Teleoperation | [
"Zipeng Fu",
"Tony Z. Zhao",
"Chelsea Finn"
] | 2024-01-04 | Imitation learning from human demonstrations has shown impressive performance
in robotics. However, most results focus on table-top manipulation, lacking the
mobility and dexterity necessary for generally useful tasks. In this work, we
develop a system for imitating mobile manipulation tasks that are bimanual and
require whole-body control. We first present Mobile ALOHA, a low-cost and
whole-body teleoperation system for data collection. It augments the ALOHA
system with a mobile base, and a whole-body teleoperation interface. Using data
collected with Mobile ALOHA, we then perform supervised behavior cloning and
find that co-training with existing static ALOHA datasets boosts performance on
mobile manipulation tasks. With 50 demonstrations for each task, co-training
can increase success rates by up to 90%, allowing Mobile ALOHA to autonomously
complete complex mobile manipulation tasks such as sauteing and serving a piece
of shrimp, opening a two-door wall cabinet to store heavy cooking pots, calling
and entering an elevator, and lightly rinsing a used pan using a kitchen
faucet. Project website: https://mobile-aloha.github.io | null | cs.RO | [
"cs.RO",
"cs.AI",
"cs.CV",
"cs.LG",
"cs.SY",
"eess.SY"
] |
2402.10211 | HF | Hierarchical State Space Models for Continuous Sequence-to-Sequence Modeling | [
"Raunaq Bhirangi",
"Chenyu Wang",
"Venkatesh Pattabiraman",
"Carmel Majidi",
"Abhinav Gupta",
"Tess Hellebrekers",
"Lerrel Pinto"
] | 2024-02-15 | Reasoning from sequences of raw sensory data is a ubiquitous problem across
fields ranging from medical devices to robotics. These problems often involve
using long sequences of raw sensor data (e.g. magnetometers, piezoresistors) to
predict sequences of desirable physical quantities (e.g. force, inertial
measurements). While classical approaches are powerful for locally-linear
prediction problems, they often fall short when using real-world sensors. These
sensors are typically non-linear, are affected by extraneous variables (e.g.
vibration), and exhibit data-dependent drift. For many problems, the prediction
task is exacerbated by small labeled datasets since obtaining ground-truth
labels requires expensive equipment. In this work, we present Hierarchical
State-Space Models (HiSS), a conceptually simple, new technique for continuous
sequential prediction. HiSS stacks structured state-space models on top of each
other to create a temporal hierarchy. Across six real-world sensor datasets,
from tactile-based state prediction to accelerometer-based inertial
measurement, HiSS outperforms state-of-the-art sequence models such as causal
Transformers, LSTMs, S4, and Mamba by at least 23% on MSE. Our experiments
further indicate that HiSS demonstrates efficient scaling to smaller datasets
and is compatible with existing data-filtering techniques. Code, datasets and
videos can be found on https://hiss-csp.github.io. | null | cs.LG | [
"cs.LG",
"cs.RO",
"eess.SP"
] |
2406.07522 | Both | Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modeling | [
"Liliang Ren",
"Yang Liu",
"Yadong Lu",
"Yelong Shen",
"Chen Liang",
"Weizhu Chen"
] | 2024-06-11 | Efficiently modeling sequences with infinite context length has been a
long-standing problem. Past works suffer from either the quadratic computation
complexity or the limited extrapolation ability on length generalization. In
this work, we present Samba, a simple hybrid architecture that layer-wise
combines Mamba, a selective State Space Model (SSM), with Sliding Window
Attention (SWA). Samba selectively compresses a given sequence into recurrent
hidden states while still maintaining the ability to precisely recall memories
with the attention mechanism. We scale Samba up to 3.8B parameters with 3.2T
training tokens and show that Samba substantially outperforms the
state-of-the-art models based on pure attention or SSMs on a wide range of
benchmarks. When trained on 4K length sequences, Samba can be efficiently
extrapolated to 256K context length with perfect memory recall and show
improved token predictions up to 1M context length. As a linear-time sequence
model, Samba enjoys a 3.73x higher throughput compared to Transformers with
grouped-query attention when processing user prompts of 128K length, and 3.64x
speedup when generating 64K tokens with unlimited streaming. A sample
implementation of Samba is publicly available in
https://github.com/microsoft/Samba. | null | cs.CL | [
"cs.CL",
"cs.LG"
] |
2308.13404 | HF | Relighting Neural Radiance Fields with Shadow and Highlight Hints | [
"Chong Zeng",
"Guojun Chen",
"Yue Dong",
"Pieter Peers",
"Hongzhi Wu",
"Xin Tong"
] | 2023-08-25 | This paper presents a novel neural implicit radiance representation for free
viewpoint relighting from a small set of unstructured photographs of an object
lit by a moving point light source different from the view position. We express
the shape as a signed distance function modeled by a multi layer perceptron. In
contrast to prior relightable implicit neural representations, we do not
disentangle the different reflectance components, but model both the local and
global reflectance at each point by a second multi layer perceptron that, in
addition, to density features, the current position, the normal (from the
signed distace function), view direction, and light position, also takes shadow
and highlight hints to aid the network in modeling the corresponding high
frequency light transport effects. These hints are provided as a suggestion,
and we leave it up to the network to decide how to incorporate these in the
final relit result. We demonstrate and validate our neural implicit
representation on synthetic and real scenes exhibiting a wide variety of
shapes, material properties, and global illumination light transport. | 10.1145/3588432.3591482 | cs.CV | [
"cs.CV",
"cs.GR"
] |
2309.08051 | HF | Retrieval-Augmented Text-to-Audio Generation | [
"Yi Yuan",
"Haohe Liu",
"Xubo Liu",
"Qiushi Huang",
"Mark D. Plumbley",
"Wenwu Wang"
] | 2023-09-14 | Despite recent progress in text-to-audio (TTA) generation, we show that the
state-of-the-art models, such as AudioLDM, trained on datasets with an
imbalanced class distribution, such as AudioCaps, are biased in their
generation performance. Specifically, they excel in generating common audio
classes while underperforming in the rare ones, thus degrading the overall
generation performance. We refer to this problem as long-tailed text-to-audio
generation. To address this issue, we propose a simple retrieval-augmented
approach for TTA models. Specifically, given an input text prompt, we first
leverage a Contrastive Language Audio Pretraining (CLAP) model to retrieve
relevant text-audio pairs. The features of the retrieved audio-text data are
then used as additional conditions to guide the learning of TTA models. We
enhance AudioLDM with our proposed approach and denote the resulting augmented
system as Re-AudioLDM. On the AudioCaps dataset, Re-AudioLDM achieves a
state-of-the-art Frechet Audio Distance (FAD) of 1.37, outperforming the
existing approaches by a large margin. Furthermore, we show that Re-AudioLDM
can generate realistic audio for complex scenes, rare audio classes, and even
unseen audio types, indicating its potential in TTA tasks. | null | cs.SD | [
"cs.SD",
"cs.AI",
"cs.MM",
"eess.AS"
] |
2403.03956 | HF | Backtracing: Retrieving the Cause of the Query | [
"Rose E. Wang",
"Pawan Wirawarn",
"Omar Khattab",
"Noah Goodman",
"Dorottya Demszky"
] | 2024-03-06 | Many online content portals allow users to ask questions to supplement their
understanding (e.g., of lectures). While information retrieval (IR) systems may
provide answers for such user queries, they do not directly assist content
creators -- such as lecturers who want to improve their content -- identify
segments that _caused_ a user to ask those questions. We introduce the task of
backtracing, in which systems retrieve the text segment that most likely caused
a user query. We formalize three real-world domains for which backtracing is
important in improving content delivery and communication: understanding the
cause of (a) student confusion in the Lecture domain, (b) reader curiosity in
the News Article domain, and (c) user emotion in the Conversation domain. We
evaluate the zero-shot performance of popular information retrieval methods and
language modeling methods, including bi-encoder, re-ranking and
likelihood-based methods and ChatGPT. While traditional IR systems retrieve
semantically relevant information (e.g., details on "projection matrices" for a
query "does projecting multiple times still lead to the same point?"), they
often miss the causally relevant context (e.g., the lecturer states "projecting
twice gets me the same answer as one projection"). Our results show that there
is room for improvement on backtracing and it requires new retrieval
approaches. We hope our benchmark serves to improve future retrieval systems
for backtracing, spawning systems that refine content generation and identify
linguistic triggers influencing user queries. Our code and data are
open-sourced: https://github.com/rosewang2008/backtracing. | null | cs.IR | [
"cs.IR",
"cs.CL"
] |
2306.08161 | HF | h2oGPT: Democratizing Large Language Models | [
"Arno Candel",
"Jon McKinney",
"Philipp Singer",
"Pascal Pfeiffer",
"Maximilian Jeblick",
"Prithvi Prabhu",
"Jeff Gambera",
"Mark Landry",
"Shivam Bansal",
"Ryan Chesler",
"Chun Ming Lee",
"Marcos V. Conde",
"Pasha Stetsenko",
"Olivier Grellier",
"SriSatish Ambati"
] | 2023-06-13 | Applications built on top of Large Language Models (LLMs) such as GPT-4
represent a revolution in AI due to their human-level capabilities in natural
language processing. However, they also pose many significant risks such as the
presence of biased, private, or harmful text, and the unauthorized inclusion of
copyrighted material.
We introduce h2oGPT, a suite of open-source code repositories for the
creation and use of LLMs based on Generative Pretrained Transformers (GPTs).
The goal of this project is to create the world's best truly open-source
alternative to closed-source approaches. In collaboration with and as part of
the incredible and unstoppable open-source community, we open-source several
fine-tuned h2oGPT models from 7 to 40 Billion parameters, ready for commercial
use under fully permissive Apache 2.0 licenses. Included in our release is
100\% private document search using natural language.
Open-source language models help boost AI development and make it more
accessible and trustworthy. They lower entry hurdles, allowing people and
groups to tailor these models to their needs. This openness increases
innovation, transparency, and fairness. An open-source strategy is needed to
share AI benefits fairly, and H2O.ai will continue to democratize AI and LLMs. | null | cs.CL | [
"cs.CL",
"cs.AI",
"cs.HC",
"cs.IR",
"cs.LG"
] |
2306.08276 | HF | TryOnDiffusion: A Tale of Two UNets | [
"Luyang Zhu",
"Dawei Yang",
"Tyler Zhu",
"Fitsum Reda",
"William Chan",
"Chitwan Saharia",
"Mohammad Norouzi",
"Ira Kemelmacher-Shlizerman"
] | 2023-06-14 | Given two images depicting a person and a garment worn by another person, our
goal is to generate a visualization of how the garment might look on the input
person. A key challenge is to synthesize a photorealistic detail-preserving
visualization of the garment, while warping the garment to accommodate a
significant body pose and shape change across the subjects. Previous methods
either focus on garment detail preservation without effective pose and shape
variation, or allow try-on with the desired shape and pose but lack garment
details. In this paper, we propose a diffusion-based architecture that unifies
two UNets (referred to as Parallel-UNet), which allows us to preserve garment
details and warp the garment for significant pose and body change in a single
network. The key ideas behind Parallel-UNet include: 1) garment is warped
implicitly via a cross attention mechanism, 2) garment warp and person blend
happen as part of a unified process as opposed to a sequence of two separate
tasks. Experimental results indicate that TryOnDiffusion achieves
state-of-the-art performance both qualitatively and quantitatively. | null | cs.CV | [
"cs.CV",
"cs.GR"
] |
2401.02994 | HF | Blending Is All You Need: Cheaper, Better Alternative to Trillion-Parameters LLM | [
"Xiaoding Lu",
"Zongyi Liu",
"Adian Liusie",
"Vyas Raina",
"Vineet Mudupalli",
"Yuwen Zhang",
"William Beauchamp"
] | 2024-01-04 | In conversational AI research, there's a noticeable trend towards developing
models with a larger number of parameters, exemplified by models like ChatGPT.
While these expansive models tend to generate increasingly better chat
responses, they demand significant computational resources and memory. This
study explores a pertinent question: Can a combination of smaller models
collaboratively achieve comparable or enhanced performance relative to a
singular large model? We introduce an approach termed "blending", a
straightforward yet effective method of integrating multiple chat AIs. Our
empirical evidence suggests that when specific smaller models are
synergistically blended, they can potentially outperform or match the
capabilities of much larger counterparts. For instance, integrating just three
models of moderate size (6B/13B paramaeters) can rival or even surpass the
performance metrics of a substantially larger model like ChatGPT (175B+
paramaters). This hypothesis is rigorously tested using A/B testing
methodologies with a large user base on the Chai research platform over a span
of thirty days. The findings underscore the potential of the "blending"
strategy as a viable approach for enhancing chat AI efficacy without a
corresponding surge in computational demands. | null | cs.CL | [
"cs.CL",
"cs.AI"
] |
2309.11009 | HF | Controllable Dynamic Appearance for Neural 3D Portraits | [
"ShahRukh Athar",
"Zhixin Shu",
"Zexiang Xu",
"Fujun Luan",
"Sai Bi",
"Kalyan Sunkavalli",
"Dimitris Samaras"
] | 2023-09-20 | Recent advances in Neural Radiance Fields (NeRFs) have made it possible to
reconstruct and reanimate dynamic portrait scenes with control over head-pose,
facial expressions and viewing direction. However, training such models assumes
photometric consistency over the deformed region e.g. the face must be evenly
lit as it deforms with changing head-pose and facial expression. Such
photometric consistency across frames of a video is hard to maintain, even in
studio environments, thus making the created reanimatable neural portraits
prone to artifacts during reanimation. In this work, we propose CoDyNeRF, a
system that enables the creation of fully controllable 3D portraits in
real-world capture conditions. CoDyNeRF learns to approximate illumination
dependent effects via a dynamic appearance model in the canonical space that is
conditioned on predicted surface normals and the facial expressions and
head-pose deformations. The surface normals prediction is guided using 3DMM
normals that act as a coarse prior for the normals of the human head, where
direct prediction of normals is hard due to rigid and non-rigid deformations
induced by head-pose and facial expression changes. Using only a
smartphone-captured short video of a subject for training, we demonstrate the
effectiveness of our method on free view synthesis of a portrait scene with
explicit head pose and expression controls, and realistic lighting effects. The
project page can be found here:
http://shahrukhathar.github.io/2023/08/22/CoDyNeRF.html | null | cs.CV | [
"cs.CV"
] |
2409.07314 | HF | MEDIC: Towards a Comprehensive Framework for Evaluating LLMs in Clinical Applications | [
"Praveen K Kanithi",
"Clément Christophe",
"Marco AF Pimentel",
"Tathagata Raha",
"Nada Saadi",
"Hamza Javed",
"Svetlana Maslenkova",
"Nasir Hayat",
"Ronnie Rajan",
"Shadab Khan"
] | 2024-09-11 | The rapid development of Large Language Models (LLMs) for healthcare
applications has spurred calls for holistic evaluation beyond frequently-cited
benchmarks like USMLE, to better reflect real-world performance. While
real-world assessments are valuable indicators of utility, they often lag
behind the pace of LLM evolution, likely rendering findings obsolete upon
deployment. This temporal disconnect necessitates a comprehensive upfront
evaluation that can guide model selection for specific clinical applications.
We introduce MEDIC, a framework assessing LLMs across five critical dimensions
of clinical competence: medical reasoning, ethics and bias, data and language
understanding, in-context learning, and clinical safety. MEDIC features a novel
cross-examination framework quantifying LLM performance across areas like
coverage and hallucination detection, without requiring reference outputs. We
apply MEDIC to evaluate LLMs on medical question-answering, safety,
summarization, note generation, and other tasks. Our results show performance
disparities across model sizes, baseline vs medically finetuned models, and
have implications on model selection for applications requiring specific model
strengths, such as low hallucination or lower cost of inference. MEDIC's
multifaceted evaluation reveals these performance trade-offs, bridging the gap
between theoretical capabilities and practical implementation in healthcare
settings, ensuring that the most promising models are identified and adapted
for diverse healthcare applications. | null | cs.CL | [
"cs.CL",
"cs.AI"
] |
2302.01398 | AnswerAI | The unreasonable effectiveness of few-shot learning for machine translation | [
"Xavier Garcia",
"Yamini Bansal",
"Colin Cherry",
"George Foster",
"Maxim Krikun",
"Fangxiaoyu Feng",
"Melvin Johnson",
"Orhan Firat"
] | 2023-02-02 | We demonstrate the potential of few-shot translation systems, trained with
unpaired language data, for both high and low-resource language pairs. We show
that with only 5 examples of high-quality translation data shown at inference,
a transformer decoder-only model trained solely with self-supervised learning,
is able to match specialized supervised state-of-the-art models as well as more
general commercial translation systems. In particular, we outperform the best
performing system on the WMT'21 English - Chinese news translation task by only
using five examples of English - Chinese parallel data at inference. Moreover,
our approach in building these models does not necessitate joint multilingual
training or back-translation, is conceptually simple and shows the potential to
extend to the multilingual setting. Furthermore, the resulting models are two
orders of magnitude smaller than state-of-the-art language models. We then
analyze the factors which impact the performance of few-shot translation
systems, and highlight that the quality of the few-shot demonstrations heavily
determines the quality of the translations generated by our models. Finally, we
show that the few-shot paradigm also provides a way to control certain
attributes of the translation -- we show that we are able to control for
regional varieties and formality using only a five examples at inference,
paving the way towards controllable machine translation systems. | null | cs.CL | [
"cs.CL"
] |
2312.12865 | HF | RadEdit: stress-testing biomedical vision models via diffusion image editing | [
"Fernando Pérez-García",
"Sam Bond-Taylor",
"Pedro P. Sanchez",
"Boris van Breugel",
"Daniel C. Castro",
"Harshita Sharma",
"Valentina Salvatelli",
"Maria T. A. Wetscherek",
"Hannah Richardson",
"Matthew P. Lungren",
"Aditya Nori",
"Javier Alvarez-Valle",
"Ozan Oktay",
"Maximilian Ilse"
] | 2023-12-20 | Biomedical imaging datasets are often small and biased, meaning that
real-world performance of predictive models can be substantially lower than
expected from internal testing. This work proposes using generative image
editing to simulate dataset shifts and diagnose failure modes of biomedical
vision models; this can be used in advance of deployment to assess readiness,
potentially reducing cost and patient harm. Existing editing methods can
produce undesirable changes, with spurious correlations learned due to the
co-occurrence of disease and treatment interventions, limiting practical
applicability. To address this, we train a text-to-image diffusion model on
multiple chest X-ray datasets and introduce a new editing method RadEdit that
uses multiple masks, if present, to constrain changes and ensure consistency in
the edited images. We consider three types of dataset shifts: acquisition
shift, manifestation shift, and population shift, and demonstrate that our
approach can diagnose failures and quantify model robustness without additional
data collection, complementing more qualitative tools for explainable AI. | null | cs.CV | [
"cs.CV",
"cs.AI"
] |
2404.12358 | AnswerAI | From $r$ to $Q^*$: Your Language Model is Secretly a Q-Function | [
"Rafael Rafailov",
"Joey Hejna",
"Ryan Park",
"Chelsea Finn"
] | 2024-04-18 | Reinforcement Learning From Human Feedback (RLHF) has been critical to the
success of the latest generation of generative AI models. In response to the
complex nature of the classical RLHF pipeline, direct alignment algorithms such
as Direct Preference Optimization (DPO) have emerged as an alternative
approach. Although DPO solves the same objective as the standard RLHF setup,
there is a mismatch between the two approaches. Standard RLHF deploys
reinforcement learning in a specific token-level MDP, while DPO is derived as a
bandit problem in which the whole response of the model is treated as a single
arm. In this work we rectify this difference. We theoretically show that we can
derive DPO in the token-level MDP as a general inverse Q-learning algorithm,
which satisfies the Bellman equation. Using our theoretical results, we provide
three concrete empirical insights. First, we show that because of its token
level interpretation, DPO is able to perform some type of credit assignment.
Next, we prove that under the token level formulation, classical search-based
algorithms, such as MCTS, which have recently been applied to the language
generation space, are equivalent to likelihood-based search on a DPO policy.
Empirically we show that a simple beam search yields meaningful improvement
over the base DPO policy. Finally, we show how the choice of reference policy
causes implicit rewards to decline during training. We conclude by discussing
applications of our work, including information elicitation in multi-turn
dialogue, reasoning, agentic applications and end-to-end training of
multi-model systems. | null | cs.LG | [
"cs.LG"
] |
2305.15779 | HF | Custom-Edit: Text-Guided Image Editing with Customized Diffusion Models | [
"Jooyoung Choi",
"Yunjey Choi",
"Yunji Kim",
"Junho Kim",
"Sungroh Yoon"
] | 2023-05-25 | Text-to-image diffusion models can generate diverse, high-fidelity images
based on user-provided text prompts. Recent research has extended these models
to support text-guided image editing. While text guidance is an intuitive
editing interface for users, it often fails to ensure the precise concept
conveyed by users. To address this issue, we propose Custom-Edit, in which we
(i) customize a diffusion model with a few reference images and then (ii)
perform text-guided editing. Our key discovery is that customizing only
language-relevant parameters with augmented prompts improves reference
similarity significantly while maintaining source similarity. Moreover, we
provide our recipe for each customization and editing process. We compare
popular customization methods and validate our findings on two editing methods
using various datasets. | null | cs.CV | [
"cs.CV"
] |
2406.07887 | AnswerAI | An Empirical Study of Mamba-based Language Models | [
"Roger Waleffe",
"Wonmin Byeon",
"Duncan Riach",
"Brandon Norick",
"Vijay Korthikanti",
"Tri Dao",
"Albert Gu",
"Ali Hatamizadeh",
"Sudhakar Singh",
"Deepak Narayanan",
"Garvit Kulshreshtha",
"Vartika Singh",
"Jared Casper",
"Jan Kautz",
"Mohammad Shoeybi",
"Bryan Catanzaro"
] | 2024-06-12 | Selective state-space models (SSMs) like Mamba overcome some of the
shortcomings of Transformers, such as quadratic computational complexity with
sequence length and large inference-time memory requirements from the key-value
cache. Moreover, recent studies have shown that SSMs can match or exceed the
language modeling capabilities of Transformers, making them an attractive
alternative. In a controlled setting (e.g., same data), however, studies so far
have only presented small scale experiments comparing SSMs to Transformers. To
understand the strengths and weaknesses of these architectures at larger
scales, we present a direct comparison between 8B-parameter Mamba, Mamba-2, and
Transformer models trained on the same datasets of up to 3.5T tokens. We also
compare these models to a hybrid architecture consisting of 43% Mamba-2, 7%
attention, and 50% MLP layers (Mamba-2-Hybrid). Using a diverse set of tasks,
we answer the question of whether Mamba models can match Transformers at larger
training budgets. Our results show that while pure SSMs match or exceed
Transformers on many tasks, they lag behind Transformers on tasks which require
strong copying or in-context learning abilities (e.g., 5-shot MMLU, Phonebook)
or long-context reasoning. In contrast, we find that the 8B Mamba-2-Hybrid
exceeds the 8B Transformer on all 12 standard tasks we evaluated (+2.65 points
on average) and is predicted to be up to 8x faster when generating tokens at
inference time. To validate long-context capabilities, we provide additional
experiments evaluating variants of the Mamba-2-Hybrid and Transformer extended
to support 16K, 32K, and 128K sequences. On an additional 23 long-context
tasks, the hybrid model continues to closely match or exceed the Transformer on
average. To enable further study, we release the checkpoints as well as the
code used to train our models as part of NVIDIA's Megatron-LM project. | null | cs.LG | [
"cs.LG",
"cs.CL"
] |
2406.05629 | HF | Separating the "Chirp" from the "Chat": Self-supervised Visual Grounding of Sound and Language | [
"Mark Hamilton",
"Andrew Zisserman",
"John R. Hershey",
"William T. Freeman"
] | 2024-06-09 | We present DenseAV, a novel dual encoder grounding architecture that learns
high-resolution, semantically meaningful, and audio-visually aligned features
solely through watching videos. We show that DenseAV can discover the
``meaning'' of words and the ``location'' of sounds without explicit
localization supervision. Furthermore, it automatically discovers and
distinguishes between these two types of associations without supervision. We
show that DenseAV's localization abilities arise from a new multi-head feature
aggregation operator that directly compares dense image and audio
representations for contrastive learning. In contrast, many other systems that
learn ``global'' audio and video representations cannot localize words and
sound. Finally, we contribute two new datasets to improve the evaluation of AV
representations through speech and sound prompted semantic segmentation. On
these and other datasets we show DenseAV dramatically outperforms the prior art
on speech and sound prompted semantic segmentation. DenseAV outperforms the
previous state-of-the-art, ImageBind, on cross-modal retrieval using fewer than
half of the parameters. Project Page:
\href{https://aka.ms/denseav}{https://aka.ms/denseav} | null | cs.CV | [
"cs.CV",
"cs.CL",
"cs.IR",
"cs.LG",
"cs.SD",
"eess.AS"
] |
2404.03204 | HF | RALL-E: Robust Codec Language Modeling with Chain-of-Thought Prompting for Text-to-Speech Synthesis | [
"Detai Xin",
"Xu Tan",
"Kai Shen",
"Zeqian Ju",
"Dongchao Yang",
"Yuancheng Wang",
"Shinnosuke Takamichi",
"Hiroshi Saruwatari",
"Shujie Liu",
"Jinyu Li",
"Sheng Zhao"
] | 2024-04-04 | We present RALL-E, a robust language modeling method for text-to-speech (TTS)
synthesis. While previous work based on large language models (LLMs) shows
impressive performance on zero-shot TTS, such methods often suffer from poor
robustness, such as unstable prosody (weird pitch and rhythm/duration) and a
high word error rate (WER), due to the autoregressive prediction style of
language models. The core idea behind RALL-E is chain-of-thought (CoT)
prompting, which decomposes the task into simpler steps to enhance the
robustness of LLM-based TTS. To accomplish this idea, RALL-E first predicts
prosody features (pitch and duration) of the input text and uses them as
intermediate conditions to predict speech tokens in a CoT style. Second, RALL-E
utilizes the predicted duration prompt to guide the computing of self-attention
weights in Transformer to enforce the model to focus on the corresponding
phonemes and prosody features when predicting speech tokens. Results of
comprehensive objective and subjective evaluations demonstrate that, compared
to a powerful baseline method VALL-E, RALL-E significantly improves the WER of
zero-shot TTS from $5.6\%$ (without reranking) and $1.7\%$ (with reranking) to
$2.5\%$ and $1.0\%$, respectively. Furthermore, we demonstrate that RALL-E
correctly synthesizes sentences that are hard for VALL-E and reduces the error
rate from $68\%$ to $4\%$. | null | eess.AS | [
"eess.AS",
"cs.AI",
"cs.CL",
"cs.LG",
"cs.SD"
] |
2404.12753 | HF | AutoCrawler: A Progressive Understanding Web Agent for Web Crawler Generation | [
"Wenhao Huang",
"Chenghao Peng",
"Zhixu Li",
"Jiaqing Liang",
"Yanghua Xiao",
"Liqian Wen",
"Zulong Chen"
] | 2024-04-19 | Web automation is a significant technique that accomplishes complicated web
tasks by automating common web actions, enhancing operational efficiency, and
reducing the need for manual intervention. Traditional methods, such as
wrappers, suffer from limited adaptability and scalability when faced with a
new website. On the other hand, generative agents empowered by large language
models (LLMs) exhibit poor performance and reusability in open-world scenarios.
In this work, we introduce a crawler generation task for vertical information
web pages and the paradigm of combining LLMs with crawlers, which helps
crawlers handle diverse and changing web environments more efficiently. We
propose AutoCrawler, a two-stage framework that leverages the hierarchical
structure of HTML for progressive understanding. Through top-down and step-back
operations, AutoCrawler can learn from erroneous actions and continuously prune
HTML for better action generation. We conduct comprehensive experiments with
multiple LLMs and demonstrate the effectiveness of our framework. Resources of
this paper can be found at \url{https://github.com/EZ-hwh/AutoCrawler} | null | cs.CL | [
"cs.CL",
"cs.AI"
] |
2212.03551 | AnswerAI | Talking About Large Language Models | [
"Murray Shanahan"
] | 2022-12-07 | Thanks to rapid progress in artificial intelligence, we have entered an era
when technology and philosophy intersect in interesting ways. Sitting squarely
at the centre of this intersection are large language models (LLMs). The more
adept LLMs become at mimicking human language, the more vulnerable we become to
anthropomorphism, to seeing the systems in which they are embedded as more
human-like than they really are. This trend is amplified by the natural
tendency to use philosophically loaded terms, such as "knows", "believes", and
"thinks", when describing these systems. To mitigate this trend, this paper
advocates the practice of repeatedly stepping back to remind ourselves of how
LLMs, and the systems of which they form a part, actually work. The hope is
that increased scientific precision will encourage more philosophical nuance in
the discourse around artificial intelligence, both within the field and in the
public sphere. | null | cs.CL | [
"cs.CL",
"cs.LG"
] |
2308.07903 | HF | Relightable and Animatable Neural Avatar from Sparse-View Video | [
"Zhen Xu",
"Sida Peng",
"Chen Geng",
"Linzhan Mou",
"Zihan Yan",
"Jiaming Sun",
"Hujun Bao",
"Xiaowei Zhou"
] | 2023-08-15 | This paper tackles the challenge of creating relightable and animatable
neural avatars from sparse-view (or even monocular) videos of dynamic humans
under unknown illumination. Compared to studio environments, this setting is
more practical and accessible but poses an extremely challenging ill-posed
problem. Previous neural human reconstruction methods are able to reconstruct
animatable avatars from sparse views using deformed Signed Distance Fields
(SDF) but cannot recover material parameters for relighting. While
differentiable inverse rendering-based methods have succeeded in material
recovery of static objects, it is not straightforward to extend them to dynamic
humans as it is computationally intensive to compute pixel-surface intersection
and light visibility on deformed SDFs for inverse rendering. To solve this
challenge, we propose a Hierarchical Distance Query (HDQ) algorithm to
approximate the world space distances under arbitrary human poses.
Specifically, we estimate coarse distances based on a parametric human model
and compute fine distances by exploiting the local deformation invariance of
SDF. Based on the HDQ algorithm, we leverage sphere tracing to efficiently
estimate the surface intersection and light visibility. This allows us to
develop the first system to recover animatable and relightable neural avatars
from sparse view (or monocular) inputs. Experiments demonstrate that our
approach is able to produce superior results compared to state-of-the-art
methods. Our code will be released for reproducibility. | null | cs.CV | [
"cs.CV",
"cs.AI",
"cs.GR"
] |
2405.07863 | Both | RLHF Workflow: From Reward Modeling to Online RLHF | [
"Hanze Dong",
"Wei Xiong",
"Bo Pang",
"Haoxiang Wang",
"Han Zhao",
"Yingbo Zhou",
"Nan Jiang",
"Doyen Sahoo",
"Caiming Xiong",
"Tong Zhang"
] | 2024-05-13 | We present the workflow of Online Iterative Reinforcement Learning from Human
Feedback (RLHF) in this technical report, which is widely reported to
outperform its offline counterpart by a large margin in the recent large
language model (LLM) literature. However, existing open-source RLHF projects
are still largely confined to the offline learning setting. In this technical
report, we aim to fill in this gap and provide a detailed recipe that is easy
to reproduce for online iterative RLHF. In particular, since online human
feedback is usually infeasible for open-source communities with limited
resources, we start by constructing preference models using a diverse set of
open-source datasets and use the constructed proxy preference model to
approximate human feedback. Then, we discuss the theoretical insights and
algorithmic principles behind online iterative RLHF, followed by a detailed
practical implementation. Our trained LLM, LLaMA-3-8B-SFR-Iterative-DPO-R,
achieves impressive performance on LLM chatbot benchmarks, including
AlpacaEval-2, Arena-Hard, and MT-Bench, as well as other academic benchmarks
such as HumanEval and TruthfulQA. We have shown that supervised fine-tuning
(SFT) and iterative RLHF can obtain state-of-the-art performance with fully
open-source datasets. Further, we have made our models, curated datasets, and
comprehensive step-by-step code guidebooks publicly available. Please refer to
https://github.com/RLHFlow/RLHF-Reward-Modeling and
https://github.com/RLHFlow/Online-RLHF for more detailed information. | null | cs.LG | [
"cs.LG",
"cs.AI",
"cs.CL",
"stat.ML"
] |
2404.05719 | HF | Ferret-UI: Grounded Mobile UI Understanding with Multimodal LLMs | [
"Keen You",
"Haotian Zhang",
"Eldon Schoop",
"Floris Weers",
"Amanda Swearngin",
"Jeffrey Nichols",
"Yinfei Yang",
"Zhe Gan"
] | 2024-04-08 | Recent advancements in multimodal large language models (MLLMs) have been
noteworthy, yet, these general-domain MLLMs often fall short in their ability
to comprehend and interact effectively with user interface (UI) screens. In
this paper, we present Ferret-UI, a new MLLM tailored for enhanced
understanding of mobile UI screens, equipped with referring, grounding, and
reasoning capabilities. Given that UI screens typically exhibit a more
elongated aspect ratio and contain smaller objects of interest (e.g., icons,
texts) than natural images, we incorporate "any resolution" on top of Ferret to
magnify details and leverage enhanced visual features. Specifically, each
screen is divided into 2 sub-images based on the original aspect ratio (i.e.,
horizontal division for portrait screens and vertical division for landscape
screens). Both sub-images are encoded separately before being sent to LLMs. We
meticulously gather training samples from an extensive range of elementary UI
tasks, such as icon recognition, find text, and widget listing. These samples
are formatted for instruction-following with region annotations to facilitate
precise referring and grounding. To augment the model's reasoning ability, we
further compile a dataset for advanced tasks, including detailed description,
perception/interaction conversations, and function inference. After training on
the curated datasets, Ferret-UI exhibits outstanding comprehension of UI
screens and the capability to execute open-ended instructions. For model
evaluation, we establish a comprehensive benchmark encompassing all the
aforementioned tasks. Ferret-UI excels not only beyond most open-source UI
MLLMs, but also surpasses GPT-4V on all the elementary UI tasks. | null | cs.CV | [
"cs.CV",
"cs.CL",
"cs.HC"
] |
2407.06533 | HF | LETS-C: Leveraging Language Embedding for Time Series Classification | [
"Rachneet Kaur",
"Zhen Zeng",
"Tucker Balch",
"Manuela Veloso"
] | 2024-07-09 | Recent advancements in language modeling have shown promising results when
applied to time series data. In particular, fine-tuning pre-trained large
language models (LLMs) for time series classification tasks has achieved
state-of-the-art (SOTA) performance on standard benchmarks. However, these
LLM-based models have a significant drawback due to the large model size, with
the number of trainable parameters in the millions. In this paper, we propose
an alternative approach to leveraging the success of language modeling in the
time series domain. Instead of fine-tuning LLMs, we utilize a language
embedding model to embed time series and then pair the embeddings with a simple
classification head composed of convolutional neural networks (CNN) and
multilayer perceptron (MLP). We conducted extensive experiments on
well-established time series classification benchmark datasets. We demonstrated
LETS-C not only outperforms the current SOTA in classification accuracy but
also offers a lightweight solution, using only 14.5% of the trainable
parameters on average compared to the SOTA model. Our findings suggest that
leveraging language encoders to embed time series data, combined with a simple
yet effective classification head, offers a promising direction for achieving
high-performance time series classification while maintaining a lightweight
model architecture. | null | cs.LG | [
"cs.LG",
"cs.AI",
"cs.CE",
"cs.CL",
"stat.ME"
] |
2401.12474 | HF | Large Language Models are Superpositions of All Characters: Attaining Arbitrary Role-play via Self-Alignment | [
"Keming Lu",
"Bowen Yu",
"Chang Zhou",
"Jingren Zhou"
] | 2024-01-23 | Considerable efforts have been invested in augmenting the role-playing
proficiency of open-source large language models (LLMs) by emulating
proprietary counterparts. Nevertheless, we posit that LLMs inherently harbor
role-play capabilities, owing to the extensive knowledge of characters and
potential dialogues ingrained in their vast training corpora. Thus, in this
study, we introduce Ditto, a self-alignment method for role-play. Ditto
capitalizes on character knowledge, encouraging an instruction-following LLM to
simulate role-play dialogues as a variant of reading comprehension. This method
creates a role-play training set comprising 4,000 characters, surpassing the
scale of currently available datasets by tenfold regarding the number of roles.
Subsequently, we fine-tune the LLM using this self-generated dataset to augment
its role-playing capabilities. Upon evaluating our meticulously constructed and
reproducible role-play benchmark and the roleplay subset of MT-Bench, Ditto, in
various parameter scales, consistently maintains a consistent role identity and
provides accurate role-specific knowledge in multi-turn role-play
conversations. Notably, it outperforms all open-source role-play baselines,
showcasing performance levels comparable to advanced proprietary chatbots.
Furthermore, we present the first comprehensive cross-supervision alignment
experiment in the role-play domain, revealing that the intrinsic capabilities
of LLMs confine the knowledge within role-play. Meanwhile, the role-play styles
can be easily acquired with the guidance of smaller models. We open-source
related resources at https://github.com/OFA-Sys/Ditto. | null | cs.CL | [
"cs.CL",
"cs.LG"
] |
2401.15024 | HF | SliceGPT: Compress Large Language Models by Deleting Rows and Columns | [
"Saleh Ashkboos",
"Maximilian L. Croci",
"Marcelo Gennari do Nascimento",
"Torsten Hoefler",
"James Hensman"
] | 2024-01-26 | Large language models have become the cornerstone of natural language
processing, but their use comes with substantial costs in terms of compute and
memory resources. Sparsification provides a solution to alleviate these
resource constraints, and recent works have shown that trained models can be
sparsified post-hoc. Existing sparsification techniques face challenges as they
need additional data structures and offer constrained speedup with current
hardware. In this paper we present SliceGPT, a new post-training sparsification
scheme which replaces each weight matrix with a smaller (dense) matrix,
reducing the embedding dimension of the network. Through extensive
experimentation, we show that SliceGPT can remove up to 25% of the model
parameters (including embeddings) for LLAMA2-70B, OPT 66B and Phi-2 models
while maintaining 99%, 99% and 90% zero-shot task performance of the dense
model respectively. Our sliced models run on fewer GPUs and run faster without
any additional code optimization: on 24GB consumer GPUs we reduce the total
compute for inference on LLAMA2-70B to 64% of that of the dense model; on 40GB
A100 GPUs we reduce it to 66%. We offer a new insight, computational invariance
in transformer networks, which enables SliceGPT and we hope it will inspire and
enable future avenues to reduce memory and computation demands for pre-trained
models. Code is available at:
https://github.com/microsoft/TransformerCompression | null | cs.LG | [
"cs.LG",
"cs.CL"
] |
2312.14385 | HF | Generative AI Beyond LLMs: System Implications of Multi-Modal Generation | [
"Alicia Golden",
"Samuel Hsia",
"Fei Sun",
"Bilge Acun",
"Basil Hosmer",
"Yejin Lee",
"Zachary DeVito",
"Jeff Johnson",
"Gu-Yeon Wei",
"David Brooks",
"Carole-Jean Wu"
] | 2023-12-22 | As the development of large-scale Generative AI models evolve beyond text
(1D) generation to include image (2D) and video (3D) generation, processing
spatial and temporal information presents unique challenges to quality,
performance, and efficiency. We present the first work towards understanding
this new system design space for multi-modal text-to-image (TTI) and
text-to-video (TTV) generation models. Current model architecture designs are
bifurcated into 2 categories: Diffusion- and Transformer-based models. Our
systematic performance characterization on a suite of eight representative
TTI/TTV models shows that after state-of-the-art optimization techniques such
as Flash Attention are applied, Convolution accounts for up to 44% of execution
time for Diffusion-based TTI models, while Linear layers consume up to 49% of
execution time for Transformer-based models. We additionally observe that
Diffusion-based TTI models resemble the Prefill stage of LLM inference, and
benefit from 1.1-2.5x greater speedup from Flash Attention than
Transformer-based TTI models that resemble the Decode phase. Since
optimizations designed for LLMs do not map directly onto TTI/TTV models, we
must conduct a thorough characterization of these workloads to gain insights
for new optimization opportunities. In doing so, we define sequence length in
the context of TTI/TTV models and observe sequence length can vary up to 4x in
Diffusion model inference. We additionally observe temporal aspects of TTV
workloads pose unique system bottlenecks, with Temporal Attention accounting
for over 60% of total Attention time. Overall, our in-depth system performance
characterization is a critical first step towards designing efficient and
deployable systems for emerging TTI/TTV workloads. | null | cs.DC | [
"cs.DC",
"cs.LG",
"cs.MM"
] |
2401.10774 | Both | Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads | [
"Tianle Cai",
"Yuhong Li",
"Zhengyang Geng",
"Hongwu Peng",
"Jason D. Lee",
"Deming Chen",
"Tri Dao"
] | 2024-01-19 | Large Language Models (LLMs) employ auto-regressive decoding that requires
sequential computation, with each step reliant on the previous one's output.
This creates a bottleneck as each step necessitates moving the full model
parameters from High-Bandwidth Memory (HBM) to the accelerator's cache. While
methods such as speculative decoding have been suggested to address this issue,
their implementation is impeded by the challenges associated with acquiring and
maintaining a separate draft model. In this paper, we present Medusa, an
efficient method that augments LLM inference by adding extra decoding heads to
predict multiple subsequent tokens in parallel. Using a tree-based attention
mechanism, Medusa constructs multiple candidate continuations and verifies them
simultaneously in each decoding step. By leveraging parallel processing, Medusa
substantially reduces the number of decoding steps required. We present two
levels of fine-tuning procedures for Medusa to meet the needs of different use
cases: Medusa-1: Medusa is directly fine-tuned on top of a frozen backbone LLM,
enabling lossless inference acceleration. Medusa-2: Medusa is fine-tuned
together with the backbone LLM, enabling better prediction accuracy of Medusa
heads and higher speedup but needing a special training recipe that preserves
the backbone model's capabilities.
Moreover, we propose several extensions that improve or expand the utility of
Medusa, including a self-distillation to handle situations where no training
data is available and a typical acceptance scheme to boost the acceptance rate
while maintaining generation quality. We evaluate Medusa on models of various
sizes and training procedures. Our experiments demonstrate that Medusa-1 can
achieve over 2.2x speedup without compromising generation quality, while
Medusa-2 further improves the speedup to 2.3-3.6x. | null | cs.LG | [
"cs.LG",
"cs.CL"
] |
2312.14203 | HF | Shai: A large language model for asset management | [
"Zhongyang Guo",
"Guanran Jiang",
"Zhongdan Zhang",
"Peng Li",
"Zhefeng Wang",
"Yinchun Wang"
] | 2023-12-21 | This paper introduces "Shai" a 10B level large language model specifically
designed for the asset management industry, built upon an open-source
foundational model. With continuous pre-training and fine-tuning using a
targeted corpus, Shai demonstrates enhanced performance in tasks relevant to
its domain, outperforming baseline models. Our research includes the
development of an innovative evaluation framework, which integrates
professional qualification exams, tailored tasks, open-ended question
answering, and safety assessments, to comprehensively assess Shai's
capabilities. Furthermore, we discuss the challenges and implications of
utilizing large language models like GPT-4 for performance assessment in asset
management, suggesting a combination of automated evaluation and human
judgment. Shai's development, showcasing the potential and versatility of
10B-level large language models in the financial sector with significant
performance and modest computational requirements, hopes to provide practical
insights and methodologies to assist industry peers in their similar endeavors. | null | q-fin.PM | [
"q-fin.PM",
"cs.CL",
"cs.LG"
] |
2405.14908 | HF | Data Mixing Made Efficient: A Bivariate Scaling Law for Language Model Pretraining | [
"Ce Ge",
"Zhijian Ma",
"Daoyuan Chen",
"Yaliang Li",
"Bolin Ding"
] | 2024-05-23 | Large language models exhibit exceptional generalization capabilities,
primarily attributed to the utilization of diversely sourced data. However,
conventional practices in integrating this diverse data heavily rely on
heuristic schemes, lacking theoretical guidance. This research tackles these
limitations by investigating strategies based on low-cost proxies for data
mixtures, with the aim of streamlining data curation to enhance training
efficiency. Specifically, we propose a unified scaling law, termed
$\textbf{BiMix}$, which accurately models the bivariate scaling behaviors of
both data quantity and mixing proportions. We conduct systematic experiments
and provide empirical evidence for the predictive power and fundamental
principles of $\textbf{BiMix}$. Notably, our findings reveal that
entropy-driven training-free data mixtures can achieve comparable or even
better performance than more resource-intensive methods. We hope that our
quantitative insights can shed light on further judicious research and
development in cost-effective language modeling. | null | cs.LG | [
"cs.LG",
"cs.AI",
"cs.CL"
] |
2312.06353 | HF | Federated Full-Parameter Tuning of Billion-Sized Language Models with Communication Cost under 18 Kilobytes | [
"Zhen Qin",
"Daoyuan Chen",
"Bingchen Qian",
"Bolin Ding",
"Yaliang Li",
"Shuiguang Deng"
] | 2023-12-11 | Pre-trained large language models (LLMs) need fine-tuning to improve their
responsiveness to natural language instructions. Federated learning offers a
way to fine-tune LLMs using the abundant data on end devices without
compromising data privacy. Most existing federated fine-tuning methods for LLMs
rely on parameter-efficient fine-tuning techniques, which may not reach the
performance height possible with full-parameter tuning. However, federated
full-parameter tuning of LLMs is a non-trivial problem due to the immense
communication cost. This work introduces FedKSeed that employs zeroth-order
optimization with a finite set of random seeds. It significantly reduces
transmission requirements between the server and clients to just a few random
seeds and scalar gradients, amounting to only a few thousand bytes, making
federated full-parameter tuning of billion-sized LLMs possible on devices.
Building on it, we develop a strategy enabling probability-differentiated seed
sampling, prioritizing perturbations with greater impact on model accuracy.
Experiments across six scenarios with various LLMs, datasets and data
partitions demonstrate that our approach outperforms existing federated LLM
fine-tuning methods in both communication efficiency and new task
generalization. | null | cs.LG | [
"cs.LG",
"cs.DC"
] |
2307.12533 | HF | PUMA: Secure Inference of LLaMA-7B in Five Minutes | [
"Ye Dong",
"Wen-jie Lu",
"Yancheng Zheng",
"Haoqi Wu",
"Derun Zhao",
"Jin Tan",
"Zhicong Huang",
"Cheng Hong",
"Tao Wei",
"Wenguang Chen"
] | 2023-07-24 | With ChatGPT as a representative, tons of companies have began to provide
services based on large Transformers models. However, using such a service
inevitably leak users' prompts to the model provider. Previous studies have
studied secure inference for Transformer models using secure multiparty
computation (MPC), where model parameters and clients' prompts are kept secret.
Despite this, these frameworks are still limited in terms of model performance,
efficiency, and deployment. To address these limitations, we propose framework
PUMA to enable fast and secure Transformer model inference. Our framework
designs high quality approximations for expensive functions such as GeLU and
softmax, and significantly reduce the cost of secure inference while preserving
the model performance. Additionally, we design secure Embedding and LayerNorm
procedures that faithfully implement the desired functionality without
undermining the Transformer architecture. PUMA is about $2\times$ faster than
the state-of-the-art framework MPCFORMER(ICLR 2023) and has similar accuracy as
plaintext models without fine-tuning (which the previous works failed to
achieve). PUMA can even evaluate LLaMA-7B in around 5 minutes to generate 1
token. To our best knowledge, this is the first time that a model with such a
parameter size is able to be evaluated under MPC. PUMA has been open-sourced in
the Github repository of SecretFlow-SPU. | null | cs.CR | [
"cs.CR"
] |
2306.14153 | HF | DomainStudio: Fine-Tuning Diffusion Models for Domain-Driven Image Generation using Limited Data | [
"Jingyuan Zhu",
"Huimin Ma",
"Jiansheng Chen",
"Jian Yuan"
] | 2023-06-25 | Denoising diffusion probabilistic models (DDPMs) have been proven capable of
synthesizing high-quality images with remarkable diversity when trained on
large amounts of data. Typical diffusion models and modern large-scale
conditional generative models like text-to-image generative models are
vulnerable to overfitting when fine-tuned on extremely limited data. Existing
works have explored subject-driven generation using a reference set containing
a few images. However, few prior works explore DDPM-based domain-driven
generation, which aims to learn the common features of target domains while
maintaining diversity. This paper proposes a novel DomainStudio approach to
adapt DDPMs pre-trained on large-scale source datasets to target domains using
limited data. It is designed to keep the diversity of subjects provided by
source domains and get high-quality and diverse adapted samples in target
domains. We propose to keep the relative distances between adapted samples to
achieve considerable generation diversity. In addition, we further enhance the
learning of high-frequency details for better generation quality. Our approach
is compatible with both unconditional and conditional diffusion models. This
work makes the first attempt to realize unconditional few-shot image generation
with diffusion models, achieving better quality and greater diversity than
current state-of-the-art GAN-based approaches. Moreover, this work also
significantly relieves overfitting for conditional generation and realizes
high-quality domain-driven generation, further expanding the applicable
scenarios of modern large-scale text-to-image models. | null | cs.CV | [
"cs.CV"
] |
2406.04320 | HF | Chimera: Effectively Modeling Multivariate Time Series with 2-Dimensional State Space Models | [
"Ali Behrouz",
"Michele Santacatterina",
"Ramin Zabih"
] | 2024-06-06 | Modeling multivariate time series is a well-established problem with a wide
range of applications from healthcare to financial markets. Traditional State
Space Models (SSMs) are classical approaches for univariate time series
modeling due to their simplicity and expressive power to represent linear
dependencies. They, however, have fundamentally limited expressive power to
capture non-linear dependencies, are slow in practice, and fail to model the
inter-variate information flow. Despite recent attempts to improve the
expressive power of SSMs by using deep structured SSMs, the existing methods
are either limited to univariate time series, fail to model complex patterns
(e.g., seasonal patterns), fail to dynamically model the dependencies of
variate and time dimensions, and/or are input-independent. We present Chimera
that uses two input-dependent 2-D SSM heads with different discretization
processes to learn long-term progression and seasonal patterns. To improve the
efficiency of complex 2D recurrence, we present a fast training using a new
2-dimensional parallel selective scan. We further present and discuss
2-dimensional Mamba and Mamba-2 as the spacial cases of our 2D SSM. Our
experimental evaluation shows the superior performance of Chimera on extensive
and diverse benchmarks, including ECG and speech time series classification,
long-term and short-term time series forecasting, and time series anomaly
detection. | null | cs.LG | [
"cs.LG",
"cs.AI"
] |
2301.10472 | AnswerAI | XLM-V: Overcoming the Vocabulary Bottleneck in Multilingual Masked Language Models | [
"Davis Liang",
"Hila Gonen",
"Yuning Mao",
"Rui Hou",
"Naman Goyal",
"Marjan Ghazvininejad",
"Luke Zettlemoyer",
"Madian Khabsa"
] | 2023-01-25 | Large multilingual language models typically rely on a single vocabulary
shared across 100+ languages. As these models have increased in parameter count
and depth, vocabulary size has remained largely unchanged. This
\textit{vocabulary bottleneck} limits the representational capabilities of
multilingual models like XLM-R. In this paper, we introduce a new approach for
scaling to very large multilingual vocabularies by de-emphasizing token sharing
between languages with little lexical overlap and assigning vocabulary capacity
to achieve sufficient coverage for each individual language. Tokenizations
using our vocabulary are typically more semantically meaningful and shorter
compared to XLM-R. Leveraging this improved vocabulary, we train XLM-V, a
multilingual language model with a one million token vocabulary. XLM-V
outperforms XLM-R on every task we tested on ranging from natural language
inference (XNLI), question answering (MLQA, XQuAD, TyDiQA), to named entity
recognition (WikiAnn). XLM-V is particularly effective on low-resource language
tasks and outperforms XLM-R by 11.2% and 5.8% absolute on MasakhaNER and
Americas NLI, respectively. | null | cs.CL | [
"cs.CL",
"cs.LG"
] |
2309.17452 | AnswerAI | ToRA: A Tool-Integrated Reasoning Agent for Mathematical Problem Solving | [
"Zhibin Gou",
"Zhihong Shao",
"Yeyun Gong",
"Yelong Shen",
"Yujiu Yang",
"Minlie Huang",
"Nan Duan",
"Weizhu Chen"
] | 2023-09-29 | Large language models have made significant progress in various language
tasks, yet they still struggle with complex mathematics. In this paper, we
propose ToRA a series of Tool-integrated Reasoning Agents designed to solve
challenging mathematical problems by seamlessly integrating natural language
reasoning with the utilization of external tools (e.g., computation libraries
and symbolic solvers), thereby amalgamating the analytical prowess of language
and the computational efficiency of tools. To train ToRA, we curate interactive
tool-use trajectories on mathematical datasets, apply imitation learning on the
annotations, and propose output space shaping to further refine models'
reasoning behavior. As a result, ToRA models significantly outperform
open-source models on 10 mathematical reasoning datasets across all scales with
13%-19% absolute improvements on average. Notably, ToRA-7B reaches 44.6% on the
competition-level dataset MATH, surpassing the best open-source model
WizardMath-70B by 22% absolute. ToRA-Code-34B is also the first open-source
model that achieves an accuracy exceeding 50% on MATH, which significantly
outperforms GPT-4's CoT result, and is competitive with GPT-4 solving problems
with programs. Additionally, we conduct a comprehensive analysis of the
benefits and remaining challenges of tool interaction for mathematical
reasoning, providing valuable insights for future research. | null | cs.CL | [
"cs.CL",
"cs.AI"
] |
2407.02490 | HF | MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attention | [
"Huiqiang Jiang",
"Yucheng Li",
"Chengruidong Zhang",
"Qianhui Wu",
"Xufang Luo",
"Surin Ahn",
"Zhenhua Han",
"Amir H. Abdi",
"Dongsheng Li",
"Chin-Yew Lin",
"Yuqing Yang",
"Lili Qiu"
] | 2024-07-02 | The computational challenges of Large Language Model (LLM) inference remain a
significant barrier to their widespread deployment, especially as prompt
lengths continue to increase. Due to the quadratic complexity of the attention
computation, it takes 30 minutes for an 8B LLM to process a prompt of 1M tokens
(i.e., the pre-filling stage) on a single A100 GPU. Existing methods for
speeding up prefilling often fail to maintain acceptable accuracy or efficiency
when applied to long-context LLMs. To address this gap, we introduce MInference
(Milliontokens Inference), a sparse calculation method designed to accelerate
pre-filling of long-sequence processing. Specifically, we identify three unique
patterns in long-context attention matrices-the A-shape, Vertical-Slash, and
Block-Sparsethat can be leveraged for efficient sparse computation on GPUs. We
determine the optimal pattern for each attention head offline and dynamically
build sparse indices based on the assigned pattern during inference. With the
pattern and sparse indices, we perform efficient sparse attention calculations
via our optimized GPU kernels to significantly reduce the latency in the
pre-filling stage of long-context LLMs. Our proposed technique can be directly
applied to existing LLMs without any modifications to the pre-training setup or
additional fine-tuning. By evaluating on a wide range of downstream tasks,
including InfiniteBench, RULER, PG-19, and Needle In A Haystack, and models
including LLaMA-3-1M, GLM4-1M, Yi-200K, Phi-3-128K, and Qwen2-128K, we
demonstrate that MInference effectively reduces inference latency by up to 10x
for pre-filling on an A100, while maintaining accuracy. Our code is available
at https://aka.ms/MInference. | null | cs.CL | [
"cs.CL",
"cs.LG"
] |
2305.04391 | HF | A Variational Perspective on Solving Inverse Problems with Diffusion Models | [
"Morteza Mardani",
"Jiaming Song",
"Jan Kautz",
"Arash Vahdat"
] | 2023-05-07 | Diffusion models have emerged as a key pillar of foundation models in visual
domains. One of their critical applications is to universally solve different
downstream inverse tasks via a single diffusion prior without re-training for
each task. Most inverse tasks can be formulated as inferring a posterior
distribution over data (e.g., a full image) given a measurement (e.g., a masked
image). This is however challenging in diffusion models since the nonlinear and
iterative nature of the diffusion process renders the posterior intractable. To
cope with this challenge, we propose a variational approach that by design
seeks to approximate the true posterior distribution. We show that our approach
naturally leads to regularization by denoising diffusion process (RED-Diff)
where denoisers at different timesteps concurrently impose different structural
constraints over the image. To gauge the contribution of denoisers from
different timesteps, we propose a weighting mechanism based on
signal-to-noise-ratio (SNR). Our approach provides a new variational
perspective for solving inverse problems with diffusion models, allowing us to
formulate sampling as stochastic optimization, where one can simply apply
off-the-shelf solvers with lightweight iterates. Our experiments for image
restoration tasks such as inpainting and superresolution demonstrate the
strengths of our method compared with state-of-the-art sampling-based diffusion
models. | null | cs.LG | [
"cs.LG",
"cs.CV",
"cs.NA",
"math.NA",
"stat.ML"
] |
2310.12773 | HF | Safe RLHF: Safe Reinforcement Learning from Human Feedback | [
"Josef Dai",
"Xuehai Pan",
"Ruiyang Sun",
"Jiaming Ji",
"Xinbo Xu",
"Mickel Liu",
"Yizhou Wang",
"Yaodong Yang"
] | 2023-10-19 | With the development of large language models (LLMs), striking a balance
between the performance and safety of AI systems has never been more critical.
However, the inherent tension between the objectives of helpfulness and
harmlessness presents a significant challenge during LLM training. To address
this issue, we propose Safe Reinforcement Learning from Human Feedback (Safe
RLHF), a novel algorithm for human value alignment. Safe RLHF explicitly
decouples human preferences regarding helpfulness and harmlessness, effectively
avoiding the crowdworkers' confusion about the tension and allowing us to train
separate reward and cost models. We formalize the safety concern of LLMs as an
optimization task of maximizing the reward function while satisfying specified
cost constraints. Leveraging the Lagrangian method to solve this constrained
problem, Safe RLHF dynamically adjusts the balance between the two objectives
during fine-tuning. Through a three-round fine-tuning using Safe RLHF, we
demonstrate a superior ability to mitigate harmful responses while enhancing
model performance compared to existing value-aligned algorithms.
Experimentally, we fine-tuned the Alpaca-7B using Safe RLHF and aligned it with
collected human preferences, significantly improving its helpfulness and
harmlessness according to human evaluations. | null | cs.AI | [
"cs.AI",
"cs.LG"
] |
2408.00167 | HF | Finch: Prompt-guided Key-Value Cache Compression | [
"Giulio Corallo",
"Paolo Papotti"
] | 2024-07-31 | Recent large language model applications, such as Retrieval-Augmented
Generation and chatbots, have led to an increased need to process longer input
contexts. However, this requirement is hampered by inherent limitations.
Architecturally, models are constrained by a context window defined during
training. Additionally, processing extensive texts requires substantial GPU
memory. We propose a novel approach, Finch, to compress the input context by
leveraging the pre-trained model weights of the self-attention. Given a prompt
and a long text, Finch iteratively identifies the most relevant Key (K) and
Value (V) pairs over chunks of the text conditioned on the prompt. Only such
pairs are stored in the KV cache, which, within the space constrained by the
context window, ultimately contains a compressed version of the long text. Our
proposal enables models to consume large inputs even with high compression (up
to 93x) while preserving semantic integrity without the need for fine-tuning. | null | cs.AI | [
"cs.AI"
] |
2310.09478 | HF | MiniGPT-v2: large language model as a unified interface for vision-language multi-task learning | [
"Jun Chen",
"Deyao Zhu",
"Xiaoqian Shen",
"Xiang Li",
"Zechun Liu",
"Pengchuan Zhang",
"Raghuraman Krishnamoorthi",
"Vikas Chandra",
"Yunyang Xiong",
"Mohamed Elhoseiny"
] | 2023-10-14 | Large language models have shown their remarkable capabilities as a general
interface for various language-related applications. Motivated by this, we
target to build a unified interface for completing many vision-language tasks
including image description, visual question answering, and visual grounding,
among others. The challenge is to use a single model for performing diverse
vision-language tasks effectively with simple multi-modal instructions. Towards
this objective, we introduce MiniGPT-v2, a model that can be treated as a
unified interface for better handling various vision-language tasks. We propose
using unique identifiers for different tasks when training the model. These
identifiers enable our model to better distinguish each task instruction
effortlessly and also improve the model learning efficiency for each task.
After the three-stage training, the experimental results show that MiniGPT-v2
achieves strong performance on many visual question-answering and visual
grounding benchmarks compared to other vision-language generalist models. Our
model and codes are available at https://minigpt-v2.github.io/ | null | cs.CV | [
"cs.CV"
] |
2408.07246 | HF | ChemVLM: Exploring the Power of Multimodal Large Language Models in Chemistry Area | [
"Junxian Li",
"Di Zhang",
"Xunzhi Wang",
"Zeying Hao",
"Jingdi Lei",
"Qian Tan",
"Cai Zhou",
"Wei Liu",
"Yaotian Yang",
"Xinrui Xiong",
"Weiyun Wang",
"Zhe Chen",
"Wenhai Wang",
"Wei Li",
"Shufei Zhang",
"Mao Su",
"Wanli Ouyang",
"Yuqiang Li",
"Dongzhan Zhou"
] | 2024-08-14 | Large Language Models (LLMs) have achieved remarkable success and have been
applied across various scientific fields, including chemistry. However, many
chemical tasks require the processing of visual information, which cannot be
successfully handled by existing chemical LLMs. This brings a growing need for
models capable of integrating multimodal information in the chemical domain. In
this paper, we introduce \textbf{ChemVLM}, an open-source chemical multimodal
large language model specifically designed for chemical applications. ChemVLM
is trained on a carefully curated bilingual multimodal dataset that enhances
its ability to understand both textual and visual chemical information,
including molecular structures, reactions, and chemistry examination questions.
We develop three datasets for comprehensive evaluation, tailored to Chemical
Optical Character Recognition (OCR), Multimodal Chemical Reasoning (MMCR), and
Multimodal Molecule Understanding tasks. We benchmark ChemVLM against a range
of open-source and proprietary multimodal large language models on various
tasks. Experimental results demonstrate that ChemVLM achieves competitive
performance across all evaluated tasks. Our model can be found at
https://huggingface.co/AI4Chem/ChemVLM-26B. | null | cs.LG | [
"cs.LG",
"cs.CV"
] |
2309.06933 | HF | DreamStyler: Paint by Style Inversion with Text-to-Image Diffusion Models | [
"Namhyuk Ahn",
"Junsoo Lee",
"Chunggi Lee",
"Kunhee Kim",
"Daesik Kim",
"Seung-Hun Nam",
"Kibeom Hong"
] | 2023-09-13 | Recent progresses in large-scale text-to-image models have yielded remarkable
accomplishments, finding various applications in art domain. However,
expressing unique characteristics of an artwork (e.g. brushwork, colortone, or
composition) with text prompts alone may encounter limitations due to the
inherent constraints of verbal description. To this end, we introduce
DreamStyler, a novel framework designed for artistic image synthesis,
proficient in both text-to-image synthesis and style transfer. DreamStyler
optimizes a multi-stage textual embedding with a context-aware text prompt,
resulting in prominent image quality. In addition, with content and style
guidance, DreamStyler exhibits flexibility to accommodate a range of style
references. Experimental results demonstrate its superior performance across
multiple scenarios, suggesting its promising potential in artistic product
creation. | null | cs.CV | [
"cs.CV"
] |
2403.07691 | AnswerAI | ORPO: Monolithic Preference Optimization without Reference Model | [
"Jiwoo Hong",
"Noah Lee",
"James Thorne"
] | 2024-03-12 | While recent preference alignment algorithms for language models have
demonstrated promising results, supervised fine-tuning (SFT) remains imperative
for achieving successful convergence. In this paper, we study the crucial role
of SFT within the context of preference alignment, emphasizing that a minor
penalty for the disfavored generation style is sufficient for
preference-aligned SFT. Building on this foundation, we introduce a
straightforward and innovative reference model-free monolithic odds ratio
preference optimization algorithm, ORPO, eliminating the necessity for an
additional preference alignment phase. We demonstrate, both empirically and
theoretically, that the odds ratio is a sensible choice for contrasting favored
and disfavored styles during SFT across the diverse sizes from 125M to 7B.
Specifically, fine-tuning Phi-2 (2.7B), Llama-2 (7B), and Mistral (7B) with
ORPO on the UltraFeedback alone surpasses the performance of state-of-the-art
language models with more than 7B and 13B parameters: achieving up to 12.20% on
$\text{AlpacaEval}_{2.0}$ (Figure 1), 66.19% on IFEval (instruction-level
loose, Table 6), and 7.32 in MT-Bench (Figure 12). We release code and model
checkpoints for Mistral-ORPO-$\alpha$ (7B) and Mistral-ORPO-$\beta$ (7B). | null | cs.CL | [
"cs.CL",
"cs.AI"
] |
2408.08946 | HF | Authorship Attribution in the Era of LLMs: Problems, Methodologies, and Challenges | [
"Baixiang Huang",
"Canyu Chen",
"Kai Shu"
] | 2024-08-16 | Accurate attribution of authorship is crucial for maintaining the integrity
of digital content, improving forensic investigations, and mitigating the risks
of misinformation and plagiarism. Addressing the imperative need for proper
authorship attribution is essential to uphold the credibility and
accountability of authentic authorship. The rapid advancements of Large
Language Models (LLMs) have blurred the lines between human and machine
authorship, posing significant challenges for traditional methods. We presents
a comprehensive literature review that examines the latest research on
authorship attribution in the era of LLMs. This survey systematically explores
the landscape of this field by categorizing four representative problems: (1)
Human-written Text Attribution; (2) LLM-generated Text Detection; (3)
LLM-generated Text Attribution; and (4) Human-LLM Co-authored Text Attribution.
We also discuss the challenges related to ensuring the generalization and
explainability of authorship attribution methods. Generalization requires the
ability to generalize across various domains, while explainability emphasizes
providing transparent and understandable insights into the decisions made by
these models. By evaluating the strengths and limitations of existing methods
and benchmarks, we identify key open problems and future research directions in
this field. This literature review serves a roadmap for researchers and
practitioners interested in understanding the state of the art in this rapidly
evolving field. Additional resources and a curated list of papers are available
and regularly updated at https://llm-authorship.github.io | null | cs.CY | [
"cs.CY"
] |
2310.16226 | HF | TiC-CLIP: Continual Training of CLIP Models | [
"Saurabh Garg",
"Mehrdad Farajtabar",
"Hadi Pouransari",
"Raviteja Vemulapalli",
"Sachin Mehta",
"Oncel Tuzel",
"Vaishaal Shankar",
"Fartash Faghri"
] | 2023-10-24 | Keeping large foundation models up to date on latest data is inherently
expensive. To avoid the prohibitive costs of constantly retraining, it is
imperative to continually train these models. This problem is exacerbated by
the lack of any large scale continual learning benchmarks or baselines. We
introduce the first set of web-scale Time-Continual (TiC) benchmarks for
training vision-language models: TiC-DataComp, TiC-YFCC, and TiC-Redcaps.
TiC-DataComp, our largest dataset, contains over 12.7B timestamped image-text
pairs spanning 9 years (2014-2022). We first use our benchmarks to curate
various dynamic evaluations to measure temporal robustness of existing models.
We show OpenAI's CLIP (trained on data up to 2020) loses $\approx 8\%$
zero-shot accuracy on our curated retrieval task from 2021-2022 compared with
more recently trained models in OpenCLIP repository. We then study how to
efficiently train models on time-continuous data. We demonstrate that a simple
rehearsal-based approach that continues training from the last checkpoint and
replays old data reduces compute by $2.5\times$ when compared to the standard
practice of retraining from scratch. Code is available at
https://github.com/apple/ml-tic-clip. | null | cs.CV | [
"cs.CV",
"cs.CL",
"cs.LG"
] |
2212.12017 | AnswerAI | OPT-IML: Scaling Language Model Instruction Meta Learning through the Lens of Generalization | [
"Srinivasan Iyer",
"Xi Victoria Lin",
"Ramakanth Pasunuru",
"Todor Mihaylov",
"Daniel Simig",
"Ping Yu",
"Kurt Shuster",
"Tianlu Wang",
"Qing Liu",
"Punit Singh Koura",
"Xian Li",
"Brian O'Horo",
"Gabriel Pereyra",
"Jeff Wang",
"Christopher Dewan",
"Asli Celikyilmaz",
"Luke Zettlemoyer",
"Ves Stoyanov"
] | 2022-12-22 | Recent work has shown that fine-tuning large pre-trained language models on a
collection of tasks described via instructions, a.k.a. instruction-tuning,
improves their zero and few-shot generalization to unseen tasks. However, there
is a limited understanding of the performance trade-offs of different decisions
made during the instruction-tuning process. These decisions include the scale
and diversity of the instruction-tuning benchmark, different task sampling
strategies, fine-tuning with and without demonstrations, training using
specialized datasets for reasoning and dialogue, and finally, the fine-tuning
objectives themselves. In this paper, we characterize the effect of
instruction-tuning decisions on downstream task performance when scaling both
model and benchmark sizes. To this end, we create OPT-IML Bench: a large
benchmark for Instruction Meta-Learning (IML) of 2000 NLP tasks consolidated
into task categories from 8 existing benchmarks, and prepare an evaluation
framework to measure three types of model generalizations: to tasks from fully
held-out categories, to held-out tasks from seen categories, and to held-out
instances from seen tasks. Through the lens of this framework, we first present
insights about instruction-tuning decisions as applied to OPT-30B and further
exploit these insights to train OPT-IML 30B and 175B, which are
instruction-tuned versions of OPT. OPT-IML demonstrates all three
generalization abilities at both scales on four different evaluation benchmarks
with diverse tasks and input formats -- PromptSource, FLAN,
Super-NaturalInstructions, and UnifiedSKG. Not only does it significantly
outperform OPT on all benchmarks but is also highly competitive with existing
models fine-tuned on each specific benchmark. We release OPT-IML at both
scales, together with the OPT-IML Bench evaluation framework. | null | cs.CL | [
"cs.CL"
] |
2306.09539 | HF | Block-State Transformers | [
"Mahan Fathi",
"Jonathan Pilault",
"Orhan Firat",
"Christopher Pal",
"Pierre-Luc Bacon",
"Ross Goroshin"
] | 2023-06-15 | State space models (SSMs) have shown impressive results on tasks that require
modeling long-range dependencies and efficiently scale to long sequences owing
to their subquadratic runtime complexity. Originally designed for continuous
signals, SSMs have shown superior performance on a plethora of tasks, in vision
and audio; however, SSMs still lag Transformer performance in Language Modeling
tasks. In this work, we propose a hybrid layer named Block-State Transformer
(BST), that internally combines an SSM sublayer for long-range
contextualization, and a Block Transformer sublayer for short-term
representation of sequences. We study three different, and completely
parallelizable, variants that integrate SSMs and block-wise attention. We show
that our model outperforms similar Transformer-based architectures on language
modeling perplexity and generalizes to longer sequences. In addition, the
Block-State Transformer demonstrates more than tenfold increase in speed at the
layer level compared to the Block-Recurrent Transformer when model
parallelization is employed. | null | cs.CL | [
"cs.CL",
"cs.LG"
] |
2406.04692 | Both | Mixture-of-Agents Enhances Large Language Model Capabilities | [
"Junlin Wang",
"Jue Wang",
"Ben Athiwaratkun",
"Ce Zhang",
"James Zou"
] | 2024-06-07 | Recent advances in large language models (LLMs) demonstrate substantial
capabilities in natural language understanding and generation tasks. With the
growing number of LLMs, how to harness the collective expertise of multiple
LLMs is an exciting open direction. Toward this goal, we propose a new approach
that leverages the collective strengths of multiple LLMs through a
Mixture-of-Agents (MoA) methodology. In our approach, we construct a layered
MoA architecture wherein each layer comprises multiple LLM agents. Each agent
takes all the outputs from agents in the previous layer as auxiliary
information in generating its response. MoA models achieves state-of-art
performance on AlpacaEval 2.0, MT-Bench and FLASK, surpassing GPT-4 Omni. For
example, our MoA using only open-source LLMs is the leader of AlpacaEval 2.0 by
a substantial gap, achieving a score of 65.1% compared to 57.5% by GPT-4 Omni. | null | cs.CL | [
"cs.CL"
] |
2305.18259 | HF | GlyphControl: Glyph Conditional Control for Visual Text Generation | [
"Yukang Yang",
"Dongnan Gui",
"Yuhui Yuan",
"Weicong Liang",
"Haisong Ding",
"Han Hu",
"Kai Chen"
] | 2023-05-29 | Recently, there has been an increasing interest in developing diffusion-based
text-to-image generative models capable of generating coherent and well-formed
visual text. In this paper, we propose a novel and efficient approach called
GlyphControl to address this task. Unlike existing methods that rely on
character-aware text encoders like ByT5 and require retraining of text-to-image
models, our approach leverages additional glyph conditional information to
enhance the performance of the off-the-shelf Stable-Diffusion model in
generating accurate visual text. By incorporating glyph instructions, users can
customize the content, location, and size of the generated text according to
their specific requirements. To facilitate further research in visual text
generation, we construct a training benchmark dataset called LAION-Glyph. We
evaluate the effectiveness of our approach by measuring OCR-based metrics, CLIP
score, and FID of the generated visual text. Our empirical evaluations
demonstrate that GlyphControl outperforms the recent DeepFloyd IF approach in
terms of OCR accuracy, CLIP score, and FID, highlighting the efficacy of our
method. | null | cs.CV | [
"cs.CV"
] |
2307.08581 | HF | BuboGPT: Enabling Visual Grounding in Multi-Modal LLMs | [
"Yang Zhao",
"Zhijie Lin",
"Daquan Zhou",
"Zilong Huang",
"Jiashi Feng",
"Bingyi Kang"
] | 2023-07-17 | LLMs have demonstrated remarkable abilities at interacting with humans
through language, especially with the usage of instruction-following data.
Recent advancements in LLMs, such as MiniGPT-4, LLaVA, and X-LLM, further
enlarge their abilities by incorporating multi-modal inputs, including image,
video, and speech. Despite their effectiveness at generating precise and
detailed language understanding of the given modality signal, these LLMs give
up the ability to ground specific parts of inputs, thus only constructing a
coarse-grained mapping. However, explicit and informative correspondence
between text and other modalities will not only improve the user experience but
also help to expand the application scenario of multi-modal LLMs. Therefore, we
propose BuboGPT, a multi-modal LLM with visual grounding that can perform
cross-modal interaction between vision, audio and language, providing
fine-grained understanding of visual objects and other given modalities. As a
result, BuboGPT is able to point out the specific location of an object in the
image, when it is generating response or description for that object. Our
contributions are two-fold: 1) An off-the-shelf visual grounding module based
on SAM that extracts entities in a sentence and find corresponding masks in the
image. 2) A two-stage training scheme and instruction dataset to endow joint
text-image-audio understanding. Our experiments show that BuboGPT achieves
impressive multi-modality understanding and visual grounding abilities during
the interaction with human. It performs consistently well when provided by
arbitrary modality combinations (either aligned or unaligned). Our code, model
and dataset are available at https://bubo-gpt.github.io . | null | cs.CV | [
"cs.CV",
"cs.AI"
] |
2307.05973 | HF | VoxPoser: Composable 3D Value Maps for Robotic Manipulation with Language Models | [
"Wenlong Huang",
"Chen Wang",
"Ruohan Zhang",
"Yunzhu Li",
"Jiajun Wu",
"Li Fei-Fei"
] | 2023-07-12 | Large language models (LLMs) are shown to possess a wealth of actionable
knowledge that can be extracted for robot manipulation in the form of reasoning
and planning. Despite the progress, most still rely on pre-defined motion
primitives to carry out the physical interactions with the environment, which
remains a major bottleneck. In this work, we aim to synthesize robot
trajectories, i.e., a dense sequence of 6-DoF end-effector waypoints, for a
large variety of manipulation tasks given an open-set of instructions and an
open-set of objects. We achieve this by first observing that LLMs excel at
inferring affordances and constraints given a free-form language instruction.
More importantly, by leveraging their code-writing capabilities, they can
interact with a vision-language model (VLM) to compose 3D value maps to ground
the knowledge into the observation space of the agent. The composed value maps
are then used in a model-based planning framework to zero-shot synthesize
closed-loop robot trajectories with robustness to dynamic perturbations. We
further demonstrate how the proposed framework can benefit from online
experiences by efficiently learning a dynamics model for scenes that involve
contact-rich interactions. We present a large-scale study of the proposed
method in both simulated and real-robot environments, showcasing the ability to
perform a large variety of everyday manipulation tasks specified in free-form
natural language. Videos and code at https://voxposer.github.io | null | cs.RO | [
"cs.RO",
"cs.AI",
"cs.CL",
"cs.CV",
"cs.LG"
] |
2406.16860 | HF | Cambrian-1: A Fully Open, Vision-Centric Exploration of Multimodal LLMs | [
"Shengbang Tong",
"Ellis Brown",
"Penghao Wu",
"Sanghyun Woo",
"Manoj Middepogu",
"Sai Charitha Akula",
"Jihan Yang",
"Shusheng Yang",
"Adithya Iyer",
"Xichen Pan",
"Austin Wang",
"Rob Fergus",
"Yann LeCun",
"Saining Xie"
] | 2024-06-24 | We introduce Cambrian-1, a family of multimodal LLMs (MLLMs) designed with a
vision-centric approach. While stronger language models can enhance multimodal
capabilities, the design choices for vision components are often insufficiently
explored and disconnected from visual representation learning research. This
gap hinders accurate sensory grounding in real-world scenarios. Our study uses
LLMs and visual instruction tuning as an interface to evaluate various visual
representations, offering new insights into different models and architectures
-- self-supervised, strongly supervised, or combinations thereof -- based on
experiments with over 20 vision encoders. We critically examine existing MLLM
benchmarks, addressing the difficulties involved in consolidating and
interpreting results from various tasks, and introduce a new vision-centric
benchmark, CV-Bench. To further improve visual grounding, we propose the
Spatial Vision Aggregator (SVA), a dynamic and spatially-aware connector that
integrates high-resolution vision features with LLMs while reducing the number
of tokens. Additionally, we discuss the curation of high-quality visual
instruction-tuning data from publicly available sources, emphasizing the
importance of data source balancing and distribution ratio. Collectively,
Cambrian-1 not only achieves state-of-the-art performance but also serves as a
comprehensive, open cookbook for instruction-tuned MLLMs. We provide model
weights, code, supporting tools, datasets, and detailed instruction-tuning and
evaluation recipes. We hope our release will inspire and accelerate
advancements in multimodal systems and visual representation learning. | null | cs.CV | [
"cs.CV"
] |
2406.12050 | HF | Learn Beyond The Answer: Training Language Models with Reflection for Mathematical Reasoning | [
"Zhihan Zhang",
"Zhenwen Liang",
"Wenhao Yu",
"Dian Yu",
"Mengzhao Jia",
"Dong Yu",
"Meng Jiang"
] | 2024-06-17 | Supervised fine-tuning enhances the problem-solving abilities of language
models across various mathematical reasoning tasks. To maximize such benefits,
existing research focuses on broadening the training set with various data
augmentation techniques, which is effective for standard single-round
question-answering settings. Our work introduces a novel technique aimed at
cultivating a deeper understanding of the training problems at hand, enhancing
performance not only in standard settings but also in more complex scenarios
that require reflective thinking. Specifically, we propose reflective
augmentation, a method that embeds problem reflection into each training
instance. It trains the model to consider alternative perspectives and engage
with abstractions and analogies, thereby fostering a thorough comprehension
through reflective reasoning. Extensive experiments validate the achievement of
our aim, underscoring the unique advantages of our method and its complementary
nature relative to existing augmentation techniques. | null | cs.CL | [
"cs.CL"
] |
2408.11237 | HF | Out-of-Distribution Detection with Attention Head Masking for Multimodal Document Classification | [
"Christos Constantinou",
"Georgios Ioannides",
"Aman Chadha",
"Aaron Elkins",
"Edwin Simpson"
] | 2024-08-20 | Detecting out-of-distribution (OOD) data is crucial in machine learning
applications to mitigate the risk of model overconfidence, thereby enhancing
the reliability and safety of deployed systems. The majority of existing OOD
detection methods predominantly address uni-modal inputs, such as images or
texts. In the context of multi-modal documents, there is a notable lack of
extensive research on the performance of these methods, which have primarily
been developed with a focus on computer vision tasks. We propose a novel
methodology termed as attention head masking (AHM) for multi-modal OOD tasks in
document classification systems. Our empirical results demonstrate that the
proposed AHM method outperforms all state-of-the-art approaches and
significantly decreases the false positive rate (FPR) compared to existing
solutions up to 7.5\%. This methodology generalizes well to multi-modal data,
such as documents, where visual and textual information are modeled under the
same Transformer architecture. To address the scarcity of high-quality publicly
available document datasets and encourage further research on OOD detection for
documents, we introduce FinanceDocs, a new document AI dataset. Our code and
dataset are publicly available. | null | cs.AI | [
"cs.AI",
"cs.CL",
"cs.CV",
"cs.LG"
] |
2305.13304 | HF | RecurrentGPT: Interactive Generation of (Arbitrarily) Long Text | [
"Wangchunshu Zhou",
"Yuchen Eleanor Jiang",
"Peng Cui",
"Tiannan Wang",
"Zhenxin Xiao",
"Yifan Hou",
"Ryan Cotterell",
"Mrinmaya Sachan"
] | 2023-05-22 | The fixed-size context of Transformer makes GPT models incapable of
generating arbitrarily long text. In this paper, we introduce RecurrentGPT, a
language-based simulacrum of the recurrence mechanism in RNNs. RecurrentGPT is
built upon a large language model (LLM) such as ChatGPT and uses natural
language to simulate the Long Short-Term Memory mechanism in an LSTM. At each
timestep, RecurrentGPT generates a paragraph of text and updates its
language-based long-short term memory stored on the hard drive and the prompt,
respectively. This recurrence mechanism enables RecurrentGPT to generate texts
of arbitrary length without forgetting. Since human users can easily observe
and edit the natural language memories, RecurrentGPT is interpretable and
enables interactive generation of long text. RecurrentGPT is an initial step
towards next-generation computer-assisted writing systems beyond local editing
suggestions. In addition to producing AI-generated content (AIGC), we also
demonstrate the possibility of using RecurrentGPT as an interactive fiction
that directly interacts with consumers. We call this usage of generative models
by ``AI As Contents'' (AIAC), which we believe is the next form of conventional
AIGC. We further demonstrate the possibility of using RecurrentGPT to create
personalized interactive fiction that directly interacts with readers instead
of interacting with writers. More broadly, RecurrentGPT demonstrates the
utility of borrowing ideas from popular model designs in cognitive science and
deep learning for prompting LLMs. Our code is available at
https://github.com/aiwaves-cn/RecurrentGPT and an online demo is available at
https://www.aiwaves.org/recurrentgpt. | null | cs.CL | [
"cs.CL",
"cs.LG"
] |
2305.03027 | HF | NeRSemble: Multi-view Radiance Field Reconstruction of Human Heads | [
"Tobias Kirschstein",
"Shenhan Qian",
"Simon Giebenhain",
"Tim Walter",
"Matthias Nießner"
] | 2023-05-04 | We focus on reconstructing high-fidelity radiance fields of human heads,
capturing their animations over time, and synthesizing re-renderings from novel
viewpoints at arbitrary time steps. To this end, we propose a new multi-view
capture setup composed of 16 calibrated machine vision cameras that record
time-synchronized images at 7.1 MP resolution and 73 frames per second. With
our setup, we collect a new dataset of over 4700 high-resolution,
high-framerate sequences of more than 220 human heads, from which we introduce
a new human head reconstruction benchmark. The recorded sequences cover a wide
range of facial dynamics, including head motions, natural expressions,
emotions, and spoken language. In order to reconstruct high-fidelity human
heads, we propose Dynamic Neural Radiance Fields using Hash Ensembles
(NeRSemble). We represent scene dynamics by combining a deformation field and
an ensemble of 3D multi-resolution hash encodings. The deformation field allows
for precise modeling of simple scene movements, while the ensemble of hash
encodings helps to represent complex dynamics. As a result, we obtain radiance
field representations of human heads that capture motion over time and
facilitate re-rendering of arbitrary novel viewpoints. In a series of
experiments, we explore the design choices of our method and demonstrate that
our approach outperforms state-of-the-art dynamic radiance field approaches by
a significant margin. | 10.1145/3592455 | cs.CV | [
"cs.CV"
] |
2312.17241 | HF | Compact Neural Graphics Primitives with Learned Hash Probing | [
"Towaki Takikawa",
"Thomas Müller",
"Merlin Nimier-David",
"Alex Evans",
"Sanja Fidler",
"Alec Jacobson",
"Alexander Keller"
] | 2023-12-28 | Neural graphics primitives are faster and achieve higher quality when their
neural networks are augmented by spatial data structures that hold trainable
features arranged in a grid. However, existing feature grids either come with a
large memory footprint (dense or factorized grids, trees, and hash tables) or
slow performance (index learning and vector quantization). In this paper, we
show that a hash table with learned probes has neither disadvantage, resulting
in a favorable combination of size and speed. Inference is faster than unprobed
hash tables at equal quality while training is only 1.2-2.6x slower,
significantly outperforming prior index learning approaches. We arrive at this
formulation by casting all feature grids into a common framework: they each
correspond to a lookup function that indexes into a table of feature vectors.
In this framework, the lookup functions of existing data structures can be
combined by simple arithmetic combinations of their indices, resulting in
Pareto optimal compression and speed. | null | cs.CV | [
"cs.CV",
"cs.GR"
] |
2307.02484 | HF | Elastic Decision Transformer | [
"Yueh-Hua Wu",
"Xiaolong Wang",
"Masashi Hamaya"
] | 2023-07-05 | This paper introduces Elastic Decision Transformer (EDT), a significant
advancement over the existing Decision Transformer (DT) and its variants.
Although DT purports to generate an optimal trajectory, empirical evidence
suggests it struggles with trajectory stitching, a process involving the
generation of an optimal or near-optimal trajectory from the best parts of a
set of sub-optimal trajectories. The proposed EDT differentiates itself by
facilitating trajectory stitching during action inference at test time,
achieved by adjusting the history length maintained in DT. Further, the EDT
optimizes the trajectory by retaining a longer history when the previous
trajectory is optimal and a shorter one when it is sub-optimal, enabling it to
"stitch" with a more optimal trajectory. Extensive experimentation demonstrates
EDT's ability to bridge the performance gap between DT-based and Q
Learning-based approaches. In particular, the EDT outperforms Q Learning-based
methods in a multi-task regime on the D4RL locomotion benchmark and Atari
games. Videos are available at: https://kristery.github.io/edt/ | null | cs.LG | [
"cs.LG",
"cs.AI"
] |
2210.11399 | AnswerAI | Transcending Scaling Laws with 0.1% Extra Compute | [
"Yi Tay",
"Jason Wei",
"Hyung Won Chung",
"Vinh Q. Tran",
"David R. So",
"Siamak Shakeri",
"Xavier Garcia",
"Huaixiu Steven Zheng",
"Jinfeng Rao",
"Aakanksha Chowdhery",
"Denny Zhou",
"Donald Metzler",
"Slav Petrov",
"Neil Houlsby",
"Quoc V. Le",
"Mostafa Dehghani"
] | 2022-10-20 | Scaling language models improves performance but comes with significant
computational costs. This paper proposes UL2R, a method that substantially
improves existing language models and their scaling curves with a relatively
tiny amount of extra compute. The key idea is to continue training a
state-of-the-art large language model (e.g., PaLM) on a few more steps with
UL2's mixture-of-denoiser objective. We show that, with almost negligible extra
computational costs and no new sources of data, we are able to substantially
improve the scaling properties of large language models on downstream metrics.
In this paper, we continue training PaLM with UL2R, introducing a new set of
models at 8B, 62B, and 540B scale which we call U-PaLM. Impressively, at 540B
scale, we show an approximately 2x computational savings rate where U-PaLM
achieves the same performance as the final PaLM 540B model at around half its
computational budget (i.e., saving $\sim$4.4 million TPUv4 hours). We further
show that this improved scaling curve leads to 'emergent abilities' on
challenging BIG-Bench tasks -- for instance, U-PaLM does much better than PaLM
on some tasks or demonstrates better quality at much smaller scale (62B as
opposed to 540B). Overall, we show that U-PaLM outperforms PaLM on many
few-shot setups, i.e., English NLP tasks (e.g., commonsense reasoning, question
answering), reasoning tasks with chain-of-thought (e.g., GSM8K), multilingual
tasks (MGSM, TydiQA), MMLU and challenging BIG-Bench tasks. Finally, we provide
qualitative examples showing the new capabilities of U-PaLM for single and
multi-span infilling. | null | cs.CL | [
"cs.CL",
"cs.AI",
"cs.LG"
] |
2307.09793 | HF | On the Origin of LLMs: An Evolutionary Tree and Graph for 15,821 Large Language Models | [
"Sarah Gao",
"Andrew Kean Gao"
] | 2023-07-19 | Since late 2022, Large Language Models (LLMs) have become very prominent with
LLMs like ChatGPT and Bard receiving millions of users. Hundreds of new LLMs
are announced each week, many of which are deposited to Hugging Face, a
repository of machine learning models and datasets. To date, nearly 16,000 Text
Generation models have been uploaded to the site. Given the huge influx of
LLMs, it is of interest to know which LLM backbones, settings, training
methods, and families are popular or trending. However, there is no
comprehensive index of LLMs available. We take advantage of the relatively
systematic nomenclature of Hugging Face LLMs to perform hierarchical clustering
and identify communities amongst LLMs using n-grams and term frequency-inverse
document frequency. Our methods successfully identify families of LLMs and
accurately cluster LLMs into meaningful subgroups. We present a public web
application to navigate and explore Constellation, our atlas of 15,821 LLMs.
Constellation rapidly generates a variety of visualizations, namely
dendrograms, graphs, word clouds, and scatter plots. Constellation is available
at the following link: https://constellation.sites.stanford.edu/. | null | cs.DL | [
"cs.DL",
"cs.CL",
"I.2.1; H.5.0"
] |
2310.13724 | HF | Habitat 3.0: A Co-Habitat for Humans, Avatars and Robots | [
"Xavier Puig",
"Eric Undersander",
"Andrew Szot",
"Mikael Dallaire Cote",
"Tsung-Yen Yang",
"Ruslan Partsey",
"Ruta Desai",
"Alexander William Clegg",
"Michal Hlavac",
"So Yeon Min",
"Vladimír Vondruš",
"Theophile Gervet",
"Vincent-Pierre Berges",
"John M. Turner",
"Oleksandr Maksymets",
"Zsolt Kira",
"Mrinal Kalakrishnan",
"Jitendra Malik",
"Devendra Singh Chaplot",
"Unnat Jain",
"Dhruv Batra",
"Akshara Rai",
"Roozbeh Mottaghi"
] | 2023-10-19 | We present Habitat 3.0: a simulation platform for studying collaborative
human-robot tasks in home environments. Habitat 3.0 offers contributions across
three dimensions: (1) Accurate humanoid simulation: addressing challenges in
modeling complex deformable bodies and diversity in appearance and motion, all
while ensuring high simulation speed. (2) Human-in-the-loop infrastructure:
enabling real human interaction with simulated robots via mouse/keyboard or a
VR interface, facilitating evaluation of robot policies with human input. (3)
Collaborative tasks: studying two collaborative tasks, Social Navigation and
Social Rearrangement. Social Navigation investigates a robot's ability to
locate and follow humanoid avatars in unseen environments, whereas Social
Rearrangement addresses collaboration between a humanoid and robot while
rearranging a scene. These contributions allow us to study end-to-end learned
and heuristic baselines for human-robot collaboration in-depth, as well as
evaluate them with humans in the loop. Our experiments demonstrate that learned
robot policies lead to efficient task completion when collaborating with unseen
humanoid agents and human partners that might exhibit behaviors that the robot
has not seen before. Additionally, we observe emergent behaviors during
collaborative task execution, such as the robot yielding space when obstructing
a humanoid agent, thereby allowing the effective completion of the task by the
humanoid agent. Furthermore, our experiments using the human-in-the-loop tool
demonstrate that our automated evaluation with humanoids can provide an
indication of the relative ordering of different policies when evaluated with
real human collaborators. Habitat 3.0 unlocks interesting new features in
simulators for Embodied AI, and we hope it paves the way for a new frontier of
embodied human-AI interaction capabilities. | null | cs.HC | [
"cs.HC",
"cs.AI",
"cs.CV",
"cs.GR",
"cs.MA",
"cs.RO"
] |
2305.11588 | HF | Text2NeRF: Text-Driven 3D Scene Generation with Neural Radiance Fields | [
"Jingbo Zhang",
"Xiaoyu Li",
"Ziyu Wan",
"Can Wang",
"Jing Liao"
] | 2023-05-19 | Text-driven 3D scene generation is widely applicable to video gaming, film
industry, and metaverse applications that have a large demand for 3D scenes.
However, existing text-to-3D generation methods are limited to producing 3D
objects with simple geometries and dreamlike styles that lack realism. In this
work, we present Text2NeRF, which is able to generate a wide range of 3D scenes
with complicated geometric structures and high-fidelity textures purely from a
text prompt. To this end, we adopt NeRF as the 3D representation and leverage a
pre-trained text-to-image diffusion model to constrain the 3D reconstruction of
the NeRF to reflect the scene description. Specifically, we employ the
diffusion model to infer the text-related image as the content prior and use a
monocular depth estimation method to offer the geometric prior. Both content
and geometric priors are utilized to update the NeRF model. To guarantee
textured and geometric consistency between different views, we introduce a
progressive scene inpainting and updating strategy for novel view synthesis of
the scene. Our method requires no additional training data but only a natural
language description of the scene as the input. Extensive experiments
demonstrate that our Text2NeRF outperforms existing methods in producing
photo-realistic, multi-view consistent, and diverse 3D scenes from a variety of
natural language prompts. Our code is available at
https://github.com/eckertzhang/Text2NeRF. | null | cs.CV | [
"cs.CV",
"cs.GR"
] |
2401.01792 | HF | CoMoSVC: Consistency Model-based Singing Voice Conversion | [
"Yiwen Lu",
"Zhen Ye",
"Wei Xue",
"Xu Tan",
"Qifeng Liu",
"Yike Guo"
] | 2024-01-03 | The diffusion-based Singing Voice Conversion (SVC) methods have achieved
remarkable performances, producing natural audios with high similarity to the
target timbre. However, the iterative sampling process results in slow
inference speed, and acceleration thus becomes crucial. In this paper, we
propose CoMoSVC, a consistency model-based SVC method, which aims to achieve
both high-quality generation and high-speed sampling. A diffusion-based teacher
model is first specially designed for SVC, and a student model is further
distilled under self-consistency properties to achieve one-step sampling.
Experiments on a single NVIDIA GTX4090 GPU reveal that although CoMoSVC has a
significantly faster inference speed than the state-of-the-art (SOTA)
diffusion-based SVC system, it still achieves comparable or superior conversion
performance based on both subjective and objective metrics. Audio samples and
codes are available at https://comosvc.github.io/. | null | eess.AS | [
"eess.AS",
"cs.AI",
"cs.LG",
"cs.SD"
] |
2407.02551 | HF | A False Sense of Safety: Unsafe Information Leakage in 'Safe' AI Responses | [
"David Glukhov",
"Ziwen Han",
"Ilia Shumailov",
"Vardan Papyan",
"Nicolas Papernot"
] | 2024-07-02 | Large Language Models (LLMs) are vulnerable to
jailbreaks$\unicode{x2013}$methods to elicit harmful or generally impermissible
outputs. Safety measures are developed and assessed on their effectiveness at
defending against jailbreak attacks, indicating a belief that safety is
equivalent to robustness. We assert that current defense mechanisms, such as
output filters and alignment fine-tuning, are, and will remain, fundamentally
insufficient for ensuring model safety. These defenses fail to address risks
arising from dual-intent queries and the ability to composite innocuous outputs
to achieve harmful goals. To address this critical gap, we introduce an
information-theoretic threat model called inferential adversaries who exploit
impermissible information leakage from model outputs to achieve malicious
goals. We distinguish these from commonly studied security adversaries who only
seek to force victim models to generate specific impermissible outputs. We
demonstrate the feasibility of automating inferential adversaries through
question decomposition and response aggregation. To provide safety guarantees,
we define an information censorship criterion for censorship mechanisms,
bounding the leakage of impermissible information. We propose a defense
mechanism which ensures this bound and reveal an intrinsic safety-utility
trade-off. Our work provides the first theoretically grounded understanding of
the requirements for releasing safe LLMs and the utility costs involved. | null | cs.CR | [
"cs.CR",
"cs.AI",
"cs.CY"
] |
2304.03442 | AnswerAI | Generative Agents: Interactive Simulacra of Human Behavior | [
"Joon Sung Park",
"Joseph C. O'Brien",
"Carrie J. Cai",
"Meredith Ringel Morris",
"Percy Liang",
"Michael S. Bernstein"
] | 2023-04-07 | Believable proxies of human behavior can empower interactive applications
ranging from immersive environments to rehearsal spaces for interpersonal
communication to prototyping tools. In this paper, we introduce generative
agents--computational software agents that simulate believable human behavior.
Generative agents wake up, cook breakfast, and head to work; artists paint,
while authors write; they form opinions, notice each other, and initiate
conversations; they remember and reflect on days past as they plan the next
day. To enable generative agents, we describe an architecture that extends a
large language model to store a complete record of the agent's experiences
using natural language, synthesize those memories over time into higher-level
reflections, and retrieve them dynamically to plan behavior. We instantiate
generative agents to populate an interactive sandbox environment inspired by
The Sims, where end users can interact with a small town of twenty five agents
using natural language. In an evaluation, these generative agents produce
believable individual and emergent social behaviors: for example, starting with
only a single user-specified notion that one agent wants to throw a Valentine's
Day party, the agents autonomously spread invitations to the party over the
next two days, make new acquaintances, ask each other out on dates to the
party, and coordinate to show up for the party together at the right time. We
demonstrate through ablation that the components of our agent
architecture--observation, planning, and reflection--each contribute critically
to the believability of agent behavior. By fusing large language models with
computational, interactive agents, this work introduces architectural and
interaction patterns for enabling believable simulations of human behavior. | null | cs.HC | [
"cs.HC",
"cs.AI",
"cs.LG"
] |
2110.07178 | AnswerAI | Symbolic Knowledge Distillation: from General Language Models to Commonsense Models | [
"Peter West",
"Chandra Bhagavatula",
"Jack Hessel",
"Jena D. Hwang",
"Liwei Jiang",
"Ronan Le Bras",
"Ximing Lu",
"Sean Welleck",
"Yejin Choi"
] | 2021-10-14 | The common practice for training commonsense models has gone
from-human-to-corpus-to-machine: humans author commonsense knowledge graphs in
order to train commonsense models. In this work, we investigate an alternative,
from-machine-to-corpus-to-machine: general language models author these
commonsense knowledge graphs to train commonsense models. Our study leads to a
new framework, Symbolic Knowledge Distillation. As with prior art in Knowledge
Distillation (Hinton et al., 2015), our approach uses larger models to teach
smaller models. A key difference is that we distill knowledge symbolically-as
text-in addition to the neural model. We also distill only one aspect-the
commonsense of a general language model teacher, allowing the student to be a
different type, a commonsense model. Altogether, we show that careful prompt
engineering and a separately trained critic model allow us to selectively
distill high-quality causal commonsense from GPT-3, a general language model.
Empirical results demonstrate that, for the first time, a human-authored
commonsense knowledge graph is surpassed by our automatically distilled variant
in all three criteria: quantity, quality, and diversity. In addition, it
results in a neural commonsense model that surpasses the teacher model's
commonsense capabilities despite its 100x smaller size. We apply this to the
ATOMIC resource, and share our new symbolic knowledge graph and commonsense
models. | null | cs.CL | [
"cs.CL"
] |
2406.11403 | HF | Multimodal Structured Generation: CVPR's 2nd MMFM Challenge Technical Report | [
"Franz Louis Cesista"
] | 2024-06-17 | Multimodal Foundation Models (MMFMs) have shown remarkable performance on
various computer vision and natural language processing tasks. However, their
performance on particular tasks such as document understanding is still
limited. They also require more compute, time, and engineering resources to
finetune and deploy compared to traditional, unimodal models. In this report,
we present Multimodal Structured Generation, a general framework which
constrains the output logits of frozen MMFMs to force them to reason before
responding with structured outputs that downstream APIs can parse and use. We
provide a detailed account of our approach, including the technical details,
theoretical discussions, and final evaluation results in the 2nd Multimodal
Foundation Models Challenge hosted by the Computer Vision and Pattern
Recognition (CVPR) conference. Our approach achieved the second highest score
in the hidden test set for Phase 2 and third highest overall. This shows the
method's ability to generalize to unseen tasks. And that simple engineering can
beat expensive & complicated modelling steps as we first discussed in our
paper, Retrieval Augmented Structured Generation: Business Document Information
Extraction as Tool Use. All of our scripts, deployment steps, and evaluation
results can be accessed in https://github.com/leloykun/MMFM-Challenge | null | cs.CV | [
"cs.CV",
"cs.CL"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.