Large Language Model
PDDLEGO: Iterative Planning in Textual Environments
Zhang, Li, Jansen, Peter, Zhang, Tianyi, Clark, Peter, Callison-Burch, Chris, Tandon, Niket
Planning in textual environments have been shown to be a long-standing challenge even for current models. A recent, promising line of work uses LLMs to generate a formal representation of the environment that can be solved by a symbolic planner. However, existing methods rely on a fully-observed environment where all entity states are initially known, so a one-off representation can be constructed, leading to a complete plan. In contrast, we tackle partially-observed environments where there is initially no sufficient information to plan for the end-goal. We propose PDDLEGO that iteratively construct a planning representation that can lead to a partial plan for a given sub-goal. By accomplishing the sub-goal, more information is acquired to augment the representation, eventually achieving the end-goal. We show that plans produced by few-shot PDDLEGO are 43% more efficient than generating plans end-to-end on the Coin Collector simulation, with strong performance (98%) on the more complex Cooking World simulation where end-to-end LLMs fail to generate coherent plans (4%).
Evaluation of Semantic Search and its Role in Retrieved-Augmented-Generation (RAG) for Arabic Language
Mahboub, Ali, Za'ter, Muhy Eddin, Al-Rfooh, Bashar, Estaitia, Yazan, Jaljuli, Adnan, Hakouz, Asma
The abundance of information has driven the development of semantic search technologies that surpass traditional keyword-based search engines by understanding the context and intent of user queries through natural language processing (NLP) and machine learning [1]. Unlike conventional search methods that focus on matching keywords, semantic search interprets the meaning and relationships between words, aiming to mimic human understanding. This advancement enhances user experience across various applications, including web search engines, knowledge discovery, and personalized content recommendation systems, and most recently Retriever-Augmented Generation (RAG) [2]. RAG represents an innovative approach at the crossroads of information retrieval and natural language generation, leveraging the strengths of both fields to refine Artificial Intelligence (AI) based systems ability to comprehend and generate human-like text [3, 4]. By combining a sophisticated retrieval mechanism with a powerful generation model, RAG systems can produce detailed, contextually relevant responses that significantly improve standalone language models limitations in terms of precision and human-like generation.
Not All Experts are Equal: Efficient Expert Pruning and Skipping for Mixture-of-Experts Large Language Models
Lu, Xudong, Liu, Qi, Xu, Yuhui, Zhou, Aojun, Huang, Siyuan, Zhang, Bo, Yan, Junchi, Li, Hongsheng
A pivotal advancement in the progress of large language models (LLMs) is the emergence of the Mixture-of-Experts (MoE) LLMs. Compared to traditional LLMs, MoE LLMs can achieve higher performance with fewer parameters, but it is still hard to deploy them due to their immense parameter sizes. Different from previous weight pruning methods that rely on specifically designed hardware, this paper mainly aims to enhance the deployment efficiency of MoE LLMs by introducing plug-and-play expert-level sparsification techniques. Specifically, we propose, for the first time to our best knowledge, post-training approaches for task-agnostic and task-specific expert pruning and skipping of MoE LLMs, tailored to improve deployment efficiency while maintaining model performance across a wide range of tasks. Extensive experiments show that our proposed methods can simultaneously reduce model sizes and increase the inference speed, while maintaining satisfactory performance. Data and code will be available at https://github.com/Lucky-Lance/Expert_Sparsity.
AnalogCoder: Analog Circuit Design via Training-Free Code Generation
Lai, Yao, Lee, Sungyoung, Chen, Guojin, Poddar, Souradip, Hu, Mengkang, Pan, David Z., Luo, Ping
Analog circuit design is a significant task in modern chip technology, focusing on the selection of component types, connectivity, and parameters to ensure proper circuit functionality. Despite advances made by Large Language Models (LLMs) in digital circuit design, the complexity and scarcity of data in analog circuitry pose significant challenges. To mitigate these issues, we introduce AnalogCoder, the first training-free LLM agent for designing analog circuits through Python code generation. Firstly, AnalogCoder incorporates a feedback-enhanced flow with tailored domain-specific prompts, enabling the automated and self-correcting design of analog circuits with a high success rate. Secondly, it proposes a circuit tool library to archive successful designs as reusable modular sub-circuits, simplifying composite circuit creation. Thirdly, extensive experiments on a benchmark designed to cover a wide range of analog circuit tasks show that AnalogCoder outperforms other LLM-based methods. It has successfully designed 20 circuits, 5 more than standard GPT-4o. We believe AnalogCoder can significantly improve the labor-intensive chip design process, enabling non-experts to design analog circuits efficiently.
X-Instruction: Aligning Language Model in Low-resource Languages with Self-curated Cross-lingual Instructions
Li, Chong, Yang, Wen, Zhang, Jiajun, Lu, Jinliang, Wang, Shaonan, Zong, Chengqing
Large language models respond well in high-resource languages like English but struggle in low-resource languages. It may arise from the lack of high-quality instruction following data in these languages. Directly translating English samples into these languages can be a solution but unreliable, leading to responses with translation errors and lacking language-specific or cultural knowledge. To address this issue, we propose a novel method to construct cross-lingual instruction following samples with instruction in English and response in low-resource languages. Specifically, the language model first learns to generate appropriate English instructions according to the natural web texts in other languages as responses. The candidate cross-lingual instruction tuning samples are further refined and diversified. We have employed this method to build a large-scale cross-lingual instruction tuning dataset on 10 languages, namely X-Instruction. The instruction data built using our method incorporate more language-specific knowledge compared with the naive translation method. Experimental results have shown that the response quality of the model tuned on X-Instruction greatly exceeds the model distilled from a powerful teacher model, reaching or even surpassing the ones of ChatGPT. In addition, we find that models tuned on cross-lingual instruction following samples can follow the instruction in the output language without further tuning.
UniBias: Unveiling and Mitigating LLM Bias through Internal Attention and FFN Manipulation
Zhou, Hanzhang, Feng, Zijian, Zhu, Zixiao, Qian, Junlang, Mao, Kezhi
Large language models (LLMs) have demonstrated impressive capabilities in various tasks using the in-context learning (ICL) paradigm. However, their effectiveness is often compromised by inherent bias, leading to prompt brittleness, i.e., sensitivity to design settings such as example selection, order, and prompt formatting. Previous studies have addressed LLM bias through external adjustment of model outputs, but the internal mechanisms that lead to such bias remain unexplored. Our work delves into these mechanisms, particularly investigating how feedforward neural networks (FFNs) and attention heads result in the bias of LLMs. By Interpreting the contribution of individual FFN vectors and attention heads, we identify the biased LLM components that skew LLMs' prediction toward specific labels. To mitigate these biases, we introduce UniBias, an inference-only method that effectively identifies and eliminates biased FFN vectors and attention heads. Extensive experiments across 12 NLP datasets demonstrate that UniBias significantly enhances ICL performance and alleviates prompt brittleness of LLMs.
Small Models, Big Insights: Leveraging Slim Proxy Models To Decide When and What to Retrieve for LLMs
Tan, Jiejun, Dou, Zhicheng, Zhu, Yutao, Guo, Peidong, Fang, Kun, Wen, Ji-Rong
The integration of large language models (LLMs) and search engines represents a significant evolution in knowledge acquisition methodologies. However, determining the knowledge that an LLM already possesses and the knowledge that requires the help of a search engine remains an unresolved issue. Most existing methods solve this problem through the results of preliminary answers or reasoning done by the LLM itself, but this incurs excessively high computational costs. This paper introduces a novel collaborative approach, namely SlimPLM, that detects missing knowledge in LLMs with a slim proxy model, to enhance the LLM's knowledge acquisition process. We employ a proxy model which has far fewer parameters, and take its answers as heuristic answers. Heuristic answers are then utilized to predict the knowledge required to answer the user question, as well as the known and unknown knowledge within the LLM. We only conduct retrieval for the missing knowledge in questions that the LLM does not know. Extensive experimental results on five datasets with two LLMs demonstrate a notable improvement in the end-to-end performance of LLMs in question-answering tasks, achieving or surpassing current state-of-the-art models with lower LLM inference costs.
CausalQuest: Collecting Natural Causal Questions for AI Agents
Ceraolo, Roberto, Kharlapenko, Dmitrii, Reymond, Amรฉlie, Mihalcea, Rada, Sachan, Mrinmaya, Schรถlkopf, Bernhard, Jin, Zhijing
Humans have an innate drive to seek out causality. Whether fuelled by curiosity or specific goals, we constantly question why things happen, how they are interconnected, and many other related phenomena. To develop AI agents capable of addressing this natural human quest for causality, we urgently need a comprehensive dataset of natural causal questions. Unfortunately, existing datasets either contain only artificially-crafted questions that do not reflect real AI usage scenarios or have limited coverage of questions from specific sources. To address this gap, we present CausalQuest, a dataset of 13,500 naturally occurring questions sourced from social networks, search engines, and AI assistants. We formalize the definition of causal questions and establish a taxonomy for finer-grained classification. Through a combined effort of human annotators and large language models (LLMs), we carefully label the dataset. We find that 42% of the questions humans ask are indeed causal, with the majority seeking to understand the causes behind given effects. Using this dataset, we train efficient classifiers (up to 2.85B parameters) for the binary task of identifying causal questions, achieving high performance with F1 scores of up to 0.877. We conclude with a rich set of future research directions that can build upon our data and models.
A Devil's Bargain With OpenAI
Earlier today, The Atlantic's CEO, Nicholas Thompson, announced in an internal email that the company has entered into a business partnership with OpenAI, the creator of ChatGPT. Editorial content from this publication will soon be directly referenced in response to queries in OpenAI products. In practice, this means that users of ChatGPT, say, might type in a question and receive an answer that briefly quotes an Atlantic story; according to Anna Bross, The Atlantic's senior vice president of communications, it will be accompanied by a citation and a link to the original source. Other companies, such as Axel Springer, the publisher of Business Insider and Politico, have made similar arrangements. It does all feel a bit like publishers are making a deal with--well, can I say it?
Sam Altman Dreams of an A.I. Girlfriend
Sign up to receive our twice-weekly News & Politics newsletter. Kyle Chayka, a New Yorker staff writer and the author of the Infinite Scroll column, joins Tyler Foggatt to discuss the latest ChatGPT release--which uses a voice that sounds, suspiciously, like that of Scarlett Johansson's character in the dystopian sci-fi movie "Her." Chayka has reported extensively on artificial intelligence, and he describes some recent blunders that tech companies, including OpenAI and Google, have made in trying to push their products through. Tune in to The Political Scene wherever you get your podcasts.