{"id": "rzQGHXNReU", "venue": "COLM 2024", "paper_decision": "Accept", "title": "RAFT: Adapting Language Model to Domain Specific RAG", "authors": ["Tianjun Zhang", "Shishir G Patil", "Naman Jain", "Sheng Shen", "Matei Zaharia", "Ion Stoica", "Joseph E. Gonzalez"], "abstract": "Pretraining Large Language Models (LLMs) on large corpora of textual data is now a standard paradigm. \nWhen using these LLMs for many downstream applications, it is common to additionally incorporate new information into the pretrained model either through RAG-based-prompting, or finetuning. \nHowever, the best methodology to incorporate information remains an open question. \nIn this paper, we present Retrieval Augmented Fine Tuning (RAFT), a training recipe which improves the model's ability to answer questions in \"open-book\" in-domain settings. In training RAFT, given a question, and a set of retrieved documents, we train the model to ignore those documents that don't help in answering the question, which we call, distractor documents. RAFT accomplishes this by citing verbatim the right sequence from the relevant document to help answer the question. This coupled with RAFT's chain-of-thought-style response helps improve the model's ability to reason. In domain specific RAG, RAFT consistently improves the model's performance across PubMed, HotpotQA, and Gorilla datasets, presenting a post-training recipe to improve pre-trained LLMs to in-domain RAG.", "keywords": "R;e;t;r;i;e;v;e;r;;; ;F;i;n;e;t;u;n;i;n;g", "qa_pairs": [{"question": "Do the authors include general domain datasets like NQ and TQA in their experiments, and if so, why are these datasets used?", "answer": "Yes, authors include the NQ [1] and TQA [2] datasets in our experiments because they are standard benchmarks for RAG. Authors use them to study the effect of the percentage of golden documents in the training dataset, employing the standard retriever from the Replug[3] paper and reporting RAFT's performance.\n[1] Shi, Weijia, et al. \"Replug: Retrieval-augmented black-box language models.\" arXiv preprint arXiv:2301.12652 (2023). \n[2] Kwiatkowski, Tom, et al. \"Natural questions: a benchmark for question answering research.\" Transactions of the Association for Computational Linguistics 7 (2019): 453-466 \n[3] Joshi, Mandar, et al. \"Triviaqa: A large scale distantly supervised challenge dataset for reading comprehension.\" arXiv preprint arXiv:1705.03551 (2017)\n", "category": "Experimental_Analysis"}, {"question": "What are the specific hyperparameters used in the main experiment (Table 2) that are necessary for reproducing the results?", "answer": "Authors use a standard supervised fine-tuning method from the FastChat repository [4], the main experiment uses a learning rate of 1e-5, a warmup ratio of 0.03%, a batch size of 64, a total epoch of 2, and a percentage of golden documents of 80%, following a standard supervised fine-tuning method from the FastChat repository.\n[4] Zheng, Lianmin, et al. \"Judging llm-as-a-judge with mt-bench and chatbot arena.\" Advances in Neural Information Processing Systems 36 (2024)", "category": "Experimental_Setup"}, {"question": "How does the proposed RAFT method contribute novel insights or advancements in the domain-specific 'open-book' exam setting, given that domain-specific fine-tuning and RAG are already known to be effective for domain-specific tasks?", "answer": "The RAFT method contributes novel insights by thoroughly studying the effect of combining domain-specific fine-tuning and RAG, demonstrating that a smaller model (Llama2-7B) can achieve comparable performance to GPT-3.5. It identifies techniques like verbatim chain-of-thought, distractor documents, and percentage of golden documents, improving understanding and reasoning on the given domain and answering styles. Authors' experiments study why RAFT is improving over baselines. There are two potential reasons: (1) improved understanding and reasoning on the given domain and (2) improved answering styles that are easier for the exact matching methods to check. This is shown through comparisons with baselines like Llama2-7B-instruct + RAG, GPT3.5 + RAG, and DSF, Note that this baseline even uses a much stronger base model GPT3.5, compared to RAFT, which uses Llama2. Second, the main reason authors compare RAFT to DSF is to understand the effect of answering style improvement. Using DSF, the model is finetuned to provide the same answering style that is the same as the RAFT model, with the only difference to memorize the knowledge. Thus, this illustrates RAFT does improve the model’s capability of understanding and reasoning over the given context.", "category": "Method_Disambiguation"}, {"question": "Why was RAFT not tested on tasks such as text-to-SQL or reasoning-based QA, given its potential effectiveness in those domains?", "answer": "RAFT is specifically designed to enhance the base LLM's performance in domain-specific RAG settings. While it might improve performance in coding or reasoning domains, studying RAFT's performance on those tasks falls outside the scope of this paper, as it focuses on creating domain expert RAG models rather than general post-training strategies.", "category": "Motivation_Analysis"}, {"question": "What are the main results and ablations for NQ and Trivia QA when applying Chain-of-Thought (CoT), and how do they compare to non-CoT settings?", "answer": "Authors will provide one example here, in one of NQ questions, 'What is the last movie of Jason Bourne' the right answer as per the dataset is 'Jason Bourne'. With CoT, the LLM can answer 'Jason Bourne(2016)' by referencing the documentation within its context. The additional ablation studies on CoT for NQ and TQA showed slight degradation in performance compared to non-CoT settings (but roughly the same number): NQ (CoT: 49.10%, Non-CoT: 50.90%) and TQA (CoT: 62.77%, Non-CoT: 64.77%). Despite this, CoT is still generally helpful in settings where reasoning is heavily involved. The results will be added to the paper along with a discussion on this finding.", "category": "Experimental_Exposition"}, {"question": "Can the fine-tuned RAFT model effectively apply its acquired domain-specific knowledge from seen datasets to unseen datasets within the same domain, as demonstrated in the PubmedQA example?", "answer": "Authors' experiments include two settings: (a) In TorchHub, TensorHub, and HuggingFace, test questions are based on the same documents as the training set, This would mean that authors train question-document-answer triplets on document set A, and then use question-document from the same document set A for testing.and (b) in Hotpot QA, NQ, TQA, and MedPub, test questions don't necessarily refer to the same documents in the training set. This would mean that authors train question-document-answer triplets on document set A, and then use question-document from document set B for testing. Results in Table 1 and Figure 5 show that RAFT can generalize to similar domain questions with unseen documents. Additional evaluations will be added to further understand RAFT's performance.", "category": "Experimental_Setup"}, {"question": "Was RAFT tested on tasks such as text-to-SQL or reasoning-based QA to validate its effectiveness outside open-domain QA?", "answer": "False", "category": "Claim_Verification"}]} {"id": "TrloAXEJ2B", "venue": "COLM 2024", "paper_decision": "Accept", "title": "LoraHub: Efficient Cross-Task Generalization via Dynamic LoRA Composition", "authors": ["Chengsong Huang", "Qian Liu", "Bill Yuchen Lin", "Tianyu Pang", "Chao Du", "Min Lin"], "abstract": "Low-rank adaptation (LoRA) is often employed to fine-tune large language models (LLMs) for new tasks. This paper investigates LoRA composability for cross-task generalization and introduces LoraHub, a simple framework devised for the purposive assembly of LoRA modules trained on diverse given tasks, with the objective of achieving adaptable performance on unseen tasks. With just a few examples from a new task, LoraHub can fluidly combine multiple LoRA modules, eliminating the need for human expertise and assumptions. Notably, the composition requires neither additional model parameters nor gradients. Empirical results on the Big-Bench Hard benchmark suggest that LoraHub, while not surpassing the performance of in-context learning, offers a notable performance-efficiency trade-off in few-shot scenarios by employing a significantly reduced number of tokens per example during inference. Notably, LoraHub establishes a better upper bound compared to in-context learning when paired with different demonstration examples, demonstrating its potential for future development. Our vision is to establish a platform for LoRA modules, empowering users to share their trained LoRA modules. This collaborative approach facilitates the seamless application of LoRA modules to novel tasks, contributing to an adaptive ecosystem.", "keywords": "P;a;r;a;m;e;t;e;r; ;E;f;f;i;c;i;e;n;t; ;T;u;n;i;n;g;,; ;C;r;o;s;s;-;T;a;s;k; ;G;e;n;e;r;a;l;i;z;a;t;i;o;n;,; ;M;o;d;e;l; ;M;e;r;g;i;n;g", "qa_pairs": [{"question": "Why was the FLAN-T5 model chosen for the experiments despite its lower performance on the BBH metric, and how does this choice support the validity of the ablation studies?", "answer": "The FLAN-T5 model was chosen because it is highly popular on HuggingFace and known for its proficiency in zero-shot and few-shot learning scenarios, as well as its robust problem-solving capabilities. Its use ensures a fair comparison in zero-shot scenarios and demonstrates the effectiveness of the methods in terms of learning efficiency and adaptability. Additionally, the integration of LoRA modules trained solely on the FLAN collection maintains consistent experimental conditions, preventing bias from additional training data. Results from FLAN-T5-XL, a 3B model in the Appendix further validate the generalizability of LoraHub across model scales.", "category": "Motivation_Analysis"}, {"question": "Why does LoraHub underperform in some scenarios compared to in-context learning and gradient-based methods, and what are its practical advantages?", "answer": "LoraHub's underperformance in some scenarios is acknowledged, but it offers a gray-box approach that requires only model output logits, avoiding the need for access to model weights and extensive GPU memory. This allows efficient operation in inference-only mode, ideal for CPU-only environments, simplifying deployment and reducing computational demands. Additionally, LoraHub achieves a peak performance of 41.2 on the BBH benchmark, exceeding ICL's 38.4 and all other baselines except full fine-tuning, highlighting its potential for superior performance.", "category": "Method_Disambiguation"}, {"question": "How does LoraHub differentiate its novelty from existing works such as MHR, SPoT, and Polytropon?", "answer": "LoraHub employs a unique gray-box method that uses only model output logits, unlike the gradient methods applicable mainly to open-source models in previous work. Additionally, LoraHub functions solely during inference without requiring fine-tuning, facilitating efficient learning on CPU-only machines.", "category": "Method_Comparison"}, {"question": "How does LoraHub address the issue of arbitrary LoRA module selection and its potential negative impact on downstream task performance?", "answer": "LoraHub has introduced $⁣\\rm LoraHub_{filter}$ in Appendix E, which enhances the selection process by identifying the top 20 LoRA module candidates with the lowest loss on few-shot examples, improving selection accuracy and average performance from 34.7 to 35.4.", "category": "Method_Mechanics"}, {"question": "How does the computational resource consumption of LoraHub compare to full fine-tuning and LoRA fine-tuning, particularly in terms of memory usage?", "answer": "Full fine-tuning required about 40GB of memory, LoRA fine-tuning used around 34GB, and LoraHub utilized about 5GB of memory. LoraHub's efficiency is due to its inference-only mode, which eliminates the need for storing gradients and optimization states.", "category": "Method_Comparison"}, {"question": "What factors contribute to the performance gap between LoraHub and ICL, and how does LoraHub demonstrate its potential despite this gap?", "answer": "The performance gap between LoraHub and ICL is primarily due to the current implementation strategy rather than intrinsic limitations of LoraHub. Refining module composition algorithms can significantly narrow this gap. In Appendix B, LoraHub achieves a score of 41.2 on the BBH, surpassing ICL's 38.4, demonstrating its potential. Additionally, LoraHub offers significant advantages in inference latency and efficiency, reducing the number of input tokens needed, which is crucial for latency-sensitive applications. Ongoing enhancements aim to optimize LoraHub's performance across various tasks.", "category": "Experimental_Analysis"}, {"question": "Why did the authors use a randomly selected subset of 20 LoRA modules instead of all available modules for their experiments, and how does increasing the number of LoRA modules impact the computational time required to find optimal configurations?", "answer": "The authors used a subset of 20 LoRA modules primarily for computational efficiency. Increasing the number of LoRA modules increases the dimensionality of the optimization problem, significantly extending the time required to find an optimal configuration. Experiments in Appendix H confirmed that while scaling up the number of modules is feasible, it necessitates more optimization time, highlighting computational trade-offs. Using a fixed number of modules also ensures stability and robustness, allowing systematic evaluation of the LoraHub method without excessive computational overhead.", "category": "Motivation_Analysis"}, {"question": "What is the time efficiency of authoring high-quality few-shot samples using LoraHub, and how does it compare to LoRA modules in terms of processing time and memory usage?", "answer": "In the experiments, authoring five high-quality few-shot examples using LoraHub takes approximately 10 seconds on A100 cards. Additionally, LoraHub uses 5GB of memory with the FLAN-T5-Large model, whereas LoRA fine-tuning requires 34GB, highlighting LoraHub's efficiency in both processing time and memory usage.", "category": "Method_Comparison"}]} {"id": "FdVXgSJhvz", "venue": "ICLR 2024", "paper_decision": "Accept (poster)", "title": "AlpaGasus: Training a Better Alpaca with Fewer Data", "authors": ["Lichang Chen", "Shiyang Li", "Jun Yan", "Hai Wang", "Kalpa Gunaratna", "Vikas Yadav", "Zheng Tang", "Vijay Srinivasan", "Tianyi Zhou", "Heng Huang", "Hongxia Jin"], "abstract": "Large language models~(LLMs) strengthen instruction-following capability through instruction-finetuning (IFT) on supervised instruction/response data. However, widely used IFT datasets (e.g., Alpaca's 52k data) surprisingly contain many low-quality instances with incorrect or irrelevant responses, which are misleading and detrimental to IFT. In this paper, we propose a simple and effective data selection strategy that automatically identifies and removes low-quality data using a strong LLM (e.g., ChatGPT). To this end, we introduce Alpagasus, which is finetuned on only 9k high-quality data filtered from the 52k Alpaca data. Alpagasus significantly outperforms the original Alpaca as evaluated by GPT-4 on multiple test sets and the controlled human study. Its 13B variant matches $>90\\%$ performance of its teacher LLM (i.e., Text-Davinci-003) on test tasks. It also provides 5.7x faster training, reducing the training time for a 7B variant from 80 minutes (for Alpaca) to 14 minutes \\footnote{We apply IFT for the same number of epochs as Alpaca(7B) but on fewer data, using 4$\\times$NVIDIA A100 (80GB) GPUs and following the original Alpaca setting and hyperparameters.}. In the experiment, we also demonstrate that our method can work not only for machine-generated datasets but also for human-written datasets. Overall, Alpagasus demonstrates a novel data-centric IFT paradigm that can be generally applied to instruction-tuning data, leading to faster training and better instruction-following models.", "keywords": "data selection; large language model; instruction tuning;", "qa_pairs": [{"question": "What is the frequency of mistakes made by GPT-4 as the filtering model, and how does the performance of Alpagasus vary when using different filtering models such as GPT-3.5, Claude-2, and Llama?", "answer": "The paper does not use GPT-4 as the filtering model; it uses ChatGPT (GPT-3.5-turbo) and Claude2. Comprehensive evaluations across four test sets, including GPT4-based and human studies, demonstrate the effectiveness of the filtering method. The follow-up work, Humpback, shows that the 70B-LLaMA model can self-filter with proper prompts and thresholds, indicating the method is not highly dependent on specific models. Manual examination of 400 examples ( i.e., 200 examples from the high-quality 9k data and another 200 examples from the low-quality 43k) revealed no mistakes made by the LLM filter. The filtering method is reliable across different models, including ChatGPT, Claude, and LLaMA.", "category": "Experimental_Exposition"}, {"question": "What are the costs associated with using ChatGPT for data filtering, and how do they compare to the costs of human annotation?", "answer": "The cost of using ChatGPT for filtering 52,000 data samples is approximately 50 dollars and takes around 1.5 hours. In contrast, human annotation would cost around 10,825 dollars and take at least 433 hours, assuming one person takes 30 seconds to rate each data sample, the total time will be: `T=(52,002 x 30s) / (60 x 60)=433.35 hrs`. Additionally, the investment in data filtering is a one-off expense, and the filtered data supports multiple model iterations, such as LLaMA-1 and LLaMA-2. The methodology also reduces training costs for larger models, such as reducing the cost for 13B models from 225.28 dollars to 40.96 dollars, with potential for even greater savings for ultra-large models like BLOOM-176B.", "category": "Method_Comparison"}, {"question": "Why does AlpaGasus perform partially weaker than Alpaca on the MMLU dataset, and why is the improvement of AlpaGasus over Alpaca considered marginal?", "answer": "AlpaGasus performs partially weaker than Alpaca on the MMLU dataset because MMLU is a knowledge-intensive benchmark not specifically designed to evaluate instruction-following capability, which is the focus of AlpaGasus's instruction-finetuning (IFT). The goal of IFT is to refine the model's ability to comprehend and respond to complex user queries, not to enhance knowledge acquisition. AlpaGasus is designed to maintain performance on MMLU rather than significantly improve it. The improvement of AlpaGasus over Alpaca is considered marginal because instruction-following is a more important evaluation metric for instruction tuning, and AlpaGasus consistently demonstrates gains in instruction-following scores. Additionally, AlpaGasus outperforms models trained with randomly selected samples across all model scales, highlighting the efficacy of the data filtering approach. For example, on Dolly, the 13B(3k) model is better than 13B(15k) on all four benchmark datasets.", "category": "Method_Disambiguation"}, {"question": "How do you address the potential bias introduced by using GPT-4 for both data quality evaluation and final model output evaluation in your study?", "answer": "Authors used GPT-3.5-turbo for data filtering and GPT-4 for automatic evaluation, which are distinct models with different functionalities. Additionally, authors conducted human-based evaluations to validate findings, and applied Claude2 as an alternative LLM filter to mitigate bias concerns. It shows AlpaGasus' answers are preferred when compared with the answers generated by Alpaca. ", "category": "Method_Mechanics"}, {"question": "How many runs are performed for the random splits, and what are the standard deviations of the results?", "answer": "Authors generate another random split with a different random seed and evaluate the model trained with it. The benchmark results are shown in the provided table, which includes the performance of Alpaca(9k-random)-v1, Alpaca(9k-random)-v2, and AlpaGasus. The instruction-following evaluations are also provided, with the winning score calculated as `1 + (#Win−#Lose) / (#Testset)`, as shown in the caption of Figure 1.\n\n| Dataset | BBH | DROP | Humaneval | MMLU |\n | --- | --- | --- | --- | --- | \n| Alpaca(9k-random)-v1 | 31.89 | 25.88 | 11.59 | 36.93 | \n| Alpaca(9k-random)-v2 | 31.71 | 25.63 | 11.72 | 36.71 | \n| AlpaGasus | 33.76 | 26.03 | 12.20 | 38.78 | \n\n|Win score| Vicuna | Koala | WizardLM | Self-Instruct | \n|--- | --- | --- | --- | --- |\n |Ours-9k vs. 9k-random-v1 | 1.213 | 1.022 | 1.060 | 1.056 | \n|Ours-9k vs. 9k-random-v2 | 1.188 | 1.033 | 1.069 | 1.071 | \n\n", "category": "Experimental_Exposition"}, {"question": "What is the agreement between the scores obtained using Claude2 as the LLM filter and those using ChatGPT, and how does this address potential bias concerns?", "answer": "The results demonstrate that the effectiveness of the method is consistent across different LLM filters, including Claude2 and ChatGPT, as evaluated by GPT-4 as the judge. This consistency mitigates potential bias concerns.", "category": "Method_Mechanics"}, {"question": "What evidence supports the reliability of the LLM filter in selecting high-quality data for instruction tuning?", "answer": "The reliability of the LLM filter is supported by its effectiveness across various rating dimensions (e.g., accuracy and helpfulness), LLM filters (e.g., ChatGPT and Claude-2), base model families (e.g., LLaMA-1 and LLaMA-2), model sizes (e.g., 7B and 13B), dataset types (e.g., machine-generated and human-written), and evaluation methods (e.g., GPT-4-based evaluations and human studies). This demonstrates its capability in selecting high-quality data for instruction tuning.", "category": "Method_Disambiguation"}, {"question": "Does the filtering method used in the study scale effectively to larger models, such as 30B, despite the computational constraints mentioned in the limitations?", "answer": "Yes, the filtering method scales effectively to larger models. Experiments were conducted on a 30B model using LoRA, showing that AlpaGasus-30B with 9k filtered data outperforms Alpaca-30B with 52k data. The models were trained on 8xRTX A6000 for ~18 hours for Alpaca and ~3.5 hours for AlpaGasus, with a batch size of 128, a learning rate of 1e-5, a max length of 1024, and 5 epochs. Alpagasus-30B(9k data) vs. Alpaca-30B(52k data): | Testset | Win | Tie | Lose | |--- | --- | --- | --- | | Vicuna | 20 | 50 | 10 | | Koala | 38 | 113 | 29 | | WizardLM | 41 | 141 | 36 | | Self-Instruct | 43 | 172 | 37 | Alpagasus-30B(9k data) vs. Alpaca-30B(9k random data): | Testset | Win | Tie | Lose | |--- | --- | --- | --- | | Vicuna | 18 | 53 | 9 | | Koala | 35 | 114 | 31 | | WizardLM | 47 | 148 | 23 | | Self-Instruct | 50 | 165 | 37 | From the table, authors can see that when the model size goes up to 30B, the paper's Alpagasus can still perform better than the Alpaca-52k with only 9k filtered data.", "category": "Experimental_Exposition"}, {"question": "What additional experiments were conducted to evaluate the adversarial robustness of the data filtering method, and how do the results demonstrate its effectiveness?", "answer": "Additional experiments were conducted on the llm-rule benchmark, which evaluates how well LLMs follow developer-provided rules under adversarial inputs. The adversarial robustness of AlpaGasus-7B(9k), Alpaca-7B(52k), and Alpaca-7B(9k random) was tested. \n| | Avg. | Indirect | Just-Ask | Legalese | Obfs | Rule-C | Sim |\n |---------------|---------------|---|---------------|---------------|---------------|---------------|---------------| \n| Alpagasus | **38.12** | 37.97 | 36.36 | 35.23 | 38.96 | 38.64 | 41.67 | \n| Alpaca | 38.02 | 38.23 | 40.68 | 32.95 | 38.96 | 38.63 | 41.67 |\n | Alpaca(random) | 35.58 | 34.22 | 36.36 | 36.36 | 38.96 | 35.61 | 35.71 | \n\nThe results, shown in a table, indicate that AlpaGasus performs the best among the three models across six adversarial strategies (`Indirect`, `Just-ask`, `legalese`, `Obfuscation`, `Rule Change`, and `Simulation`), demonstrating its effectiveness on adversarial robustness.", "category": "Experimental_Exposition"}, {"question": "How does the granularity of the score (0.5 for ChatGPT and 1 for Claude2) affect the performance of the models, and is this difference inherent to the models' outputs?", "answer": "The granularity of ChatGPT is 0.5, and the granularity of Claude2 is 1. This difference in granularity is inherent to the models' outputs in response to rating prompts. The score distributions for both models are shown in Figure 5 and Figure 14, respectively. The paper's analysis indicates that both granularity levels effectively contribute to the filtration and refinement of data.", "category": "Method_Mechanics"}, {"question": "What is the effect of system prompts on the final performance of Claude2 compared to ChatGPT?", "answer": "Claude2 operates without utilizing system prompts, unlike ChatGPT. Despite this difference, Claude2 demonstrates considerable proficiency in executing filtering tasks, as shown in Figure 14, suggesting that the absence of system prompts does not significantly impede its performance efficiency.", "category": "Method_Comparison"}, {"question": "Does reducing the quantity of training data negatively impact the adversarial robustness of the tuned models, specifically AlpaGasus-7B(9k), Alpaca-7B(52k), and Alpaca-7B(9k random)?", "answer": "No, the robustness is not affected. Based on the adversarial robustness benchmark results, AlpaGasus-7B(9k) outperforms Alpaca-7B(52k) and Alpaca-7B(9k random) across six adversarial strategies (`Indirect`, `Just-ask`, `legalese`, `Obfuscation`, `Rule Change`, and `Simulation`). Additionally, the filtering method used in AlpaGasus enhances safety by filtering biased responses and backdoor examples in the training data.\n | | Avg. | Indirect | Just-Ask | Legalese | Obfs | Rule-C | Sim |\n |---------------|---------------|---|---------------|---------------|---------------|---------------|---------------| \n| Alpagasus | **38.12** | 37.97 | 36.36 | 35.23 | 38.96 | 38.64 | 41.67 |\n | Alpaca | 38.02 | 38.23 | 40.68 | 32.95 | 38.96 | 38.63 | 41.67 | \n| Alpaca(random) | 35.58 | 34.22 | 36.36 | 36.36 | 38.96 | 35.61 | 35.71 | ", "category": "Experimental_Exposition"}, {"question": "Does the follow-up work Humpback demonstrate that the LLaMA-2-70B model can self-filter its responses using a method similar to the one employed in the study?", "answer": "True", "category": "Claim_Verification"}, {"question": "Was Claude2 used as an alternative LLM filter to address potential bias concerns related to GPT-3.5-turbo?", "answer": "True", "category": "Claim_Verification"}, {"question": "Were the results in Figure 14 evaluated using GPT-4?", "answer": "True", "category": "Claim_Verification"}, {"question": "Is the cost of using ChatGPT for filtering 52,000 data samples less than the cost of human annotation for the same amount of data?", "answer": "True", "category": "Claim_Verification"}, {"question": "Does the reduced quantity of data negatively impact the adversarial robustness of the tuned models according to the experimental results?", "answer": "False", "category": "Claim_Verification"}, {"question": "Do the experimental results on the 30B model show that Alpagasus outperforms Alpaca-52k with only 9k filtered data across various testsets?", "answer": "True", "category": "Claim_Verification"}, {"question": "Are the standard deviations of the results provided in the paper for the random splits?", "answer": "False", "category": "Claim_Verification"}, {"question": "Were the experiments on the 30B model conducted with the same computational resources and training parameters as specified in the rebuttal?", "answer": "True", "category": "Claim_Verification"}, {"question": "Did the authors account for the costs associated with using ChatGPT for data filtering in their comparison of finetuning costs?", "answer": "True", "category": "Claim_Verification"}, {"question": "Is the filtering method's effectiveness demonstrated on models larger than 13B, specifically on a 30B model?", "answer": "True", "category": "Claim_Verification"}, {"question": "Was more than one random split generated and evaluated to assess the model's performance consistency?", "answer": "True", "category": "Claim_Verification"}, {"question": "Did the study use GPT-4 for both data filtering and final model output evaluation, potentially leading to bias towards GPT-4's preferences?", "answer": "False", "category": "Claim_Verification"}]} {"id": "IEduRUO55F", "venue": "ICLR 2024", "paper_decision": "Accept (poster)", "title": "Eureka: Human-Level Reward Design via Coding Large Language Models", "authors": ["Yecheng Jason Ma", "William Liang", "Guanzhi Wang", "De-An Huang", "Osbert Bastani", "Dinesh Jayaraman", "Yuke Zhu", "Linxi Fan", "Anima Anandkumar"], "abstract": "Large Language Models (LLMs) have excelled as high-level semantic planners for sequential decision-making tasks. However, harnessing them to learn complex low-level manipulation tasks, such as dexterous pen spinning, remains an open problem. We bridge this fundamental gap and present Eureka, a human-level reward design algorithm powered by LLMs. Eureka exploits the remarkable zero-shot generation, code-writing, and in-context improvement capabilities of state-of-the-art LLMs, such as GPT-4, to perform evolutionary optimization over reward code. The resulting rewards can then be used to acquire complex skills via reinforcement learning. Without any task-specific prompting or pre-defined reward templates, Eureka generates reward functions that outperform expert human-engineered rewards. In a diverse suite of 29 open-source RL environments that include 10 distinct robot morphologies, Eureka outperforms human experts on 83% of the tasks, leading to an average normalized improvement of 52%. The generality of Eureka also enables a new gradient-free in-context learning approach to reinforcement learning from human feedback (RLHF), readily incorporating human inputs to improve the quality and the safety of the generated rewards without model updating. Finally, using Eureka rewards in a curriculum learning setting, we demonstrate for the first time, a simulated Shadow Hand capable of performing pen spinning tricks, adeptly manipulating a pen in circles at rapid speed.", "keywords": "Large Language Models;Reinforcement Learning;Dexterous Manipulation;Reward Learning;Robotics", "qa_pairs": [{"question": "Does Eureka use the same number of environment samples as the baseline for training, and how does its sample efficiency compare to the baselines?", "answer": "For the final training runs, Eureka uses the exact same number of environment samples as the baseline final reward functions (e.g., L2R and Human) for training. As stated in Section 4.2 of the paper, 'for each task, all final reward functions are optimized using the same RL algorithm with the same set of hyperparameters'; this fixed set of hyperparameters includes the predetermined number of environment samples used for RL training. Given that the hyperparameters are chosen by the original benchmark designers to ensure the Human reward function is effective, the paper's evaluation setting in fact disadvantages Eureka’s reward functions as Eureka does not tune the RL algorithm (PPO) to work well with its reward functions. as shown in the aggregate RL training curves on the 20 Dexterity tasks in Figure 10, Appendix F, Eureka reward functions exhibit better sample efficiency compared to the baselines, but given that the RL algorithm is not tuned to Eureka rewards, the learning curves do exhibit slightly more variance throughout training.", "category": "Experimental_Setup"}, {"question": "How does Eureka handle adaptation to complex environments that may exceed the model's context window length?", "answer": "Eureka has been demonstrated on complex environments like the bi-manual Dexterity benchmark, which have state dimensions larger than 400 and observation source code spanning over 200 lines. To ensure compatibility, an automatic script extracts the observation portion of the environment source code, keeping it within the context length. Eureka primarily requires information about environment state and action spaces, which is of reasonable token length even for large environments. Additionally, advancements in LLM context lengths and future improvements in efficient LLM inference methods are expected to mitigate potential bottlenecks.", "category": "Method_Mechanics"}, {"question": "What are the exact inputs and outputs in the evolutionary search iteration described in the subsection on evolutionary search?", "answer": "In the evolutionary search iteration, the inputs are (a) the best reward function from the previous iteration, (b) its reward reflection (Section 3.3), and (c) the prompt instruction for how to mutate the provided reward function given its reward reflection feedback. These inputs prompt the LLM to generate $K$ i.i.d. outputs, corresponding to $K$ reward samples.", "category": "Method_Disambiguation"}, {"question": "Can the success/fitness function be used to initialize the Eureka reward search process?", "answer": "Yes, the success/fitness function can be used to initialize the Eureka reward search process. The authors have conducted an experiment where a human-supplied reward function was used to initialize Eureka, as described in Section 4.4. Using the fitness function, which is the optimization objective for Eureka reward search, can lead to reward functions that better optimize the objective, such as creating a success bonus in reward generations.", "category": "Experimental_Setup"}, {"question": "Why do the paper claims that EUREKA generates reward functions that outperform expert human-engineered rewards despite the lack of statistically significant differences in performance?", "answer": "First and foremost, the authors disagree with the notion that significance tests should be considered in the first place. [1] in fact argues against the significance test driven way of method comparison, stating that evaluation should embrace ‘statistical thinking but avoid statistical significance tests (e.g., p-value < 0.05) because of their dichotomous nature (significant vs. not significant) and common misinterpretations such as 1) lack of statistically significant results does not demonstrate the absence of effect.’ The authors agree with this statement in its entirety, and have already included an extensive amount of evaluation, including many aspects suggested by the reader and by [1], that together construct a holistic performance profile that suggests the improvement is very likely to exist. Second, even if statistical significance were considered, Eureka in fact produces reward functions that are statistically significantly better than human-designed reward functions. In particular, as suggested by [1], the probability of improvement is considered a robust comparison metric. These results are presented in Figure 12; the probability that the Eureka reward outperforms the human reward on a randomly selected task is above 50% with statistical significance as determined by a Mann-Whitney U-Test (also suggested by [1]) at p-value threshold of 0.05 (p<<0.05); the lower end of the 95% CI is well above 55%. In conclusion, in light of the added metrics that provide detailed performance profiles of Eureka and the baselines, the paper’s original claims are only strengthened.\n\n[1] Agarwal, Rishabh, et al. \"Deep reinforcement learning at the edge of the statistical precipice.\" Advances in neural information processing systems 34 (2021): 29304-29320.", "category": "Method_Disambiguation"}, {"question": "Does Eureka use significantly more environment samples than the baseline during training, and are the RL training curves included in the paper?", "answer": "No, Eureka uses the exact same number of environment samples as the baseline final reward functions (e.g., L2R and Human) for training, as stated in Section 4.2 of the paper. This fixed set of hyperparameters includes the predetermined number of environment samples used for RL training. Given that the hyperparameters are chosen by the original benchmark designers to ensure the Human reward function is effective, the paper's evaluation setting in fact disadvantages Eureka’s reward functions as Eureka does not tune the RL algorithm (PPO) to work well with its reward functions. The RL training curves for the 20 Dexterity tasks are included in Figure 10, Appendix F, showing that Eureka reward functions exhibit better sample efficiency compared to the baselines, albeit with slightly more variance due to the RL algorithm not being tuned for Eureka rewards.", "category": "Experimental_Setup"}, {"question": "How does the generality of Eureka's approach hold when tested on different simulators and RL algorithms, given that it has only been evaluated on Isaac Gym and a fixed RL algorithm?", "answer": "Eureka has been tested on the Mujoco Humanoid environment, where it outperformed the official human-written reward function. This demonstrates its effectiveness across different simulators and code syntax. The authors argue that Eureka's reward generation pipeline abstracts away information about the simulator and RL algorithm, making it likely to work on new simulators or algorithms. Additionally, Eureka's generality is claimed over the diversity and complexity of robots and tasks, supported by its performance on 29 tasks spanning 10 distinct robots with varying observation code. Isaac Gym's status as a widely used benchmark [3,4]further supports the promise of Eureka's results for real-world policy deployment.\n| | Eureka | Human |\n|-----------------|----------|-------|\n| Mujoco Humanoid | **7.68** | 5.92 |\n\n[3] Rudin, Nikita, et al. \"Learning to walk in minutes using massively parallel deep reinforcement learning.\" Conference on Robot Learning. PMLR, 2022.\n\n[4] Handa, Ankur, et al. \"Dextreme: Transfer of agile in-hand manipulation from simulation to reality.\" 2023 IEEE International Conference on Robotics and Automation (ICRA). IEEE, 2023.\n\n", "category": "Experimental_Analysis"}, {"question": "How was the fairness of the comparison between Eureka and the tuned human rewards ensured, and what were the results of this comparison?", "answer": "The fairness of the comparison was ensured by implementing a baseline for Humanoid in the Isaac suite, where 4 components from the human reward functions were selected and their weights were grid-searched. Specifically, 3 possible values (0.1x, 1x, 10x the original value) were tested for each weight, resulting in 81 tuned human reward functions (80 new ones). The results showed that while Human (Tuned) improved, the relative ordering between Eureka and Human did not change. Eureka's best reward generated from scratch outperformed the best tuned human reward function, even though the baseline was unfairly advantaged as it tuned an existing reward function rather than designing one from scratch.\n| | Eureka | Human | Human (Tuned) |\n|----------|----------|-------|---------------|\n| Humanoid | **8.24** | 6.28 | 7.47 |\n", "category": "Experimental_Exposition"}, {"question": "What is the impact on the pen spinning results when considering more detailed material characteristics and physics, such as friction, inertia, and actuator latencies?", "answer": "The pen spinning environment is based on the original Isaac Gym ShadowHand environment, which mirrors the OpenAI Shadow Hand Rubik’s cube environment that has enabled real-world transfer. No changes were made to the physics parameters to simplify the task, ensuring realism. Therefore, the pen spinning environment effectively demonstrates Eureka’s capability in scaling up to very difficult tasks without needing additional modifications to material characteristics or physics.", "category": "Experimental_Analysis"}, {"question": "What is the error bar for the Human (Tuned) reward function in the Humanoid task, and is the improvement of Eureka's reward function over Human (Tuned) statistically significant?", "answer": "The error bar for the Human (Tuned) reward function in the Humanoid task is 7.47 ± 0.12. The improvement of Eureka's reward function over Human (Tuned) is statistically significant, as evidenced by an independent sample t-test with p=0.0002 and a Mann-Whitney U-test with p=0.007.\n| | Eureka | Human (Tuned) |\n|----------|----------------------|-----------------|\n| Humanoid | **8.24** $\\pm$ 0.05 | 7.47 $\\pm$ 0.12 |", "category": "Experimental_Exposition"}, {"question": "What is the relationship between reward reflection and the choices of RL method, and how are these concepts clarified in the manuscript?", "answer": "Reward reflection is a textual evaluation of the reward function, such as summarizing the training dynamics of its components. The discussion about the choices of RL method provides intuitive justification for why reward reflection is helpful. The manuscript has been updated to more clearly separate the procedure of reward reflection from its motivations, with concrete examples provided in Appendix G.1.", "category": "Motivation_Analysis"}, {"question": "What level of detail is required to describe the environment for 'environment as context,' and what specific information is needed for simulators different from Isaac to ensure compatibility?", "answer": "For 'environment as context,' only the state and action variables in the environment need to be exposed in the source code. An automatic script extracts the observation function from the raw environment source code. The prompts and observation source code do not reveal the simulator's identity, ensuring generality. For simulators different from Isaac, the same level of information—specifically, the names of state and action variables—is required. This has been empirically validated with the Mujoco Humanoid environment, where Eureka successfully generated effective reward functions despite differences in how variables are exposed (comment block vs. class attributes).", "category": "Method_Mechanics"}, {"question": "How does the Eureka approach address the limitations of not having full access to the environment code or operating in a real-world setting?", "answer": "The Eureka approach is expected to be useful even without full access to the environment code, as it only requires knowledge of the state and action variables, which can be extracted automatically or accessed via an API. For real-world environments, Eureka can integrate with Sim2Real techniques for policy transfer from simulation, or use state-estimation techniques to construct a symbolic representation of the environment, enabling the definition of reward functions. State-estimation based solutions have been attempted by many other works targeted at learning and deploying in the real world [1,2].\n[1] Smith, Laura, Ilya Kostrikov, and Sergey Levine. \"A walk in the park: Learning to walk in 20 minutes with model-free reinforcement learning.\" arXiv preprint arXiv:2208.07860 (2022).\n\n[2] Handa, Ankur, et al. \"Dextreme: Transfer of agile in-hand manipulation from simulation to reality.\" 2023 IEEE International Conference on Robotics and Automation (ICRA). IEEE, 2023.", "category": "Method_Mechanics"}, {"question": "Is the classification of the generation as 'zero-shot' accurate, and how is 'zero-shot' defined in the context of this study?", "answer": "In this study, 'zero-shot' refers to generation performed without any examples in the prompt, distinguishing it from 'few-shot prompting' where input-output examples are provided. The classification is based on the lack of examples in the prompt, not the composition of the training dataset. The manuscript has been updated to clarify this definition. While the possibility that GPT-4 has seen similar environments in its training data cannot be ruled out, benchmarks were selected after the cut-off date to ensure identical environments were unseen. Additionally, most bi-manual Dexterity tasks are novel, and Eureka demonstrates the ability to transfer general reward design knowledge across domains, as supported by reward correlation analysis in Section 4.3, which finds Eureka to discover novel reward functions compared to the original human-written ones.", "category": "Concept_Understanding"}, {"question": "What is the justification for assuming access to parts of the environment source code in Eureka, and how does this differ from traditional reinforcement learning setups?", "answer": "The problem setting of Eureka is reward design, not reinforcement learning. Reward design traditionally involves humans writing and refining reward function codes through trial and error, and Eureka automates this process. The outer loop of Eureka is a code generation problem, where it is standard to assume access to parts of the source code to generate or complete other parts[1]. Additionally, Eureka’s 'environment as context' procedure only requires the environment’s state and action variables to be exposed, which can be provided via an API without requiring the full environment code. The inner loop of Eureka uses reinforcement learning to evaluate reward candidates, and this loop accesses the environment as a black-box simulation.\n[1] Roziere, Baptiste, et al. \"Code llama: Open foundation models for code.\" arXiv preprint arXiv:2308.12950 (2023).", "category": "Experimental_Setup"}, {"question": "What is the justification for the assumption that the method is applicable only to tasks with known ground-truth reward functions, and how does Eureka handle tasks where such functions are not analytically expressible?", "answer": "The ground-truth reward functions are sparse task success criteria that are easy to define in practice, as demonstrated by their one-line implementation across 29 benchmark tasks (see Appendix B). Eureka is applicable to tasks with programmatic success conditions, which constitute a large space of tasks. Additionally, for tasks where desired behaviors are difficult to express mathematically (e.g., running in a stable gait), Eureka from Human Feedback allows humans to provide fitness feedback in textual form, bypassing the need for an analytical fitness function. This approach has been shown to align reward functions with human intention effectively. Furthermore, the updated manuscript discusses the potential use of vision-language models (VLMs) to automate textual feedback, offering a scalable alternative to human-based fitness feedback.", "category": "Method_Mechanics"}, {"question": "How was the pre-trained policy obtained in the study?", "answer": "The pre-trained policy was obtained by using the Eureka framework, which iteratively discovers better reward functions in the Shadow Hand environment of the Isaac Gym benchmark suite. The cube object was replaced with a pen object. The best Eureka reward was used to train a policy to solve the task, and the resulting converged policy from this training is referred to as the 'pre-trained' policy.", "category": "Method_Mechanics"}, {"question": "What are the key differences between the 'pre-training' and 'fine-tuning' stages in terms of the distribution and sequence of target pen poses?", "answer": "The key difference lies in the distribution of pen target poses. In pre-training, random poses from the SO(3) 3D orientation group are sampled uniformly. When the current target pose is deemed achieved (i.e., pose difference lower than certain threshold), then a new target pose is provided. In the pre-training stage, a random pose from SO(3) 3D orientation group is sampled uniformly. In fine-tuning, target poses are a predetermined sequence of waypoints specifying pen spinning patterns. The policy switches to the next waypoint upon reaching the current one, completing a cycle when all waypoints are reached consecutively, allowing continuous spinning until the episode length is reached.", "category": "Experimental_Analysis"}, {"question": "Is the success of the pen spinning task primarily due to the dual-stage policy optimization rather than the reward design, and does this cast doubt on the central argument of the paper?", "answer": "The success of the pen spinning task is not solely due to either the dual-stage policy optimization or the reward design alone, but rather their combination. An ablation study was conducted where the dual-stage curriculum was fixed, and the Eureka reward with a simple reward function that rewards the policy proportional to the negative distance between the pen’s current pose to the target pose. The resulting policy cannot solve the pre-training stage competently, often dropping the pen with unnatural and jerky hand motion. . The resulting policy failed to solve the pre-training stage competently, demonstrating that both components are necessary. Additionally, the central argument of the paper is not that a good reward function alone is sufficient, but rather that automated reward design is effective at scale, as supported by other experiments in the paper that do not use a curriculum.", "category": "Experimental_Analysis"}, {"question": "What are the computational resources and runtime required for a single run of Eureka with default hyperparameters?", "answer": "A single run of Eureka with default hyperparameters can be executed on 4 32GB memory GPUs (e.g., NVIDIA V100) and takes less than one day of wall clock time, even for the most complex environments such as bimanual manipulation.", "category": "Experimental_Exposition"}, {"question": "For each sampled reward, how many environments are created for training, and how is this number determined?", "answer": "The number of environments created for training is determined by the task-specific hyperparameters set in the original benchmarks. For example, the number of environments is 2048 for Humanoid. The default number works well for all rewards, demonstrating the robustness of the Eureka approach.", "category": "Experimental_Setup"}, {"question": "How is the termination of each running experiment determined in the RL runs?", "answer": "Early termination is not performed for RL runs. Each RL run executes for a fixed number of episodes according to the default task-specific hyperparameters provided in the benchmarks. ", "category": "Experimental_Setup"}, {"question": "Is it possible that RL training is not long enough to miss an effective reward sample, and how is this addressed?", "answer": "It is possible that RL training might miss an effective reward sample if the training duration is insufficient. However, in practice, the benchmark default training hyperparameters are sufficient for discovering good reward functions across tasks. With additional compute budget, the training time can be increased to reduce false negatives.", "category": "Method_Mechanics"}, {"question": "What is the total time required to find a good reward function, and what type of device is used?", "answer": "All experiments took less than one day of wall clock time, and each individual experiment can be executed on 4 V100 GPUs.", "category": "Experimental_Exposition"}, {"question": "Is the Eureka method applicable to tasks involving a variety of object types?", "answer": "Yes, Eureka is a general reward design method applicable to diverse object types. It has been demonstrated to design effective reward functions for tasks like pen re-orientation and spinning, as well as re-orienting a cube on different robot hands. Prior works also support the use of similar reward functions across diverse objects[1,2], suggesting Eureka's applicability.\n\n[1] Chen, Tao, Jie Xu, and Pulkit Agrawal. \"A system for general in-hand object re-orientation.\" Conference on Robot Learning. PMLR, 2022.\n\n[2] Qi, Haozhi, et al. \"In-hand object rotation via rapid motor adaptation.\" Conference on Robot Learning. PMLR, 2023.", "category": "Method_Disambiguation"}, {"question": "How does the Eureka method handle tasks that require image inputs, and what are the potential challenges and strategies involved?", "answer": "The Eureka method can infer state variables relevant to reward definition from vision, leveraging state estimation techniques that have been effective in vision-based robotic learning[3,4]. While accuracy may be challenging in complex scenes, this is a common issue for real-world policy learning methods. Additionally, if only the final policy needs visual inputs, Eureka can design the reward function in simulation and then distill the state-based policy to a vision-based policy, a strategy used in Sim2Real approaches[5].\n[3] Gu, Shixiang, et al. \"Deep reinforcement learning for robotic manipulation with asynchronous off-policy updates.\" 2017 IEEE international conference on robotics and automation (ICRA). IEEE, 2017.\n\n[4] Büchler, Dieter, et al. \"Learning to play table tennis from scratch using muscular robots.\" IEEE Transactions on Robotics 38.6 (2022): 3850-3860.\n\n[5] Lee, Joonho, et al. \"Learning quadrupedal locomotion over challenging terrain.\" Science robotics 5.47 (2020)\n\n", "category": "Method_Mechanics"}, {"question": "Is Eureka capable of writing reward functions for generalized grasping, and how does it address the challenges associated with this task?", "answer": "Yes, Eureka is capable of writing reward functions for generalized grasping. Recent literature has shown that RL-based approaches, combined with an object curriculum and manually-engineered reward components (e.g., object reaching, touching, lifting, and moving to target pose), can effectively learn generalized grasping policies. Eureka has successfully generated these reward components in the Dexterity benchmark suite, demonstrating its capability to incorporate such components and more due to its open-ended search nature. Additionally, Eureka has been shown to work well with curriculum-based learning, as demonstrated in the pen spinning task (Section 4.3), suggesting that a curriculum-based approach with Eureka can also address the challenges of generalized dexterous grasping.", "category": "Method_Mechanics"}, {"question": "Does image-based input reduce environment parallelism due to GPU memory constraints and negatively impact training performance?", "answer": "Yes, training with visual inputs reduces the number of parallel simulations from 2048 to 256 on a single RTX 3090 GPU and negatively impacts RL training performance, as shown in Figure 8 of the original Dexterity paper. The main challenges for vision-based training in simulation include slower simulation speed and instability in vision-based reinforcement learning, which are generic issues in simulation-based visual RL. However, recent advancements, such as a ten-fold increase in vision-based simulation speed without sacrificing parallel environments, suggest potential improvements. Additionally, Eureka can support state-of-the-art dexterous manipulation approaches by designing reward functions for state-based teacher policies, which can then be distilled into vision-based student policies.", "category": "Experimental_Exposition"}, {"question": "What is the detailed evaluation protocol used to measure the performance of reward functions in Section 4.2, and how does it ensure fairness and mitigate biases in comparisons?", "answer": "The evaluation protocol involves obtaining a reward function using each approach (authors and the baselines). For each reward function, 5 PPO runs are performed. For each PPO run, the best checkpoint out of 10 checkpoints taken at fixed training intervals is selected, and its performance is evaluated by averaging over 1000+ test rollouts that randomize initial environment states. The performance is then averaged over the best checkpoints from all PPO runs. This procedure is applied uniformly to all reward functions, including baselines, ensuring no bias towards method. The protocol is fair, as the maximum is taken over the same number of checkpoints for each approach, and outliers are mitigated by averaging over multiple runs. The manuscript has been updated to clarify these details, and additional evaluation metrics have been added to provide a comprehensive assessment of Eureka’s efficacy in reward design.", "category": "Method_Mechanics"}, {"question": "Does the paper claim that a good reward function alone is sufficient to solve all difficult tasks?", "answer": "False", "category": "Claim_Verification"}, {"question": "Is the RL algorithm (PPO) tuned specifically for Eureka’s reward functions in the evaluation setting?", "answer": "False", "category": "Claim_Verification"}, {"question": "Does the EUREKA generate reward functions statistically significantly better than human-designed rewards, based on a Mann-Whitney U-Test with a p-value threshold of 0.05?", "answer": "True", "category": "Claim_Verification"}, {"question": "Did the ablation study show that the success of the pen spinning task is due to the dual-stage policy optimization alone?", "answer": "False", "category": "Claim_Verification"}, {"question": "Do all experiments in the paper use a curriculum-based approach?", "answer": "False", "category": "Claim_Verification"}, {"question": "Was Eureka evaluated on multiple base simulators and with different RL algorithms to support its claimed generality?", "answer": "False", "category": "Claim_Verification"}, {"question": "Does Eureka use a different number of environment samples compared to the baseline for final training runs?", "answer": "False", "category": "Claim_Verification"}, {"question": "Does Eureka's approach to generalized grasping rely solely on end-to-end RL without additional strategies like an object curriculum?", "answer": "False", "category": "Claim_Verification"}]} {"id": "Rc7dAwVL3v", "venue": "ICLR 2024", "paper_decision": "Accept (spotlight)", "title": "NaturalSpeech 2: Latent Diffusion Models are Natural and Zero-Shot Speech and Singing Synthesizers", "authors": ["Kai Shen", "Zeqian Ju", "Xu Tan", "Eric Liu", "Yichong Leng", "Lei He", "Tao Qin", "sheng zhao", "Jiang Bian"], "abstract": "Scaling text-to-speech (TTS) to large-scale, multi-speaker, and in-the-wild datasets is important to capture the diversity in human speech such as speaker identities, prosodies, and styles (e.g., singing). Current large TTS systems usually quantize speech into discrete tokens and use language models to generate these tokens one by one, which suffer from unstable prosody, word skipping/repeating issue, and poor voice quality. In this paper, we develop NaturalSpeech 2, a TTS system that leverages a neural audio codec with residual vector quantizers to get the quantized latent vectors and uses a diffusion model to generate these latent vectors conditioned on text input. To enhance the zero-shot capability that is important to achieve diverse speech synthesis, we design a speech prompting mechanism to facilitate in-context learning in the diffusion model and the duration/pitch predictor. We scale NaturalSpeech 2 to large-scale datasets with 44K hours of speech and singing data and evaluate its voice quality on unseen speakers. NaturalSpeech 2 outperforms previous TTS systems by a large margin in terms of prosody/timbre similarity, robustness, and voice quality in a zero-shot setting, and performs novel zero-shot singing synthesis with only a speech prompt. Audio samples are available at https://naturalspeech2.github.io/.", "keywords": "text-to-speech;large-scale corpus;non-autoregressive;diffusion", "qa_pairs": [{"question": "What experimental results and analyses demonstrate the effectiveness of the modules in applications beyond Text-to-Speech (TTS), specifically in singing voice synthesis?", "answer": "The paper has conducted ablation experiments in singing voice synthesis: 1) Removing CE loss significantly worsens singing generation quality, similar to TTS results, demonstrating CE loss effectiveness. 2) Without explicit pitch modeling, the model loses the ability to generate singing audio following specific music scores, resulting in poor quality. Pitch information is crucial for guiding the singing voice synthesis process.", "category": "Experimental_Exposition"}, {"question": "What are the roles of SoundStream and WaveNet in the proposed model, and how do they interact with other components such as the prior model, diffusion model, and audio codec?", "answer": "SoundStream is used as the neural audio codec architecture because it provides good reconstruction quality, low bitrate, and converts waveforms into continuous vectors while retaining fine-grained details. Based on the quantized token IDs, the paper can design the regularization loss, which further enhances the prediction precision. The architecture is adapted by using the post-quantized latent $z$ as the representation for waveform $x$ and as the training target for the diffusion model, along with a regularization loss $L_{ce-rvq}$. WaveNet is chosen as the architecture for the diffusion model due to its superior performance in audio quality (CMOS) compared to other architectures like the vanilla transformer, conformer, and UNet. It is enhanced with a Q-K-V attention and a FiLM layer for in-context learning. The system consists of three components: a prior model, a diffusion model, and an audio codec. Similar to [1], the prior model, which includes a phoneme encoder and a duration/pitch predictor, encodes text $y$ into a prior $c$. The diffusion model predicts the speech representation $z$ using $c$ as a condition, and the audio codec generates the speech signal $x$ from $z$.\"\n\n[1] Ren, Yi, et al. Fastspeech 2: Fast and high-quality end-to-end text to speech.", "category": "Method_Mechanics"}, {"question": "Does the paper claim that discrete token sequences must necessarily be longer than continuous sequences, and how does NaturalSpeech 2 address the issue of increased sequence length?", "answer": "The paper does not claim that discrete token sequences must necessarily be longer than continuous sequences. It points out that previous works using multiple RVQ discrete token sequences for speech representation result in a multiple-fold increase in length when flattened. It's true that some attempts have been made to address this issue, but they still have their own problems. AudioLM[1] predicts the first two RVQ token sequences in the first stage, and predicts the remaining RVQ token sequences in the second stage. However, this approach has two drawbacks: 1) it requires two separate AM models and a two-stage generation process; 2) it still needs the flattening of the code sequences, which also extends the sequence length. VALL-E [2] first predicts the first RVQ token sequence in an AR manner, and then predicts the other RVQ token sequences in a NAR manner, which makes the modeling much more complex compared with one-stage generation. Moreover, MusicGen[3] claims that such parallel modeling may impact system performance. In contrast, NaturalSpeech 2 uses a single continuous latent instead of multiple discrete tokens for each speech frame. It can prevent the increase in sequence length and support one-stage generation, which helps enhance overall performance. \n\n[1] Borsos, Zalán, et al. Audiolm: a language modeling approach to audio generation. \n[2] Wang Chengyi, et al. Neural codec language models are zero-shot text to speech synthesizers. \n[3] Copet, Jade, et al. Simple and Controllable Music Generation.", "category": "Method_Disambiguation"}, {"question": "What are the advantages of using a diffusion model over other non-autoregressive (NAR) models, and how does the performance comparison with FastSpeech2 demonstrate these advantages?", "answer": "The diffusion model incorporates multiple iterations during inference, enabling progressive refinement over these iterations, which enhances modeling capability and makes it particularly effective for high-quality generation. To demonstrate this, FastSpeech2[1] was adapted as a NAR baseline by adding cross-attention on speech prompts for zero-shot synthesis and changing the prediction target from mel-spectrogram to latent representation. Scaled to 400M parameters and trained on the same MLS dataset, the significant performance gap shown in Table 2 highlights the limitations of FastSpeech2's modeling capability compared to the diffusion model.\n\n[1] Ren, Yi, et al. Fastspeech 2: Fast and high-quality end-to-end text to speech.", "category": "Method_Comparison"}, {"question": "What does the term 'prior model' in Section 3.2 refer to, and how is it trained?", "answer": "The 'prior model' in Section 3.2 collectively refers to the phoneme encoder and the duration/pitch predictor, which are trained jointly as described in equation (6).", "category": "Concept_Understanding"}, {"question": "What are the variance values for the prosodic measures, specifically for pitch and duration, along with their 95% confidence intervals?", "answer": "For pitch, the measures (Mean, Std, Skew, Kurt) are $10.11_{\\pm 0.08}, 6.18_{\\pm 0.06}, 0.50_{\\pm0.01},1.01_{\\pm 0.03}$, respectively. For duration, the measures are $0.65_{\\pm 0.01}, 0.70_{\\pm 0.01}, 0.60_{\\pm 0.01}, 2.99_{\\pm 0.07}$, respectively. These results demonstrate that the improvements in Table 3 are statistically significant.", "category": "Experimental_Exposition"}, {"question": "Why is NaturalSpeech2 a good fit for ICLR despite being related to speech representation learning, which is typically addressed in speech-specific venues like InterSpeech or ICASSP?", "answer": "The NaturalSpeech 2 paper is fitting for ICLR because it addresses representation issues in large-scale TTS systems by using a single continuous sequence instead of multiple discrete token sequences, thereby resolving the dilemma between the codec and the acoustic model. Additionally, it introduces a new learning paradigm involving latent diffusion and continuous representation, which effectively addresses such issues in the field of speech representation learning in large-scale TTS. This research is aligned with the core interests of ICLR, particularly in the primary area of ‘representation learning for computer vision, audio, language, and other modalities’.", "category": "Method_Disambiguation"}, {"question": "What is the shortest prompt length in seconds that can be used for zero-speech synthesis while maintaining high-quality speech generation, as measured by SMOS on the LibriSpeech test set?", "answer": "The shortest prompt length tested is 1.0 seconds, which results in an SMOS score of 3.79 on the LibriSpeech test set. This demonstrates that NaturalSpeech 2 can generate high-quality speech even with a reduced prompt length, highlighting the system's robustness and stability.\n\n| Prompt Length| SMOS|\n| ------- | ---- | \n| 3.0 s | 4.06 |\n| 2.0 s | 3.98 |\n| 1.0 s | 3.79 |", "category": "Experimental_Exposition"}, {"question": "What are the results of experiments conducted by varying model sizes and data sizes, and what do these results indicate about the importance of data size and model size in generating high-quality speech?", "answer": "The results of experiments conducted by varying model sizes and data sizes are as follows:\n| Model Size | Data Size | CMOS |\n| -------------- | ----- | ----- |\n| 400M | 44,000 h | 0.00 |\n| 400M | 10,000 h | -0.06 |\n| 400M | 1,000 h | -0.41 |\n| 60M | 1,000 h | -0.52 |\n\nThese results indicate that:\n1. Decreasing the data size from 44k hours to 1k hours while keeping the model size unchanged leads to a consistent drop in CMOS, showing that data size is important for generating high-quality speech.\n2. Decreasing the model size from 400M to 60M while keeping the data size unchanged results in a CMOS drop of 0.11, indicating that model size is also important.", "category": "Experimental_Exposition"}, {"question": "What are the additional metrics, such as WER and SMOS results, for NaturalSpeech 2 under different diffusion steps?", "answer": "The SMOS and WER results are reported in the table below:\n\n| Diffusion Step | RTF | CMOS | SMOS | WER |\n| -------------- | ----- | ----- | --------------- | ---- |\n| 150 | 0.366 | 0.00 | 4.06 | 2.01 |\n| 100 | 0.244 | -0.02 | 4.04 | 2.04 |\n| 50 | 0.124 | -0.08 | 3.98 | 2.09 |\n| 20 | 0.050 | -0.21 | 3.88 | 2.15 |\n\nThese results are in line with CMOS, further illustrating the trade-off between quality and inference speed.", "category": "Experimental_Exposition"}, {"question": "Did the paper experiment with training your model using pre-quantized versus post-quantized latent representations, and what were the outcomes in terms of performance and storage efficiency?", "answer": "In the preliminary experiment, the paper did not observe performance improvements when replacing the post-quantized representation with the pre-quantized representation.\n\nMoreover, using post-quantized representation is driven by engineering considerations. For example, rather than directly storing 256-dimensional FP32 (256 x 32 bits) latent representations, the paper only needed to store 16 INT16 quantized IDs (16 x 16 bits), leading to a 32x boost in storage efficiency.", "category": "Experimental_Analysis"}, {"question": "How is the duration of phonemes extracted in this work, and what is the source of the singing voice data?", "answer": "The singing voice data comes in the form of recorded audio, not musical scores. The duration of phonemes is extracted using the same alignment tool as described in the paper (see Appendix E for additional details)", "category": "Experimental_Setup"}, {"question": "What is the method used to extract pitch information, including the algorithm and parameters?", "answer": "The pitch of each frame is extracted using the pyworld[1] library with the dio + stonemask algorithm, and the parameters are set to default.\n\n[1] https://github.com/JeremyCCHsu/Python-Wrapper-for-World-Vocoder", "category": "Experimental_Setup"}, {"question": "How does the performance of the paper's audio codec implementation compare to the official SoundStream codec in terms of VISQOL score at 12.8kbps?", "answer": "The paper's implementation achieves a VISQOL score of 4.38, which is competitive with the official SoundStream paper's score of 4.26 at 12.8kbps.", "category": "Experimental_Exposition"}, {"question": "What is the definition of singing voice synthesis as used in the paper, and how does it differ from singing voice conversion?", "answer": "Singing voice synthesis in the paper's work involves generating singing from lyrics, ground truth duration, and ground truth pitch, rather than from recorded singing voice. This process is not singing voice conversion. The ground truth pitch and duration can be determined by a separately-trained neural network conditioned on musical scores, and the paper uses these during inference for simplification, following previous works [1,2].\n\n[1] Liu, Jinglin, et al. Diffsinger: Singing voice synthesis via shallow diffusion mechanism.\n\n[2] Huang, Rongjie, et al. Make-A-Voice: Unified Voice Synthesis With Discrete Representation.", "category": "Concept_Understanding"}, {"question": "Can the proposed method be adapted or refined to reduce its dependency on additional modules such as the prompt encoder, second attention block, CE-RVQ loss, and pitch predictor?", "answer": "1) For the prompt encoder, it is used to encode the prompt speech for high-quality zero-shot text-to-speech synthesis, a technique that is also widely used in previous works, such as [1,2,3]. 2) For the second attention block, it is crucial for NaturalSpeech 2 for high-quality synthesis. Intuitively, the prompt needs to provide the model with aspects like timbre, prosody, energy, background, etc. Thus, the paper adopts mm query tokens in the second attention block to model these important aspects. With experiments in Sec. 4.3 (without query attention), it can be observed that this component is beneficial to the audio generation quality. 3) For the CE-RVQ loss, it can significantly enhance the performance while incurring low computational cost. Intuitively, it is a regularization constraint inspired by the hierarchical structure of the audio codec. To ensure high-quality generation, the paper constrains the latent distribution and proposes the CE Loss by matching the predicted $z_0$ with each quantizer. With experiments in Sec. 4.3 (without CE loss), it can be observed that both the CMOS and WER will degrade by removing it, which demonstrates the effectiveness of CE-RVQ loss. 4) For the pitch predictor, it is a flexible module in NaturalSpeech 2. The paper has conducted the ablation experiment by removing the pitch predictor and observed no noticeable decline in performance. However, it significantly enhances the controllability of pitch, which is necessary for singing voice synthesis (refer to Sec. 4.4 for more information).\n\n[1] Arik, Sercan, et al. Neural voice cloning with a few samples. \n[2] Jia, Ye, et al. Transfer learning from speaker verification to multispeaker text-to-speech synthesis. \n[3] Jiang, Ziyue, et al. Mega-TTS: Zero-Shot Text-to-Speech at Scale with Intrinsic Inductive Bias.", "category": "Experimental_Exposition"}]} {"id": "efFmBWioSc", "venue": "ICLR 2024", "paper_decision": "Accept (poster)", "title": "Multimodal Web Navigation with Instruction-Finetuned Foundation Models", "authors": ["Hiroki Furuta", "Kuang-Huei Lee", "Ofir Nachum", "Yutaka Matsuo", "Aleksandra Faust", "Shixiang Shane Gu", "Izzeddin Gur"], "abstract": "The progress of autonomous web navigation has been hindered by the dependence on billions of exploratory interactions via online reinforcement learning, and domain-specific model designs that make it difficult to leverage generalization from rich out-of-domain data.\nIn this work, we study data-driven offline training for web agents with vision-language foundation models.\nWe propose an instruction-following multimodal agent, WebGUM, that observes both webpage screenshots and HTML pages and outputs web navigation actions, such as click and type.\nWebGUM is trained by jointly finetuning an instruction-finetuned language model and a vision encoder with temporal and local perception on a large corpus of demonstrations.\nWe empirically demonstrate this recipe improves the agent's ability of grounded multimodal perception, HTML comprehension, and multi-step reasoning, outperforming prior works by a significant margin. \nOn the MiniWoB, we improve over the previous best offline methods by more than 45.8%, even outperforming online-finetuned SoTA, humans, and GPT-4-based agent. \nOn the WebShop benchmark, our 3-billion-parameter model achieves superior performance to the existing SoTA, PaLM-540B.\nFurthermore, WebGUM exhibits strong positive transfer to the real-world planning tasks on the Mind2Web.\nWe also collect 347K high-quality demonstrations using our trained models, 38 times larger than prior work, and make them available to promote future research in this direction.", "keywords": "Web Navigation;Foundation Models;Large Language Models;Instruction Finetuning;Decision Making;Multimodal Document Understanding", "qa_pairs": [{"question": "What measures were taken to ensure the high quality of the generated dataset, and is there evidence to support its quality?", "answer": "The dataset quality was maintained by running LLM agents with 10,000 episodes per task and retaining only successful trajectories, a practice known as reward filtering. This is a common practice in web navigation, as used by Humphreys et al. (2022) [1]. This ensures the dataset does not include noisy data from failure episodes. Additionally, qualitative analysis in Table 15 (Appendix L) compares episodes from the 347K dataset with a previous 12K dataset, showing that the paper's dataset exhibits 'shortest' behaviors compared to 'hesitant' behaviors (e.g. clicking the same checkbox several times) in the previous dataset, thus demonstrating controlled quality.\n\n[1]Humphreys et al., (2022) A data-driven approach for learning to control computers (https://arxiv.org/abs/2202.08137) ", "category": "Experimental_Setup"}, {"question": "What does 'rollout a LLM policy with 100 episodes per task' mean in the context of the data generation process, and what are the inputs and outputs of this process?", "answer": "'Rollout' refers to deploying WebN-T5 (the LLM policy) on MiniWoB environments, where WebN-T5 was tasked with solving 100 episodes per task across all 56 tasks. The inputs include HTML, instruction, and action history, and the output is a dictionary-format action, as described in Figure 2.", "category": "Concept_Understanding"}, {"question": "What are the reasons that a small model like WebGUM can outperform humans in general web navigation, and is this performance due to overfitting to a specific dataset(Table 1)?", "answer": "In web navigation literature, the number of parameters does not always correlate to the performance. For instance, CC-Net [1], trained through supervised learning and reinforcement learning, only has small-scale architectures compared to LLMs (transformer with 8 layers, 8 heads, and a 512-dimensional embedding, a dual-layer LSTM with 512 hidden units per layer, and 4 blocks ResNet). However, CC-Net can exhibit human-level web navigation performance (93.5%). Among the human-level web navigation methods (CC-Net, WebGUM, RCI/Synapse (GPT-3.5/4 with prompting)), there are trade-offs between model size, training cost/risk, and inference cost. The paper's method provides promising solutions among those by (1) mitigating training costs and risks through offline supervised finetuning and (2) achieving on-premise agents with low inference costs.\n\n| | CC-Net | WebGUM | RCI / Synapse |\n|--|--|--|--|\n| **Model Size** | small | up to 3B parameters | API-based private LLM |\n| **Training Cost/Risk** | High (RL) | Low (SL) | -- (in-context)|\n| **Inference Cost** | Low | Low | High |\n\nIn addition, the paper has conducted an out-of-distribution evaluation in Section 5.3 (Figure 5, and 6), and a transfer learning evaluation in Section 5.5 (Table 3). WebGUM performs the best among competitive baselines. In particular, WebGUM achieved 78.5% success rate for unseen combinational tasks, outperforming Synapse (73.8%), a SoTA web navigation agent in Table 1. In real-world action prediction tasks from the Mind2Web dataset, WebGUM exhibits strong transfer achieving the best performance in all the metrics. These results support that WebGUM is generalizable enough to other web navigation tasks beyond overfitting.\n\n[1] Humphreys et al., (2022) A data-driven approach for learning to control computers (https://arxiv.org/abs/2202.08137) ", "category": "Experimental_Analysis"}, {"question": "How does the proposed method, WebGUM, generalize to web navigation tasks involving HTML that exceeds the context length of 4096 tokens, and what strategies are suggested to handle longer HTML?", "answer": "WebGUM accepts 4096 tokens as input, which is the soft upper limit for dense attention models due to computational costs. For HTML exceeding this length, preprocessing is applied to shorten it, as demonstrated in the WebSRC evaluation. To handle much longer HTML, the authors suggest incorporating (1) ranking language models[1] to prioritize HTML elements, (2) extractive summarization of HTML[2], or (3) long-context pre-trained language models with sparse attention[3]. The applicability of such a pipelined approach was demonstrated by achieving the best performance among baselines on Mind2Web using cached ranking results.\n\n[1] Deng et al., (2023) Mind2Web: Towards a Generalist Agent for the Web (https://arxiv.org/abs/2306.06070)\n\n[2] Gur et al., (2023) A Real-World WebAgent with Planning, Long Context Understanding, and Program Synthesis (https://arxiv.org/abs/2307.12856)\n\n[3] Guo et al., (2021) LongT5: Efficient Text-To-Text Transformer for Long Sequences (https://arxiv.org/abs/2112.07916)\n", "category": "Method_Mechanics"}, {"question": "What failure cases have been included for the MiniWoB dataset, and what are the specific challenges or issues identified in these cases?", "answer": "The paper has included a failure example of WebGUM in MiniWoB in Appendix L. Specific challenges include (1) ambiguous instructions, such as small items ('count-shape'), (2) confusion with repetitive structures on the page ('social-media-all'), and (3) long-horizon tasks that may require memory ('guess-number'). Please refer to Figure 11 in Appendix L for details.", "category": "Experimental_Exposition"}, {"question": "What distinguishes WebGUM from recent multimodal LLMs like LLaVA[1] and InstructBLIP[2]?\n\n[1] Liu, Haotian, et al. \"Visual instruction tuning.\" arXiv preprint arXiv:2304.08485 (2023).\n\n[2] Dai, Wenliang, et al. “InstructBLIP: Towards General-purpose Vision-Language Models with Instruction Tuning”, arXiv preprint arXiv:2305.06500", "answer": "WebGUM differs from recent multimodal LLMs like LLaVA and InstructBLIP in its focus on web navigation, which is an interactive decision-making problem requiring temporal understanding and planning over multiple timesteps. In contrast, LLaVA and InstructBLIP focus on static inference tasks like visual reasoning or Science QA. Decision making for autonomy and Static VQA are orthogonal research fields that have their own specific challenges.", "category": "Method_Comparison"}, {"question": "Why did the paper choose Flan-T5 as the base language model for WebGUM instead of LLaMA or LLaMA2, especially when some prior MLLMs [1-3] are already using LLaMA as their base LM? \n\n[1] Liu, Haotian, et al. \"Visual instruction tuning.\" arXiv preprint arXiv:2304.08485 (2023).\n\n[2] Li, Bo, et al. \"Otter: A multi-modal model with in-context instruction tuning.\" arXiv preprint arXiv:2305.03726 (2023).\n\n[3] Dai, Wenliang, et al. “InstructBLIP: Towards General-purpose Vision-Language Models with Instruction Tuning”, arXiv preprint arXiv:2305.06500", "answer": "The paper has investigated the architectural choices for base language models, comparing Flan-T5 (220M, 770M, 3B, 11B) and Flan-PaLM-8B. Flan-T5 is the encoder-decoder model and Flan-PaLM is the decoder-only model. In Figure 4 (right), while Flan-T5 shows a clear scaling trend, Flan-PaLM-8B performs sub-optimally (72.8%), compared to similar scale Flan-T5 models (770M: 72.4%, 3B: 75.5%, 11B: 79.0%). The paper's results imply that in web navigation, encoder-decoder architecture (T5) is better at understanding HTML than the decoder-only model (PaLM, LLaMA, etc), since encoder-decoder architecture can capture the hierarchical and nested structure of HTML well. The paper's results also suggest that advanced language models are not always the best for downstream finetuning tasks. Because both Flan-T5 and Flan-PaLM are instruction-tuned on the same Flan dataset, the paper's comparison should be more fair than the case with LLaMA. Moreover, while recent LLMs employ larger model sizes (LLaMA-7B + ViT-L14 for LLaVA, LLaMA-7B/13B + ViT-G14 for InstructBLIP), WebGUM only has 3 billion parameters (Flan-T5-XL + ViT-B16). Such parameter efficiency is a desirable property for autonomous agent research because it ensures on-premise deployment and low latency. ", "category": "Motivation_Analysis"}]} {"id": "Th6NyL07na", "venue": "ICLR 2024", "paper_decision": "Accept (poster)", "title": "DoLa: Decoding by Contrasting Layers Improves Factuality in Large Language Models", "authors": ["Yung-Sung Chuang", "Yujia Xie", "Hongyin Luo", "Yoon Kim", "James R. Glass", "Pengcheng He"], "abstract": "Despite their impressive capabilities, large language models (LLMs) are prone to hallucinations, i.e., generating content that deviates from facts seen during pretraining. We propose a simple decoding strategy for reducing hallucinations with pretrained LLMs that does not require conditioning on retrieved external knowledge nor additional fine-tuning. Our approach obtains the next-token distribution by contrasting the differences in logits obtained from projecting the later layers versus earlier layers to the vocabulary space, exploiting the fact that factual knowledge in an LLMs has generally been shown to be localized to particular transformer layers. We find that this **D**ecoding by C**o**ntrasting **La**yers (DoLa) approach is able to better surface factual knowledge and reduce the generation of incorrect facts. DoLa consistently improves the truthfulness across multiple choices tasks and open-ended generation tasks, for example improving the performance of LLaMA family models on TruthfulQA by 12-17% absolute points, demonstrating its potential in making LLMs reliably generate truthful facts.", "keywords": "Large Language Models;Hallucination;Factuality;Decoding;Text Generation", "qa_pairs": [{"question": "Why do the authors restrict the candidate layers considered to only a subset of the non-final layers instead of using all preceding layers for computing the JS divergence?", "answer": "Using all layers can still improve the scores compared to the Vanilla baseline, but the improvement is not as significant as DoLa. The essential information to be contrasted is located in a certain part of the layers, and the bucket-based selection helps to find a suitable bucket within 2~4 validation tests. While using all layers can improve performance in most cases, it is not as significant as the improvement achieved with DoLa. The performance of TruthfulQA of 'DoLa - all layers' is shown below:\n\n| | 7b | | | 13b | | | 30b | | | 65b | | |\n|-------------------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|\n| | MC1 | MC2 | MC3 | MC1 | MC2 | MC3 | MC1 | MC2 | MC3 | MC1 | MC2 | MC3 |\n| Vanilla | 25.58 | 40.55 | 19.20 | 28.27 | 43.32 | 20.85 | 31.70 | 49.52 | 24.23 | 30.84 | 46.88 | 22.74 |\n| DoLa - all layers | 31.95 | 63.86 | 31.17 | 30.48 | 62.25 | 30.96 | 29.13 | 61.50 | 30.69 | 30.48 | 62.00 | 31.67 |\n| DoLa | 31.82 | 64.35 | 32.23 | 29.74 | 65.17 | 34.98 | 29.99 | 62.32 | 33.79 | 30.97 | 64.61 | 34.16 |", "category": "Motivation_Analysis"}, {"question": "In what sense is the search space considered large for DoLa-static, especially when there are only 10s of layers to consider?", "answer": "For smaller models like llama-7b/13b, the search space of DoLa-static is not very large. However, compared to DoLa, DoLa-static does have a larger search space. If users have resources for 10s of validation runs for a specific validation set, DoLa-static remains a good option. Without a specific validation set, DoLa is better at transferring to different data distributions, while DoLa-static is more sensitive to selected layers, as observed in Section 4.1.", "category": "Method_Disambiguation"}, {"question": "How do the computational costs of hyperparameter search and JS-divergence computation in DoLa and DoLa-static compare, and which method is more efficient depending on the use case?", "answer": "DoLa-static reduces inference latency by computing JS-divergence (JSD) less frequently but requires more validation runs. The advantages of DoLa and DoLa-static depend on the use case.\n\n- If it is a popular downstream application with millions of users and a fixed downstream task with a reliable validation set available, then the optimal inference time is the priority consideration and it is worthy to have tens of times more validation runs. In this case, DoLa-static is a good choice.\n\n- If it is a customized application that has a moderate amount of users (e.g. users in a specific small region, which is the usual case for even popular apps), then the cost of adapting the model to multiple user groups is significant, and an inference speed of 1.08x slower is relatively neglectable. In this case, DoLa will be preferred over DoLa-static.\n\nFrom the perspective of efficiency, DoLa and DoLa-static have their own advantages depending on different use cases. DoLa provides another trade-off option for better balancing the cost of validation and inference.", "category": "Method_Comparison"}, {"question": "How does the performance of the method change when all previous layers are considered at each sampling step, and why are the candidate layers restricted to a subset of the non-final layers?", "answer": "When all layers are considered, the method still improves the scores compared to the Vanilla baseline, but the improvement is not as significant as with DoLa. This suggests that the essential information to be contrasted is located in a certain part of the layers. The bucket-based selection helps to find a suitable bucket within 2~4 validation tests, and while using all layers can improve performance in most cases, it is not as significant as using DoLa. The performance of TruthfulQA of 'DoLa - all layers' is shown below.\n\n| | 7b | | | 13b | | | 30b | | | 65b | | |\n|-------------------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|\n| | MC1 | MC2 | MC3 | MC1 | MC2 | MC3 | MC1 | MC2 | MC3 | MC1 | MC2 | MC3 |\n| Vanilla | 25.58 | 40.55 | 19.20 | 28.27 | 43.32 | 20.85 | 31.70 | 49.52 | 24.23 | 30.84 | 46.88 | 22.74 |\n| DoLa - all layers | 31.95 | 63.86 | 31.17 | 30.48 | 62.25 | 30.96 | 29.13 | 61.50 | 30.69 | 30.48 | 62.00 | 31.67 |\n| DoLa | 31.82 | 64.35 | 32.23 | 29.74 | 65.17 | 34.98 | 29.99 | 62.32 | 33.79 | 30.97 | 64.61 | 34.16 |", "category": "Experimental_Analysis"}, {"question": "Why does the contrastive decoding performance in the proposed method (DoLa) not match the higher performance reported in ‘CONTRASTIVE DECODING IMPROVES REASONING IN LARGE LANGUAGE MODELS’, which used a smaller amateur model (1.5B parameters)[1]?\n\n[1] O'Brien, Sean, and Mike Lewis. \"Contrastive decoding improves reasoning in large language models.\" arXiv preprint arXiv:2309.09117 (2023).", "answer": "The Contrastive Decoding (CD) baseline in the reference paper [1] has two significant differences compared to our CD baseline. 1. **They train a small LLaMA-1.5B model as the amateur LM:** This paper [1] pretrains a Llama-1.5B model that is **not publicly released**. As we do not have that 1.5B model, we use the 7B model in our experiment. the authors try to use the 1.3B and 2.7B Sheared-LLaMA and 3B/7B [OpenLLaMA] as the amateur LMs. These are all of the publicly released small LLaMA models that share the same vocabulary as LLaMA (so that it can contrast them on the same vocab set). The results on GSM8K are shown below. \n\n| Method / Score (%) | LLaMA-7B | LLaMA-13B | LLaMA-33B | LLaMA-65B |\n|-----------------------------------------|----------|-----------|-----------|-----------|\n| Vanilla | 10.77 | 16.68 | 33.81 | 51.18 |\n| + CD w/ LLaMA-7B | --- | 9.10 | 28.43 | 44.05 |\n| + CD w/ OpenLLaMA-7B | 6.44 | 13.50 | 30.48 | 38.82 |\n| + CD w/ OpenLLaMA-7B_v2 | 6.90 | 14.33 | 27.14 | 39.50 |\n| + CD w/ OpenLLaMA-3B | 6.60 | 11.07 | 27.60 | 41.77 |\n| + CD w/ OpenLLaMA-3B_v2 | 8.11 | 11.52 | 29.34 | 40.33 |\n| + CD w/ Sheared-LLaMA-2.7B | 5.00 | 14.10 | 32.30 | 47.08 |\n| + CD w/ Sheared-LLaMA-1.3B | 9.02 | 16.38 | 34.87 | 46.40 |\n| + DoLa | 10.46 | 18.04 | 35.41 | 53.60 |\n\nIt can be seen that using a small amateur LM, especially the 1.3B one, can improve the scores for contrastive decoding compared to using the 7B one as the amateur LM. However, the scores are still not better than DoLa. The paper [1] may have put some effort into finding a suitable LLaMA-1.5B model that hits the sweet spot. The paper's experiments on these open-sourced small LLaMA models still cannot match the performance in [1], showing the difficulty in choosing amateur LMs for CD. \n\n2. **They introduce an extra hyperparameter β that does not exist in the original CD paper:** While the paper only follows the original version of contrastive decoding [2], in Section 2.1 of this paper [1], the authors propose to add an extra hyperparameter β, the strength of the amateur penalty, for better balancing between expert logits and amateur logits. Thus, the contrastive decoding formula will not be the same as the one in the original CD paper, unless β=∞. The 65B CD result of GSM8K is 56.8 in [1] which is regarded much better than the paper's 65B CD baseline (44.0) and the paper's 65B DoLa (54.0). However, the authors argue that 44.0 is already a reasonable number that consistently with the results in [1] by the following evidence. In Table 1 from [1], the high GSM8K score of 65B (56.8) is under the setting of β = 0.5, while it drops significantly to 44.6 when setting β = 1.0, which is very close to the paper's 65B CD baseline (44.0) which essentially equals the situation of setting β=∞. Based on the above evidence, it is argued that the high score in [1] is probably achieved by carefully tuning β at a sweet spot. If following the original version of CD [2], the paper’s score (44.0) already matches the score shown in [1] with β=1.\n\n[2] Li, Xiang Lisa, Ari Holtzman, Daniel Fried, Percy Liang, Jason Eisner, Tatsunori Hashimoto, Luke Zettlemoyer, and Mike Lewis. \"Contrastive decoding: Open-ended text generation as optimization.\" arXiv preprint arXiv:2210.15097 (2022).", "category": "Experimental_Analysis"}, {"question": "Why does the proposed method (DoLa) show worse performance than the baselines (basic decoding and contrastive decoding) in Table 1 for TruthfulQA (MC1) with LLaMa-33B, and how does the sensitivity of the MC1 metric contribute to this inconsistency?", "answer": "The MC1 metric in TruthfulQA is highly sensitive because it is a 'winner takes all' metric. If any false answer has a higher score than the best true answer, the score becomes 0.0; otherwise, it is 1.0. Small fluctuations in model outputs on a single example can drastically change the score. In contrast, MC2 and MC3 are more stable as they consider all correct answers together. This sensitivity of MC1 explains the inconsistent results, and the authors conducted extensive experiments to demonstrate the overall trend of improvements across datasets and tasks.", "category": "Experimental_Analysis"}, {"question": "What are the results of using brute force for static and dynamic layer selection in the DoLa approach, and why is dynamic layer selection with brute force not feasible?", "answer": "1. **Static layer selection with brute force, namely DoLa-static:** Using the same premature layer for the entire decoding process. The layer was selected by the overall scores on a validation set. The results are shown in Table 10 and 11. It can be seen that dynamic DoLa is slightly better than DoLa-static on CoT reasoning tasks, while DoLa-static can be slightly better than dynamic DoLa on FACTOR.\n2. **Dynamic layer selection with brute force:** Applying the brute force idea at every time step of dynamic DoLa constitutes a very complex search problem. Given a validation example (e.g., a question in GSM8K), one must finish decoding the full-sentence answer (e.g., the CoT reasoning path in GSM8K) before calculating the score (e.g., exact match scores in GSM8K). For example, if there are 20 candidate layers to select from and 50 new tokens need to be generated, the possible combinations of dynamic layer selection strategies become $20^{50}$, making brute force infeasible. Furthermore, since the instant reward for each decoding step cannot be obtained until the full sentence is generated, it is difficult to perform operations like beam search to eliminate low-score search paths during the dynamic layer selection process. Even if the optimal path for a specific validation example is successfully obtained, transferring it to unseen examples in the testing set would be difficult. Applying brute force to dynamic layer selection remains an open question.\n", "category": "Experimental_Analysis"}, {"question": "Why is the selected layer for TruthfulQA closer to the final layer, while for FACTOR-News, the 0-th layer is a good premature layer, as shown in Figure 6?", "answer": "The examples in TruthfulQA are mainly short answers with difficult crucial facts. For example:\nQ: Where did fortune cookies originate?\nCorrect Answer: Fortune cookies originated in San Francisco.\nIncorrect Answer: Fortune cookies originated in China.\n\nIt is reasonable to surmise that the crucial facts in TruthfulQA require focusing more on directly contrasting with the layers right before the topmost layers where factual knowledge is located. In contrast, examples in FACTOR consist of long paragraph prefixes with 4 possible long sentence completions as multiple-choice options. These completions contain many ‘non-fact’ tokens that rely on general knowledge (e.g., linguistic knowledge), which is not necessarily located in the topmost layers. In this case, contrasting with the lower part of the layers can better handle all the tokens in the whole sentence.\n\nAlthough this is just a hypothesis, the best bucket of candidate layers for FACTOR/GSM8K/StrategyQA are all the same: the lower part of the layers, which also transfer well to VicunaQA. All these datasets involve long-sentence answers.", "category": "Experimental_Analysis"}, {"question": "What evidence supports the hypothesis that factual knowledge is injected at the top layers in DoLA, and how does this differ for easy-to-predict tokens?", "answer": "In Figure 2, when predicting important tokens related to factual information, the higher layers are more likely to be selected. For easy-to-predict tokens like function words, the word embedding layer is more likely to be selected. The claim that 'almost all layers selected will be the word embedding layer' applies only to easy-to-predict tokens, not all tokens.", "category": "Method_Disambiguation"}, {"question": "Are there quantitative results to support the observations presented in Figure 2?", "answer": "Yes, the authors conducted a quantitative study using the CoNLL-2003 name entity recognition dataset[1] with 3.25K examples. The authors calculated the layer with the largest JS-divergence with the final layer (referred to as the 'critical layer') when LLaMA-7B predicts the next token using teacher forcing. The results show that 75% of the time, the critical layer is layer 0 for non-entity tokens, while for entity tokens, only 35% of the time the critical layer is layer 0, and more than 50% of the time it is at a higher layer. This supports the observations in Figure 2.\n\n| Layer | Entity Tokens | Non-Entity Tokens |\n|-------|---------------|-------------------|\n| 0 | 35.56% | 75.55% |\n| 2 | 0.05% | 0.08% |\n| 4 | 0.94% | 0.36% |\n| 6 | 0.94% | 0.14% |\n| 8 | 1.05% | 0.27% |\n| 10 | 0.05% | 0.33% |\n| 12 | 2.10% | 0.65% |\n| 14 | 0.00% | 0.33% |\n| 16 | 0.00% | 0.16% |\n| 18 | 0.00% | 0.05% |\n| 20 | 1.69% | 0.47% |\n| 22 | 9.69% | 1.76% |\n| 24 | 10.38% | 2.62% |\n| 26 | 2.08% | 2.17% |\n| 28 | 10.06% | 2.11% |\n| 30 | 25.40% | 12.98% |\n\nNote that the authors use teacher forcing to send the ground truth into LLaMA to predict the next word for each token in the sentence. And the ground truth sentences are not generated by LLaMA. The mismatch here can potentially make the result noisy when 1) LLaMA tries to predict an entity but the next token is not an entity, or 2) LLaMA tries to predict a non-entity token but the next word is an entity. A more accurate but expensive way to conduct this experiment would be to manually label each of the tokens in the greedy/sampled decoding output from the same LLaMA itself. However, such a trend can be seen in the NER dataset from the current experiments.\n\n[1] Sang, Erik Tjong Kim, and Fien De Meulder. \"Introduction to the CoNLL-2003 Shared Task: Language-Independent Named Entity Recognition.\" In Proceedings of the Seventh Conference on Natural Language Learning at HLT-NAACL 2003, pp. 142-147. 2003. https://huggingface.co/datasets/conll2003", "category": "Experimental_Exposition"}, {"question": "What are the specific experimental settings and computational resources used in the latency analysis of DoLa, as described in Section 4.2?", "answer": "In the latency analysis in Section 4.2, the paper used 817 examples from TruthfulQA with a default 6-shot in-context demonstration prompt, resulting in an average input length of 250.3 tokens. The model was forced to decode 50 new tokens without stopping criteria. Efficiency was achieved through batched tensor operations for computing JS-divergence across all candidate layers simultaneously. Experiments were conducted on a machine with NVIDIA 32G V100 GPUs and 40-core Intel(R) Xeon(R) Platinum 8168 CPUs @ 2.70GHz. Models were run with 16-bit floating point precision and a batch size of 1. For 7b, 13b, 33b, and 65b models, 1, 2, 4, and 8 V100 GPUs were used, respectively. Cross-GPU inference with model weight sharding was managed using the Huggingface accelerate package.", "category": "Experimental_Setup"}, {"question": "What is the impact of DoLA on the language model’s generation quality, specifically in terms of grammaticality and cohesiveness, across different model sizes (7B, 13B, 33B, and 65B)?", "answer": "An additional study was conducted using GPT-4 to evaluate the quality of generated text, focusing on grammaticality and cohesiveness without considering factual correctness. The results indicate that for 7B, 13B, and 33B models, DoLA demonstrates better grammaticality and cohesiveness compared to the vanilla decoding baseline. For the 65B model, DoLA achieves a score nearly identical to vanilla decoding. Thus, when evaluating text generation quality without factuality, DoLA performs on par with (65B) or better than (7B/13B/33B) vanilla decoding.", "category": "Experimental_Exposition"}, {"question": "How was the efficiency of decoding from every layer measured in Section 4.2, including details on the tasks, hardware, and generation lengths used?", "answer": "The efficiency of decoding from every layer was measured using 817 examples from TruthfulQA with a default 6-shot in-context demonstration prompt, resulting in an average input length of 250.3 tokens. The model was forced to decode 50 new tokens without stopping criteria. Experiments were conducted on machines with NVIDIA 32G V100 GPUs and Intel(R) Xeon(R) Platinum 8168 CPUs @ 2.70GHz. Models were run with 16-bit floating point precision and a batch size of 1. For 7b, 13b, 33b, and 65b models, 1, 2, 4, and 8 V100 GPUs were used, respectively, with cross-GPU inference managed by the Huggingface accelerate package.", "category": "Experimental_Setup"}, {"question": "How does DoLA impact throughput and memory overhead compared to the vanilla decoding baseline?", "answer": "Additional experiments show that the memory overhead difference between DoLA and the vanilla decoding baseline is negligible, calculated as the difference between peak GPU memory during forward passes and the occupied GPU memory before the first forward pass. \n\n| Model | LLaMA-7b | LLaMA-7b | LLaMA-13b | LLaMA-13b | LLaMA-30b | LLaMA-30b | LLaMA-65b | LLaMA-65b |\n|-------------|----------|----------|-----------|-----------|-----------|-----------|-----------|-----------|\n| | Vanilla | DoLa | Vanilla | DoLa | Vanilla | DoLa | Vanilla | DoLa |\n| (a) GPU Memory Before Forward (MB) | 12916.5 | 12916.5 | 25025.8 | 25025.8 | 55715.7 | 55715.7 | 124682.6 | 124682.6 |\n| (b) Peak GPU Memory During Forward (MB) | 13233.9 | 13385.7 | 25510.7 | 25674.8 | 57057.5 | 57390.2 | 126950.0 | 127606.8 |\n| (b) - (a) GPU Memory Overhead (MB) | 317.4 | 469.2 | 484.9 | 681.6 | 1341.9 | 1674.5 | 2267.4 | 2924.3 |\n| [(b) - (a)] / (a) GPU Memory Overhead (%) | 2.5% | 3.6% | 1.9% | 2.7% | 2.4% | 3.0% | 1.8% | 2.4% |\n\n\nFor throughput, measured in tokens/sec for various models (7B/13B/33B/65B), the differences are generally less than 7%, similar to the increased latency extent in Section 4.2.\n\n| Model | Baseline (tokens/sec) | DoLa (tokens/sec) | Ratio of DoLa/Baseline |\n|---|---|---|---|\n| 7B | 22.03 | 20.83 | ×0.95 |\n| 13B | 12.94 | 12.03 | ×0.93 |\n| 33B | 6.82 | 6.38 | ×0.94 |\n| 65B | 3.11 | 3.08 | ×0.99 |\n", "category": "Experimental_Exposition"}, {"question": "Why does DoLA not discourage the model from generating the same token as the previous one?", "answer": "Because LLaMA’s word embedding layer is not tied with the LM head, feeding the word embedding of the previous token directly into the LM head results in an output distribution ($q_0(x_t)$) that does not put a substantial amount of mass on the previous token ($x_t$). Instead, the output distribution is closer to a non-contextual prediction of the next token ($x_{t+1}$) conditioned only on the previous token ($x_t$), similar to a bi-gram language model ($P(x_t+1|(x_t))$). Therefore, DoLA does not discourage the model from generating the same token as the previous one.", "category": "Method_Disambiguation"}, {"question": "How does the performance of a baseline that always selects the 0-th layer compare to DoLA, and how does this comparison demonstrate the effectiveness of DoLA in improving performance?", "answer": "The authors compared their method to a baseline that always selects the 0-th layer. Contrasting with the 0-th layer improves performance because the 0-th layer predictions are similar to a bi-gram LM, which contains non-contextual language statistics bias learned from pretraining data. By contrasting the final predictions with the 0-th layer, the non-contextual bias is removed, emphasizing the contextual information injected in the middle layers, leading to unbiased and better final predictions. Using only the 0-th layer already improves performance compared to the vanilla decoding baseline, and DoLa, which incorporates information from multiple layers, further increases the scores.", "category": "Method_Comparison"}, {"question": "What is the impact of the proposed method (DoLa) on inference speed, specifically in terms of latency and throughput, compared to the baseline decoding method?", "answer": "For the latency analysis, the paper uses 817 examples from TruthfulQA with the default 6-shot in-context demonstration prompt, which has an average input length of 250.3 after concatenating the prompt with the questions. The paper forces the model to decode 50 new tokens without any stopping criteria. All experiments were run on a machine equipped with NVIDIA 32G V100s and 40-core Intel® Xeon® Platinum 8168 CPUs @ 2.70GHz. The models were run with 16-bit floating point precision and a batch size of 1. For the 7B/13B/33B/65B models, 1/2/4/8 V100 GPUs were used, respectively. The cross-GPU inference with model weight sharding was handled by the Huggingface Accelerate package. [1]\n\nHere is the latency (ms/token) and throughput (tokens/sec) for 4 models.\n\nLatency:\n| Model | Baseline (ms/token) | DoLa (ms/token) | Ratio of DoLa/Baseline |\n|-------|---------------------|-----------------|-----------------|\n| 7B | 45.4 | 48.0 | ×1.06 |\n| 13B | 77.3 | 83.1 | ×1.08 |\n| 33B | 146.7 | 156.7 | ×1.07 |\n| 65B | 321.6 | 324.9 | ×1.01 |\n\nThroughput:\n| Model | Baseline (tokens/sec) | DoLa (tokens/sec) | Ratio of DoLa/Baseline |\n|-------|-----------------------|-------------------|------------------------|\n| 7B | 22.03 | 20.83 | ×0.95 |\n| 13B | 12.94 | 12.03 | ×0.93 |\n| 33B | 6.82 | 6.38 | ×0.94 |\n| 65B | 3.11 | 3.08 | ×0.99 |\n\nThe results show that the speed is slightly slower than the vanilla decoding baseline by 1%~8%, which is in an acceptable range. This result suggests that DoLa is a practical decoding strategy that has the potential to be applied to real-world applications.\n\n[1] https://huggingface.co/docs/accelerate/concept_guides/big_model_inference", "category": "Method_Comparison"}, {"question": "What happens if the residual connection between the premature layer and the final layer is removed, and would this approach be beneficial without significantly reducing inference speed?", "answer": "Removing the residual connections of the premature layer could potentially downplay the early layers and emphasize the higher layers without causing latency. Initial experiments showed that removing the residual connection from one of the attention layers or MLP layers resulted in the decoding output becoming a sequence of repeated tokens.For example, when removing the MLP residual connection of layer 12, the result was:\n\n`Question: Eliza's rate per hour for the first 40 hours she works each week is $10. She also receives an overtime pay of 1.2 times her regular hourly rate. If Eliza worked for 45 hours this week, how much are her earnings for this week?`\n\n`Model Output: s that that that that s that s s s that that s that that s that that s s s that that that s that that that that s that that that that that that …`. \n\nThis suggests that removing residual connections causes a significant distribution shift for the hidden states, leading to out-of-distribution inputs for the next layer and unusual model behavior. Manipulating continuous hidden states is more challenging than manipulating output logits, as the latter are more explainable. However, this approach could be worth further exploration with additional fine-tuning to address the distribution shift issue.", "category": "Experimental_Analysis"}, {"question": "How does the inference speed of the DoLa method compare to the baseline across different model sizes, as measured in latency (ms/token) and throughput (tokens/sec)?", "answer": "For the latency analysis, the paper uses 817 examples from TruthfulQA with the default 6-shot in-context demonstration prompt, which has an average input length of 250.3 after concatenating the prompt with the questions. The model is forced to decode 50 new tokens without any stopping criteria. All experiments were run on a machine equipped with NVIDIA 32G V100s and 40-core Intel® Xeon® Platinum 8168 CPUs @ 2.70GHz. The models were run with 16-bit floating point precision and a batch size of 1. For the 7b, 13b, 33b, and 65b models, 1, 2, 4, and 8 V100 GPUs were used, respectively. Cross-GPU inference with model weight sharding was handled using the Hugging Face Accelerate package.[1]\n\nHere is the latency (ms/token) and throughput (tokens/sec) for 4 models.\n\nLatency:\n| Model | Baseline (ms/token) | DoLa (ms/token) | Ratio of DoLa/Baseline |\n|-------|---------------------|-----------------|-----------------|\n| 7B | 45.4 | 48.0 | ×1.06 |\n| 13B | 77.3 | 83.1 | ×1.08 |\n| 33B | 146.7 | 156.7 | ×1.07 |\n| 65B | 321.6 | 324.9 | ×1.01 |\n\nThroughput:\n| Model | Baseline (tokens/sec) | DoLa (tokens/sec) | Ratio of DoLa/Baseline |\n|-------|-----------------------|-------------------|------------------------|\n| 7B | 22.03 | 20.83 | ×0.95 |\n| 13B | 12.94 | 12.03 | ×0.93 |\n| 33B | 6.82 | 6.38 | ×0.94 |\n| 65B | 3.11 | 3.08 | ×0.99 |\n\nIt can be seen that the speed is slightly slower than the vanilla decoding baseline by 1%–8%, which falls within an acceptable range. This result suggests that DoLa is a practical decoding strategy with the potential to be applied in real-world applications.\n\n[1] https://huggingface.co/docs/accelerate/concept_guides/big_model_inference", "category": "Method_Comparison"}]} {"id": "TyFrPOKYXw", "venue": "ICLR 2024", "paper_decision": "Accept (spotlight)", "title": "Safe RLHF: Safe Reinforcement Learning from Human Feedback", "authors": ["Josef Dai", "Xuehai Pan", "Ruiyang Sun", "Jiaming Ji", "Xinbo Xu", "Mickel Liu", "Yizhou Wang", "Yaodong Yang"], "abstract": "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 crowd workers' 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.\n\nCode is available at https://github.com/PKU-Alignment/safe-rlhf.\n\n\nWarning: This paper contains example data that may be offensive or harmful.", "keywords": "Safe Reinforcement Learning;Reinforcement Learning from Human Feedback;Large Language Model;AI Safety", "qa_pairs": [{"question": "What were the experimental results comparing the paper's method to additional safety RLHF baselines such as Constitutional AI and Safety SFT?", "answer": "Win rates for three different methods compared to Aplaca-7B rated by GPT-4:\n| | Safe RLHF (the paper's; Beaver-v1) | Constitutional AI | Safety SFT |\n| :---: | :---: | :---: | :---: |\n| Helpfulness Win Rate | 71.8% | 40.2% | 53.6% |\n| Harmlessness Win Rate | 73.3% | 69.7% | 53.6% |\n\nthe experiments reveal interesting insights:\n\n**Helpfulness and Harmlessness Balance:** Neither Constitutional AI (40.2% helpfulness, 69.7% harmlessness) nor Safety SFT (53.6% for both) matched the performance of the paper's Safe RLHF (Beaver-v1) approach, which achieved a helpfulness win rate of 71.8% and harmlessness win rate of 73.3%. This underscores **the challenge in balancing helpfulness and harmlessness** in large language models and highlights the efficacy of the paper's approach.\n\nImpact of SFT on RLHF: the findings suggest that while the SFT stage contributes to model safety, the gains from the RLHF stage, especially with advanced reward models like Beaver-v1, are more pronounced. **This distinction is crucial in understanding the relative impacts of SFT and RLHF stages on model performance.**\n\nThe experiments demonstrate that while incorporating safety in the SFT stage is beneficial, **the RLHF stage offers a more substantial improvement in balancing helpfulness and harmlessness**. The inclusion of Constitutional AI and Safety SFT provides a comprehensive view of the current landscape of the paper's Safe RLHF method and validates the effectiveness of the paper's approach.\n\n**Implementation details of Constitutional AI and Safety SFT:**\n- **Constitutional AI:** The authors followed the Constitutional AI paper to revise the raw responses based on constitutional critiques. The Constitutional AI method requires a large model with the capability to follow complex instructions to generate critiques for the responses and then revise the responses. The authors use the GPT-3.5 model to revise the responses generated by Alpaca-7B using the same constitutional prompts from the Constitutional AI paper. The authors let the reward model tend to prefer the revised response over the original response. And apply the standard RLHF pipeline over the Alpaca-7B model.\n\n- **Safety SFT:** For the Safety SFT method, the authors first filter out preference pairs in the preference dataset used in this study if both responses are labeled unsafe. Then the authors finetune the Alpaca-7B model to fit the safer response in the preference dataset.", "category": "Method_Comparison"}, {"question": "What are the relative impacts of the SFT and RLHF stages on model performance, particularly in terms of balancing helpfulness and harmlessness?", "answer": "The experiments show that while the SFT stage contributes to model safety, the RLHF stage provides a more substantial improvement in balancing helpfulness and harmlessness. The inclusion of new baselines validates the effectiveness of the paper's Safe RLHF method, with advanced reward models like Beaver-v1 demonstrating more pronounced gains in the RLHF stage. This distinction helps in understanding the relative impacts of the SFT and RLHF stages on model performance.", "category": "Experimental_Analysis"}, {"question": "What other safe reinforcement learning baselines were considered apart from Sparrow and reward shaping, and how do they compare to the proposed Safe RLHF (Beaver-v1) approach?", "answer": "Additional experiments were conducted with Constitutional AI and Safety SFT baselines. Constitutional AI achieved 40.2% helpfulness and 69.7% harmlessness, while Safety SFT achieved 53.6% for both metrics. Neither baseline matched the performance of the proposed Safe RLHF (Beaver-v1) approach, which achieved a helpfulness win rate of 71.8% and harmlessness win rate of 73.3%. This highlights the challenge in balancing helpfulness and harmlessness and underscores the efficacy of the proposed approach.", "category": "Method_Comparison"}, {"question": "What are the reasons for not training stronger supervised fine-tuning (SFT) models, given that some safety-related data was gathered before performing RLHF?", "answer": "The reasons for not training stronger SFT models are: (1) The Alpaca team has made their data, training code, and final model open source, which facilitates replication by the academic community. (2) There is insufficient expert data available to train a stronger SFT model. (3) Using Alpaca-7B as the starting model and applying three rounds of Safe RLHF fine-tuning allows observation of the effects of Safe RLHF under different levels of helpfulness and harmlessness.", "category": "Motivation_Analysis"}, {"question": "How is model selection conducted during the reward model (RM)/cost model training stage and the reinforcement learning with human feedback (RLHF) training stage?", "answer": "Model selection is common in RLHF to ensure **the correctness** at every step. To ensure **the fairness**, the paper applied this engineering trick to all types of RLHF algorithms used in the paper's experiments, including Safe RLHF, RLHF (PPO), Reward Shaping, and ablation experiments. In fact, the paper's approach of model selection enhances the fairness of comparisons as it mitigates randomness and ensures each algorithm operates correctly.\n**For both the reward model and cost model, the selection of models primarily aims to achieve higher prediction accuracy on the test set.** For different parameter training outcomes, the paper evaluates their predictive accuracy on the reserved test set and selects the one with the highest accuracy for the next step. Typically, an accuracy above 75% is considered acceptable. With a fixed dataset, the impact of different hyper-parameters on the reward model and cost model is not significant. Therefore, the paper does not perform model selection repeatedly many times at this stage. For the best hyperparameters, please refer to the Appendix G.1.\n**For the RL phase, model selection primarily aims to prevent the over-optimization [1].** Since the reward model and cost model are learned from human preference data, their ability to correctly predict has a range. Continuously training with the same reward and cost models can easily lead to the phenomenon of reward hacking. Therefore, the model selection during the RL phase mainly involves evaluating models at different training steps within the same training cycle to identify the point where the model is sufficiently trained but not over-optimized. Existing evaluations for alignment rely on GPT-4 and human evaluators, and due to their high financial and time cost, the paper opts for a rapid model selection process that involves human evaluation on a small test set combined with a trained unified score model (as mentioned in the Section 5.2.1 Model-based Evaluations). Only models deemed sufficiently good are then tested with the entire test set using GPT-4 and human evaluations.\nAlso, due to the issue of over-optimization, it is necessary to continually collect data from new models, train new preference models, and perform multiple RLHF iterations.\n\n\n**References:**\n\n[1] Gao, Leo, John Schulman, and Jacob Hilton. \"Scaling laws for reward model overoptimization.\" International Conference on Machine Learning. PMLR, 2023.", "category": "Experimental_Setup"}, {"question": "What is the significance of the red dashed line in Figure 2(a), and how does the proposed cost model fit the ambiguous boundary between safety and unsafety in human values?", "answer": "The red dashed line in Figure 2(a) represents the ambiguous boundary between safety and unsafety in human values. The proposed cost model fits this boundary by introducing a comparison loss between responses and a virtual response $y_0$ near the safety threshold, setting the cost of $y_0$ to zero (Equation 4). This approach maintains the original properties of the Bradley-Terry model and is fundamental for integrating RLHF with Safe RL algorithms.", "category": "Method_Mechanics"}, {"question": "What are the specific contributions of the Safe RLHF framework, and how does it differ from standard CMDP formulations and existing Lagrangian methods in Safe RL?", "answer": "The Safe RLHF framework is the first work to combine Safe RL with the RLHF framework. It includes decoupled data collection, training of two different preference models (reward model and cost model), and fine-tuning through the integration of Safe RL. It formalizes safety as a constraint and dynamically adjusts it during training to navigate the tension between helpfulness and harmlessness. Logically, the human value towards LLMs is first decoupled into two parts: helpfulness and harmlessness. After modeling harmlessness as a constraint that needs to be prioritized, the entire problem is formalized under the CMDP framework. Reversing this logical order is a disheartening accusation. It overshadows the paper’s efforts in guiding the crowdworkers to generate decoupling data reflecting their preferences for helpfulness and harmlessness; utilizing the reward model and the paper’s proposed novel cost model to represent objective and constraint signals; integrating Safe RL with the training of LLMs. While standard CMDPs encompass both reward and cost signals, the paper's innovation lies in how these signals are modeled, acquired, and utilized for LLM alignment. The Lagrangian method is acknowledged as a mature technology in traditional Safe RL, but it is only one component of the Safe RLHF framework. The paper does not claim the introduction of the Lagrangian method to solve Safe RL problem as the paper's contribution. The contributions include: Fine-tuning with Safe RLHF framework effectively enhances the helpfulness and harmlessness of LLMs under human values (Section 5.2.1). Decoupling helpfulness from harmlessness effectively increases agreement among crowd workers when annotating preference data, reducing bias due to the contradiction (Section 5.2.2). Compared to a fixed ratio of optimizing for helpfulness and harmlessness, dynamically adjusting the trade-off between them during training more effectively guides the inherent tension between the two (Section 5.2.3). Providing preference-based scores, rather than just a binary safe/unsafe classifier, improves LLM safety more efficiently (Section 5.2.4).", "category": "Method_Disambiguation"}, {"question": "How does the paper define the trade-off between safety and preference performance in LLM alignment, and why is the cost-reward formulation of CMDP necessary instead of a simpler reward function, for example, one where A is preferred over B only if (preference(A > B) and (A passes a safety check threshold))?", "answer": "Firstly, many prior works [1,2,3,4] have noted that the trade-off between helpfulness and harmlessness during training remains a critical challenge in the field of LLM alignment. This is due to the inherent tension between these two optimization goals and the complex, high-dimensional nature of human values that are hard to represent with rule-based approaches. Therefore, this is not a task that can be overlooked or simplified. Secondly, it is also believed that harmlessness should be prioritized over helpfulness. As stated in the paper, the trade-off that needs to be achieved during training is: to maximize helpfulness as much as possible, while ensuring that the output aligns with human values of safety. Therefore, the paper models safety as a constraint that must be met first. Naturally, compared to the traditional RLHF's MDP framework, it becomes necessary to formalize this problem within the CMDP framework. Thirdly, using a simple reward format to express both helpfulness and harmlessness is the approach taken by traditional RLHF. As many previous works [1,2,3,4] have mentioned, this approach poses significant challenges during data annotation and training due to the tension between helpfulness and harmlessness. Meanwhile, in section 5.2.2, the paper empirically demonstrated the shortcomings of the traditional single-reward RLHF method. Compared to Safe RLHF, it results in lower data agreement, as well as reduced efficiency in optimizing both helpfulness and harmlessness, as illustrated in Figure 6(a). \n\nReferences: \n[1] Kenton, Zachary, et al. 'Alignment of language agents.' \n[2] Bai, Yuntao, et al. 'Training a helpful and harmless assistant with reinforcement learning from human feedback.' \n[3] Glaese, Amelia, et al. 'Improving alignment of dialogue agents via targeted human judgements.' \n[4] Zhao, Wayne Xin, et al. 'A survey of large language models.'", "category": "Method_Mechanics"}, {"question": "Why is the conclusion that Lagrangian methods are superior to reward shaping for LLMs fine-tuning valid?", "answer": "The authors tested seven different reward shaping coefficients (ν = 0.01, 0.5, 1, 2, 5, 10, 100) to cover the coefficient space. Extremely high and low values led to over-optimization of one objective at the expense of the other, while moderate values (ν = 1, 2) were ineffective in resolving the conflict between helpfulness and harmlessness, with their enhancements remaining subpar compared to Safe RLHF. These results demonstrate that Safe RLHF outperforms reward shaping across the tested coefficient range, supporting the conclusion that Lagrangian methods are superior.", "category": "Experimental_Analysis"}, {"question": "What are the limitations and potential risks associated with Safe RLHF, particularly in scenarios where the algorithm might fail to balance helpfulness and harmlessness effectively?", "answer": "The limitations of Safe RLHF include a lack of high-quality SFT data for SFT and PTX loss, no specific optimization for multi-turn dialogue scenarios, and the need for additional mechanisms (such as pre- and post-check strategies) in real-world applications to achieve a safer AI system. These limitations are discussed in detail in Appendix A of the paper.", "category": "Method_Disambiguation"}, {"question": "How does the proposed RLHF framework contribute to the field of Safe RL and LLM alignment, and what are the key contributions and experimental findings of the Safe RLHF methodology?", "answer": "The paper’s primary goal is to propose a new RLHF framework that addresses the challenging tension between helpfulness and harmlessness goals in the field of LLM alignment, rather than introducing a new Safe RL algorithm. Instead, the paper aims to broaden the application scope of Safe RL algorithms, bringing new perspectives to both fields.\n\nIts contributions:\n\nSafe RLHF is the first work to combine Safe RL with the RLHF framework. It is a comprehensive methodology that includes decoupled data collection, training of two different preference models, and fine-tuning through the integration of Safe RL. It formalizes safety as a constraint and dynamically adjusts it during training, aiming to navigate the inherent tension between helpfulness and harmlessness.\n\nThe paper’s extensive experiments demonstrate the following conclusions: Fine-tuning with the Safe RLHF framework effectively enhances the helpfulness and harmlessness of LLMs under human values (Section 5.2.1). Decoupling helpfulness from harmlessness effectively increases agreement among crowd workers when annotating preference data, reducing bias due to the contradiction (Section 5.2.2). Compared to using a fixed ratio for optimizing helpfulness and harmlessness, dynamically adjusting the trade-off between them during training more effectively manages the inherent tension between the two (Section 5.2.3). Providing preference-based scores, rather than just a binary safe/unsafe classifier, improves LLM safety more efficiently (Section 5.2.4).", "category": "Method_Disambiguation"}, {"question": "How does the reward and cost model in Section 4.2 of Safe RLHF differ from the classic reward and cost signals used in traditional Safe Reinforcement Learning (Safe RL)?", "answer": "Safe RLHF differs from traditional Safe RL in the following ways: (1) Human values are high-dimensional and complex, making it impossible to design reward and cost functions in a rule-based manner. Instead, human preferences must be modeled from collected datasets. This involves guiding crowd workers to provide high-quality annotations (Section 4.1), constructing prompt datasets for large language models (Section 5.1 Prompts and Red-teaming), controlling the distribution of prompt-response pairs in the dataset (Section 5.1 Preference Datasets), and training better preference models (Section 4.2). (2) The threshold for what is considered safe in human values cannot be formulaically defined. Therefore, a new training method for a Cost Model is proposed to model the safety threshold. This method, based on the Bradley-Terry model, introduces a comparison loss between responses and a virtual response $y_0$ near the safety threshold, setting the cost of $y_0$ to zero. This design separates safe from unsafe responses at a cost boundary of zero (as shown in Figure 2(a)), making zero the safety threshold for an individual response.", "category": "Method_Comparison"}, {"question": "Given the high-dimensional complexity of LLMs and the randomness in training preference models, how can the stability and convergence of learning in Safe RLHF be ensured, especially in the absence of theoretical guarantees?", "answer": "Theoretical guarantees for the convergence of RLHF are challenging due to the high-dimensional complexity of LLMs and the randomness in training preference models. This is a common scenario in this research field. Second, in the RLHF framework, training often needs to be early stopped before convergence due to the issue of over-optimization [1]. The reward model and cost model are learned from human preference data. They are proxies of human preference (or: preferences). Their ability to accurately predict scores is limited to a finite range. Continuously training on the same reward model and cost model can easily lead to a phenomenon known as ‘reward hacking’ [2]. Thus, an early stop before over-optimization is necessary. In the experiments, the authors also observed that when LLMs converge with the current reward model and cost model, it usually indicates the occurrence of reward hacking. Third, empirically, through three iterations of Safe RLHF, the authors have validated that this framework is stable and efficient for enhancing both the helpfulness and harmlessness of large language models simultaneously (Section 5.2.1). In these experiments, the primary measure for stability is conducting periodic evaluations with human evaluators and early stopping training in cases of over-optimization.\n\nReferences: [1] Gao, Leo, John Schulman, and Jacob Hilton. 'Scaling laws for reward model overoptimization.' International Conference on Machine Learning. PMLR, 2023. \n\n[2] Di Langosco, L. L., Koch, J., Sharkey, L. D., Pfau, J., & Krueger, D. Goal misgeneralization in deep reinforcement learning. In International Conference on Machine Learning (pp. 12004-12019). PMLR.", "category": "Method_Mechanics"}, {"question": "Can Lagrangian safe RL methods, such as TRPO-Lag and PPO-Lag, be applied within the Safe RLHF framework?", "answer": "First-order algorithms like PPO-Lag, FOCOPS, and P3O are promising for application within the Safe RLHF framework. However, second-order algorithms such as TRPO-Lag and CPO, which require solving the inverse of the Fisher matrix, may demand excessive computational resources for large language models (LLMs).", "category": "Method_Mechanics"}, {"question": "What measures have been taken to ensure the stability of the reward and cost signals in the reward model and cost model?", "answer": "The stability of the reward and cost signals is ensured through the following measures: 1) Dataset Quality: Additional optimizations were implemented in the annotation process and data distribution. 2) Randomness in Deep Learning: Predictive accuracy is evaluated on a reserved test set, and the model with the highest accuracy (>75%) is selected for the next step. 3) Over-optimization: Periodic testing is conducted, and training is stopped prematurely to prevent over-optimization leading to preference model failure.", "category": "Method_Mechanics"}, {"question": "How does Equation (29) align with the Lagrange multiplier approach, given that it appears to use a different method of differentiation?", "answer": "It is important to highlight that Equation (29) is consistent with the Lagrange method and its implementation in the code. The authors have applied a common engineering trick. Since $\\lambda \\geq 0$, they set $\\lambda_k \\doteq e^{\\eta_k}$. By using $\\eta$ as the actual update parameter, they ensure $\\lambda \\geq 0$. Therefore, according to Equation (12): $$ \\eta_{k+1} = \\eta_k + \\alpha\\frac{\\partial}{\\partial \\eta} e^\\eta\\mathcal J(\\theta_k)\\Big |_{\\eta_k} = \\eta_k + \\alpha \\cdot \\mathcal J(\\theta_k) e^{\\eta_k} $$ Substituting in $\\eta_k = \\ln \\lambda_k$, the equation becomes: $$ \\ln \\lambda_{k+1} = \\ln \\lambda_k + \\alpha \\cdot \\lambda_k \\cdot \\mathcal J_C(\\theta_k) $$", "category": "Concept_Understanding"}, {"question": "What are the computational resources, time requirements, and costs associated with the Safe RLHF training process, particularly for large-scale language models?", "answer": "The experiments used a 7-billion-parameter large language model. The server had an Intel(R) Xeon(R) Platinum 8378A CPU @ 3.00GHz with 64 cores and 8 NVIDIA A800-SXM4-80GB GPUs with NVLink support. Data collection took approximately two weeks for crowdworker annotation and one week for quality control. Training for a single round of Safe RLHF required 10 to 20 hours, depending on inference length. The total cost for data annotations was around $70,000, and the training equipment cost was about $120,000. All data and code are released to help reduce research costs.", "category": "Experimental_Setup"}, {"question": "How many values of cost threshold were tried in the experiments, and how robust is the Lagrangian method for RLHF to different threshold values?", "answer": "The authors did not try multiple values of the cost threshold. Instead, they introduced a new training methodology for the Cost Model, which computes a reference threshold directly. This threshold is calculated by estimating cost values for the LLM on the training set, adjusting values exceeding zero down to zero, and computing their mean. This approach ensures robustness and avoids the need to search for the threshold in the real number space. The negative thresholds in the second and third rounds of Safe RLHF reflect the fact that most responses on the training set were predicted as safe (negative numbers) by the Cost Model.", "category": "Experimental_Setup"}, {"question": "Was the total cost for data annotations and training equipment for Safe RLHF around 190,000 U.S. dollars?", "answer": "True", "category": "Claim_Verification"}, {"question": "Is the detailed computational efficiency and scalability discussion planned to be included in the appendix of the paper?", "answer": "True", "category": "Claim_Verification"}, {"question": "Did the training for a single round of Safe RLHF require between 10 to 20 hours, varying with the average length of inference?", "answer": "True", "category": "Claim_Verification"}, {"question": "Does the paper provide detailed information on the computational resources and time required for the Safe RLHF training process?", "answer": "True", "category": "Claim_Verification"}, {"question": "Was the average time for a single round of Safe RLHF data collection approximately two weeks for crowdworker annotation and one week for professional quality control?", "answer": "True", "category": "Claim_Verification"}]} {"id": "AqN23oqraW", "venue": "ICLR 2024", "paper_decision": "Accept (poster)", "title": "KoLA: Carefully Benchmarking World Knowledge of Large Language Models", "authors": ["Jifan Yu", "Xiaozhi Wang", "Shangqing Tu", "Shulin Cao", "Daniel Zhang-Li", "Xin Lv", "Hao Peng", "Zijun Yao", "Xiaohan Zhang", "Hanming Li", "Chunyang Li", "Zheyuan Zhang", "Yushi Bai", "Yantao Liu", "Amy Xin", "Kaifeng Yun", "Linlu Gong", "Nianyi Lin", "Jianhui Chen", "Zhili Wu", "Yunjia Qi", "Weikai Li", "Yong Guan", "Kaisheng Zeng", "Ji Qi", "Hailong Jin", "Jinxin Liu", "Yu Gu", "Yuan Yao", "Ning Ding", "Lei Hou", "Zhiyuan Liu", "Bin Xu", "Jie Tang", "Juanzi Li"], "abstract": "The unprecedented performance of large language models (LLMs) necessitates improvements in evaluations. Rather than merely exploring the breadth of LLM abilities, we believe meticulous and thoughtful designs are essential to thorough, unbiased, and applicable evaluations. Given the importance of world knowledge to LLMs, we construct a Knowledge-oriented LLM Assessment benchmark (KoLA), in which we carefully design three crucial factors: (1) For ability modeling, we mimic human cognition to form a four-level taxonomy of knowledge-related abilities, covering 19 tasks. (2) For data, to ensure fair comparisons, we use both Wikipedia, a corpus prevalently pre-trained by LLMs, along with continuously collected emerging corpora, aiming to evaluate the capacity to handle unseen data and evolving knowledge. (3) For evaluation criteria, we adopt a contrastive system, including overall standard scores for better numerical comparability across tasks and models, and a unique self-contrast metric for automatically evaluating knowledge-creating ability. We evaluate 21 open-source and commercial LLMs and obtain some intriguing findings. The KoLA dataset will be updated every three months to provide timely references for developing LLMs and knowledge-related systems.", "keywords": "Large Language Model;World Knowledge;Evolving Benchmark", "qa_pairs": [{"question": "How does the paper differentiate between knowledge understanding and knowledge application, and why are tasks like reading comprehension classified under knowledge understanding rather than knowledge attention? Additionally, why does knowledge understanding primarily involve extraction tasks?", "answer": "The paper differentiates between knowledge understanding and knowledge application based on Bloom's Cognitive Taxonomy[1]. Understanding involves determining the meaning of instructional messages (e.g., explaining or summarizing), while applying involves carrying out or using a procedure in a given situation (e.g., implementing or executing). Indeed, since the revision of Bloom's theory [2], there has been considerable debate about the demarcation between these two cognitive levels. A key principle for differentiation is whether the task involves information and abilities beyond the given content[3]. Tasks involving information extraction(which ensures that the output information is faithfully extracted from the input text) are categorized as understanding because they ensure that the output information is faithfully extracted from the input text. Knowledge understanding is not limited to extraction tasks; it also includes conceptual abstraction, as seen in the COPEN task. Reading comprehension is classified as a knowledge understanding task if it requires only knowledge from the text. If it involves more complex background knowledge and reasoning, it may lean towards knowledge application.\n\n[1] Krathwohl D R. A revision of Bloom's taxonomy: An overview[J]. Theory into practice, 2002, 41(4): 212-218.\n\n[2] Forehand M. Bloom's taxonomy: Original and revised[J]. Emerging perspectives on learning, teaching, and technology, 2005, 8: 41-44.\n\n[3] Wilson L O. Anderson and Krathwohl Bloom’s taxonomy revised understanding the new version of Bloom’s taxonomy[J]. The Second Principle, 2016, 1(1): 1-8.", "category": "Method_Mechanics"}, {"question": "How is the self-contrast metric applied in the knowledge creation task as illustrated in Figure 2?", "answer": "The self-contrast metric is applied in three steps: (1) The model generates a completion $T$ using only the context $C$(The Battle of Evesham marked the defeat of Simon de Montfort...), allowing it to freely create content. (2) The model generates another completion $T_{k}$ using both the context $C$ and event knowledge $K$ (i.e., the structured content in the middle part of the figure). (3) The rationality of the model's event knowledge creation is calculated by contrasting $T$ and $T_{k}$, $\\partial \\left( T, T_{k} \\right)$ (its ability to freely create subsequent event knowledge, e.g., *Prince Edward’s Escape*), which, along with two other contrast metrics, leads to the scoring of the knowledge creation level.", "category": "Method_Mechanics"}, {"question": "What are the detailed costs involved in conducting the studies for each season, and how are these costs managed to sustain the project?", "answer": "The costs for each season are kept below USD 2,000 and include two main parts: data annotation and model deployment/API calls. Data annotation costs approximately USD 660-700 for triple annotation and USD 400-420 for event annotation. Due to the scale of the KoLA test sets, the costs for model deployment and API calls have been kept within an acceptable range. Model deployment costs are approximately USD 200-240 (GPU usage), and API calls cost USD 150-180. For the two completed seasons, costs have not exceeded USD 1,600 per season. A budget of USD 2,000 per season is anticipated to be sufficient for future seasons.", "category": "Experimental_Setup"}, {"question": "How will the evolving benchmark be maintained in the long term, and how will it interact with the known dataset?", "answer": "The authors are committed to updating the evaluation for at least six seasons, after which they will introduce new versions of KoLA. Each new season's data will be up-to-date to prevent test data leakage and maintain evaluation fairness. Ended seasons will not be added to the known set immediately but will be publicly released after six seasons, followed by a retrospective analysis. The maintenance involves collecting and annotating new data, constructing new model lists, and publishing results. A maintenance team has been established, and costs are controlled through automated pre-annotation and evaluation set size management. The cost per season is expected to be under USD 2,000, and community contributions are welcomed.", "category": "Experimental_Setup"}, {"question": "What are the key differences between the KoLA benchmark and existing LLM benchmarks, and why is KoLA necessary despite the availability of numerous existing benchmarks?", "answer": "(1) As described in Section 1, rather than assessing the breadth of model capabilities like most existing benchmarks (such as MMLU), KoLA focuses more on analyzing the deep interconnections of model knowledge capabilities through carefully-designed multi-level testing. (2) Besides combining some existing tasks, KoLA maintains a unique evolving mechanism, aimed at minimizing data leakage. Recent studies [1,2,3] have widely revealed a serious issue of 'test set contamination' in the evaluation of many LLMs with existing benchmarks, where the results may not genuinely reflect the actual capabilities of the models. These features make KoLA distinct and necessary in the current landscape of LLM evaluation.\n\nRef:\n\n[1] Wei T, Zhao L, Zhang L, et al. Skywork: A More Open Bilingual Foundation Model[J]. arXiv preprint arXiv:2310.19341, 2023.\n\n[2] Yang S, Chiang W L, Zheng L, et al. Rethinking Benchmark and Contamination for Language Models with Rephrased Samples[J]. arXiv preprint arXiv:2311.04850, 2023.\n\n[3] Zhou K, Zhu Y, Chen Z, et al. Don't Make Your LLM an Evaluation Benchmark Cheater[J]. arXiv preprint arXiv:2311.01964, 2023. ", "category": "Method_Comparison"}, {"question": "What are the motivations and benefits of using standardized overall scoring in the evaluation of large language models (LLMs) compared to simple ranking, especially considering the potential variations caused by the addition of new models?", "answer": "Standardized scores have become the mainstream choice in fields like educational assessment and intelligence testing [1], with systems like the SAT, GRE, and Wechsler Intelligence Scales (IQ Test) adopting them. Compared to absolute values, using standard scores in the multi-task evaluation of LLMs offers the following benefits:1. Standardized scores enable fair comparisons across different seasons and datasets. The varying difficulty of tasks and the different sensitivities of metrics mean that the absolute numerical performance of models is incomparable. For example, if there is a dataset where models typically perform at 80, and another where the usual performance is 40, directly comparing a model's performance scores on these two datasets cannot reflect whether the model is better at one task over the other. However, comparing standardized scores derived from relative performance can yield conclusive insights.\n2. For overall rankings, standardized scores can negate the bias caused by specific tasks. For instance, without standardized scoring, ChatGLM (6B) would rank much higher in overall rankings solely due to its high performance in the 2-2 task, surpassing its improved version ChatGLM2-32k.\n\n Although the inclusion of new models causes variations in standardized scores, these benefits make such variations acceptable. KoLA aims to provide a reliable reference for model selection, believing that the relative downscaling of evaluations due to superior new models is beneficial for users.\n\n[1]Haladyna T M, Nolen S B, Haas N S. Raising standardized achievement test scores and the origins of test score pollution[J]. Educational Researcher, 1991, 20(5): 2-7.", "category": "Motivation_Analysis"}, {"question": "How do the conclusions related to knowledge in this paper contribute to its overall contributions, given that they do not seem directly tied to the paper's stated goals?", "answer": "The experimental conclusions contribute in two key ways: (1) the analysis based on Bloom’s cognitive taxonomy provides a novel perspective on the knowledge capabilities of LLMs, and (2) the results offer new experimental support for widely discussed speculations, such as the alignment tax. While some conclusions may not be novel, the evaluation framework and the long-term utility of the KoLA benchmark add significant value.", "category": "Experimental_Analysis"}]} {"id": "YCWjhGrJFD", "venue": "ICLR 2024", "paper_decision": "Accept (poster)", "title": "Training Diffusion Models with Reinforcement Learning", "authors": ["Kevin Black", "Michael Janner", "Yilun Du", "Ilya Kostrikov", "Sergey Levine"], "abstract": "Diffusion models are a class of flexible generative models trained with an approximation to the log-likelihood objective. However, most use cases of diffusion models are not concerned with likelihoods, but instead with downstream objectives such as human-perceived image quality or drug effectiveness. In this paper, we investigate reinforcement learning methods for directly optimizing diffusion models for such objectives. We describe how posing denoising as a multi-step decision-making problem enables a class of policy gradient algorithms, which we refer to as denoising diffusion policy optimization ( DDPO), that are more effective than alternative reward-weighted likelihood approaches. Empirically, DDPO can adapt text-to-image diffusion models to objectives that are difficult to express via prompting, such as image compressibility, and those derived from human feedback, such as aesthetic quality. Finally, we show that DDPO can improve prompt-image alignment using feedback from a vision-language model without the need for additional data collection or human annotation. The project’s website can be found at http://rl-diffusion.github.io.", "keywords": "reinforcement learning;RLHF;diffusion models", "qa_pairs": [{"question": "How does this paper's contribution differ from DPOK and 'Optimizing ddpm sampling with shortcut fine-tuning'[1]?\n\n[1]Ying Fan and Kangwook Lee. Optimizing ddpm sampling with shortcut fine-tuning. arXiv preprint arXiv:2301.13362, 2023.", "answer": "This paper was the first to propose a policy gradient objective for training diffusion models, as highlighted in the related work and methods sections. Unlike 'Optimizing ddpm sampling with shortcut fine-tuning,' which focused on improving fast sampling using a GAN-like objective and included small-scale experiments with unconditional diffusion models, this work demonstrates that RL can optimize various objectives, including prompt alignment with VLM-derived rewards. The experiments illustrate the flexibility and usefulness of this approach, addressing a different problem.", "category": "Method_Comparison"}, {"question": "How does the experimental setup address the concern that using the same Aesthetic Quality metric for both fine-tuning and evaluation may not accurately reflect improvements in image generation quality?", "answer": "The experimental evaluation includes out-of-domain assessment by training using ImageReward and evaluating using Aesthetic Score, which shows an increase in both metrics across all prompts. Additionally, an experiment in Appendix B applying universal guidance to the aesthetic predictor was conducted, resulting in a non-negligible increase in aesthetic score, though it is much smaller than DDPO finetuning and significantly slower(2 minutes per image on an A100) due to the backpropagation of gradients through the large guidance network.", "category": "Experimental_Analysis"}, {"question": "Does the aesthetic predictor bug affect the fairness of the quantitative comparison in the experiments, and are there any other bugs in the paper that might impact the completeness of the results?", "answer": "The aesthetic predictor bug, caused by hardware-specific numerical instability, affected the scale of the rewards and the style of the resulting images but did not compromise the fairness of the quantitative comparison because it affected all methods equally. The primary comparison (Figure 4) was re-run after resolving the bug, and the results remain valid. The anonymized code provided is written in PyTorch, and the results have been successfully replicated on GPUs, indicating that the results are not limited to customized devices like TPU. There is no evidence of other bugs in the paper.", "category": "Method_Disambiguation"}, {"question": "Regarding the capability of DDPO, is it possible to control the image generation to have predicted reward? For example, Classifier-Free guidance provides control over sample fidelity and diversity. It seems like DDPO improves prompt fidelity at the expense of sample diversity", "answer": "The most direct way to control the amount of reward during generation in DDPO is through early stopping. Earlier checkpoints in the training process have lower reward but are closer to the distribution of the pretrained model.", "category": "Method_Mechanics"}, {"question": "How does the difficulty of prompts affect the optimization analysis in the context of the reward function normalization used by DDPO?", "answer": "Some prompts are naturally more difficult for the pretrained model than others. For instance, generating 'a man riding a horse' is easier than generating 'a horse riding a man.' Figure 5 quantitatively demonstrates this, showing that 'riding a bike' prompts achieve the highest average reward, followed by 'playing chess,' and then 'washing dishes.'", "category": "Method_Mechanics"}, {"question": "How does the proposed method address the issue of overoptimization, particularly in scenarios where visual inspection is not feasible? For instance, one might not be able to apply this method to a medical imaging task, where visual inspection by a human supervisor does not allow for determining when to stop the optimization process.", "answer": "It is reasonably straightforward to run The paper's method for a fixed number of iterations (e.g., 15k reward queries) and recover good generations; completely degenerated images were not observed in the VLM or aesthetic quality experiments; they were only observed in compressibility and incompressibility tests when run for long enough. Overoptimization is an open research problem that is well outside the scope of this paper. While it is certainly a major issue that hinders many real-life applications (such as the provided medical imaging example), the issue of overoptimization also exists in language modeling to an equivalent degree ([Gao et. al., 2022](https://arxiv.org/abs/2210.10760)), yet it has certainly not prevented RLHF from having a huge impact in that domain ([Ouyang et. al., 2022](https://arxiv.org/abs/2203.02155); [Bai et. al., 2022](https://arxiv.org/abs/2212.08073)). Current techniques for combating overoptimization, such as KL-regularization or automated evaluation, do not completely eliminate the need for human evaluation in real-life systems.", "category": "Method_Disambiguation"}, {"question": " Was a classifier guidance baseline included in the evaluation, and how does it compare to the proposed method?", "answer": "This paper includes a comparison to classifier guidance in Appendix B. However, only the aesthetic predictor reward function is differentiable, making classifier guidance applicable in this case. In the subsequent experiment, universal guidance applied to the aesthetic predictor showed a non-negligible increase in aesthetic score, but it was much smaller than DDPO finetuning and significantly slower (2 minutes per image on an A100) due to the backpropagation of gradients through the large guidance network.", "category": "Experimental_Analysis"}, {"question": "How does the paper approach the implementation and effectiveness of the early stopping mechanism in their method?", "answer": "The authors found it straightforward to run their method for a fixed number of iterations (e.g., 15k reward queries) and recover good generations. They did not observe completely degenerated images in VLM or aesthetic quality experiments, except in compressibility and incompressibility tests when run for extended periods. Held-out metrics could be used to automatically determine a stopping point.", "category": "Method_Mechanics"}, {"question": "How does DDPO compare to DPOK in terms of performance when trained on multiple prompts, and what evidence supports the claim that DDPO has advantages over DPOK?", "answer": "The paper conducted an experiment directly comparing DDPO to DPOK tasks, and the results are included in Appendix C . The quantitative and qualitative results show that DDPO outperforms the numbers reported in the DPOK paper, even without KL regularization. Since DPOK has not released code, the exact cause of this performance difference is unclear, but it suggests that the design decisions in the paper's implementation of DDPO are more effective for RL training of diffusion models.", "category": "Method_Comparison"}, {"question": "Is the anonymized code provided by the authors written in PyTorch and successfully replicated on GPUs?", "answer": "True", "category": "Claim_Verification"}, {"question": "Was the bug in the aesthetic predictor caused by hardware-specific numerical instability that affected the scale of rewards and style of resulting images?", "answer": "True", "category": "Claim_Verification"}, {"question": "Are the results of the paper achievable only on customized devices like TPU?", "answer": "False", "category": "Claim_Verification"}, {"question": "Does the bug in the aesthetic predictor experiments affect the fairness of the quantitative comparison between different methods?", "answer": "False", "category": "Claim_Verification"}]} {"id": "6PmJoRfdaK", "venue": "ICLR 2024", "paper_decision": "Accept (oral)", "title": "LongLoRA: Efficient Fine-tuning of Long-Context Large Language Models", "authors": ["Yukang Chen", "Shengju Qian", "Haotian Tang", "Xin Lai", "Zhijian Liu", "Song Han", "Jiaya Jia"], "abstract": "We present LongLoRA, an efficient fine-tuning approach that extends the context sizes of pre-trained large language models (LLMs), with limited computation cost.\nTypically, training LLMs with long context sizes is computationally expensive, requiring extensive training hours and GPU resources. For example, training on the context length of 8192 needs 16x computational costs in self-attention layers as that of 2048. In this paper, we speed up the context extension of LLMs in two aspects. On the one hand, although dense global attention is needed during inference, fine-tuning the model can be effectively and efficiently done by sparse local attention. The proposed shifted sparse attention effectively enables context extension, leading to non-trivial computation saving with similar performance to fine-tuning with vanilla attention. Particularly, it can be implemented with only two lines of code in training, while being optional in inference. On the other hand, we revisit the parameter-efficient fine-tuning regime for context expansion. Notably, we find that LoRA for context extension works well under the premise of trainable embedding and normalization. LongLoRA combines this improved LoRA with S^2-Attn. LongLoRA demonstrates strong empirical results on various tasks on Llama2 models from 7B/13B to 70B. LongLoRA extends Llama2 7B from 4k context to 100k, or Llama2 70B to 32k on a single 8x A100 machine. LongLoRA extends models' context while retaining their original architectures, and is compatible with most existing techniques, like Flash-Attention2. In addition, we further conduct supervised fine-tuning with LongLoRA and our long instruction-following LongAlpaca dataset. All our code, models, dataset, and demo are available at https://github.com/dvlab-research/LongLoRA.", "keywords": "Efficient fine-tuning;Long context;Large language model", "qa_pairs": [{"question": "What additional evaluations were conducted beyond perplexity and retrieval settings to assess the performance of the proposed model?", "answer": "Additional evaluations were conducted on the LongBench and L-Eval benchmarks[1]. The Llama2 7B[2] model was fine-tuned with the proposed method on long QA data and compared with GPT-3.5-Turbo and other Llama2-based long-context models, including Vicuna and LongChat models. The results, presented in Table 9 and Table 10, show that the 7B model achieved comparable or better performance than these models, with supervised fine-tuning taking about 4 hours and 0.3 billion tokens on a single 8x A100 machine.\n\nTable 1 - Evaluation on LongBench English tasks\n\n| Model | Avg | Single-Doc QA | Multi-Doc QA | Summarization | Few-shot Learning | Code | Synthetic |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n| GPT-3.5-Turbo | 44.0 | 39.8 | 38.7 | 26.5 | 67.1 | 54.1 | 37.8 |\n| Llama2-7B-chat | 31.0 | 24.9 | 22.6 | 24.7 | 60.0 | 48.1 | 5.9 |\n| LongChat-v1.5-7B | 34.3 | 28.7 | 20.6 | 26.7 | 60.0 | 54.1 | 15.8 |\n| Vicuna-v1.5-7B | 31.9 | 28.0 | 18.6 | 26.0 | 66.2 | 47.3 | 5.5 |\n| Ours-7B | 36.8 | 28.7 | 28.1 | 27.8 | 63.7 | 56.0 | 16.7 |\n\nTable 2 - Evaluation on L-Eval open-ended tasks, i.e., comparing models to GPT-3.5-Turbo and judging win rates via GPT-4\n\n| Model | Win-rate | Wins | Ties |\n| --- | --- | --- | --- |\n| LongChat-7B | 33.68 | 36 | 56 |\n| LongChat-v1.5-7B | 33.59 | 38 | 53 |\n| Vicuna-v1.5-7B | 25.52 | 22 | 54 |\n| Ours-7B | 39.06 | 45 | 60 |\n\n[1] Yushi Bai, Xin Lv, Jiajie Zhang, Hongchang Lyu, Jiankai Tang, Zhidian Huang, Zhengxiao Du, Xiao Liu, Aohan Zeng, Lei Hou, Yuxiao Dong, Jie Tang, Juanzi Li: LongBench: A Bilingual, Multitask Benchmark for Long Context Understanding. CoRR abs/2308.14508 (2023)\n\n[2] Chenxin An, Shansan Gong, Ming Zhong, Mukai Li, Jun Zhang, Lingpeng Kong, Xipeng Qiu: L-Eval: Instituting Standardized Evaluation for Long Context Language Models. CoRR abs/2307.11088 (2023)", "category": "Experimental_Exposition"}, {"question": "What ablation experiments were conducted to determine the optimal group size for different target sequence lengths, particularly for context lengths longer than 8192?", "answer": "Additional ablation experiments were performed using a context length of 16384. The results showed that setting the group size to 1/4 of the context length is optimal for efficiency-accuracy tradeoff.\n\n| Context Length | Full | 1/2 | 1/4 | 1/6 | 1/8 |\n| --- | --- | --- | --- | --- | --- |\n| 8192 | 8.02 | 8.04 | 8.04 | 8.10 | 8.16 |\n| 16384 | 7.82 | 7.84 | 7.86 | 7.94 | 7.98 |", "category": "Experimental_Exposition"}, {"question": "What method or formula was used to estimate the model FLOPs presented in Table 11?", "answer": "The context stage FLOPs of Llama2-7B were profiled using a batch size of 1 and various context lengths with the third-party tool torchprofile[1]. This tool traces the computation graph and sums up the FLOPs of each node in the graph, including Q/K/V/O projections, multi-head self-attention, fully-connected layers, and normalization layers.\n\n[3] torchprofile. https://github.com/zhijian-liu/torchprofile", "category": "Experimental_Setup"}, {"question": "What does it mean that the model is able to handle longer context in the retrieval-based evaluation section?", "answer": "Retrieval-based evaluation demonstrates that LongLoRA extends the context window of a pre-trained LLM. Specifically, Llama-2-7b fails to retrieve the passkey when the context window exceeds 4k, while LongLoRA maintains a high retrieval accuracy (60-90%) even at much longer context lengths of 33k-45k.", "category": "Concept_Understanding"}, {"question": "How is the performance of different attention patterns evaluated in terms of retaining the original standard self-attention at inference time, as shown in Table 6 ?", "answer": "In Table 6, each attention pattern's performance is evaluated under two protocols: using sparse attention in both training and testing, and using sparse attention only for training with standard full attention for testing. $S^2$-Attn achieves the best perplexity with the original full self-attention at inference time, as detailed in the table caption.", "category": "Experimental_Setup"}, {"question": "Was an additional baseline that trains LoRA + embeddings included in the experiments, and what were the results?", "answer": "Yes, an additional baseline that trains LoRA + embeddings was included in the experiments, as shown in Table 2. Finetuning the embedding layer provides larger benefits than normalization layers, with the results indicating improved performance.\n\n| Embed | x | √ | √ |\n|-------|----|----|----|\n| Norm | √ | x | √ |\n| PPL | 10.49 | 8.29 | 8.12 |\n\n\n", "category": "Experimental_Exposition"}, {"question": "How does the computational cost and efficiency of LongLoRA compare to training long-context language models from scratch?", "answer": "Training long-context LLMs from scratch is computationally expensive and unaffordable for most researchers. LongLoRA offers an efficiency advantage of orders of magnitude compared to training long-context LLMs from scratch, requiring significantly fewer resources. For example, Llama-2 models need training with 2 trillion tokens across hundreds of GPUs, while LongLoRA models are finetuned on about 2 billion tokens for 32k context length using just 8 A100 GPUs. Recent research by Meta, LLama2-Long[1], supports that long-context continual training on short-context models is more efficient and similarly effective compared to pretraining from scratch with long sequences, further emphasizing LongLoRA's importance.\n\n[1] Wenhan Xiong, Jingyu Liu, Igor Molybog, Hejia Zhang, Prajjwal Bhargava, Rui Hou, Louis Martin, Rashi Rungta, Karthik Abinav Sankararaman, Barlas Oguz, Madian Khabsa, Han Fang, Yashar Mehdad, Sharan Narang, Kshitiz Malik, Angela Fan, Shruti Bhosale, Sergey Edunov, Mike Lewis, Sinong Wang, Hao Ma: Effective Long-Context Scaling of Foundation Models. CoRR abs/2309.16039 (2023)", "category": "Method_Comparison"}, {"question": "Why do regular LoRA and LoRA+ (Table 12) use the same amount of memory, and does $S^2$-Attn reduce memory usage in addition to reducing flops?", "answer": "$S^2$-Attn does not reduce memory usage on top of LoRA (LoRA+) in Table 11 because FlashAttention-2[1] is used, which fuses all operators in multi-head self-attention (MHSA) into a single CUDA kernel, avoiding writing the attention score matrix to DRAM. The memory space required for MHSA is approximately $2 * B * N * C$, where B is the batch size, N is the sequence length, and C is the number of channels. Without FlashAttention-2, vanilla dense attention requires $2 * B * N * C + B * N^2 * C$ memory space, where $B * N^2 * C$ corresponds to attention scores. In comparison, $S^2$-Attn requires $2 * B * N * C + 1/4 * B * N^2 * C$ memory space. Empirically, $S^2$-Attn improves training speed by 2.1x and memory usage by 1.8x under a context length of 8192. At a 16k context length, dense attention runs out of memory, while $S^2$-Attn remains feasible. This comparison is included in Table 13 of the revision.\n\n| $S^2$-Attn | Train hours (8192) | Memory - GB (8192) | Train hours (16384) | Memory - GB (16384) |\n| --- | --- | --- | --- | --- |\n| x | 17.5 | 55.5 | OOM | OOM |\n| √ | 8.2 | 30.3 | 20.8 | 57.1 |\n\n[1] Tri Dao: FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning. CoRR abs/2307.08691 (2023)", "category": "Experimental_Analysis"}, {"question": "What additional generative tasks requiring longer context were evaluated in the paper, and how does the proposed model perform on these tasks compared to other models?", "answer": "The paper includes evaluations on LongBench[1] and L-Eval[2], which consist of comprehensive generative tasks such as document QA, summarization, few-shot learning, code completion synthetic tasks, and other open-ended tasks in L-Eval. The proposed model, fine-tuned on Llama2 7B with long QA data, shows comparable or better performance than other models. \n\nTable 1 - Evaluation on LongBench English tasks.\n\n| Model | Avg | Single-Doc QA | Multi-Doc QA | Summarization | Few-shot Learning | Code | Synthetic |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n| GPT-3.5-Turbo | 44.0 | 39.8 | 38.7 | 26.5 | 67.1 | 54.1 | 37.8 |\n| Llama2-7B-chat | 31.0 | 24.9 | 22.6 | 24.7 | 60.0 | 48.1 | 5.9 |\n| LongChat-v1.5-7B | 34.3 | 28.7 | 20.6 | 26.7 | 60.0 | 54.1 | 15.8 |\n| Vicuna-v1.5-7B | 31.9 | 28.0 | 18.6 | 26.0 | 66.2 | 47.3 | 5.5 |\n| Ours-7B | 36.8 | 28.7 | 28.1 | 27.8 | 63.7 | 56.0 | 16.7 |\n\nTable 2 - Evaluation on L-Eval open-ended tasks, i.e., comparing models to GPT-3.5-Turbo and judging win rates via GPT-4.\n\n| Model | Win-rate | Wins | Ties |\n| --- | --- | --- | --- |\n| LongChat-7B | 33.68 | 36 | 56 |\n| LongChat-v1.5-7B | 33.59 | 38 | 53 |\n| Vicuna-v1.5-7B | 25.52 | 22 | 54 |\n| Ours-7B | 39.06 | 45 | 60 |\n\n[1] Yushi Bai, Xin Lv, Jiajie Zhang, Hongchang Lyu, Jiankai Tang, Zhidian Huang, Zhengxiao Du, Xiao Liu, Aohan Zeng, Lei Hou, Yuxiao Dong, Jie Tang, Juanzi Li: LongBench: A Bilingual, Multitask Benchmark for Long Context Understanding. CoRR abs/2308.14508 (2023)\n\n[2] Chenxin An, Shansan Gong, Ming Zhong, Mukai Li, Jun Zhang, Lingpeng Kong, Xipeng Qiu: L-Eval: Instituting Standardized Evaluation for Long Context Language Models. CoRR abs/2307.11088 (2023)", "category": "Method_Comparison"}, {"question": "What generative tasks were evaluated, and how does the proposed model perform compared to other models on these tasks?", "answer": "The paper has included the evaluation on LongBench[1] and L-Eval [2], as shown in Table 9 and Table 10. The paper fine-tunes the Llama2 7B model using its long QA data. In these benchmarks, there are comprehensive generative tasks, including document QA, summarization, few-shot learning, code completion synthetic tasks, and other open-ended tasks in L-Eval. The paper's model presents comparable or even better performance than other counterparts, with about 4 hours for fine-tuning on 8 A100 GPUs. It takes 60 million tokens per epoch, 5 epochs, and 0.3 billion tokens in total for the supervised fine-tuning.\n\nTable 1 - Evaluation on LongBench English tasks.\n\n| Model | Avg | Single-Doc QA | Multi-Doc QA | Summarization | Few-shot Learning | Code | Synthetic |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n| GPT-3.5-Turbo | 44.0 | 39.8 | 38.7 | 26.5 | 67.1 | 54.1 | 37.8 |\n| Llama2-7B-chat | 31.0 | 24.9 | 22.6 | 24.7 | 60.0 | 48.1 | 5.9 |\n| LongChat-v1.5-7B | 34.3 | 28.7 | 20.6 | 26.7 | 60.0 | 54.1 | 15.8 |\n| Vicuna-v1.5-7B | 31.9 | 28.0 | 18.6 | 26.0 | 66.2 | 47.3 | 5.5 |\n| Ours-7B | 36.8 | 28.7 | 28.1 | 27.8 | 63.7 | 56.0 | 16.7 |\n\nTable 2 - Evaluation on L-Eval open-ended tasks, i.e., comparing models to GPT-3.5-Turbo and judging win rates via GPT-4.\n\n| Model | Win-rate | Wins | Ties |\n| --- | --- | --- | --- |\n| LongChat-7B | 33.68 | 36 | 56 |\n| LongChat-v1.5-7B | 33.59 | 38 | 53 |\n| Vicuna-v1.5-7B | 25.52 | 22 | 54 |\n| Ours-7B | 39.06 | 45 | 60 |\n\n[1] Yushi Bai, Xin Lv, Jiajie Zhang, Hongchang Lyu, Jiankai Tang, Zhidian Huang, Zhengxiao Du, Xiao Liu, Aohan Zeng, Lei Hou, Yuxiao Dong, Jie Tang, Juanzi Li: LongBench: A Bilingual, Multitask Benchmark for Long Context Understanding. CoRR abs/2308.14508 (2023)\n\n[2] Chenxin An, Shansan Gong, Ming Zhong, Mukai Li, Jun Zhang, Lingpeng Kong, Xipeng Qiu: L-Eval: Instituting Standardized Evaluation for Long Context Language Models. CoRR abs/2307.11088 (2023)\n\n", "category": "Method_Comparison"}, {"question": "Did the paper evaluate their model only on perplexity and retrieval settings?", "answer": "False", "category": "Claim_Verification"}]} {"id": "KOZu91CzbK", "venue": "ICLR 2024", "paper_decision": "Accept (spotlight)", "title": "Retroformer: Retrospective Large Language Agents with Policy Gradient Optimization", "authors": ["Weiran Yao", "Shelby Heinecke", "Juan Carlos Niebles", "Zhiwei Liu", "Yihao Feng", "Le Xue", "Rithesh R N", "Zeyuan Chen", "Jianguo Zhang", "Devansh Arpit", "Ran Xu", "Phil L Mui", "Huan Wang", "Caiming Xiong", "Silvio Savarese"], "abstract": "Recent months have seen the emergence of a powerful new trend in which large language models (LLMs) are augmented to become autonomous language agents capable of performing objective oriented multi-step tasks on their own, rather than merely responding to queries from human users. Most existing language agents, however, are not optimized using environment-specific rewards. Although some agents enable iterative refinement through verbal feedback, they do not reason and plan in ways that are compatible with gradient-based learning from rewards. This paper introduces a principled framework for reinforcing large language agents by learning a retrospective model, which automatically tunes the language agent prompts from environment feedback through policy gradient. Specifically, our proposed agent architecture learns from rewards across multiple environments and tasks, for fine-tuning a pre-trained language model which refines the language agent prompt by summarizing the root cause of prior failed attempts and proposing action plans. Experimental results on various tasks demonstrate that the language agents improve over time and that our approach considerably outperforms baselines that do not properly leverage gradients from the environment.", "keywords": "Language Agent;AI Agent;Reinforcement Learning", "qa_pairs": [{"question": "How does the proposed Retroformer model perform in comparison to GPT-4, and what are the implications of these results for demonstrating the contribution of the work?", "answer": "The comparison with the GPT-4 model is presented in Table 2, Figure 4, and Figure 6 of the paper. The results show consistent improvements at episode 0 when verbal feedback is not applied, attributed to GPT-4's better decision-making capabilities. Additionally, Retroformer demonstrates consistent improvements under GPT-4, highlighting the effectiveness of verbal feedback with a well-trained actor (e.g., GPT-4) combined with a retrospective component tuned using the policy gradient method. ", "category": "Method_Comparison"}, {"question": "What are the specific improvements observed in HotPotQA, WebShop, and against traditional RL methods when using Retroformer?", "answer": "**(1) Improvements in HotPotQA** \nThere are significant improvements in HotpotQA by using Retroformer. For example, as in Table 2, Retroformer (GPT-3, lora r=4) achieved a 14% improvement in success rate within just one episode. The improvement is also 6% higher than the Reflexion (GPT-3) method that uses a frozen model without the paper's proposed RLHF finetuning. The authors have also tested GPT-4 as an agent in the updated experiments and found that even GPT-4 gets stuck at a 54% success rate. It is believed that 54% is the upper bound of the success rate for existing LLMs. It deserves notice that HotPotQA, which is a text-based game, has an extremely large state and action space (it can be treated as a RL problem with a continuous action of 768 dimensions). It should take more than 500 episodes to observe certain improvements in some much simpler text-based environments in [1]. The paper's improvements (14%) by Retroformer in just one episode are significant.\n**(2) Improvements in WebShop** \nThe difficulty of solving this web shop environment is well known in all recent language agent publications [2,3,4] that use this environment. The performance improvement by Retroformer over the frozen baselines is observed, but the improvements may be limited. This limitation of improvement was due to the fact that 'web browsing requires a significant amount of exploration with more precise search queries'. Nevertheless, the paper's Retroformer method is still performing better than Reflexion and React across episodes, which use a frozen model without the paper's proposed RLHF finetuning. The authors have added GPT-4 agents in the updated experiments and found similar results in the updated Figure 6 (b). The results probably indicate that the verbal feedback approach (Reflexion, Retroformer) is not an optimal method for this environment, but the paper's fine-tuning method still proves effective.\n**(3) Improvements against RL methods** \nTo show the improvements against traditional RL methods, the authors added one method, i.e., Soft Actor-Critic [5], as the baseline in Table 2, and the implementation details of the RL method in Appendix C.2, which is quoted below. 'The paper includes one online RL algorithm, i.e., Soft Actor-Critic [5], or SAC as a baseline model for comparison. Given that the three environments are text-based games, inspired by [1], the authors do mean-pooling for the embeddings of the generated text outputs, such as 'Search[It Takes a Family]' as the agent actions. Therefore, the action space is continuous and is of 768 dimensions. The authors apply LoRA adapters with r=4 on the agent Action model instantiated from longchat-16k, and use SAC to do the online updates, with discount factor gamma=0.99, interpolation factor polyak=0.995, learning rate=0.01, entropy regularization alpha=0.2, and batch size=8.' For a fair comparison with the language agent methods in this paper, which all showed improvements in 5 episodes, the authors ran SAC for 5 episodes but did not observe significant improvement across all 3 environments in Table 2. This is mostly due to the fact that the three text-based games have an extremely large state and action space, and thus online exploration and learning within 5 online episodes cannot improve the LLM model with an extensive parameter count. Under this setting, verbal reinforcement with an LLM that is finetuned offline for generating effective reflective feedback (i.e., the paper's Retroformer) is much more effective.\n\n\n[1] Yuan, Xingdi, et al. \"Counting to explore and generalize in text-based games.\" arXiv preprint arXiv:1806.11525 (2018).\n[2] Yao, Shunyu, et al. \"React: Synergizing reasoning and acting in language models.\" arXiv preprint arXiv:2210.03629 (2022). \n[3] Shinn, Noah, Beck Labash, and Ashwin Gopinath. \"Reflexion: an autonomous agent with dynamic memory and self-reflection.\" arXiv preprint arXiv:2303.11366 (2023). \n[4] Liu, Xiao, et al. \"Agentbench: Evaluating llms as agents.\" arXiv preprint arXiv:2308.03688 (2023).\n[5] Haarnoja, Tuomas, et al. \"Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor.\" International conference on machine learning. PMLR, 2018.\n", "category": "Method_Comparison"}, {"question": "How does the proposed method compare against recognized RL methods like Soft Actor-Critic within the interaction-feedback-learning framework?", "answer": "The results in Table 2 show that SAC did not exhibit significant improvement across all three environments (HotPotQA, AlfWorld, and WebShop).\n\n| Method | #Params | #Retries | HotPotQA | AlfWorld | WebShop |\n|---------|---------|----------|----------|----------|---------|\n| SAC | 2.25M | N=1 | 27 | 58.95 | 30 |\n| | | N=4 | 27 | 59.7 | 30 |\n", "category": "Method_Comparison"}, {"question": "How does Retroformer mitigate the risk of overfitting when fine-tuning on potentially repetitive data derived from sparse feedback in the agent-environment interaction?", "answer": "Retroformer addresses overfitting by collecting data offline for fine-tuning the Retrospective component, ensuring the ratings in the offline dataset are not sparse. The training set includes a balanced distribution of positive and negative ratings, with positive ratings accounting for around 40% and negative ratings for 60%. Detailed data collection methods are provided in Appendix C.1.For HotPotQA environment, the paper collected 3,383 reflection samples by running the base rollout policy for 3 trials (N = 3) for 3,000 tasks in the training set, in which 1,084 instruction-response pairs have positive ratings. For AlfWorld, the paper collected 523 reflection samples and for WebShop, the paper collected 267 reflection samples. Additionally, the offline training set's queries or task descriptions do not overlap with those used for reporting success rates, thus avoiding repetitive data and overfitting.", "category": "Experimental_Setup"}, {"question": "What are the reasons for the observed limited performance improvements in HotPotQA and WebShop?", "answer": "For HotPotQA, the complexity of the text-based game and its large state-action space limit the method's ability to solve the game within 5 episodes, but 14% success rate in one episode and 20% improvement within 5 episodes are significant. For WebShop, the need for extensive exploration and precise search queries affects performance, though Retroformer still outperforms Reflexion and React. The verbal feedback approach(Reflexion, Retroformer) is not optimal for WebShop, but fine-tuning remains effective.", "category": "Experimental_Analysis"}, {"question": "What evidence demonstrates that the finetuned reflection model (Retroformer) produces better prompts compared to the frozen language model (Reflexion), and how often does each model correctly identify an improved plan (e.g. have a human hand-label 100 prompts for Reflexion and 100 from the frozen LM and record their success rates.)?", "answer": "Manual labeling of 5 reflection responses in the HotPotQA dataset showed that the agent LM always succeeds in the next trial when human-labeled. For the frozen LM (Reflexion), 1 out of 5 tasks succeeded in the next trial, while Retroformer (fine-tuned by policy gradient) succeeded in 3 out of 5 tasks. For 100 tasks, as shown in Figure 4, under GPT-4 at episode 1, Reflexion had 48 successful tasks and Retroformer (r=4) had 51 successful tasks. This indicates that 8(48-40) plans of the frozen LM and 11(51-40) plans of Retroformer identified improved plans, demonstrating the effectiveness of Retroformer.", "category": "Experimental_Analysis"}, {"question": "How is the 'f1 score' reward calculated and used in the HotPotQA environment?", "answer": "The 'f1 score' reward is used in the HotPotQA environment to compare the matching of a generated answer to a question against the ground truth answer. After removing stopwords from both answers, the number of common tokens is calculated. Precision is the number of common tokens divided by the number of tokens in the generated answer, and Recall is the number of common tokens divided by the number of tokens in the ground truth answer. The F1 score is then computed from these precision and recall values. This reward function was defined in the ReAct paper[1], which serves as the baseline model in this study.\n\n[1]Yao, Shunyu, et al. 'React: Synergizing reasoning and acting in language models.' arXiv preprint arXiv:2210.03629 (2022).", "category": "Method_Mechanics"}, {"question": "Is it typically a better strategy to finetune a small model or prompt a more capable cloud model, such as GPT-3 or GPT-4, for generating reflective responses in a given environment?", "answer": "The Reflexion (GPT-3) curve in Figure 4 and 6 represents the requested scenario of using GPT-3 as the reflection model. Additionally, the authors tested GPT-4 as the reflection model and found that Retroformer (GPT-3/4, r=4) outperformed it significantly in all environments. This demonstrates that fine-tuning a small model is more effective than prompting a more capable general-purpose model for generating reflective responses in a given environment.", "category": "Experimental_Exposition"}, {"question": "Can the paper provide the exact algorithm used for PPO finetuning, including any modifications made to adapt it for offline use with language models?", "answer": "The exact algorithm for PPO finetuning is provided in Appendix C.1 - Algorithm 1. It includes three steps: offline data collection, reward model learning, and policy gradient finetuning. The offline ratings data is used to train a reward model, which is then integrated into the PPO finetuning process.", "category": "Method_Mechanics"}, {"question": "Could tuning the agents from RLHF feedback have a more significant effect on the LLM compared to fixing the agents and tuning the prompts?", "answer": "The paper included an RL baseline, Soft Actor-Critic[1], which directly finetunes the LLM agent online with environment feedback. After running this method for 5 episodes, no improvement was observed across all 3 environments, indicating that tuning the agent prompts is more efficient than tuning the agent LLMs directly in the paper's problem setting.\n\n\n| Method | #Params | #Retries | HotPotQA | AlfWorld | WebShop |\n|--------|---------|----------|----------|----------|---------|\n| SAC | 2.25M | N=1 | 27 | 58.95 | 30 |\n| | | N=4 | 27 | 59.7 | 30 |\n\n\n[1] Haarnoja, Tuomas, et al. \"Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor.\" International conference on machine learning. PMLR, 2018.", "category": "Experimental_Exposition"}, {"question": "Does the inclusion of GPT-4 as a comparison agent demonstrate that prompt tuning is still beneficial for well-trained agents like GPT-4 because GPT-4 still requires exploration to eliminate incorrect answers and choose correct trajectories in subsequent rounds?", "answer": "True", "category": "Claim_Verification"}, {"question": "Does the paper provide detailed prompts used in multiple environments (HotPotQA, Alfworld, and Webshop) to support the claim of 'automatically tunes the language agent prompts'?", "answer": "True", "category": "Claim_Verification"}]} {"id": "Q1u25ahSuy", "venue": "ICLR 2024", "paper_decision": "Accept (poster)", "title": "SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight Compression", "authors": ["Tim Dettmers", "Ruslan A. Svirschevski", "Vage Egiazarian", "Denis Kuznedelev", "Elias Frantar", "Saleh Ashkboos", "Alexander Borzunov", "Torsten Hoefler", "Dan Alistarh"], "abstract": "Recent advances in large language model (LLM) pretraining have led to high-quality LLMs with impressive abilities. By compressing such LLMs via quantization to 3-4 bits per parameter, they can fit into memory-limited devices such as laptops and mobile phones, enabling personalized use. Quantizing models to 3-4 bits per parameter can lead to moderate to high accuracy losses, especially for smaller models (1-10B parameters), which are suitable for edge deployment. To address this accuracy issue, we introduce the Sparse-Quantized Representation (SpQR), a new compressed format and quantization technique that enables for the first time \\emph{near-lossless} compression of LLMs across model scales while reaching similar compression levels to previous methods. SpQR works by identifying and isolating \\emph{outlier weights}, which cause particularly large quantization errors, and storing them in higher precision while compressing all other weights to 3-4 bits, and achieves relative accuracy losses of less than $1\\%$ in perplexity for highly-accurate LLaMA and Falcon LLMs. This makes it possible to run a 33B parameter LLM on a single 24 GB consumer GPU without performance degradation at 15\\% speedup, thus making powerful LLMs available to consumers without any downsides. SpQR comes with efficient algorithms for both encoding weights into its format, as well as decoding them efficiently at runtime. Specifically, we provide an efficient GPU inference algorithm for SpQR, which yields faster inference than 16-bit baselines at similar accuracy while enabling memory compression gains of more than 4x.", "keywords": "quantization;sparsity;large language models", "qa_pairs": [{"question": "Does SpQR's performance depend on specific hardware capabilities, and if so, how does it perform across different hardware types?", "answer": "SpQR has similar performance on all GPUs from the past 10 years, as the main bottleneck during inference is the memory bandwidth of the GPU rather than other factors like FLOPS performance. This means hardware capabilities are not important for GPUs. However, SpQR would be very slow on some hardware, such as TPUs, but since GPUs are widespread, the authors consider it fair to have an implementation optimized for GPUs but not TPUs.", "category": "Method_Disambiguation"}, {"question": "What is the overhead of memory accesses for activations during inference in the proposed method, and how does it vary with batch size?", "answer": "For a batch size of 1, the activations for Llama 2 7B are 4000x smaller than the weight matrix, resulting in only 0.025% overhead. For larger batch sizes, such as those common in deployments like ChatGPT, the overhead increases but remains at most about 7% for a 7B model. Therefore, the limitation is not significant.", "category": "Method_Disambiguation"}, {"question": "Does the unstructured sparse pattern of the outliers impose significant computational overhead on GPUs, and does this affect the practicality of the method?", "answer": "While there is an overhead due to the unstructured sparse pattern, the model still provides faster inference than an unquantized model. With the right implementation, a 7B model can generate about 115 tokens per second on a single RTX 4090 GPU, making it fast enough to be practical and not significantly disadvantageous.", "category": "Method_Disambiguation"}, {"question": "How does SpQR's methodology for outlier management and mixed-precision quantization differ from prior work?", "answer": "SpQR's methodology differs from prior work by focusing on large language models (LLMs), which exhibit very different outlier patterns compared to smaller models studied in earlier work. The analysis extends the findings of LLM.int8()[1] to more complex outlier structures, making it novel and distinct from earlier research.\n\n[1] Dettmers et al., LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale", "category": "Method_Comparison"}, {"question": "What aspects of the SpQR method are novel and how do they contribute to advancements in the field?", "answer": "The analysis and discovered structures in SpQR are novel and undocumented in the literature. The algorithm, which uses outlier-aware Hessian optimization for layer-by-layer quantization, is also novel. Additionally, SpQR is one of the first methods to quantize LLMs to 3-bits without significant performance degradation, representing major advances in analysis and algorithms while achieving state-of-the-art results.", "category": "Method_Disambiguation"}, {"question": "How do the efficiency improvements claimed in the paper vary across different model architectures and what is the impact of sparse representations on performance?", "answer": "The sparse representations vary between 0.35% to 1.0%, resulting in minimal changes to the fraction of outliers and consistent performance across architectures. The largest difference is observed in Falcon 180B, which requires about 1% outliers, while Llama v1/v2 require ~0.35-0.45%. These minimal differences indicate that the impact of sparse representations on performance is negligible. Additionally, the paper's implementation of SpQR is more effective than the one discussed in 'Sparse GPU Kernels for Deep Learning'[1].\n\n[1] Gale et al., Sparse GPU Kernels for Deep Learning", "category": "Method_Mechanics"}, {"question": "How is the 3-bit matrix multiplication executed on the A100 GPU architecture?", "answer": "3-bit integers are packed into 32-bit aligned float values. These values are loaded into registers, dequantized to 16-bit values, and then matrix multiplication is performed with 16-bit inputs and weights in registers. The sparse portion of the matrix multiplication is handled separately, and its results are added to the regular quantized matrix multiplication.", "category": "Experimental_Setup"}, {"question": "What was the primary focus of the optimization strategy in terms of memory access and computation, and under what conditions is activation compression beneficial?", "answer": "The primary focus was on minimizing the memory footprint of the weights rather than optimizing mean FLOPS utilization. This is particularly useful for single-user deployments, such as on a personal computer with a batch size of 1. In such cases, the majority of latency arises from loading weights from GPU memory into registers, which can be accelerated by compressing the weights. Activation compression is beneficial only when using a large batch size (>32) and 4-bit or 8-bit tensor cores.", "category": "Method_Disambiguation"}, {"question": "How does the performance of the quantized GEMM with 4-bit SpQR compare to the quantized GEMM with a normal 4-bit weight quantization method, particularly in terms of speed, memory savings, and model compression?", "answer": "The best 4-bit quantization methods are about 3.5x faster than 16-bit methods, while SpQR is 1.15x faster than 16-bit methods. This means 4-bit quantization without outliers is up to 3.04x faster than SpQR. However, SpQR offers better performance and stronger model compression, averaging close to 3.4 bits per parameter. At 3.4 bits, SpQR provides 1.3x better memory savings compared to 4-bit techniques and halves the perplexity gap between 16-bit and 4-bit methods. SpQR is close in speed to other methods, as achieving similar performance with regular quantization would require ~5 bits, increasing GPU memory usage by 50%. For example, SpQR allows running Falcon 180B on a single GPU, whereas regular quantization methods would require two GPUs for the same performance. The memory benefit of SpQR is significant, especially as models continue to scale.", "category": "Method_Comparison"}, {"question": "What is the difference in accuracy between SpQR and 4-bit group-wise methods like GPTQ[1], and how does this difference impact practical applications such as fitting models on hardware?\n\n[1] Frantar, Elias, et al. \"OPTQ: Accurate quantization for generative pre-trained transformers.\" The Eleventh International Conference on Learning Representations. 2022.", "answer": "GPTQ requires 0.5-0.6 more bits per parameter to match the performance of SpQR at 3.5 bits per parameter on average, and 0.3-0.4 more bits to match the lossless compression configuration. This difference is critical in practical applications; for example, SpQR allows fitting Llama-2-70b on a single V100 with 32Gb and space for KV cache, which is impossible for GPTQ at the same accuracy without weight offloading.\n\n| Model | Method | wbits | wikitext2 | c4 |\n|:-----:|:------:|:-----:|:---------:|:----:|\n| 7 | GPTQ | 4.07 | 5.88 | 7.28 |\n| | SpQR | 3.45 | 5.88 | 7.33 |\n| | GPTQ | 5.07 | 5.72 | 7.12 |\n| | SpQR | 4.63 | 5.73 | 7.13 |\n| 13 | GPTQ | 4.04 | 5.26 | 6.76 |\n| | SpQR | 3.45 | 5.25 | 6.77 |\n| | GPTQ | 5.04 | 5.13 | 6.64 |\n| | SpQR | 4.63 | 5.13 | 6.64 |\n| 30 | GPTQ | 4.02 | 4.28 | 6.11 |\n| | SpQR | 3.49 | 4.29 | 6.11 |\n| | GPTQ | 5.01 | 4.14 | 6.01 |\n| | SpQR | 4.69 | 4.14 | 6.01 |\n| 65 | GPTQ | 4.01 | 3.71 | 5.74 |\n| | SpQR | 3.52 | 3.71 | 5.73 |\n| | GPTQ | 5.01 | 3.58 | 5.65 |\n| | SpQR | 4.71 | 3.57 | 5.64 |", "category": "Method_Comparison"}, {"question": "How is the memory efficiency of the model quantified and what is an example calculation for a 70B model?", "answer": "The memory efficiency is quantified by the average amount of bits per parameter. For a 70B model, with 3.4 bits per parameter, the calculation is 70B*(3.4 bits / 8 bits) = 70B*(0.425 bytes) = 29.75 GB.", "category": "Method_Mechanics"}, {"question": "What performance evaluations were conducted on trendy benchmarks for generative models, such as GSM8K, and HumanEval, and how do the results compare to other methods?", "answer": "Perplexity measures remain very important: Previous work [1] showed that perplexity evaluations have a very strong correlation (-0.94) with performance on a diverse set of zeroshot tasks. This means that the perplexity evaluations generalize to many different tasks.\n\nThe authors evaluate the paper's method with MetaMath-7B, a recent version of Llama-2 specialized on math problem-solving, and CodeLlama-7b, a popular code generation model. One can see that SpQR is close to fp16 model performance with 4 bit quantization while outperforming GPTQ by ~2%. Drops on HumanEval dataset are more significant, but SpQR is still much better than GPTQ at the same bitwidth. These results correlate well with perplexity measure differences. Pass@100 scores were not reported due to noise. RTN quantization turns out to be numerically unstable and produces models with random performance.\n\nTable 1. GSM-8k results\n\n| model | method | wbits | Accuracy (%) |\n|:----------:|:------:|:-----:|:------------:|\n| MetaMath-7B| None | 16 | 66.9 |\n| | RTN | 4 | NaN |\n| | GPTQ | 4 | 64.7 |\n| | SpQR | 3.98 | 66.5 |\n\nTable 2. HumanEval results\n\n| model | method | wbits | pass@1 | pass@10 |\n|:-----------:|:------:|:-----:|:------:|:-------:|\n| CodeLLama-7b| None | 16 | 40.0 | 58.0 |\n| | RTN | 4 | NaN | NaN |\n| | GPTQ | 4 | 32.1 | 52.2 |\n| | SpQR | 3.98 | 36.3 | 54.6 |", "category": "Method_Comparison"}, {"question": "How does the small group size in the two-stage quantization and the sparse representation of outliers impact the latency overhead in the paper's implementation?", "answer": "Small group sizes do not affect latency in the paper's implementation because every warp of threads on the GPU processes multiple values in the matrix multiplication, allowing multiple groups to be loaded with each warp. The total values loaded remain the same regardless of group size, so inference speed depends only on the average amount of bits in the representation. While the sparse representations do affect latency, the paper's implementation can still generate about 115 tokens per second from a 7B model on a single A100 GPU, making it practical despite the sparse representations.", "category": "Method_Mechanics"}]} {"id": "mM7VurbA4r", "venue": "ICLR 2024", "paper_decision": "Accept (spotlight)", "title": "SOTOPIA: Interactive Evaluation for Social Intelligence in Language Agents", "authors": ["Xuhui Zhou", "Hao Zhu", "Leena Mathur", "Ruohong Zhang", "Haofei Yu", "Zhengyang Qi", "Louis-Philippe Morency", "Yonatan Bisk", "Daniel Fried", "Graham Neubig", "Maarten Sap"], "abstract": "*Humans are social beings*; we pursue social goals in our daily interactions, which is a crucial aspect of social intelligence. Yet, AI systems' abilities in this realm remain elusive. We present SOTOPIA, an open-ended environment to simulate complex social interactions between artificial agents and evaluate their social intelligence. In our environment, agents role-play and *interact* under a wide variety of scenarios; they coordinate, collaborate, exchange, and compete with each other to achieve complex social goals. We simulate the role-play interaction between LLM-based agents and humans within this task space and evaluate their performance with a holistic evaluation framework called SOTOPIA-Eval. With SOTOPIA, we find significant differences between these models in terms of their social intelligence, and we identify a subset of SOTOPIA scenarios, SOTOPIA-hard, that is generally challenging for all models. We find that on this subset, GPT-4 achieves a significantly lower goal completion rate than humans and struggles to exhibit social commonsense reasoning and strategic communication skills. These findings demonstrate SOTOPIA's promise as a general platform for research on evaluating and improving social intelligence in artificial agents.", "keywords": "Social;Interaction;Agent;Social intelligence;Large Language Models;Evaluation;Theory of Mind", "qa_pairs": [{"question": "How does the paper address the concern that using GPT-4 for both generating scenarios and evaluating them in SOTOPIA might introduce bias, given that the generated content could be present in GPT-4's training data?", "answer": "Whether GPT-4 would significantly prefer its own output during evaluation: This may be a factor, but it does not change the paper's main conclusions as those are corroborated by human evaluations. In addition to GPT-4 based evaluation Table 2 and 3, the paper has human-annotated evaluation results in Table G.3 andG.4, and they show similar trends. Putting these together with results in Table 1, It can be concluded that GPT-4 based evaluation is a reasonable indication of models’ performance on SOTOPIA tasks. In addition, for future evaluations using SOTOPIA, it is also possible to reproduce the paper's human evaluation protocol, thus, the paper’s assumptions about the correlation between human and machine evaluation can be re-examined as more competitive non-GPT-4 models are released. In the paper’s pilot study, it was found that GPT-4 is the best proxy for human evaluation among all LLMs tested.\n\nAbout biases related to scenarios being more 'in-domain' for GPT-4 than other models: The authors not only use templates to steer GPT-4’s output, but also manually inspect and correct the generated scenarios and goals. As such, the language distribution of the paper's diverse scenarios significantly deviates from GPT-4's most probable language distribution [1]. Furthermore, the complexity of the task also depends on the partner agent during the interactions (Section 2.1). \n\nFor the point about the generated content possibly being present in the training data: The paper does not train any models. If the point about the generated scenarios might reflect GPT-4's training data: the paper's scenarios are novel generations and are not present in the public web corpora that one could browse (the authors searched for the paper's scenarios through n-gram matching with https://wimbd.apps.allenai.org/ in OpenWebText, C4, OSCAR, The Pile, LAION-2B-en and found 0% of them in there, while the authors don't know what GPT-4 is trained on, these datasets are representative of data used to train LLMs), so there is very little reason to believe that they are in the training data of GPT-4 or any other language model.\n\n[1] Kim, Hyunwoo, Jack Hessel, Liwei Jiang, Peter West, Ximing Lu, Youngjae Yu, Pei Zhou, et al. 2022. “SODA: Million-Scale Dialogue Distillation with Social Commonsense Contextualization.” EMNLP 2023", "category": "Method_Disambiguation"}, {"question": "How do the evaluation metrics 'believability' and 'social rules' specifically measure social intelligence in AI agents, given that they might appear to only assess dialogue fluency or rule memorization?", "answer": "The paper’s dimensions are specifically designed to evaluate social intelligence in AI agents: some of the paper’s metrics measure aspects specific to AI agents (e.g., believability), while others reflect human social intelligence (See section 3). The former, for example, led the authors to include ‘believability’ as a dimension needed specifically to measure AI social intelligence: it captures not only conversation naturalness but also the agent’s character consistency (i.e., whether they remain ‘in-character’ and consistent with their prompted persona); this shortcoming, common in many social AI systems [1], needs to be measured. This contrasts with humans, where persona consistency is less of a concern because most humans naturally have their own consistent persona. As for social rules, this dimension is not about just recalling rules, but about measuring whether AI agents can successfully follow or apply the relevant rules during the interactions, which often tends to be challenging in many social settings [2].\n\n[1] Shuster, Kurt, Jack Urbanek, Arthur Szlam, and Jason Weston. 2022. 'Am I Me or You? State-of-the-Art Dialogue Models Cannot Maintain an Identity.' In Findings of the Association for Computational Linguistics: NAACL 2022.\n\n[2] Jin, Zhijing, Sydney Levine, Fernando Gonzalez, Ojasv Kamal, Maarten Sap, Mrinmaya Sachan, Rada Mihalcea, Josh Tenenbaum, and Bernhard Schölkopf. 2023. 'When to Make Exceptions: Exploring Language Models as Accounts of Human Moral Judgment.' Neurips, 2023.", "category": "Method_Disambiguation"}, {"question": "What is the distribution of different types of social goal and relationship scenarios included in the evaluation framework?", "answer": "The evaluation framework includes 28 negotiation scenarios, 62 exchange scenarios, 7 competition scenarios, 17 collaboration scenarios, 12 accommodation scenarios, and 14 persuasion scenarios, with overlapping categories.", "category": "Method_Mechanics"}, {"question": "What is the rationale for not providing quantitative definitions for the metrics used in the evaluation, and how does the correlation between GPT-4 and human annotations compare when fine-grained descriptions are added?", "answer": "The authors provided the same rating instructions for GPT-4 and human annotators, citing previous work[1] that demonstrates LLMs' effectiveness in annotating subjective social tasks. While there are inherent challenges in rating social interactions, the paper's human eval shows that GPT-4 provides an evaluation for models that aligns with human annotations at the system level (Table G.4). They conducted experiments adding fine-grained descriptions of quantitative definitions for each range of the scale(e.g., *Relationship Deteriorates (-5 to -3): Scores from -5 to -3 indicate that the relationship is deteriorating. This range suggests a significant decline in the quality or strength of the relationship, with increasing conflicts, misunderstandings, or detachment*), but this did not significantly improve the correlation with human annotations and, in some cases, slightly worsened it. The results are shown in the provided table, with Pearson R values for different metrics before and after adding fine-grained descriptions.\n\n\n| | SEC | KNO | SOC | BEL | REL | FIN | GOAL |\n|-------------------|------|------|------|------|------|------|------|\n| Original Pearson R| 0.22 | 0.33 | 0.33 | 0.45 | 0.56 | 0.62 | 0.71 |\n| + Fine-grained Description Pearson R | 0.03 | 0.33 | 0.33 | 0.35 | 0.57 | 0.57 | 0.71 |\n\n[1] Can Large Language Models Transform Computational Social Science? Caleb Ziems, William Held, Omar Shaikh, Jiaao Chen, Zhehao Zhang and Diyi Yang Computational Linguistics, 2023", "category": "Experimental_Exposition"}, {"question": "How does SOTOPIA differ from existing social interactive benchmarks like SocialIQA, and what potential benefits does it offer for enhancing the social intelligence of AI agents?", "answer": " 1. The current benchmarks, such as SocialIQA, primarily consist of descriptive interactions paired with question-and-answer (QA) sets. In these cases, the model doesn't engage in real-time interactions. In contrast, Sotopia introduces a dynamic approach. It evaluates Large Language Models (LLMs) within a first-person interactive framework, allowing for direct engagement. This marks a significant shift from the static nature of existing benchmarks to a more dynamic and interactive evaluation environment in Sotopia. 2. With the rapid development of LLMs, some of the benchmarks gradually become saturated. While there are new adversarial benchmarks to evaluate social intelligence, which are harder than their predecessors, they still lack the dynamic nature of social interactions and the rich social context, which is deemed insufficient for evaluating social intelligence in AI systems [1]. 3. The paper's work is indeed inspired by several benchmarks and datasets in social intelligence, such as SocialIQA, Persona Chat, and others. For instance, many of the paper's scenarios come from SocialIQA, and the paper's character design is inspired by Persona Chat. 4. While the paper’s current focus is on evaluation rather than the improvement of agents’ social intelligence, the importance of the latter is acknowledged. The paper has ongoing work using SOTOPIA to enhance social intelligence in AI agents and there is likely a correlation between doing better at SocialIQA and being a better interaction agent.\n\n[1] Lee, Mina, Megha Srivastava, Amelia Hardy, John Thickstun, Esin Durmus, Ashwin Paranjape, Ines Gerard-Ursin, et al. 2023. “Evaluating Human-Language Model Interaction.” Transactions on Machine Learning Research. https://openreview.net/pdf?id=hjDYJUn9l1.", "category": "Method_Comparison"}, {"question": "How are the SOTOPIA metrics (GOAL, BEL, REL, KNO, SEC, SOC, & FIN) justified and connected to existing sociological, psychological, and economic literature?", "answer": "The SOTOPIA metrics are justified by drawing on multiple pieces of literature from sociological, psychological, and economic domains. Specifically, Goal Completion is based on Weber (1978)[1], Believability on Joseph (1994) and Park et al. (2023a)[2], Knowledge on Reiss (2004)[3] and Maslow (1943)[4], Secret on Reiss (2004)[5], Relationship on Maslow (1943)[4] and Benabou & Tirole (2006)[6], Social Rules on Maslow (1943)[4], and Financial and Material Benefits on Gilpin & Sandholm (2006)[7] and Burns et al. (2017)[8]. The metrics unify similar concepts from different domains with new definitions compatible with existing definitions and SOTOPIA scenarios.\n\n[1]Max Weber. The Nature of Social Action, pp. 7–32. Cambridge University Press, 1978. doi:\n10.1017/CBO9780511810831.005. URL https://classicalsociologicaltheory.files.\nwordpress.com/2016/06/max-weber-classical-sociological-theory.pdf.\n[2]Joon Sung Park, Joseph C. O’Brien, Carrie J. Cai, Meredith Ringel Morris, Percy Liang, and\nMichael S. Bernstein. Generative agents: Interactive simulacra of human behavior. In In the\n36th Annual ACM Symposium on User Interface Software and Technology (UIST ’23), UIST ’23,\nNew York, NY, USA, 2023. Association for Computing Machinery.\n[3]Steven Reiss. Multifaceted nature of intrinsic motivation: The theory of 16 basic desires. Review of General Psychology, 8(3):179–193, 2004. doi: 10.1037/1089-2680.8.3.179. URL https:\n//doi.org/10.1037/1089-2680.8.3.179.\n[4]A H Maslow. A theory of human motivation. Psychol. Rev., 50(4):370–396, July 1943.\n[5]Steven Reiss. Multifaceted nature of intrinsic motivation: The theory of 16 basic desires. Review of General Psychology, 8(3):179–193, 2004. doi: 10.1037/1089-2680.8.3.179. URL https:\n//doi.org/10.1037/1089-2680.8.3.179.\n[6]Roland Benabou and Jean Tirole. Incentives and prosocial behavior. ´ American Economic Review, 96(5):1652–1678, December 2006. doi: 10.1257/aer.96.5.1652. URL https://www.aeaweb. org/articles?id=10.1257/aer.96.5.1652.\n[7]Andrew Gilpin and Tuomas Sandholm. A competitive texas hold’em poker player via automated abstraction and real-time equilibrium computation. In Proceedings of the 21st National Conference on Artificial Intelligence - Volume 2, AAAI’06, pp. 1007–1013. AAAI Press, 2006. ISBN 9781577352815.\n[8]Tom Burns, Ewa Roszkowska, Ugo Corte, and Nora Machado des Johansson. Sociological game theory: Agency, social structures and interaction processes. Optimum. Studia Ekonomiczne, pp. 187–199, 01 2017. doi: 10.15290/ose.2017.05.89.13.", "category": "Method_Mechanics"}, {"question": "How does the generalizability of the findings to other AI models, such as Llama2, or real-world social interactions compare to GPT-4, based on the correlation results with human evaluation?", "answer": "GPT-4 demonstrates the highest correlation with human evaluation among the tested models, as shown by the Pearson R values (e.g., 0.71 for GOAL). In contrast, Llama2 shows significantly lower correlation (e.g., 0.24 for GOAL), indicating its limitations as a proxy for human evaluation. This suggests that GPT-4 is more generalizable for such tasks compared to other models like Llama2.\n\n| Model | SEC | KNO | SOC | BEL | REL | FIN | GOAL |\n|-------------|-----|-----|-----|-----|-----|-----|------|\n| GPT-4 Pearson R | 0.22| 0.33| 0.33| 0.45| 0.56| 0.62| 0.71 |\n| Llama2 Pearson R| nan | 0.05| nan | 0.08| 0.11| 0.13| 0.24 |\n", "category": "Experimental_Exposition"}, {"question": "What is the estimated cost of evaluating a given agent in SOTOPIA using GPT-4, including the number of API calls and the resulting budget?", "answer": "Evaluating one episode on average requires 2,000 input tokens and 500 output tokens. Based on the current GPT-4 pricing, this costs approximately $0.09 per episode. Therefore, evaluating a given agent would cost around $81 (0.09 * 900 episodes).", "category": "Method_Mechanics"}, {"question": "Did the study investigate whether humans could distinguish between interacting with an LLM or a human, and how potential negative AI bias might influence their behavior? Additionally, could the study reproduce the effect by explicitly informing participants that they are interacting with an AI or human, even if it is not always true?", "answer": "In the study, humans were randomly paired with either other humans or LLM agents, and they were informed that they could be interacting with either. Post-study interviews revealed that some annotators could not distinguish between human and AI interlocutors. Due to IRB limitations, the study could not deceive participants by always claiming they were interacting with an AI or human when it was not the case. ", "category": "Experimental_Setup"}, {"question": "Were the generated scenarios in SOTOPIA manually inspected and corrected to deviate from GPT-4's most probable language distribution?", "answer": "True", "category": "Claim_Verification"}, {"question": "Do the human-annotated evaluation results in Tables G.3 and G.4 show trends significantly different from those in the GPT-4 based evaluation Tables 2 and 3?", "answer": "False", "category": "Claim_Verification"}, {"question": "Is the evaluation of SOTOPIA scenarios using GPT-4 solely relied upon, without any human evaluation to corroborate the results?", "answer": "False", "category": "Claim_Verification"}, {"question": "Is there evidence that the generated scenarios in SOTOPIA are present in the public web corpora commonly used for training large language models?", "answer": "False", "category": "Claim_Verification"}]} {"id": "xbjSwwrQOe", "venue": "ICLR 2024", "paper_decision": "Accept (poster)", "title": "Statistical Rejection Sampling Improves Preference Optimization", "authors": ["Tianqi Liu", "Yao Zhao", "Rishabh Joshi", "Misha Khalman", "Mohammad Saleh", "Peter J Liu", "Jialu Liu"], "abstract": "Improving the alignment of language models with human preferences remains an active research challenge. Previous approaches have primarily utilized online Reinforcement Learning from Human Feedback (RLHF). Recently, offline methods such as Sequence Likelihood Calibration (SLiC) and Direct Preference Optimization (DPO) have emerged as attractive alternatives, offering improvements in stability and scalability while maintaining competitive performance. SLiC refines its loss function using sequence pairs sampled from a supervised fine-tuned (SFT) policy, while DPO directly optimizes language models based on preference data, foregoing the need for a separate reward model. However, the maximum likelihood estimator (MLE) of the target optimal policy requires labeled preference pairs sampled from that policy. The absence of a reward model in DPO constrains its ability to sample preference pairs from the optimal policy. Meanwhile, SLiC can only sample preference pairs from the SFT policy. To address these limitations, we introduce a novel approach called Statistical Rejection Sampling Optimization (RSO) designed to source preference data from the target optimal policy using rejection sampling, enabling a more accurate estimation of the optimal policy. We also propose a unified framework that enhances the loss functions used in both SLiC and DPO from a preference modeling standpoint. Through extensive experiments across diverse tasks, we demonstrate that RSO consistently outperforms both SLiC and DPO as evaluated by both Large Language Models (LLMs) and human raters.", "keywords": "large language model;preference optimization;language model alignment", "qa_pairs": [{"question": "How does the proposed method address the computational challenges associated with directly computing the set $M = \\min\\{m | m\\pi_{sft}(y|x) \\geq \\pi_{r_{\\psi}}(y|x) \\text{ for all } y \\notin \\mathcal{Y}\\}$ and the inefficiency of rejection sampling?", "answer": "The proposed method addresses the computational challenges by estimating $\\frac{\\pi_{r_{\\psi}}(y|x)}{M\\pi_{\\text{sft}}(y|x)}$ using 64 sequences sampled through the SFT policy, rather than directly computing $M$. For rejection sampling, the method begins by efficiently sampling 64 sequences via the SFT policy, which is highly parallelizable, and then employs a sampling-without-replacement strategy in the rejection sampling algorithm. This strategy recalculates the maximum reward at the start of each round, ensuring that at least one optimal sequence is selected in each round. Specifically, the sequence whose reward is equivalent to the maximum reward is selected with a probability of one, thereby guaranteeing the selection of at least one optimal sequence in each round. This approach not only optimizes the selection process but also maintains the algorithm's effectiveness throughout its execution.", "category": "Method_Mechanics"}, {"question": "What is the purpose of Figure 3(b) and how do the results, including the overlapping confidence intervals, inform the selection of hyper-parameters and the performance of different loss functions?", "answer": "The primary objective of Figure 3(b) is to illustrate the process of hyper-parameter selection for the proxy reward model, with the win rate against SFT targets on the y-axis. The plot guides hyper-parameter choices and shows that hinge loss, though not statistically significantly better, ignores the SFT policy and trusts the proxy reward model's preference order, resulting in a high win rate. Despite overlapping confidence intervals, rso-sample-rank consistently outperforms sft-sample-rank across all loss functions. This is visually represented by the dotted lines (sft-sample-rank) remaining outside the shaded regions of all rso-sample-rank curves.The plot also challenges the notion that top-k-over-N is universally optimal. When beta equals zero, rso-sample-rank aligns with top-k-over-N. It is interesting to observe that a beta of 0.5 achieves a higher proxy reward model win rate than beta=0. Although this difference is not statistically significant, it indicates that a nuanced approach to beta selection could yield better results than the default top-k-over-N strategy. Additional baselines (RAFT[1] and ReST[2]) have been included to enhance the comparative framework and validate the findings.\n\n[1] Dong, Hanze, et al. \"Raft: Reward ranked finetuning for generative foundation model alignment.\" arXiv preprint arXiv:2304.06767 (2023).\n\n[2] Gulcehre, Caglar, et al. \"Reinforced self-training (rest) for language modeling.\" arXiv preprint arXiv:2308.08998 (2023).", "category": "Concept_Understanding"}, {"question": "How can the approach of aligning language models with human preferences be adapted to address issues of bias and fairness in language models?", "answer": "The paper's current research focuses on preference alignment in language models. In practical scenarios, reward scores are often multi-dimensional, and the aim of alignment is to attain a Pareto optimal frontier [1]. This allows for the introduction of additional objectives such as harmlessness, safety, and bias preference pairs. The method is adaptable, functioning with either weighted-averaged reward scores or through integration with multi-objective DPO loss functions[2]. Experimental studies have demonstrated that the RSO method effectively aligns with human preference pairs, and it has the potential to enhance fairness and reduce bias in language models when applied with appropriate human preference pairs. However, a comprehensive study of fairness and bias falls beyond the scope of this work. Additional discussions on this topic have been added in Appendix A.9.\n\n[1] Bai, Yuntao, et al. \"Constitutional ai: Harmlessness from ai feedback.\" arXiv preprint arXiv:2212.08073 (2022).\n\n[2] Zhou, Zhanhui, et al. \"Beyond One-Preference-for-All: Multi-Objective Direct Preference Optimization.\" arXiv preprint arXiv:2310.03708 (2023).\n", "category": "Method_Mechanics"}, {"question": "How does the computational efficiency of the proposed method compare to other methods, such as DPO, SLiC-HF-sample-rank, and RLHF?", "answer": "In terms of computational efficiency, the paper's approach is closer to SLiC-HF-sample-rank than DPO. The comparisons with other algorithms are as follows: Compared to DPO and SLiC-HF-direct, the paepr's approach requires an additional trained pairwise reward model, and also sample and rank stages. The pairwise reward model training is a standard text-to-text model without Bradley-Terry model assumption. The sample and rank are scalable and efficient with an increased number of servers, especially with shared prompts in SFT sample and short decoding length with reward model. Compared to SLiC-HF-sample-rank, the paper needs to sample more sequences from SFT policy as candidates, followed by a rejection sampling algorithm. Both steps are scalable and efficient. Compared to RLHF, RSO is offline with efficient memory usage (only one copy of policy network instead of four copies in PPO: policy, reference, value, reward), and the sample-rank stage is fully parallelizable (no need to conduct the online sample, which is not parallelizable).", "category": "Method_Comparison"}, {"question": "What are the potential reasons for the significant improvement in rso-sample-rank compared to sft-sample-rank on the Reddit TL;DR dataset, while the improvement is less noticeable on the AnthropicHH dataset?", "answer": "1. **Dataset Characteristics and Their Impact**:\n\n **Reddit TL;DR Dataset**: This dataset uniquely combines SFT and human preference data sources. The human preference responses, generated through a mix of policies from OpenAI, including best-of-N rejection sampling, often yield higher quality outputs than SFT targets. Existing literature provides evidence to this effect. For example, in the right panel of Figure 2 in the DPO paper [1], it shows that Prefered-FT (SFT on the better responses from human preference data) is generally better than SFT. This divergence in quality potentially enlarges the gap between the SFT policy and the optimal policy, thereby making the improvements in rso-sample-rank more pronounced.\n\n **AnthropicHH Dataset**: Contrarily, in the AnthropicHH dataset, both the SFT targets and reward model are derived exclusively from human preference data. The proximity in quality between the SFT policy and the reward model narrows the gap with the optimal policy, resulting in less noticeable improvements in rso-sample-rank.\n\n2. **Evaluation Methodology**:\n The paper's human evaluation methodology, which deviates from the standard side-by-side comparison, might contribute to these observations. The paper asked raters to choose the best response among direct, sft-sample-rank, and rso-sample-rank options. While this approach has its merits, it may not fully capture the nuanced differences between sft-sample-rank and rso-sample-rank. \n\n**References**\n\n[1] Rafailov, Rafael, et al. \"Direct preference optimization: Your language model is secretly a reward model.\" arXiv preprint arXiv:2305.18290 (2023).", "category": "Experimental_Analysis"}, {"question": "What is the value of 'num_samples' in the experiments, and how many additional samples need to be generated compared to other methods like DPO, sft-sample-rank, and RAFT/ReST?", "answer": "In the experiments, 64 response candidates are sampled from the SFT policy, and 8 responses are selected using statistical rejection sampling. Compared to DPO, an extra 64 decodes are needed. Compared to sft-sample-rank, an additional 56 decodes are required (64-8=56). Compared to RAFT/ReST, no extra decodes are needed because they also use all 64 candidates to compute best-of-N and select those with high rewards.\nIn practice, batch decoding is efficient, scalable, and cost effective [1][2][3]. To further verify this, the authors conduct the following speed benchmarking on Llama2 7b q5-k-m with a single NVIDIA GeForce RTX 4090 GPU card with llama.cpp [4]:\n\n| Input length | Decode length | Number of decodes | Number of decoding tokens per second | Memory overhead | Model memory |\n| ------------ | ------------- | ----------------- | ------------------------------------ | --------------- | ------------ |\n| 1024 | 128 | 64 | 1135 | 5.7G | 4.5G |\n| 1024 | 128 | 16 | 596 | 1.9G | 4.5G |\n| 1024 | 128 | 8 | 507 | 1.2G | 4.5G |\n| 1024 | 128 | 1 | 120 | 0.7G | 4.5G |\n\nIn addition, the inference is scalable to the number of accelerators, because the parallelism can be applied across the whole inference dataset. One thing to notice is that for training data of size $N$, the inference will be done on those $N$ prompts and is much faster than training.\nSft-sample-rank can also use 64 response candidates, even with tournament ranking. In Table 2, the paper shows that rso-sample-rank is more effective than the sft-sample-rank setting with all candidates. This further demonstrates the effectiveness of the paper's approach even with the fixed computation cost.\n\n**References**\n\n[1] https://docs.mystic.ai/docs/mistral-ai-7b-vllm-fast-inference-guide\n\n[2] https://github.com/ggerganov/llama.cpp/issues/3479\n\n[3] Pope, Reiner, et al. \"Efficiently scaling transformer inference.\" Proceedings of Machine Learning and Systems 5 (2023).\n\n[4] https://github.com/ggerganov/llama.cpp/tree/master/examples/batched", "category": "Method_Comparison"}, {"question": "What are the key contributions and improvements of the proposed rejection sampling method in the context of offline human preference alignment algorithms?", "answer": "The key contributions and improvements of the proposed rejection sampling method include: (1) Bridging the gap between offline off-policy algorithms and approximately on-policy algorithms, addressing the distribution-shift issue that current approaches like DPO and SLiC-HF have not effectively tackled.The paper's work is pioneering in conducting a systematic study to approximate the optimal policy among offline human preference alignment algorithms. \n\n(2) Demonstrating that existing best-of-N or top-k-over-N rejection sampling methods are specific instances of the proposed comprehensive statistical rejection sampling algorithm, particularly when the beta parameter is set to zero. As beta approaches infinity, the method aligns with sampling from an SFT policy, balancing reliance on the SFT policy with the accuracy of the reward model. Unlike existing methods, the paper provides a nuanced approach that adapts dynamically to varying degrees of confidence in either the SFT policy or the reward model, thereby offering a more robust and adaptable solution for practical applications.\n\n(3) Enhancing efficiency by estimating $\\frac{\\pi_{r_{\\psi}}(y|x)}{M\\pi_{\\text{sft}}(y|x)}$ using 64 sequences sampled through the SFT policy, rather than computing $M$ directly. \n\n(4) Improving rejection sampling by sampling from the proposal distribution without replacement, ensuring efficiency in high-dimensional settings and guaranteeing the selection of at least one candidate with the highest reward. This modification guarantees efficiency, particularly when the target is a limited number of selected responses.\n\n(5) Grounding the algorithm in robust theoretical principles, simplifying the calculation of the threshold for a uniform random sample to exp((reward-max_reward) / beta). Overall, the method is a novel and effective solution for offline human preference alignment algorithms, offering both algorithmic efficiency and significant research advancements.", "category": "Method_Disambiguation"}, {"question": "What is the purpose of integrating $\\pi_{sft}(y|x)$ into Eq 10, and how does it contribute to the theoretical framework of SLiC-HF?", "answer": "1.The integration of $\\pi_{sft}(y|x)$ into Eq 10 aims to establish a more robust theoretical framework for the SLiC-HF approach, going beyond merely unifying DPO and SLiC. While it's true that SLiC-HF and DPO emerged around the same time, leading to some confusion about their connection, their starting points are fundamentally different. * SLiC-HF is grounded in the concept of likelihood calibration, where a better response is expected to have a higher likelihood than a less desirable response, by a defined margin. * On the other hand, DPO builds on the Reinforcement Learning from Human Feedback (RLHF) objective and the Bradley-Terry model, leading to the derivation of the sigmoid loss function as a Maximum Likelihood Estimation (MLE). \n\n2. The paper's contribution, as outlined in the paper, is to theoretically link these two approaches. By substituting the Bradley-Terry model with a Support Vector Machine (SVM) model, the paper obtains the hinge-norm of SLiC, effectively a normalized version. The original SLiC calibration loss overlooks the SFT policy normalization, relying solely on preference pairs labeled by the reward model. The hinge-norm loss, conversely, uses the SFT likelihood as a baseline to compute the relative likelihood ratio between the current policy and the SFT policy. This approach not only calibrates the likelihood ratio towards human preferences but also acts as an adaptive margin version of the SLiC loss. The margin, in this case, is influenced by the SFT likelihoods of the better and worse responses. Furthermore, this paper [1] highlights issues with the Bradley-Terry model and proposes the IPO loss, which aligns more closely with the hinge-norm loss than the original SLiC. \n\n3. In terms of implementation, DPO and SLiC variants share similarities by the choice of link functions and normalization. There isn't conclusive evidence yet to prefer one over the other. The paper provides a comprehensive framework for choosing between these options, underscoring the need for further research in this area. In conclusion, while the connection between DPO and SLiC might seem deliberate, especially in the context of Eq 10, it is part of a broader effort to establish a more theoretically sound approach to SLiC-HF, taking into account the nuances of different models and the importance of the SFT policy.\n\n[1] Azar, Mohammad Gheshlaghi, et al. \"A general theoretical paradigm to understand learning from human preferences.\" arXiv preprint arXiv:2310.12036 (2023).", "category": "Motivation_Analysis"}, {"question": "Why was ALMoST(https://arxiv.org/abs/2305.13735) not included in the baseline comparisons, and how do RAFT(https://arxiv.org/abs/2304.06767) and ReST(http://arxiv.org/abs/2308.08998) align with RSO's methodology?", "answer": "ALMoST was not included in the baseline comparisons because its reliance on synthetic preference pairs diverges significantly from RSO's methodology, which could lead to an unfair comparison. In contrast, RAFT and ReST share more similarities with RSO in terms of objectives and methodologies. For RAFT, the SFT model is fitted using cross-entropy loss on the best response selected by tournament ranking using a pairwise reward model. For ReST, the parameters $\\tau=0.7, I=1, G=1$ were fixed as suggested by the ReST paper, the reward scores are normalized between 0 and 1, and responses with reward scores greater than 0.7 were chosen as new SFT targets. Multiple rounds of grow and improve stages were not included to ensure a fair comparison. RSO can also be done in multiple rounds to generate better rso-sample-rank preference pairs, and the results demonstrate that RSO outperforms these baselines across various metrics.", "category": "Method_Comparison"}, {"question": "Why is the policy induced from RSO in Eq 4 not considered strictly optimal?", "answer": "The policy induced from RSO in Eq 4 is not strictly optimal because it relies on a proxy reward model that labels responses without distinguish whether they're from the pre-trained or learned policy, and the reward model is learned from $D_p$ rather than $D_p^*$, introducing approximation errors and bias. ", "category": "Concept_Understanding"}, {"question": "What are the methods for alleviating the issue of reward hacking, which can arise due to errors within the proxy reward model?", "answer": "To mitigate the issue, the authors can collect preference data from the current best policy iteratively. In Llama2 [1], they collect human preference data from the current best policy on a weekly basis, as the policy keeps improving. The paper's work can follow the same approach as the paper improves the policy iteratively using rso-sample-rank.\n\n[1] Touvron, Hugo, et al. \"Llama 2: Open foundation and fine-tuned chat models.\" arXiv preprint arXiv:2307.09288 (2023).", "category": "Method_Mechanics"}, {"question": "Why does the pairwise reward model in the paper have significant advantages over the implicit pointwise reward model induced by DPO (Equation (5))?", "answer": " 1. **Pointwise vs Pairwise**: The paper's pairwise comparison approach, structured as “[Context] {context} [Response A] {response a} [Response B] {response b}”, aligns more naturally with human cognitive processes, compared with assigning a real-valued reward score for a response given a context. The pairwise approach not only simplifies the task but also leverages the extensive knowledge transfer from pre-trained language models in classification and comparison tasks. Unlike the Bradley-Terry model, which imposes a rank-1 approximation, the paper’s model directly represents the complexity of pairwise interactions without imposing such a simplifying assumption. 2. **Implicit vs Explicit**: The paper's model is an explicit text-to-text classification model, a task that is straightforward and less prone to the complexities associated with language generation. In contrast, the implicit reward model in DPO, based on likelihood scoring or generation, navigates a more intricate language output space. This complexity can hinder the effective transfer of knowledge from pre-trained models. The paper's approach, grounded in the principle that classification tasks are inherently more manageable than generation tasks, offers a more robust and reliable framework. The paper’s comprehensive experimental studies demonstrate the superiority of this model. For instance, rso-sample-rank shows to be significantly better than DPO. These results highlight not just the theoretical but also the practical advantages of the paper's approach.", "category": "Method_Disambiguation"}, {"question": "Has additional discussion on addressing bias and fairness in language models been included in the pape?", "answer": "True", "category": "Claim_Verification"}, {"question": "Is a comprehensive study on fairness and bias within the scope of the current research as presented in the paper?", "answer": "False", "category": "Claim_Verification"}]} {"id": "2lDQLiH1W4", "venue": "ICLR 2024", "paper_decision": "Accept (poster)", "title": "Instant3D: Fast Text-to-3D with Sparse-view Generation and Large Reconstruction Model", "authors": ["Jiahao Li", "Hao Tan", "Kai Zhang", "Zexiang Xu", "Fujun Luan", "Yinghao Xu", "Yicong Hong", "Kalyan Sunkavalli", "Greg Shakhnarovich", "Sai Bi"], "abstract": "Text-to-3D with diffusion models has achieved remarkable progress in recent years. However, existing methods either rely on score distillation-based optimization which suffer from slow inference, low diversity and Janus problems, or are feed-forward methods that generate low-quality results due to the scarcity of 3D training data. In this paper, we propose Instant3D, a novel method that generates high-quality and diverse 3D assets from text prompts in a feed-forward manner. We adopt a two-stage paradigm, which first generates a sparse set of four structured and consistent views from text in one shot with a fine-tuned 2D text-to-image diffusion model, and then directly regresses the NeRF from the generated images with a novel transformer-based sparse-view reconstructor. Through extensive experiments, we demonstrate that our method can generate diverse 3D assets of high visual quality within 20 seconds, which is two orders of magnitude faster than previous optimization-based methods that can take 1 to 10 hours. Our project webpage is: https://jiahao.ai/instant3d/.", "keywords": "text-to-3d;generative models;diffusion models;3D reconstruction;3D generation;sparse-view reconstruction", "qa_pairs": [{"question": "Are the training shapes canonicalized when training the view-conditioned image-to-triplane decoder, and how does transforming the camera poses affect the generated shapes? Consider a set of views V = [v1, v2, v3, v4] is input and a shape A is generated. Then, all the views are multiplied with a transformation matrix M, and a shape B is generated. Will shapes A and B be in the same canonicalized coordinate frame?", "answer": "The training shapes in Objaverse are not canonicalized, except for scaling all objects to a cube within [-1, 1]. The input to the transformer includes both images and their camera poses in the world coordinate system. If the images remain unchanged and only the camera poses are transformed, the output object will be correspondingly transformed. For example, rotating the camera poses by 90 degrees and use the rotated poses as input to reconstruct the shape from the original 4-view images results in a correspondingly rotated reconstructed shape.", "category": "Method_Mechanics"}, {"question": "How does the fine-tuning on the Objaverse dataset affect the model's ability to handle arbitrary text prompts, and what are the observed failure cases related to the domain gap?", "answer": "The light-weight fine-tuning on the Objaverse dataset for 10K steps allows the model to preserve the SDXL model's capability to handle a wide range of prompts, including complex compositional concepts. The second-stage sparse-view reconstruction model, trained on renderings from the Objaverse dataset, demonstrates robustness and generalization. However, the model fails to handle over-complicated prompts, such as those involving complex spatial arrangements of multiple subjects and complex scenes. Additionally, the generated assets are not as photorealistic as the 2D images generated by SDXL, which may be due to information loss during fine-tuning.", "category": "Experimental_Setup"}, {"question": "Which technical component in the proposed pipeline contributes to the improved diversity of generated images compared to prior methods like DreamFusion and ProlificDreamer?", "answer": "The improved diversity is attributed to the text-to-multiview generation network, fine-tuned from the 2D text-to-image diffusion model SDXL, which inherits the capability of generating diverse images from random samples. These diverse 2D images are then lifted to 3D using a sparse-view reconstructor. In contrast, previous methods like DreamFusion and ProlificDreamer use Score Distillation-based optimization, which tends to produce similar results even with different initializations, as discussed in Section A.5 of the DreamFusion paper [1].Comparisons on diversity with DreamFusion and ProlificDreamer, which generate 4 different shapes for each prompt using different seeds, show that the paper’s method generates more diverse results than the baseline methods. For example, for the prompt 'a chimpanzee dressed like a football player', the paper's method generates diverse players while DreamFusion and ProlificDreamer failed to do so.\n\n[1] Dreamfusion: Text-to-3D using 2D Diffusion, Poole et. al, https://arxiv.org/abs/2209.14988 (2022)", "category": "Method_Comparison"}, {"question": "What is the significance of DINO features compared to features from other pre-trained networks, and how does the choice of features impact performance?", "answer": "The authors provide insights from three perspectives:\n\n(a) Pre-trained vs from-scratch: The paper has trained the paper’s model without initializing the visual encoder from a pre-trained weight (i.e., trained it from scratch). It is found that a pre-trained model gives faster convergence in the beginning, but the gap keeps decreasing as the training budget increases. The complete elimination of the gap has not been observed under the limited compute budget, but it is guessed that the gap can possibly disappear with more data and longer training time.\n\n(b) Different pre-trained methods: For the same ViT architecture, there are multiple pre-trained methods, e.g., MAE, DINO, CLIP, and ImageNet-CLS. Among them, the paper has tested with CLIP-init visual encoder but the results are worse than DINO. It is guessed that this is because CLIP is only trained for its [CLS] token with img-text contrastive loss thus it is hard to preserve all raw spatial information. For the other two (i.e., MAE and IN-CLS), the paper has not given a test. But it is guessed that MAE might perform similar to DINO, and IN-CLS would perform similar to CLIP based on how their pre-training method is built: MAE supervises spatial tokens while IN-CLS only supervises the [CLS] token. DINO supervises [CLS] token as well but its spatial token is good according to its pre-training strategy and also shown in previous papers [1].\n\n(c) Different model architectures (e.g., ViT vs CNN): The paper has not experimented with CNN-based visual encoder, but it is thought that CNN should give similar results. The only consideration in the paper’s mind is that CNN usually needs a different training schedule than transformer thus makes the model tuning harder. Given this, the paper picks ViT in its exploration since easy tuning is crucial for large-scale training.\n\n[1] Deep vit features as dense visual descriptors, Amir, S., Gandelsman, Y., Bagon, S., & Dekel, T. (2021).", "category": "Method_Disambiguation"}, {"question": "What are the advantages of using tile-based generation for multi-view representations compared to generating views as separate channels, as in MVDream?", "answer": "The main advantage of tile-based generation is that it does not require changes to the architecture of the original diffusion model. Unlike multi-channel methods, which rely on specific attention modules and require additional parameters like view conditioning, tile-based generation can be applied to a wide range of network architectures without modifications or extra inputs. This approach offers several benefits: (a) It is more transferable across different generative methods and model architectures without specific adaptation. (b) Light-weight fine-tuning can be easily applied to new models. (c) Acceleration techniques developed for the base model can be directly applied, enabling faster deployment. (d) On-device or platform-specific code(e.g., cpp code; swift code) can be easily integrated, expanding potential applications. While multi-channel generation is an interesting future direction, tile-based generation provides significant practical advantages.", "category": "Method_Comparison"}, {"question": "Does the improvement in texture quality in the results shown in Figures 4 and 5 primarily result from the curated training dataset rather than enhancements in the texture generation method itself, such as improving the rendering method or adding extra photo-realistic losses?", "answer": "The improvement in texture quality is primarily attributed to the paper's method's use of normal feed-forward diffusion inference (DDIM), rather than the curated training dataset. The paper's model fine-tuned on non-curated data from Objaverse does not exhibit over-saturation problems, unlike optimization-based methods such as DreamFusion and ProlificDreamer, which use score distillation losses.", "category": "Method_Disambiguation"}]} {"id": "UnUwSIgK5W", "venue": "ICLR 2024", "paper_decision": "Accept (poster)", "title": "WizardCoder: Empowering Code Large Language Models with Evol-Instruct", "authors": ["Ziyang Luo", "Can Xu", "Pu Zhao", "Qingfeng Sun", "Xiubo Geng", "Wenxiang Hu", "Chongyang Tao", "Jing Ma", "Qingwei Lin", "Daxin Jiang"], "abstract": "Code Large Language Models (Code LLMs), such as StarCoder, have demonstrated remarkable performance in various code-related tasks. However, different from their counterparts in the general language modeling field, the technique of instruction fine-tuning remains relatively under-researched in this domain. In this paper, we present Code Evol-Instruct, a novel approach that adapts the Evol-Instruct method to the realm of code, enhancing Code LLMs to create novel models, WizardCoder. Through comprehensive experiments on five prominent code generation benchmarks, namely HumanEval, HumanEval+, MBPP, DS-1000, and MultiPL-E, our models showcase outstanding performance. They consistently outperform all other open-source Code LLMs by a significant margin. Remarkably, WizardCoder 15B even surpasses the well-known closed-source LLMs, including Anthropic's Claude and Google's Bard, on the HumanEval and HumanEval+ benchmarks. Additionally, WizardCoder 34B not only achieves a HumanEval score comparable to GPT3.5 (ChatGPT) but also surpasses it on the HumanEval+ benchmark. Furthermore, our preliminary exploration highlights the pivotal role of instruction complexity in achieving exceptional coding performance.", "keywords": "Large Language Models;Code;Instruction Fine-tuning", "qa_pairs": [{"question": "Why do the results from evol round 0 + 1 + 2 + 3 + 4 in Figure 3 show worse performance than round 0 + 1 + 2 + 3, and is there a point at which returns from Evol-Instruct diminish or turn negative?", "answer": "The empirical results indicate a potential saturation point after 4 rounds of Code Evol-Instruct. The decline in performance may be due to two factors: (1) continual evolution could lead to overly complicated and unreasonable instructions, and (2) beyond a certain round, instructions may become excessively complex, challenging the evolution executing model (i.e., gpt3.5-turbo) to generate suitable responses.", "category": "Experimental_Analysis"}, {"question": "What do the results in Table 4 demonstrate, and how do they confirm that the performance gains are not due to an increase in samples or tokens? ", "answer": "In Table 4, all models are fine-tuned separately from scratch, not sequentially. The models are fine-tuned with only the specific round data, which contains a similar number of samples (upper part) or tokens (lower part). The results show that with a similar number of samples or tokens, the models trained with evolved data achieve better pass@1.", "category": "Concept_Understanding"}, {"question": "What is the impact of using different evolving models, such as GPT-4 or open-source alternatives, on the performance of Evol-Instruct?", "answer": "The authors replaced GPT3.5 (gpt3.5-turbo) with GPT-4 for generating evolved rounds. HumanEval Pass@1 scores increased from 73.2 to 73.8 for 34B and from 59.8 to 62.2 for 15B. Furthermore, the authors explored using the open-source models (OSS) CodeLlama-Instruct-34B for generating evolved instructions. However, it demonstrated relatively low coding performance in response generation. To address this, the authors fine-tuned it using the code-alpaca dataset and utilized this model for response generation. The OSS-based Code Evol-Instruct tuned models also exhibited performance improvements compared to the code-alpaca fine-tuned model, increasing from 65.9 to 70.1 for 34B and from 45.7 to 55.5 for 15B. While GPT-4 demonstrates superior coding performance with a score of 88.4 compared to GPT3.5 (gpt3.5-turbo) with a score of 73.2, leveraging a more powerful model for generating evolved rounds does not result in a proportional performance gain (73.8 vs. 73.2). Conversely, despite CodeLlama exhibiting weaker performance than GPT3.5 (gpt3.5-turbo), the performance gap significantly diminishes when utilizing the paper's Code-Evol Instruct to generate evolved rounds (73.2 vs. 70.1). This underscores the observation that employing a stronger model for evolved rounds can somewhat enhance performance, but the extent of improvement is not strongly correlated to the evolution executing model's coding performance. The paper's Code Evol-Instruct emerges as the pivotal factor in driving performance enhancement.", "category": "Experimental_Exposition"}, {"question": "What is the difference between the two methods 'Add new constraints and requirements' and 'Replace a commonly used requirement' in the context of optimising evolutionary instructions in Section 3.1?", "answer": "The first method, 'Add new constraints and requirements,' involves including additional requirements in the instruction. For example, the original instruction `Write a MongoDB query to select all documents in a collection where the field 'category' is 'clothes' and the 'brand' field is not equal to 'Nike'` is expanded to include more constraints: `Write a MongoDB query to select all documents in a collection where the field 'category' is 'clothes' and the 'brand' field is not equal to 'Nike', and the 'price' field is greater than or equal to 100 and less than or equal to 500.` The second method, 'Replace a commonly used requirement,' involves substituting existing requirements in the instruction. For example, the original instruction is modified to replace the requirements: `Write a MongoDB query to select all documents in a collection where the field 'material' is 'cashmere' and the 'designer' field is not equal to 'Chanel'.`", "category": "Method_Disambiguation"}, {"question": "What is the purpose of the 4th instruction in the Code Evolution Heuristic Methods table, which involves providing a piece of erroneous code as a reference to increase misdirection, and why is this approach effective?", "answer": "The 4th instruction involves including an erroneous code snippet as a reference to challenge the code LLM. or example, the original instruction is: `Write a Python function to tell me what the date is today.` The evolved instruction is: `Write a Python function to tell me what the date is today, using the datetime module. The function should return a string in the format of 'Today is YYYY-MM-DD'. For example, if today is November 17, 2023, the function should return 'Today is 2023-11-17'. As a reference, here is a piece of erroneous code that does not work as intended:` ```python import datetime def get_date(): today = datetime.date.today() return 'Today is ' + today ``` This erroneous code serves as an adversarial sample designed to challenge the code LLM, akin to previous works focused on attacking pre-trained code models.", "category": "Concept_Understanding"}, {"question": "How does the claim about the pivotal role of instruction complexity in enhancing coding performance hold given the analysis in Table 4, where later rounds (assumed to have more complexity) lead to lower performance or statistically insignificant changes?", "answer": "The claim holds because models trained with any round of round 1-4 data (incorporating evolved complexity) exhibit significantly better performance than round 0 data (devoid of evolved complexity). Although rounds 1-4 are not monotonically increasing in complexity, they all outperform the low-complexity code-alpaca data. Figure 3 further supports this by showing that the combination of rounds 0-3 achieves the best performance, indicating the beneficial impact of introducing instruction complexity.", "category": "Experimental_Analysis"}, {"question": "What was the rationale behind the development of the five heuristic methods for increasing the complexity of code instructions, and how do they align with the characteristics of the code domain and prior research?", "answer": "The five heuristic methods were developed to increase the complexity of code instructions, aligning with the characteristics of the code domain and prior research on code models' limitations. The first three heuristics naturally escalate coding task difficulty by incorporating additional requirements, replacing common requirements, or introducing extra reasoning steps. This aligns with observed trends on platforms like LeetCode, where tasks with more requirements or intricate reasoning are considered more challenging. The fourth heuristic introduces erroneous code as an adversarial sample, inspired by prior research in attacking pre-trained code models [1][2], serving to assess the robustness of the code LLM. The fifth heuristic, emphasizing time and space complexity, aligns with the significance of optimization in the coding domain. Previous studies [3] indicate that tasks requiring optimized program performance pose heightened difficulty, making this direction a valuable avenue for complexity improvement.\n\n[1] Yang, Zhou et al. “Natural Attack for Pre-trained Models of Code.” 2022 IEEE/ACM 44th International Conference on Software Engineering (ICSE).\n\n[2] Jha, Akshita et al. “CodeAttack: Code-based Adversarial Attacks for Pre-Trained Programming Language Models.” AAAI 2022.\n\n[3] Madaan, A. et al. \"Learning Performance-Improving Code Edits.\" (arxiv, 2023)", "category": "Motivation_Analysis"}, {"question": "Why does the Pass@1 score in Table 4 decrease as the number of iterations increases?", "answer": "The Pass@1 scores in the upper part of Table 4 show fluctuations rather than a consistent decrease, with a notable decline in the fourth round. This decline is due to two factors: 1) continual evolution leading to overly complicated and unreasonable instructions, and 2) excessive complexity of instructions beyond a certain round, challenging the evolution executing model (gpt3.5-turbo) in generating suitable responses. In the lower part of Table 4, the decreasing scores are normal as more complex instructions increase sample length, reducing the number of samples per round to maintain the same token count. Individual metrics for specific rounds may not fully represent the overall impact on final model performance, as merging different complexity levels can improve performance, as shown in Figure 3.", "category": "Experimental_Analysis"}, {"question": "How does the performance of the model change when less capable models are used for generating evolving data, and can the same model be used to generate data for the next iteration?", "answer": "Using open-source models like CodeLlama-Instruct-34B for generating evolved instructions initially showed low performance, but fine-tuning with the code-alpaca dataset improved performance from 65.9 to 70.1 for 34B and from 45.7 to 55.5 for 15B. Despite CodeLlama's weaker performance compared to GPT3.5, the gap reduces with the paper's Code-Evol Instruct (73.2 vs. 70.1).. However, using the same model for the next iteration is challenging as it is trained for code responses, not evolved instructions.", "category": "Experimental_Exposition"}, {"question": "What was the rationale behind the development of the five heuristic methods?", "answer": "The five heuristic methods were developed to increase the complexity of code instructions, aligning with the characteristics of the code domain and previous research on code models' limitations. The first three heuristics escalate coding task difficulty by incorporating additional requirements, replacing common requirements, or introducing extra reasoning steps, which aligns with trends observed on platforms like LeetCode. The fourth heuristic introduces erroneous code as an adversarial sample, inspired by prior research in attacking pre-trained code models[1][2], to assess the robustness of the code LLM. The fifth heuristic emphasizes time and space complexity, reflecting the importance of optimization in the coding domain. Previous studies [3] indicate that tasks requiring optimized program performance pose heightened difficulty, making this direction a valuable avenue for complexity improvement.\n\n[1] Yang, Zhou et al. “Natural Attack for Pre-trained Models of Code.” 2022 IEEE/ACM 44th International Conference on Software Engineering (ICSE).\n\n[2] Jha, Akshita et al. “CodeAttack: Code-based Adversarial Attacks for Pre-Trained Programming Language Models.” AAAI 2022.\n\n[3] Madaan, A. et al. \"Learning Performance-Improving Code Edits.\" (arxiv, 2023)", "category": "Motivation_Analysis"}, {"question": "Why is the pass@1(%) result on MBPP not as strong as on HumanEval, and how does the diversity of benchmarks used address this concern?", "answer": "The pass@1(%) result on MBPP may not be as strong as on HumanEval due to the latter's narrower distribution and potential for overfitting. To address this, the paper's evaluation includes a diverse set of benchmarks such as MBPP, DS-1000, and MultiPl-E. The paper's models show substantial improvements across these benchmarks, with a 20-point improvement on HumanEval, a 5.2-point improvement on MBPP, a 7.4-point improvement on DS-1000 (insertion), and an average 9.3-point improvement on MultiPL-E, demonstrating the effectiveness of the paper's approach. Additionally, Codellama-instruct only achieves a 2-point improvement on MBPP compared to Codellama.", "category": "Experimental_Analysis"}, {"question": "What is the number of iterations used in the Code Evol-Instruct technique, and what criteria were used to determine when to stop the iterations?", "answer": "A total of 4 iterations were conducted. The decision to stop was based on the observation in Figure 3a, which shows that optimal performance on the dev set was achieved after 3 rounds of evolutions.", "category": "Experimental_Setup"}, {"question": "What model is used to generate evolved data in Section 3 of the Code Eval-Instruct iteration on the sample dataset, and does the quality of the pre-trained model outputs affect the results?", "answer": "GPT3.5 (gpt3.5-turbo) is used to generate evolved data, as mentioned in Section 4.2. Additional experiments replacing GPT3.5 with GPT-4 showed an increase in HumanEval Pass@1 scores from 73.2 to 73.8 for 34B and from 59.8 to 62.2 for 15B. While using a superior LLM like GPT-4 contributes to better evolved data, the improvement is not strongly correlated with the coding performance of the evolution executing model (88.4 for GPT4 and 73.2 for GPT3.5).", "category": "Experimental_Exposition"}, {"question": "Is the model in this paper trained using 24 V100 GPUs, with the 15B model requiring 15 hours and the 34B model requiring 32 hours?", "answer": "True", "category": "Claim_Verification"}]} {"id": "ruk0nyQPec", "venue": "ICLR 2024", "paper_decision": "Accept (spotlight)", "title": "SILO Language Models: Isolating Legal Risk In a Nonparametric Datastore", "authors": ["Sewon Min", "Suchin Gururangan", "Eric Wallace", "Weijia Shi", "Hannaneh Hajishirzi", "Noah A. Smith", "Luke Zettlemoyer"], "abstract": "The legality of training language models (LMs) on copyrighted or otherwise restricted data is under intense debate. However, as we show, model performance significantly degrades if trained only on low-risk text (e.g., out-of-copyright books or government documents), due to its limited size and domain coverage. We present SILO, a new language model that manages this risk-performance tradeoff during inference. SILO is built by (1) training a parametric LM on the Open License Corpus (OLC), a new corpus we curate with 228B tokens of public domain and permissively licensed text and (2) augmenting it with a more general and easily modifiable nonparametric datastore (e.g., containing copyrighted books or news) that is only queried during inference. The datastore allows use of high-risk data without training on it, supports sentence-level data attribution, and enables data producers to opt out from the model by removing content from the store. These capabilities can foster compliance with data-use regulations such as the fair use doctrine in the United States and the GDPR in the European Union. Our experiments show that the parametric LM struggles on its own with domains not covered by OLC. However, access to the datastore greatly improves out of domain performance, closing 90% of the performance gap with an LM trained on the Pile, a more diverse corpus with mostly high-risk text. We also analyze which nonparametric approach works best, where the remaining errors lie, and how performance scales with datastore size. Our results suggest that it is possible to build high quality language models while mitigating legal risk.", "keywords": "language modeling; retrieval; legality of language modeling", "qa_pairs": [{"question": "What are the reasons for focusing on LM perplexity in a paper?", "answer": "The paper focus on LM perplexity in the paper was based on the following two reasons: 1. Prior work has shown that LM perplexity correlates well with downstream tasks (including zero-shot and few-shot in-context learning) across a large collection of tasks and all models [1, 2, 3]. So it’s a natural first step. 2. Prior work has shown adding a nonparametric datastore improves performance on downstream tasks [4, 5, 6] even when pretrained LMs are already trained on in-domain data. Gains are expected to be larger in SILO where pretrained LMs are not trained on in-domain data (this is the case in perplexity, as reported in Appendix D.2 & Figure 5). The paper's text classification experiments confirm these findings. Furthermore, perplexity has been the primary evaluation criterion in many recent ICLR papers that innovated on language modeling [7, 8, 9, 10].\n\n[1] Kaplan et al. \"Scaling Laws for Neural Language Models\". 2020. https://arxiv.org/abs/2001.08361\n[2] Hernandez et al. Scaling Laws for Transfer. 2021. https://arxiv.org/abs/2102.01293\n[3] Xia et al. “Training Trajectories of Language Models Across Scales”. ACL 2023. https://arxiv.org/abs/2212.09803\n[4] Asai et al. “ACL 2023 Tutorial: Retrieval-based Language Models and Applications”. https://acl2023-retrieval-lm.github.io/\n[5] Khandelwal et al. \"Nearest Neighbor Machine Translation\". ICLR 2021. https://arxiv.org/abs/2010.00710\n[6] Jiang et al. \"Active Retrieval Augmented Generation\" EMNLP 2023. https://arxiv.org/abs/2305.06983\n[7] https://openreview.net/forum?id=HklBjCEKvH ICLR 2020\n[8] https://openreview.net/forum?id=nnU3IUMJmN ICLR 2022\n[9] https://openreview.net/forum?id=R8sQPpGCv0 ICLR 2022\n[10] https://openreview.net/forum?id=BS49l-B5Bql ICLR 2022", "category": "Motivation_Analysis"}, {"question": "How does the paper address the trade-offs between legal risk, runtime, and performance?", "answer": "The paper considers SILO as a method to control trade-offs between legal risk, runtime, and performance. It highlights the novel connection between the legal risk of non-permissive training data and a nonparametric datastore, which is expected to motivate further research on efficient inference with such architectures. ", "category": "Method_Disambiguation"}, {"question": "Does using open license data with SILO completely eliminate the risk of infringing intellectual property (IP) from others?", "answer": "No, SILO does not completely eliminate the risk of infringing intellectual property (IP) from others. Legal risks are highly context-dependent, and there are uncertainties about how courts will interpret copyright protections. SILO does not remove the need for obtaining permission to use copyrighted content, but its opt-out capabilities can strengthen fair use defense. Additionally, SILO’s attribution features make it easier to identify copied content. SILO is designed to lower legal risk and provide more control to model developers and users in balancing risk and performance, rather than completely removing legal risk.", "category": "Method_Disambiguation"}, {"question": "What is the rationale for focusing on the different licenses PD, SW, and BY in the paper, given their apparent lack of significance in the experiments?", "answer": "There are two reasons: 1. The OLC dataset is designed to have varying levels of permissiveness, as permissiveness is a spectrum rather than a binary decision. This allows LM developers to define their own boundaries and control the trade-off between training data size, legal risk, and performance. 2. The general empirical findings are shown to hold across different possible boundaries, as demonstrated in Appendix D.2 and Figure 3.", "category": "Motivation_Analysis"}, {"question": "What is the novelty of the proposed approach, given that it builds upon the kNN-LM framework by Khandelwal et al., 2020[1]?\n\n[1]Urvashi Khandelwal, Omer Levy, Dan Jurafsky, Luke Zettlemoyer, and Mike Lewis. Generalization through memorization: Nearest neighbor language models. In Proceedings of the International Conference on Learning Representations, 2020.", "answer": "The study contributes to technological innovation by being among the first to provide technical mitigation of legal risk in language models. It introduces a novel training recipe that separates data for training and data for a datastore, an approach not explored in prior work. The novelty lies in using this separation to mitigate legal risk, an underexplored area, and demonstrating empirical findings on recovering performance close to existing language models.", "category": "Method_Disambiguation"}, {"question": "Why does the paper focus on LM perplexity and zero-shot text classification instead of exploring the influence of SILO on instruction-tuning or task fine-tuning processes?", "answer": "The paper focuses on LM perplexity and zero-shot text classification because prior work has shown that LM perplexity correlates well with downstream tasks across a large collection of tasks and all models[1][2][3]. Additionally, prior work has demonstrated that adding a nonparametric datastore improves a range of tasks in both fine-tuning[4, 5] and instruction-tuning scenarios[6], even when pretrained LMs are already trained on in-domain data. Gains are expected to be larger in SILO, where pretrained LMs are not trained on in-domain data, as evidenced by the results reported in Appendix D.2 and Figure 5.\n\n[1] Kaplan et al. \"Scaling Laws for Neural Language Models\". 2020. https://arxiv.org/abs/2001.08361\n[2] Hernandez et al. Scaling Laws for Transfer. 2021. https://arxiv.org/abs/2102.01293\n[3] Xia et al. “Training Trajectories of Language Models Across Scales”. ACL 2023. https://arxiv.org/abs/2212.09803\n[4] Guu et al. 2020. “REALM: Retrieval-Augmented Language Model Pre-Training”. https://arxiv.org/abs/2002.08909\n[5] Izcard et al. \"Atlas: Few-shot Learning with Retrieval Augmented Language Models\". 2022 https://arxiv.org/abs/2208.03299\n[6] Lin et al. 2023. \"RA-DIT: Retrieval-Augmented Dual Instruction Tuning\" https://arxiv.org/abs/2310.01352", "category": "Motivation_Analysis"}, {"question": "What are the specific computational costs, in terms of GPU hours, for training the SILO and Pythia models?", "answer": "Pythia 1.4B, which was used for comparison as SILO has 1.3B parameters, was trained for 7,120 GPU hours. The main SILO model, named PDSW, was trained for 6,613 GPU hours. Both models used A100 GPUs with 40GB of memory, as described in the Pythia paper [1]\n\n[1] Biderman et al. \"Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling\". 2023. https://arxiv.org/abs/2304.01373", "category": "Experimental_Setup"}, {"question": "Does SILO completely eliminate the legal risk of IP infringement when using open license data?", "answer": "False", "category": "Claim_Verification"}, {"question": "Is it claimed in the paper that SILO entirely removes the need for obtaining permission to use copyrighted content?", "answer": "False", "category": "Claim_Verification"}]} {"id": "dsUB4bst9S", "venue": "ICLR 2024", "paper_decision": "Accept (poster)", "title": "Teaching Arithmetic to Small Transformers", "authors": ["Nayoung Lee", "Kartik Sreenivasan", "Jason D. Lee", "Kangwook Lee", "Dimitris Papailiopoulos"], "abstract": "Large language models like GPT-4 exhibit emergent capabilities across general-purpose tasks, such as basic arithmetic, when trained on extensive text data, even though these tasks are not explicitly encoded by the unsupervised, next-token prediction objective. This study investigates how even small transformers, trained from random initialization, can efficiently learn arithmetic operations such as addition, multiplication, and elementary functions like square root, using the next-token prediction objective. We first demonstrate that conventional training data is not the most effective for arithmetic learning, and simple formatting changes can significantly improve accuracy. This leads to sharp phase transitions as a function of training data scale, which, in some cases, can be explained through connections to low-rank matrix completion. Building on prior work, we then train on chain-of-thought style data that includes intermediate step results. Even in the complete absence of pretraining, this approach significantly and simultaneously improves accuracy, sample complexity, and convergence speed. We also study the interplay between arithmetic and text data during training and examine the effects of few-shot prompting, pretraining, and parameter scaling. Additionally, we discuss the challenges associated with length generalization. Our work highlights the importance of high-quality, instructive data that considers the particular characteristics of the next-word prediction loss for rapidly eliciting arithmetic capabilities.", "keywords": "Machine Learning;Transformers;Large Language Models", "qa_pairs": [{"question": "Does the model train on a fixed set of examples, and how does training for multiple epochs on varying dataset sizes affect its generalization behavior for arithmetic operations?", "answer": "For all experiments, the model is trained on a fixed set of examples. The sample efficiency curve demonstrates how performance varies when training for multiple epochs on training datasets of different sizes. This approach allows the paper to investigate the model's ability to generalize arithmetic operations on digits from one position to another where it has never seen it.", "category": "Experimental_Analysis"}, {"question": "Why was a character-level tokenizer chosen for the experiments, and how does this choice affect the generalizability of the results?", "answer": "The authors chose a character-level tokenizer to simplify the experimental setting and enable systematic ablation of different factors. While the results may not completely generalize, experiments with BPE tokenization (tiktoken) for GPT-2 and findings from Chain-of-Thought data and models of varying scales suggest that most results remain applicable.", "category": "Motivation_Analysis"}, {"question": "Does the model generate a chain of thought during inference when trained with chain-of-thought data, and is there a correlation between the validity of the chain of thought and the correctness of the answer?", "answer": "Yes, the model generates output in a chain-of-thought style during inference when trained with CoT data from scratch. There is a strong correlation between the validity of the chain of thought and the correctness of the answer, as measured by the `scratchpad match score`, which evaluates the fraction of correct intermediate computations. Errors in intermediate steps often propagate to subsequent steps, leading to incorrect answers, though some less accurate models, such as NanoGPT trained on 250 samples, may still arrive at the correct answer despite intermediate errors.", "category": "Experimental_Exposition"}, {"question": "Is the improved performance of the detailed chain of thought model due to the length of the data format, or is it attributed to the intermediate steps?", "answer": "The improved performance of the detailed scratchpad format is attributed to the intermediate steps rather than the length of the data format. Evidence includes experiments in Section B.3 and B.4 of the Appendix, which examine the effect of recording correct digit-wise sum `(A)` and carry `(C)` information compared to randomizing `A` and `C` in the simplified scratchpad format, showing that addition is best learned with accurate `A` and `C` values. Additionally, an experiment replacing the intermediate steps with random tokens while keeping the data format length constant showed significantly worse performance, confirming the importance of the intermediate steps.", "category": "Experimental_Exposition"}, {"question": "What is the intuitive explanation for the improvement in accuracy when certain numbers are excluded from the training data, and how does this relate to the regularization effect mentioned in Table 1?", "answer": "The columns where 100 and 500 numbers are excluded for plain and all 3 cases for reverse, respectively, show higher overall accuracy compared to the case when no numbers are excluded. This is referred to as a regularization effect, as it can be thought of as analogous to data augmentation with cropped images used during the training of vision models. A more reasonable explanation for this is a generalization of the matrix completion argument discussed in Section 5. Learning how to add two-digit numbers can be viewed as completing a fourth-order, rank-4 tensor (rank-4 in the CP sense). $ab + cd = 10a + b + 10c + d$, which can then be represented as the sum of fourth-order rank-1 tensors (rank-1 in the CP sense): $10* T_1 + T_2 + 10*T_3 + T_4$ where $T_1$ is $\\mathbf{N}\\circ \\mathbf{1} \\circ \\mathbf{1} \\circ \\mathbf{1}$, $T_2$ is $\\mathbf{1}\\circ \\mathbf{N}\\circ \\mathbf{1}\\circ \\mathbf{1}$ and so on. $\\mathbf{N} \\in \\mathbb{R}^{10}$ denotes the vector $[0, 1, 2, \\dots, 9]$ and $\\mathbf{1} \\in \\mathbb{R}^{10}$ denotes the vector of 1s. While this argument is still informal, it now shows that the sample complexity of learning the 'addition-map' is $O(\\#digits)$ rather than $O(10^{\\#digits})$. It also reveals that seeing each digit in each position enough times to learn $T_i$ might be sufficient.\n", "category": "Concept_Understanding"}, {"question": "What is the novelty of the study, given its reliance on previously established methods and datasets, particularly reasoning-augmented data?", "answer": "Although the paper's study does not introduce new datasets or techniques, the novelty of the paper's research lies in the extensive ablation studies and the thorough exploration of various factors influencing model performance in a well-specified setting. The research provides a comprehensive understanding of how transformers develop arithmetic skills, highlighting the importance of data sampling and formatting, such as reversing outputs. These findings contribute to a deeper study of emergent phenomena in models and have broader implications for synthetic training data generation for LLM training, which is valuable for the research community and timely given the current state of research.", "category": "Method_Disambiguation"}, {"question": "Can the proposed method be extended to models beyond GPT-3?", "answer": "The methodology, which focuses on data sampling and formatting techniques, is applicable to models of various scales. Experiments on finetuning GPT-3(Table 2) indicate that the findings are applicable from NanoGPT to GPT-2 and GPT-3, suggesting it should also extend to larger models. Ongoing experiments on GPT-4 aim to further validate this. ", "category": "Experimental_Analysis"}, {"question": "How does the paper address the concern that their findings on simple arithmetic settings do not generalize to natural language scenarios?", "answer": "The paper's primary objective is to analyze and understand how these models learn arithmetic skills and, if possible, determine more efficient ways to elicit such learning. This is expected to help better understand the general case of emergent properties in large language models. While the ideas of reversing the input/output may seem specific and not directly applicable to real data, the paper's findings reveal the importance of data formatting in accelerating the learning process. Demonstrating the impact of a simple method like reversing highlights the significance of properly structuring data to enable the language model to learn a compositional function using its individual components more effectively. These findings are believed to have significant implications for synthetic training data generation for LLMs—a topic that is rapidly growing in importance. The paper also analyzes the token-efficiency of these different formats in Section 6, which is particularly relevant for practical applications. The paper is the first work to study these aspects of CoT-style data for arithmetic applications. While it might be challenging to draw firm conclusions, this is primarily due to the inherent complexity of studying LLMs. Given the scale and the multitude of variables involved, isolating individual aspects of the problem is a daunting task. This is the reason why the paper focused on a simple problem like arithmetic and conducted extensive ablations to gain insights into data formatting, sampling, and their impact on teaching skills to small transformer models.", "category": "Method_Disambiguation"}, {"question": "To what extent is the finding on reversing digit order in the output specific to the decoder-only architecture used in the study, and how does this finding apply to encoder-only and encoder-decoder architectures?", "answer": "The study intentionally focuses on decoder-only architectures to understand emergent properties in LLMs, which are typically decoder-only transformers. For encoder-only models (e.g., BERT-style architectures), reversing digit order is likely irrelevant because the model produces all digits simultaneously. For encoder-decoder architectures, reversing digit order allows the model to learn a simpler function, as it still produces digits from left-to-right. ", "category": "Method_Mechanics"}, {"question": "What is the correct probability of selecting a 1-digit number in the case of 3-digit addition, and how is this probability calculated?", "answer": "The probability of selecting a 1-digit number in 3-digit addition is $0.01\\%$. This is calculated based on the fact that there are only $100$ samples containing 1-digit numbers among the $10^6$ possible 3-digit addition samples. While the probability of selecting a single 1-digit operand is $1\\%$, the probability that either operand is 1-digit is significantly lower.", "category": "Concept_Understanding"}, {"question": "How does the model perform when the operands have different digit lengths, such as in the cases of 2 + 312 or 546 + 7?", "answer": "The following results present different digit length combinations, where each row and column represents the number of digits in the first and second operand, respectively. For plain addition, performance is lower for lower-digit combinations and is not necessarily symmetric in operand lengths. For example, 1-digit + 2-digit results in 42.2% performance, while 2-digit + 1-digit results in 27.8% performance It is conjectured that this is because, despite the balanced sampling approach, the number of samples of $(1, 3)$ digit or $(2,1)$ digit sums are relatively few in the paper's training data. \n\n| Plain | 1-digit | 2-digit | 3-digit |\n| ---- | ---- | ---- | ---- |\n| 1-digit| 72.8% | 42.2% | 77.0% |\n| 2-digit| 27.8% | 60.0% | 91.4% |\n| 3-digit| 38.6% | 61.2% | 97.0% |\n\nFor reverse addition, performance is consistently high across different digit combinations, with most combinations achieving over 94.0% accuracy.\n\n| Reverse| 1-digit | 2-digit | 3-digit |\n| ---- | ---- | ---- | ---- |\n| 1-digit| 100.0% | 99.8% | 99.0% |\n| 2-digit| 96.4% | 100.0% | 100.0% |\n| 3-digit| 94.0% | 99.4% | 100.0% |", "category": "Experimental_Exposition"}, {"question": "To what extent does the model learn the commutative property of addition, specifically whether predictions for A+B and B+A are the same, and how does this behavior evolve during training?", "answer": "The model learns the commutative property of addition to a large extent, especially after being fully trained. Using NanoGPT trained on the plain data format, the authors tested whether $(A+B) = (B+A)$. Out of 9900 test examples, 8799 samples commute. While most of these are trivially commutative (since the model gets the answer correct), out of the 164 samples where the model gets both $(A+B)$ and $(B+A)$ wrong, it still commutes on 99 of them. This indicates that the model learns to commute 60.3% of the time even when it gets the answers wrong. These findings are summarized in the table below.\n\n| P(A+B=B+A, both are correct answer) | P(A+B and B+A are both incorrect) | P(A+B=B+A \\| both are incorrect) |\n| ---- | ---- | --- |\n| 0.878 (8700 samples) | 0.016 (164 samples) | 0.603 (99/164 samples) |", "category": "Experimental_Exposition"}, {"question": "Do the results of the proposed method generalize to the addition of decimal numbers, such as 1.21 + 13.12?", "answer": "Yes, the results generalize to the addition of decimal numbers. The authors trained the model on decimal numbers by converting integer numbers (up to 3-digit) to decimal numbers with 1 digit and 2 floating points (e.g., 1-digit number `a` becomes `0.0a`, 2-digit number `ab` becomes `0.ab`, and 3-digit number `abc` becomes `a.bc`). The results align with findings on integer addition, showing that addition is learned more efficiently with reversed output. Surprisingly, the performance on decimal numbers is better than on 3-digit integer addition, likely due to the decimal number formatting behaving like zero-padding with fixed digit length (Appendix B.1).", "category": "Experimental_Analysis"}, {"question": "How do the results from Sections 3 and 4, which suggest the model learns a specific addition algorithm, reconcile with the results from Section 5, which frame addition as a memorization+interpolation problem?", "answer": "The results from Sections 3 and 4 indicate that the model learns the specified addition algorithm when presented with reversed outputs, but the limited length generalization suggests it does not 'truly' learn this algorithm. Section 5 shows that the generalization properties of NanoGPT when certain numbers are excluded from the training data, surpass Matrix Completion and therefore are not simply interpolating the low-rank addition matrix. While the exact algorithm learned by the model is not precisely characterized, its tendencies and behaviors, particularly its sensitivity to input data format, are documented.", "category": "Experimental_Analysis"}, {"question": "How does the inclusion of the `$` symbol and the `\\n` character as a prefix affect the test accuracy of plain addition and reverse tasks, as shown in Figure 8?", "answer": "The inclusion of the `$` symbol allows plain addition to approach 100% test accuracy, while the reverse task without `$` reaches almost 90%. Additionally, introducing a `\\n` character as a prefix significantly enhances performance for models trained without the `$` delimiter, indicating that the inclusion of a delimiter during testing is crucial for model accuracy.", "category": "Experimental_Exposition"}, {"question": "What is the rationale behind using the `$`-wrapped plain addition as the baseline in Figure 2, and Which examples have been adopted by the structured sampling strategy?", "answer": "The `$`-wrapped plain addition was chosen as the baseline because it achieves nearly 100% accuracy within a reasonable number of samples. The structured sampling strategy involves selecting 100 instances of 1-digit, 900 instances of 2-digit (9% of the total 10,000 instances), and 9,000 instances of 3-digit numbers. While this strategy performs better than random sampling, it may need adjustments to achieve 100% accuracy for 2-digit addition when $n=3$.", "category": "Experimental_Analysis"}, {"question": "How do the findings on simple settings contribute to understanding emergent properties in large language models and their applicability to natural language?", "answer": "The primary objective of this study is to analyze how models learn arithmetic skills and determine efficient ways to elicit such learning, which contributes to understanding emergent properties in large language models. While the specific method of reversing input/output may not directly apply to real data, the findings reveal the importance of data formatting in accelerating the learning process. Demonstrating the impact of a simple method like reversing highlights the significance of properly structuring data to enable the language model to learn a compositional function using its individual components more effectively. These insights have implications for synthetic training data generation for LLMs, a rapidly growing area of research. Additionally, the study analyzes token-efficiency in Section 6, which is relevant for practical applications. The paper is the first work to study these aspects of CoT-style data for arithmetic applications.", "category": "Method_Disambiguation"}, {"question": "How well do the findings from this study, which pinpoint factors contributing to the fast emergence of arithmetic capabilities through ablations, transfer to large language models (LLMs) at scale, and are these findings properly backed by experiments?", "answer": "The findings do transfer to large language models (LLMs) at scale, as demonstrated by a full table in Section 8 that includes models ranging from NanoGPT to GPT3, along with additional experiments in Section F that confirm the scalability of the findings.", "category": "Experimental_Analysis"}, {"question": "Do the findings from training Transformers on arithmetic data transfer to models trained primarily on language with some arithmetic data, and how does the simplicity of the cross-entropy loss on next 'token' affect the learning of underlying arithmetic algorithms?", "answer": "The simplicity of the cross-entropy loss on next 'token' does not fully explain the learning of underlying arithmetic algorithms, as arithmetic in the token space differs from arithmetic in the embedding space. The surprising aspect is the generalization to unseen arithmetic examples. Experiments intermingling arithmetic tasks with textual data (Section 7 and Appendix E) suggest that the findings are transferable to settings with text, and few-shot prompting enhances performance in these scenarios.", "category": "Experimental_Analysis"}, {"question": "Why is the learning curve between 1k and 4k examples referred to as a phase transition, given that the task has a deterministic output and 100% accuracy is achievable, and the model is only trained for 6k examples?", "answer": "For all experiments, the paper trains on a fixed set of examples. The sample efficiency curve shows how performance varies when training for multiple epochs on training datasets of varying sizes. The term 'phase transition' is used to describe the qualitative shift in the model's capability to perform addition, from an inability to grasp addition with insufficient examples to learning perfect addition as the number of samples increases. Between 1k and 4k examples, the model transitions from 0% accuracy to almost 100% accuracy, which is why this range is referred to as a phase transition. Additionally, this range represents an extremely small fraction of all possible 3-digit combinations, and training stops at 6k examples because further training is unnecessary once the model has learned addition perfectly. The phase transition would appear sharper if the x-axis were extended to the 10^6 possible samples.", "category": "Concept_Understanding"}, {"question": "Is the overall performance on decimal number addition better than 3-digit integer addition, potentially due to the decimal formatting behaving like zero-padding?", "answer": "True", "category": "Claim_Verification"}, {"question": "Is the probability of selecting a single 1-digit operand in a 3-digit addition task 1%?", "answer": "True", "category": "Claim_Verification"}, {"question": "Do the obtained results on decimal number addition align with the findings on integer addition, showing more efficient learning with reversed output?", "answer": "True", "category": "Claim_Verification"}, {"question": "Is the model trained on decimal numbers by converting integer numbers to a specific decimal format (1 digit + 2 floating points)?", "answer": "True", "category": "Claim_Verification"}, {"question": "Do the results generalize to the addition of two decimal numbers such as 1.21 + 13.12?", "answer": "True", "category": "Claim_Verification"}, {"question": "Does the paper show that the reverse data format improves performance significantly both with and without the `$` delimiter, as mentioned in Appendix B?", "answer": "True", "category": "Claim_Verification"}]} {"id": "qV83K9d5WB", "venue": "ICLR 2024", "paper_decision": "Accept (poster)", "title": "Large Language Models as Tool Makers", "authors": ["Tianle Cai", "Xuezhi Wang", "Tengyu Ma", "Xinyun Chen", "Denny Zhou"], "abstract": "Recent research has highlighted the potential of large language models (LLMs)\nto improve their problem-solving capabilities with the aid of suitable external\ntools. In our work, we further advance this concept by introducing a closed-\nloop framework, referred to as LLMs A s Tool Makers (LATM), where LLMs\ncreate their own reusable tools for problem-solving. Our approach consists of two\nphases: 1) tool making: an LLM acts as the tool maker that crafts tools for a set\nof tasks, where a tool is implemented as a Python utility function. 2) tool using:\nanother LLM acts as the tool user, which applies the tool built by the tool maker\nfor problem-solving. The tool user can be either the same or a different LLM\nfrom the tool maker. On the problem-solving server side, tool-making enables\ncontinual tool generation and caching as new requests emerge. This framework\nenables subsequent requests to access cached tools via their corresponding APIs,\nenhancing the efficiency of task resolution. Beyond enabling LLMs to create their\nown tools, our framework also uncovers intriguing opportunities to optimize the\nserving cost of LLMs: Recognizing that tool-making requires more sophisticated\ncapabilities, we assign this task to a powerful, albeit resource-intensive, model.\nConversely, the simpler tool-using phase is delegated to a lightweight model. This\nstrategic division of labor allows the once-off cost of tool-making to be spread\nover multiple instances of tool-using, significantly reducing average costs while\nmaintaining strong performance. Furthermore, our method offers a functional\ncache through the caching and reuse of tools, which stores the functionality of\na class of requests instead of the natural language responses from LLMs, thus\nextending the applicability of the conventional cache mechanism. We evaluate\nour approach across various complex reasoning tasks, including Big-Bench tasks.\nWith GPT-4 as the tool maker and GPT-3.5 as the tool user, LATM demonstrates\nperformance equivalent to using GPT-4 for both roles, but with a significantly\nreduced inference cost.", "keywords": "large language models;tool making;tool using;serving efficiency", "qa_pairs": [{"question": "Why does CoT achieve a score of 0.0 on the 'Chinese Remainder Theorem' problem?Additionally, how does vanilla GPT perform on this task, and what causes its failure if it fails?", "answer": "CoT achieves a score of 0.0 on the 'Chinese Remainder Theorem' problem because direct few-shot prompting without CoT was applied, as readily available demonstrations were unavailable. Vanilla GPT fails because the task requires many steps of intermediate calculation, which GPT-4 cannot perform effectively internally, even with prompting. Adding CoT demonstrations would be extremely long, exacerbating context length limitations.", "category": "Experimental_Analysis"}, {"question": "What is the substantial contribution of the paper, and how does it address the novelty bar for methods involving prompting large language models (LLMs)?", "answer": "The substantial contribution of the paper is the proposal of a novel framework, LATM, which combines multiple language models to enable task-solving ability close to the stronger model’s performance while maintaining the weaker models’ serving cost. This framework is novel and pragmatic, improving efficiency and task performance in a way that was not obvious prior to this work. Although more extensive evaluation across a diverse range of tasks would further demonstrate the capabilities and limitations of the paper's approach, the paper's focus was to validate the potential of this novel technique on a small but representative set of reasoning tasks as an initial proof of concept study. The paper also demonstrates the feasibility of this approach on a representative set of reasoning tasks from the Big-Bench Hard subset, showing significant performance improvements, achieving 80% to 100% accuracy compared to GPT-3.5’s 20% to 60% accuracy while maintaining similar inference costs. The work provides novel insights into improving the efficiency of LLM systems and advances their capabilities on complex reasoning tasks.", "category": "Method_Disambiguation"}, {"question": "Is the performance of the self-verification process stable when using different sets of few-shot validation examples?", "answer": "True", "category": "Claim_Verification"}, {"question": "Is the price for the GPT-3.5 Turbo tool maker module 1$/1M tokens for input and 2$/1M tokens for output?", "answer": "True", "category": "Claim_Verification"}]} {"id": "5Nn2BLV7SB", "venue": "ICLR 2024", "paper_decision": "Accept (poster)", "title": "PandaLM: An Automatic Evaluation Benchmark for LLM Instruction Tuning Optimization", "authors": ["Yidong Wang", "Zhuohao Yu", "Wenjin Yao", "Zhengran Zeng", "Linyi Yang", "Cunxiang Wang", "Hao Chen", "Chaoya Jiang", "Rui Xie", "Jindong Wang", "Xing Xie", "Wei Ye", "Shikun Zhang", "Yue Zhang"], "abstract": "Instruction tuning large language models (LLMs) remains a challenging task, owing to the complexity of hyperparameter selection and the difficulty involved in evaluating the tuned models. To determine the optimal hyperparameters, an automatic, robust, and reliable evaluation benchmark is essential. However, establishing such a benchmark is not a trivial task due to the challenges associated with evaluation accuracy and privacy protection. In response to these challenges, we introduce a judge large language model, named PandaLM, which is trained to distinguish the superior model given several LLMs. PandaLM's focus extends beyond just the objective correctness of responses, which is the main focus of traditional evaluation datasets. It addresses vital subjective factors such as relative conciseness, clarity, adherence to instructions, comprehensiveness, and formality. To ensure the reliability of PandaLM, we collect a diverse human-annotated test dataset, where all contexts are generated by humans and labels are aligned with human preferences. Our findings reveal that PandaLM-7B offers a performance comparable to both GPT-3.5 and GPT-4. Impressively, PandaLM-70B surpasses their performance. PandaLM enables the evaluation of LLM to be fairer but with less cost, evidenced by significant improvements achieved by models tuned through PandaLM compared to their counterparts trained with default Alpaca's hyperparameters. In addition, PandaLM does not depend on API-based evaluations, thus avoiding potential data leakage.", "keywords": "LLM evaluation", "qa_pairs": [{"question": "How does PandaLM perform in terms of generalization when evaluating generations from models not included in its training set, such as LLaMA-2-7B?", "answer": "PandaLM demonstrates notable generalization capabilities when evaluating generations from models not included in its training set. Experimental results show that PandaLM aligns closely with human benchmarks, maintaining high performance even on unseen models like LLaMA-2-7B. This indicates that PandaLM's effectiveness is not limited to models it was trained with, reinforcing its utility as a versatile and reliable evaluation tool for LLMs. The detailed analysis is provided in Appendix K of the paper.\n\n| Model Comparison | PandaLM (P, R, F1) | Human (P, R, F1) | Metrics (P, R, F1) |\n|------------------------|--------------------|------------------|-----------------------------|\n| llama1-7b vs llama2-7b | (23, 61, 16) | (23, 70, 7) | (0.7061, 0.7100, 0.6932) |\n| llama1-13b vs llama2-13b| (18, 73, 9) | (20, 68, 12) | (0.7032, 0.6800, 0.6899) |\n| llama1-65b vs llama2-70b| (20, 66, 14) | (34, 56, 10) | (0.7269, 0.6600, 0.6808) |\n", "category": "Experimental_Exposition"}, {"question": "How does PandaLM perform when evaluating larger language models, specifically LLaMA-13B and LLaMA-70B, and what insights does this provide about scalable oversight?", "answer": "\n| Model Comparison | PandaLM (P, R, F1) | Human (P, R, F1) | Metrics (P, R, F1) |\n|------------------------|--------------------|------------------|-----------------------------|\n| llama1-7b vs llama2-7b | (23, 61, 16) | (23, 70, 7) | (0.7061, 0.7100, 0.6932) |\n| llama1-13b vs llama2-13b| (18, 73, 9) | (20, 68, 12) | (0.7032, 0.6800, 0.6899) |\n| llama1-65b vs llama2-70b| (20, 66, 14) | (34, 56, 10) | (0.7269, 0.6600, 0.6808) |\n\nPandaLM performs effectively when evaluating larger language models, such as LLaMA-13B and LLaMA-70B. The evaluation demonstrates that as the pre-training data for instruction-tuned models increases, their ability to understand and follow instructions improves. This highlights the significance of extensive pre-training in developing language models that are more skilled at understanding and correctly responding to various instructions.", "category": "Experimental_Exposition"}, {"question": "Why is it important to include the performance of LLaMA in Table 1 to evaluate the effectiveness of the proposed LLM tuning framework for PandaLM?", "answer": "\n| **Model** | **Accuracy** | **Precision** | **Recall** | **F1 score** |\n|-----------------------------------|--------------|---------------|------------|--------------|\n| LLaMA-7B 0-shot (log-likelihood) | 12.11 | 70.23 | 34.52 | 8.77 |\n| LLaMA-30B 0-shot (log-likelihood) | 31.43 | 56.48 | 43.12 | 32.83 |\n| LLaMA-7B 5-shot (log-likelihood) | 24.82 | 46.99 | 39.79 | 25.43 |\n| LLaMA-30B 5-shot (log-likelihood) | 42.24 | 61.99 | 51.76 | 42.93 |\n| Vicuna-7B (log-likelihood) | 15.92 | 57.53 | 34.90 | 14.90 |\n| Vicuna-13B (log-likelihood) | 35.24 | 57.45 | 43.65 | 36.29 |\n| PandaLM-7B | **59.26** | 57.28 | 59.23 | 54.56 |\n| PandaLM-7B (log-likelihood) | **59.26** | **59.70** | **63.07** | **55.78** |\n\n\nIncluding LLaMA's performance in Table 1 helps to rule out the possibility that PandaLM's performance is solely due to the backbone model rather than the proposed LLM tuning framework. Appendix G provides evidence that tailored tuning significantly affects performance in zero and few-shot scenarios, showing that a well-tuned smaller model can surpass a larger, untuned model. Additionally, experiments with finetuned LLaMA (Vicuna) demonstrate the improved evaluation capabilities of instruction-tuned models, further validating the tuning framework's effectiveness.", "category": "Experimental_Analysis"}, {"question": "What is a realistic higher-bound on the expected F1/accuracy scores for the model, and how does it compare to the inter-annotator agreement (IAA) among human evaluators?", "answer": "The paper's test set was annotated by three individuals with inter-annotator agreement (IAA) exceeding 0.85. To refine the model's performance assessment compared to human evaluators, the paper can use the inter-annotator agreement (IAA) of 0.85 as a benchmark. If the paper's model exceeds this, it indicates strong performance. However, setting a realistic target slightly above this human IAA, say around 0.90, offers a challenging yet achievable goal.", "category": "Experimental_Analysis"}, {"question": "Given that PandaLM-7B achieves 47% for LSAT and 51% for BioASQ in Table 3, which is close to the assumed chance accuracy of 50%, how do these results validate the model's performance, and what additional steps were taken to ensure its validity?", "answer": "The task is a three-category classification (win/lose/tie), where random guessing would yield around 33% in precision, recall, and F1 score. PandaLM-7B's results of 47% and 51% are significantly above this level. To further validate PandaLM-7B, a human evaluation was conducted with 30 samples on the BioASQ evaluation. The results showed that both PandaLM-7B and GPT-4 consistently favored Vicuna over Alpaca, indicating a reliable trend in their evaluations. ", "category": "Experimental_Analysis"}, {"question": "How does the performance of the model vary with adjustments in learning rate and epochs during hyperparameter optimization using PandaLM?", "answer": "The authors explored a range of learning rates (2e-6 to 2e-4),optimizers, schedulers, and epochs, saving model checkpoints at the end of each epoch. Performance was assessed through pairwise comparisons between checkpoints, counting win rounds for each model. The analysis suggests a tendency towards a learning rate of 2e-5, though this preference was not uniformly clear across all models. Peak performance often occurred around the fourth or fifth epoch. The results highlight the complex interplay of hyperparameters with model performance, influenced by data distribution, optimizer, and scheduler choices. There is no universally optimal setting, but a learning rate around 2e-5 and an epoch count near 4 might be beneficial in some cases, these results, however, are not conclusive. These findings emphasize the need for tailored hyperparameter optimization for different models, as it allows for a more nuanced understanding of model performance across various scenarios.", "category": "Experimental_Analysis"}, {"question": "What does the analysis of perplexity in Appendix C reveal about the relationship between perplexity and model performance?", "answer": "The analysis reveals that lower perplexity, which indicates better predictive ability in pretraining, does not always correlate with better overall performance of instruction-tuned models. For example, LLaMA-PandaLM has a higher perplexity than LLaMA-Alpaca but outperforms it in both pairwise comparisons (PandaLM, GPT, Human) and traditional tasks (lm-eval). In some cases, lower perplexity might even suggest potential overfitting, which could diminish the model's generalizability.", "category": "Experimental_Analysis"}, {"question": "How does the implementation of early stopping using Pandalm affect the fine-tuning of large models like LLaMA?", "answer": "The paper implemented an early stopping strategy using Pandalm, focusing specifically on LLaMA. The paper’s experiments revealed that in some cases, the model’s performance at epoch 3 was inferior to that at epoch 2, but subsequent epochs showed performance improvements. This suggests that early stopping may not always be suitable for large model fine-tuning, as it could prematurely halt training before reaching optimal performance. This analysis is presented in Appendix J of the paper.", "category": "Experimental_Exposition"}, {"question": "How does PandaLM's broader assessment for hyperparameter optimization compare to models optimized by loss or perplexity?", "answer": "Models optimized by loss or perplexity might not always correlate with high performance in practical tasks, as perplexity measures predictive ability during pretraining but does not encompass all aspects of language understanding. PandaLM's broader assessment is more effective for hyperparameter optimization because it evaluates models in complex, instruction-based scenarios.", "category": "Method_Comparison"}, {"question": "How was the early stopping strategy implemented, and what impact did it have on the overall performance of the LLaMA model?", "answer": "The early stopping strategy was implemented using Pandalm, which determined if the current training checkpoint surpassed the previous one. If inferior, training was stopped. For LLaMA, training halted at epoch 5, consistent with earlier observations from comprehensive pairwise comparisons of tuned checkpoints, considering variations in learning rate, optimizer, and scheduler. This strategy reduced the time to identify optimal epochs but still required experimentation with different learning rates, optimizers, and schedulers for full performance optimization. The analysis is detailed in Appendix J.", "category": "Experimental_Setup"}, {"question": "What are the contents and implications of Table 3, and how do the models 'alpaca' and 'vicuna' correlate in terms of their performance on datasets such as LSAT, PubMedQA, and BioASQ? ", "answer": "Table 3 evaluates responses in the legal and biological domains using GPT-4 as the gold standard due to the difficulty of hiring domain experts for annotation. The performance of 'vicuna' and 'alpaca' is analyzed on datasets like LSAT, PubMedQA, and BioASQ, with PandaLM as the evaluator and GPT-4's evaluations as the standard. Given that the paper is dealing with a three-class classification problem (win, tie, lose), a random guess would typically result in approximately 33% accuracy in terms of precision, recall, and F1 score. The results show that PandaLM achieves accuracy significantly higher than the 33% expected from random guessing, indicating strong consistency with GPT-4's evaluations. A human evaluation on a subset of 30 samples from BioASQ further validated that both PandaLM and GPT-4 tend to favor Vicuna over Alpaca. ", "category": "Concept_Understanding"}, {"question": "Does the paper claim that the efficacy of PandaLM alone can be inferred from the superior performance of models trained using PandaLM?", "answer": "False", "category": "Claim_Verification"}, {"question": "Does Table 1 include the performance metrics of LLaMA as a judge to compare with PandaLM?", "answer": "True", "category": "Claim_Verification"}, {"question": "Do models optimized by loss or perplexity consistently show high performance in practical tasks according to the experimental results?", "answer": "False", "category": "Claim_Verification"}, {"question": "Does perplexity measure all aspects of language understanding crucial for practical applications?", "answer": "False", "category": "Claim_Verification"}, {"question": "Are the results for models selected based on optimal perplexity included in the paper?", "answer": "True", "category": "Claim_Verification"}]} {"id": "EHg5GDnyq1", "venue": "ICLR 2024", "paper_decision": "Accept (poster)", "title": "AgentVerse: Facilitating Multi-Agent Collaboration and Exploring Emergent Behaviors", "authors": ["Weize Chen", "Yusheng Su", "Jingwei Zuo", "Cheng Yang", "Chenfei Yuan", "Chi-Min Chan", "Heyang Yu", "Yaxi Lu", "Yi-Hsin Hung", "Chen Qian", "Yujia Qin", "Xin Cong", "Ruobing Xie", "Zhiyuan Liu", "Maosong Sun", "Jie Zhou"], "abstract": "Autonomous agents empowered by Large Language Models (LLMs) have undergone significant improvements, enabling them to generalize across a broad spectrum of tasks. However, in real-world scenarios, cooperation among individuals is often required to enhance the efficiency and effectiveness of task accomplishment. Hence, inspired by human group dynamics, we propose a multi-agent framework AgentVerse that can effectively orchestrate a collaborative group of expert agents as a greater-than-the-sum-of-its-parts system. Our experiments demonstrate that AgentVerse can proficiently deploy multi-agent groups that outperform a single agent. Extensive experiments on text understanding, reasoning, coding, tool utilization, and embodied AI confirm the effectiveness of AgentVerse. Moreover, our analysis of agent interactions within AgentVerse reveals the emergence of specific collaborative behaviors, contributing to heightened group efficiency. We will release our codebase, AgentVerse, to further facilitate multi-agent research.", "keywords": "large language mode;agent;multi-agent", "qa_pairs": [{"question": "How has the evaluation module addressed the concerns of relying solely on LLMs for generating feedback and evaluation scores?", "answer": "The evaluation module has incorporated external feedback across various scenarios to enhance reliability and effectiveness. Specifically: - **Minecraft Environment:** The evaluator receives in-game environmental factors and player states for real-time, context-specific assessment. - **Humaneval Benchmark:** The evaluator leverages model-generated unit test results to validate outcomes, as detailed in Appendix A. - **Commongen Benchmark:** The evaluator uses coverage test results to gauge the effectiveness of generated responses, also elaborated in Appendix A. - **Tool Usage Scenarios:** The evaluator integrates outcomes from different agents to deliver accurate and comprehensive feedback or reports to users.", "category": "Method_Mechanics"}, {"question": "How does the number of agents influence the performance of the AgentVerse framework in quantitative experiments for GPT-3.5-turbo on Humaneval and MGSM datasets?", "answer": "The paper runs each setting on Humaneval (coding) and MGSM (math) for 3 runs, and reports the averaged performance. (Solo means 1 role assigner agent + 1 decision-making agent + 1 evaluation agent, Group is the same except that there are multiple decision-making agents.)\n\n| | CoT | Solo | Group-2 | Group-3 | Group-4 |\n| ---------------------- | ---------------- | ---------------- | ---------------- | ---------------- | ---------------- |\n| Mathematical Reasoning | $81.2_{\\pm 0.6}$ | $83.2_{\\pm 1.5}$ | $82.3_{\\pm 0.2}$ | $82.8_{\\pm 0}$ | $81.6_{\\pm 1.3}$ |\n| Programming | $72.4_{\\pm 0.3}$ | $73.4_{\\pm 1.9}$ | $74.8_{\\pm 0.7}$ | $74.6_{\\pm 1.1}$ | $74.8_{\\pm 0.6}$ |\n| Average Performance | $76.8_{\\pm 0.2}$ | $78.3_{\\pm 1.0}$ | $78.5_{\\pm 0.5}$ | $78.7_{\\pm 0.5}$ | $78.2_{\\pm 0.9}$ |\n\n Where `Group-x` indicates `x` decision-making agents. Generally, using AgentVerse framework with one to three decision-making agents gives satisfying results. The averaged performance is highest when there are 3 decision-making agents. While these datasets primarily test specific agent abilities, not fully utilizing the diversity of a multi-agent setup, an upward trend in average performance was still observed with an increase in agents. The diminishing returns upon further scaling can be attributed to communication inefficiencies, as discussed in Section 3.1. AgentVerse’s true potential is best observed in more complex challenges. The paper's case studies, tool utilization experiments, and Minecraft game-playing scenarios are prime examples where the multi-agent framework's capabilities are more pronounced and beneficial.\n", "category": "Experimental_Exposition"}, {"question": "What is the primary motivation for using multiple agents instead of single agents, given that some single-agent methods like self-refine/self-ensemble may achieve better performance?", "answer": "As single-agent capabilities continue to evolve, a key area of research is enabling these agents to collaborate beyond solitary operation, particularly in complex real-world challenges. This paper focuses on this collaborative potential among AI agents. In single-agent research, the focus often lies on benchmark performance (similar to Sections 3.1 and 3.2 of this paper). However, the essence of multi-agent study extends beyond these metrics, delving into the autonomous behaviors and communication patterns within agent dialogues—crucial yet often overlooked aspects of agent interaction. Therefore, rather than solely emphasizing benchmark performance, this paper delves into the autonomous coordination and communication that remains largely untapped. The paper’s research, particularly in Sections 3.3 (Tool Using) and 4 (Minecraft Game Playing), demonstrates the capabilities of LLM agents in autonomous coordination and collaborative task accomplishment. These scenarios highlight the need to consider LLM agents not just as assistants but as interactive participants in a multi-agent environment. Thus, while multi-agent systems may not always outperform single agents in certain benchmarks, their unique aspects, like emergent behaviors and communication patterns, are valuable research areas in their own right.", "category": "Motivation_Analysis"}, {"question": "Why is the complexity and cost of the multi-agent framework justified despite its inefficiencies and high token usage for OpenAI API calls?", "answer": "The increased complexity and cost of the paper’s multi-agent system compared to single-agent systems are inherent in the paper’s research question: ‘As single-agent capabilities continue to evolve, how can we enable these agents to collaborate beyond solitary operation, especially in complex real-world challenges?’ Drawing parallels with human society, where collaboration leads to greater efficiency and the ability to tackle more complex tasks, the paper’s work delves into the potential and challenges of multi-agent collaborations. Indeed, inefficiencies in agent collaboration, especially in communication, have been observed. However, as one of the pioneering studies in autonomous multi-agent systems, the paper explores the potential of collaborative agents and demonstrates this potential with several promising cases achieved using the paper’s framework. Although communication challenges exist, highlighting these challenges can pave the way for future research to develop more efficient multi-agent systems with advanced communication capabilities. In light of this, the complexity and cost of the framework are acceptable. Identifying the challenging issues and providing the right direction for further research is as important as proposing incremental methods to optimize an autonomous multi-agent system. This approach allows the paper to highlight both the great potential and some limitations of agents in collaborative settings.", "category": "Method_Mechanics"}, {"question": "What are the key factors driving the performance of the framework in quantitative experiments, and how are they supported by evidence?", "answer": "The performance of the framework is driven by three key factors: 1. **Role Assignment**: Assigning expert identities to agents enhances accuracy, as supported by related work (e.g., https://arxiv.org/abs/2305.14930) and evidenced in the consulting case (Figure 2). An experiment with GPT-3.5-Turbo CoT tasks shows improved results with role assignment, with averaged results and standard deviations reported for Math Reasoning and Coding tasks. \n\n| | w/o role | w/ role |\n| :------------------- | :-----------------: | :---------------: |\n| Math Reasoning | 72.4±0.3 | 73.7±0.5 |\n| Coding | 81.2±0.6 | 82.4±0.7 |\n\n\n2. **Environmental Feedback**: Utilizing environmental feedback, such as coverage tests in Commongen and unit tests in Humaneval, significantly boosts performance, as explained in Appendix A, illustrating the impact on datasets where such feedback is applicable.\n\n3. **LLM Communication Capabilities**: The ability of LLMs like GPT-3.5-turbo and GPT-4 to handle contradictions during decision-making stages is crucial. GPT-4's superior handling of contradictions indicates the importance of robust communication capabilities for maximizing the benefits of a multi-agent system.", "category": "Experimental_Analysis"}, {"question": "How can AgentVerse be extended to explore future research topics?", "answer": "As the capability of single agent evolves, exploring how to enable these agents to move beyond working in isolation is considered an important research topic. AgentVerse, with its modular design, facilitates experimentation with various agent teams and tasks. \nAgentVerse can be extended in several ways:\n1. **More Capable Agents and More Challenging Scenarios.** The paper can easily incorporate more capable agents from recent research and apply them to challenging scenarios, such as more sophisticated embodied agent scenarios. The paper's experiments in the Minecraft environment, a sandbox game, demonstrate their applicability for agents in **the** virtual world. This success suggests that extending AgentVerse to other embodied simulations, or even real-world physical scenarios, is not only feasible but a promising avenue for future exploration. Minecraft serves as a proof of concept, showing how AgentVerse's principles can be adapted to environments where agents interact in the more physically grounded settings.\n2. **Enhanced Communication.** There are several topics that can be further explored in multi-agent communication. For example, the communication structure. Though the paper only designs two straightforward and intuitive communication structures, e.g., horizontal and vertical, further exploration can be made based on the paper's code and experiments by customizing and replacing the module. Also, the research on communication language, protocol, etc. can all be considered within AgentVerse.\n3. **Leverage Emergent Behaviors and Mitigate Safety Issues.** The emergent behaviors observed in the paper's tool utilization and Minecraft scenarios provide valuable insights. **How to harness** the beneficial emergent behaviors will be a research topic for multi-agent research. Also, the harmful behaviors the paper observed also indicate the necessity to study the agent safety within the multi-agent context. They may be new scenarios that need to be considered in alignment.\n", "category": "Method_Disambiguation"}, {"question": "How does the proposed AgentVerse framework compare to existing LLM-based agent frameworks across multiple dimensions of indicators?", "answer": "Comparison Table:\nMultiple Agent\nExpert Recruitment\nAutonomous Interaction Among Agents\nCollaborative Decision-Making\nDistributed Action Execution\nInteract with external world\n\n| | Agent Type | Expert Recruitment | Collaborative Decision-Making (Multi-agent Communication) | Distributed Action Execution | Interact with external world |\n|----------|------------|--------------------|-----------------------------------------------------------|------------------------------|------------------------------|\n| Camel | Multiple | x | ✓ | x | x |\n| AutoGPT | Single | x | x | x | ✓ (human, environment) |\n| XAgent | Multiple | x | x | x | ✓ (human, environment) |\n| METAGPT | Multiple | x | ✓ | x | ✓ (human) |\n| AutoGen | Multiple | x | ✓ | ✓ | ✓ (human, environment) |\n| AutoAgents | Multiple | ✓ | ✓ | x | ✓ (human) |\n| AgentVerse | Multiple | ✓ | ✓ | ✓ | ✓ (human, environment) |\n\n\n", "category": "Method_Comparison"}, {"question": "How does AGENTVERSE perform compared to a single ReAct agent when the number of tasks increases or when the tasks are heterogeneous?", "answer": "The authors acknowledge the limitations of existing datasets like ToolBench (https://arxiv.org/abs/2307.16789) and APIBench (https://arxiv.org/abs/2305.15334) for evaluating complex multi-tool tasks. They highlight technical challenges with ToolBench and the simplicity of APIBench. However, they refer to Appendix B, which demonstrates AGENTVERSE's superior performance over a single ReAct agent in complex tool utilization scenarios. Based on these findings, they are confident in AGENTVERSE’s ability to outperform single-agent setups in such scenarios.", "category": "Experimental_Exposition"}, {"question": "What does the data in Table 2 regarding coding capabilities represent?", "answer": "The data in Table 2 represents the Pass@1 performance of GPT-3.5-turbo and GPT-4 on the Humaneval dataset, showing that the multi-agent setting consistently outperforms both the solo and CoT settings for both models.", "category": "Concept_Understanding"}, {"question": "Do the authors have additional quantitative results, including uncertainty measures, to support their claims about the AgentVerse framework beyond the results presented in Table 1 and Table 2? Given the severe lack of quantitative results in this paper, the case studies provide interesting insights into how the AgentVerse framework handles problems, but these insights are not yet sufficiently significant to fully validate the framework’s performance.", "answer": "The paper includes five benchmark datasets, a number that can be considered substantial for evaluating multi-agent systems. These benchmarks were chosen to be diverse and evaluate different aspects of the paper’s framework. Furthermore, the emergent behaviors and communication patterns shown in the case studies are non-trivial. These aspects, though less tangible than numerical benchmark results, are central to advancing the understanding and capabilities of multi-agent systems. The case studies in the paper’s work are designed to mirror real-world challenges more closely than conventional benchmark datasets, thereby providing valuable insights into the practical applicability of AgentVerse. The consideration of these qualitative aspects as equally, if not more, important than quantitative experiments is significant. The nuanced understanding they provide into agent interaction dynamics is vital for the advancement of multi-agent systems.\n\nThe authors have conducted further experiments with GPT-3.5-turbo, running each experiment three times, and report the averaged performance and the standard deviation on each dataset. The results are as follows:\n\n\n| | CoT | Solo | Group |\n| ---------------------- | --------------- | --------------- | --------------- |\n| Conversation | $83.7_{\\pm1.0}$ | $84.0_{\\pm1.7}$ | $86.8_{\\pm1.2}$ |\n| Creative Writing | $79.5_{\\pm0.2}$ | $92.4_{\\pm0.2}$ | $90.2_{\\pm0.4}$ |\n| Mathematical Reasoning | $81.2_{\\pm0.6}$ | $83.2_{\\pm1.5}$ | $82.8_{\\pm0}$ |\n| Coding | $72.4_{\\pm0.3}$ | $73.4_{\\pm1.9}$ | $74.8_{\\pm0.7}$ |\n", "category": "Method_Disambiguation"}, {"question": "What are the advantages of framing the problem as a multi-agent system compared to using sophisticated prompting for a single agent, as discussed in Sections 3.3 and 4?", "answer": "The multi-agent framework offers distinct advantages over sophisticated prompting for a single agent: 1. **Efficiency of Multi-Agent System:** An individual agent, even with sophisticated prompting, may face limitations in efficiency when tackling complex tasks. Multi-agent systems excel in this aspect, especially in real-world scenarios involving intricate multi-tool utilization (Section 3.3) or collaborative goals in gaming environments (Section 4). By coordinating and collaborating, multiple agents can operate more efficiently than a single agent in these contexts since they have a clear division of labor, and less distracting information in their memory. 2. **Complementarity of Single and Multi-Agent Approaches:** Advanced prompting techniques can indeed create more capable agents. This does not contradict the multi-agent system approach. Multi-agent systems can also benefit from more capable agents. This synergy allows for leveraging the strengths of single-agent efficiency and multi-agent collaboration. 3. **Exploring Multi-Agent Dynamics:** The paper's research delves into some of the intricate properties of multi-agent communication, shedding light on how heterogeneous agents can collaborate effectively. This exploration reveals the potential of multi-agent systems, a domain where single-agent frameworks fall short. The dynamics within multi-agent interactions are not just an extension of single-agent capabilities but constitute a distinct and valuable area of research. The paper's work represents a significant step in demonstrating the potential and worth of multi-agent studies based on LLMs.", "category": "Method_Comparison"}]} {"id": "uREj4ZuGJE", "venue": "ICLR 2024", "paper_decision": "Accept (poster)", "title": "In-context Autoencoder for Context Compression in a Large Language Model", "authors": ["Tao Ge", "Hu Jing", "Lei Wang", "Xun Wang", "Si-Qing Chen", "Furu Wei"], "abstract": "We propose the In-context Autoencoder (ICAE), leveraging the power of a large language model (LLM) to compress a long context into short compact memory slots that can be directly conditioned on by the LLM for various purposes. ICAE is first pretrained using both autoencoding and language modeling objectives on massive text data, enabling it to generate memory slots that accurately and comprehensively represent the original context. Then, it is fine-tuned on instruction data for producing desirable responses to various prompts. Experiments demonstrate that our lightweight ICAE, introducing about 1% additional parameters, effectively achieves $4\\times$ context compression based on Llama, offering advantages in both improved latency and GPU memory cost during inference, and showing an interesting insight in memorization as well as potential for scalability. These promising results imply a novel perspective on the connection between working memory in cognitive science and representation learning in LLMs, revealing ICAE's significant implications in addressing the long context problem and suggesting further research in LLM context management. Our data, code and models are available at https://github.com/getao/icae.", "keywords": "large language model;context compression;in-context autoencoder;pretraining;fine-tuning;Llama;GPT;memorization", "qa_pairs": [{"question": "What are the reasons for the U-shaped trend observed in the loss values in the rightmost image of Figure 4?", "answer": "The U-shaped trend in the loss values is attributed to two main factors: 1) The pretraining samples are typically long (~500 tokens), making short sequences like 100 or 200 tokens less common in the training data, which results in higher loss for these shorter sequences. 2) The loss is generally higher for earlier context, such as the 10th word having only 9 preceding words to condition on, leading to higher loss, whereas the 300th word benefits from 299 preceding words, providing a richer context and thus easier prediction with lower loss.", "category": "Experimental_Analysis"}, {"question": "What is the impact of full model fine-tuning compared to LoRA on the final quality, and what are the practical advantages of using LoRA?", "answer": "Under the same training steps (10k), full model fine-tuning yields better results than LoRA. However, LoRA has the practical advantage of adding only 1% extra memory usage, making it more resource-efficient for practical applications.", "category": "Method_Comparison"}, {"question": "What were the results of pretraining an ICAE from scratch compared to using a pretrained LLM, and is there a possibility of a better training objective for ICAE?", "answer": "Pretraining an ICAE from scratch using a GPT-style model with a similar number of parameters resulted in weaker performance compared to using a pretrained LLM. While no more efficient and scalable objective than AE/LM has been found, there may be a better training objective for pretraining ICAE.", "category": "Experimental_Exposition"}, {"question": "What are the results of System 1 (Llama2-7b-chat without ICAE) and System 2 (GPT-4) ?", "answer": "The results for System 1 (Llama2-7b-chat without ICAE) and System 2 (GPT-4) are as follows:\n | System 1 | System 2 | Win | Lose | Tie |\n|:---------------:|:--------:|:----:|:----:|:----:|\n| Llama-2-7b-chat | GPT-4 | 19.3 | 24.5 | 56.2 |", "category": "Experimental_Exposition"}, {"question": "What range of values for N was used in the experiments for text continuation training?", "answer": "In the experiments for text continuation training, N ranges from 1 to 4.", "category": "Experimental_Setup"}, {"question": "What is the approximate training cost (time and money) for the model, and is it necessary to use 8 A100 GPUs with 80GB?", "answer": "Training does not require 8 A100 GPUs with 80GB; it can be done with just 1 A100 due to the use of LoRA, which eliminates the need for GPU memory control through parallelism techniques. The use of 8 A100 GPUs was only for speeding up the pretraining process, which takes about 4 days on 26.2 billion tokens.", "category": "Method_Disambiguation"}, {"question": "How is the encoder LLM initialized in relation to the decoder LLM, and how does the approach address the difference between autoregressive attention in the decoder and potential bidirectional attention in the encoder?", "answer": "The encoder LLM in authors' paper is a frozen LLM (specifically Llama) combined with a learnable LoRA and a learnable embedding for memory tokens. It does not use bidirectional attention but causal attention, similar to the decoder. The encoder and decoder are not the same as in the traditional encoder-decoder architecture.", "category": "Method_Mechanics"}, {"question": "Why was an encoder-decoder language model such as T5 not used for compressing contexts in this study?", "answer": "The encoder and decoder in this study refer to the encoding and decoding modules of the autoencoder (ICAE), which are distinct from the encoder/decoder in an encoder-decoder architecture like T5. The goal was to compress contexts for an existing Large Language Model (LLM), specifically Llama. Building the ICAE on the same LLM (Llama) ensures better alignment with the LLM, enabling the generation of a more compressed context.", "category": "Experimental_Analysis"}, {"question": "What are the practical benefits of ICAE compression when using the same context multiple times, and how does it handle the overhead for different contexts?", "answer": "When the same context is used multiple times (e.g., cached in advance), ICAE compression significantly reduces latency/memory overhead, achieving over 7x speedup, as discussed in Section 3.3.2. This is common and practical, such as a customized ChatGPT for a specific user can compress the user's chat history in advance and use the compressed memory during inference to maintain the long-term memory without online latency overhead for compression. For different contexts, an additional compression step is required, but as shown in Table 7, this additional compression still brings significant end-to-end speedup compared to using the original context when generating a long sequence, making it still a highly practical method.", "category": "Experimental_Exposition"}, {"question": "How many training steps or examples are required for the model to converge in the autoencoding task with a 4x compression setting (e.g., using 128 tokens to restore 512 tokens)?", "answer": "The validation loss continues to decrease even after 150,000 training steps in the 4x compression setting (e.g., using 128 tokens to restore 512 tokens).", "category": "Experimental_Setup"}, {"question": "What is the format of memory slots, how are they generated from the model, and what is observed when mapping each memory slot vector to the most likely word?", "answer": "Memory slots are vectors in the embedding space that are fed into the decoder as input, and are the final output of the ICAE encoder (before softmax) in the positions of memory tokens. When mapped to the vocabulary space, memory slots retain keyword information from the original context and are concentrated in the front part of the context. This can be explained by the memorization intuition we discussed in our paper, where the model will only remember keywords that provide crucial hints.", "category": "Concept_Understanding"}, {"question": "What experimental evidence supports the claim that black-box memories are more compressive than summarization models, as mentioned in Figure 2?", "answer": "The experimental evidence includes: (1) Figure 4 and Figure 5, which show that 128-length black-box memories can almost losslessly restore the original 512-length context (with BLEU>99%), a result not achievable with a 128-length summary; and (2) the last row of Table 6, which compares 128-length black-box memory and 128-token summary, confirming that black-box memory is more compact and informative than a summary of equal length.", "category": "Experimental_Exposition"}, {"question": "Is it feasible to implement an adaptive size of memory slots to achieve more compact compression, considering that the amount of information varies based on the content of the context rather than solely its length?", "answer": "Yes, it is feasible. As shown in Table 3, texts with lower perplexity (PPL) have greater compression potential due to higher certainty and ease of memorization. The authors are currently working on adaptive memory slots to dynamically adjust the compression rate based on the text's difficulty (PPL) to optimize compression performance without compromising results.", "category": "Experimental_Analysis"}, {"question": "Is the encoder initialized from the same LLM checkpoint as the decoder, and what modifications are made to the encoder?", "answer": "Yes, both the encoder and decoder are initialized from the same LLM checkpoint, which is Llama. The encoder additionally includes a learnable LoRA module and a learnable embedding for memory tokens, as shown in Figure 3.", "category": "Method_Disambiguation"}, {"question": "Why does the first row of Table 1 show a PPLX increase despite the absence of compression?", "answer": "The PPLX increase occurs because the original natural language tokens were replaced with compressed memory slots, leading to some inherent loss. This is due to the difference in pretraining data: memory slots are pretrained on 26.2 billion tokens, whereas natural language tokens are pretrained on trillions of tokens by Llama.", "category": "Experimental_Analysis"}, {"question": "Are both the pretrained ICAE and non-pretrained model variants trained on the same instruction fine-tuning set?", "answer": "Yes, both variants are trained on the same instruction fine-tuning set. The only difference is that the pretrained ICAE is pretrained with AE+LM before instruction fine-tuning, while the non-pretrained model is directly trained on the instruction fine-tuning data.", "category": "Experimental_Setup"}, {"question": "Are the llama-2-chat models in column#2 of rows 2, 3, 4, and 5 in table 4 fine-tuned on the PwC dataset?", "answer": "True", "category": "Claim_Verification"}, {"question": "Are the results of System 1 - Llama2-7b-chat (without ICAE) and System 2 - GPT-4 included in Table 4 for reference?", "answer": "False", "category": "Claim_Verification"}, {"question": "Is it necessary to use 8 A100 GPUs with 80GB for training, or can it be done with a single A100 GPU?", "answer": "False", "category": "Claim_Verification"}, {"question": "Are the two pre-training tasks interleaved?", "answer": "True", "category": "Claim_Verification"}, {"question": "Is the number of training tokens for the pretraining tasks specified as 26.2 billion tokens in the paper's Appendix A?", "answer": "True", "category": "Claim_Verification"}, {"question": "According to the demonstrations in Figures 4 and 5 and Table 6, are memory slots more compact and informative than summary baselines of the same length?", "answer": "True", "category": "Claim_Verification"}, {"question": "Is the reason for performing the two pre-training tasks in an interleaved manner the catastrophic forgetting problem, given that sequential training performed poorly in the paper’s setup?", "answer": "True", "category": "Claim_Verification"}, {"question": "Does the training process on 8 A100 GPUs take approximately 4 days to process 26.2 billion tokens?", "answer": "True", "category": "Claim_Verification"}]} {"id": "yzfi15eVI7", "venue": "ICLR 2024", "paper_decision": "Reject", "title": "iHyperTime: Interpretable Time Series Generation with Implicit Neural Representations", "authors": ["Elizabeth Fons", "Alejandro Sztrajman", "Yousef El-Laham", "Andrea Coletta", "Alexandros Iosifidis", "Svitlana Vyetrenko"], "abstract": "Implicit neural representations (INRs) have emerged as a powerful tool that provides an accurate and resolution-independent encoding of data. Their robustness as general approximators has been shown across diverse data modalities, such as images, video, audio, and 3D scenes. However, little attention has been given to leveraging these architectures for time series data. Addressing this gap, we propose an approach for time series generation based on two novel architectures: TSNet, an INR network for interpretable trend-seasonality time series representation, and iHyperTime, a hypernetwork architecture that leverages TSNet for time series generalization and synthesis.\nThrough evaluations of fidelity and usefulness metrics, we demonstrate that iHyperTime outperforms current state-of-the-art methods in challenging scenarios that involve long or irregularly sampled time series, while performing on par on regularly sampled data. Furthermore, we showcase iHyperTime fast training speed, comparable to the fastest existing methods for short sequences and significantly superior for longer ones. Finally, we empirically validate the quality of the model's unsupervised trend-seasonality decomposition by comparing against the established STL method.", "keywords": "Time series generation;implicit neural representations", "qa_pairs": [{"question": "What is the procedure for removing data in experiments with irregular time-series, and is the missing data applied to training, testing, or both?", "answer": "Following existing literature [1,2,3], Irregular time-series datasets are created by randomly dropping 30, 50, or 70% of observations from the original datasets. Each observation is dropped uniformly at random and independently for each time series, and independently for each time series {$(t_i, y_i)$}$_{i=0}^N$ in the original dataset. The removed data is consistent across all models and repeats, and is applied to both training and testing. \n[1] - Jeon, Jinsung, et al. \"GT-GAN: General Purpose Time Series Synthesis with Generative Adversarial Networks.\" Advances in Neural Information Processing Systems 35 (2022): 36999-37010.\n\n[2] - Kidger, Patrick, et al. \"Neural controlled differential equations for irregular time series.\" Advances in Neural Information Processing Systems 33 (2020): 6696-6707.\n\n[3] - Tang, Xianfeng, et al. \"Joint modeling of local and global temporal dynamics for multivariate time series forecasting with missing values.\" Proceedings of the AAAI Conference on Artificial Intelligence. Vol. 34. No. 04. 2020.\n", "category": "Experimental_Setup"}, {"question": "How do RNN encoder-decoder models with training strategies such as weak decoder, contrastive loss, or attractive loss compare with iHyperTime in terms of generating clustered interpretable latent representations and sequences?", "answer": "Classical RNN approaches have shown lower performance in generative tasks compared to GAN-based approaches like TimeGAN, even when trained with teacher-forcing or professor-forcing. Even when they are trained using teacher-forcing (T-Forcing) [2] as well as professor-forcing (P-Forcing) [3] to regularize the generation. In fact, autoregressive approaches condition the model using previously generated samples, and even small prediction errors can compound over the sequences. A major difference is that iHyperTime can generate realistic time-series for longer sequences over 700 time steps, whereas autoregressive RNN approaches suffer from compounding prediction errors. iHyperTime also achieves state-of-the-art performance in generation tasks with an interpretable time-series representation, unlike existing RNN-based approaches that do not directly target time-series representation for generation. The authors are surveying approaches using contrastive loss, attractive losses, and weak decoder, and will discuss the differences between iHyperTime's interpretable latent representation for trend, seasonality, and residuals, and clustered interpretable latent representations in RNN-based models.\n[2] - Alex Graves. \"Generating sequences with recurrent neural networks.\" arXiv preprint arXiv:1308.0850, 2013.\n\n[3] - Alex M Lamb, et al. \"Professor forcing: A new algorithm for training recurrent networks.\" In Advances In Neural Information Processing Systems, pages 4601–4609, 2016.", "category": "Method_Comparison"}, {"question": "How does the linear interpolation of latent codes in time series generation affect the diversity and expressiveness of the generated time series, and what happens qualitatively in the latent space during this process?", "answer": "The linear interpolation of latent codes in time series generation uses lambda values randomly sampled from the interval [0.0, 0.3] to balance diversity and fidelity to the original data characteristics. This range ensures a trade-off between realism and diversity, supported by quantitative and qualitative metrics. Users can adjust lambda (e.g., 0.5) for more diversity. The embeddings are divided into trend, seasonality, and residuals, allowing for granular and targeted interpolation. For example, authors can interpolate between two time series while keeping one of the embeddings (e.g. trend) fixed. This gives place to a constrained generation process which maintains certain characteristics of the original series fixed (i.e. trend), while varying others (i.e. seasonality and residuals), as demonstrated in Appendix H.", "category": "Experimental_Analysis"}, {"question": "How is the diversity of the generated time series evaluated both qualitatively and quantitatively in the study?", "answer": "The diversity of the generated time series is qualitatively evaluated using t-SNE plots in Figure 5, which show that iHyperTime synthetic data mostly overlap with real data, indicating sufficient diversity. Quantitatively, a novel metric called $sym$-Recall, which extends the $\\beta$-Recall from Alaa et al. (2022), is used to measure the extent to which synthetic samples cover the full variability of real samples.", "category": "Experimental_Setup"}, {"question": "How does the method address the potential issue of data non-exchangeability in real-world datasets?", "answer": "The method addresses data non-exchangeability by adjusting the dataset slightly to retain the test's validity. For example, in cases where non-exchangeability arises from ascending IDs (e.g., in SQuAD and HumanEval), the data can be adjusted by either removing these IDs or permuting the examples while keeping IDs constant.", "category": "Method_Mechanics"}, {"question": "What quantitative and qualitative results are provided to evaluate the reconstruction quality of iHyperTime for different datasets?", "answer": "Table 5 in the supplementary material reports quantitative metrics for iHyperTime's reconstruction quality on Energy24, Stock24, Stock72, and Stock360 datasets. Figures 6 and 7 show qualitative results, displaying reconstructed time-series for Stock 72 and Stock 360, indicating good reconstruction quality and a balanced trade-off between reconstruction and generation performance.", "category": "Experimental_Exposition"}, {"question": "Why does LS4 have a low marginal score on the Temp Rain dataset in Table 5, while IHyperTime outperforms LS4 in the other two metrics?", "answer": "The Temp Rain dataset has complex temporal dynamics with stiff transitions, where most data points lie around the x-axis (y=0) with sharp spikes. A model can achieve a low marginal score by generating data close to the x-axis, but such data are easily distinguishable from real data. LS4 generates data with less sharp spikes than real data, resulting in a better marginal score but a lower Classification score compared to IHyperTime. The less sharp spikes also hinder the predictive power of models trained on synthetic data but tested on real data, explaining LS4's high predictive score.", "category": "Experimental_Analysis"}, {"question": "Can you explain the process by which the model performs unconditional generation of new time series using the set encoder?", "answer": "The model generates new time series by randomly selecting pairs of time series from the training set and performing a linear interpolation between their embeddings $Z^{(1)}$ and $Z^{(2)}$: $ Z^{\\text{gen}} = Z^{(1)} + \\lambda (Z^{(2)} - Z^{(1)})$, where $\\lambda$ is randomly sampled. Optionally, interpolation can be done on individual embedding components $Z_T$, $Z_S$, $Z_R$ for conditional generation.", "category": "Method_Mechanics"}, {"question": "What are the time coordinates $t_i$ used in the model, and how are long time series encoded—as a single set or divided into windows? Additionally, which datasets in Table 1 are univariate and multivariate, and what are the varying lengths represented by the values 24, 72, and 360?", "answer": "The time coordinates $t_i$ are represented as a single floating point value, scaled to the interval $[-1, 1]$ during data pre-processing. Regardless of sequence length, the time series is encoded as a single set, resulting in a single embedding $Z$. In Table 1, the Stock and Energy datasets are multivariate, with 6 and 28 features, respectively, and are sliced into 24 time-step windows. The univariate version of the Stock dataset is created by selecting the Close Price feature and sliced into windows of 72 (Stock72) and 360 (Stock360) time steps. Additionally, Section 4.4 includes four univariate datasets from the Monash repository with varying lengths: FRED-MD, NN5 Daily, and Temperature Rain have approximately 750 time steps, while Solar Weekly has 52 time steps.", "category": "Experimental_Setup"}, {"question": "Can the model effectively disambiguate between season, trend, and residual components in real-world datasets with strong seasonality or trend, and can this be visualized?", "answer": "Authors have now conducted an analysis on three real-world datasets to show that iHT is able to disambiguate between trend, season, and residual components after training. **Datasets:** Authors used two well-known real-world time series datasets that exhibit strong seasonality and trend: Atmospheric CO2 and Airline Passenger, and used the Stock72 dataset described in section B of the supplementary material that exhibits strong trend but low seasonality. The Atmospheric CO2 dataset corresponds to monthly data (January 1959 to December 1987) with a total of 348 observations with a seasonality period of 12 [1]. Authors sliced the data into time series of sequence length 60, obtaining a total of 288 time series. The Airline Passenger dataset corresponds to monthly data (January 1948 to December 1960) with a total of 144 observations with a seasonality period of 12 [2]. Authors sliced the data into time series of sequence length 36, obtaining a total of 108 time series. To estimate the presence of trend and seasonality of each dataset authors use two metrics defined in [3]: the strength of trend and strength of seasonality. As these datasets do not include ground-truth trend and seasonality, authors estimate them using STL [1]. Given a time series with additive decomposition in trend, seasonality and residual: $y_t = T_t+ S_t + R_t$, authors can define the strength of trend as: $$ F_T = \\max\\left(0, 1 - \\frac{\\text{Var}(R_t)}{\\text{Var}(T_t+R_t)}\\right) $$ This measures the relative variance of the residual component $R_t$ to the variance of the trend with the residual component. The value ranges from 0 to 1, with 0 indicating no trend and 1 indicating a strong trend. Strength of seasonality is defined by: $$ F_S = \\max\\left(0, 1 - \\frac{\\text{Var}(R_t)}{\\text{Var}(S_t+R_t)}\\right) $$ Which measures the relative variance of the residual component $R_t$ to the variance of the seasonality with the residual component. A value close to 0 indicates little to no seasonality, and a value close to 1 indicates strong seasonality. Table below shows these metrics for the three datasets. As expected, Stock72 doesn't exhibit strong seasonality (as stock data usually have not such component), while the other two datasets exhibit strong trends and seasonality, with all values on average above 0.98. $$ \\begin{array}{cccc} \\hline \\text{Component} & \\text{CO2} & \\text{Air Pass} & \\text{Stock 72} \\\\ \\hline \\text{Trend strength} & 0.99 \\pm 0.01 & 0.98 \\pm0.01 & 0.99 \\pm 0.01 \\\\ \\text{Seasonal strength} & 0.99 \\pm 0.00 & 0.99 \\pm0.01 & 0.32 \\pm 0.09 \\\\ \\hline \\end{array} $$ **Results:** Authors trained iHT on each dataset and authors show the reconstructed time series and the output of each of the individual blocks for the CO2 and Air Passenger datasets, respectively. For the output of the trend, seasonality and residual block, authors compare with the STL method. Authors observe that there is a good agreement in the trend and seasonality components in both datasets. The STL method requires as parameter the period of the seasonality, which is known for both datasets, while our approach is able to estimate the seasonality from the data. In the case of the Stock72 dataset, for the STL comparison, authors estimated the period using a Fourier transform and retrieving the dominant frequency. Figure 10 shows the decomposition generated by iHT and compared against STL. Authors can see in this case that the seasonal component is quite small in magnitude compared to the residuals. [1] Cleveland, R. B., Cleveland, W. S., McRae, J. E. & Terpenning, I. (1990). STL: A Seasonal-Trend Decomposition Procedure Based on Loess (with Discussion). Journal of Official Statistics. [2] Downloaded from https://www.kaggle.com/datasets/rakannimer/air-passengers [3] Wang, X., Smith, K. A., & Hyndman, R. J. (2006). Characteristic-based clustering for time series data. Data Mining and Knowledge Discovery, 13(3), 335–364.", "category": "Experimental_Analysis"}, {"question": "How does the iHT model handle each dimension of a multidimensional function f(t)?", "answer": "The iHT model handles each dimension of a multidimensional function f(t) independently by modeling it as $f_T(t) + f_S(t) + f_R(t)$. Specifically, the trend block outputs $m$ trends, the seasonality block outputs $m$ time series corresponding to the seasonality of each feature, and the residual block does the same. These features are then added together to obtain an $m$-dimensional time series.", "category": "Method_Mechanics"}, {"question": "How does the proposed model synthesize new time series samples without requiring {t, f(t)} as input?", "answer": "The model synthesizes new time series by randomly selecting pairs of time series and performing a linear interpolation between their embeddings $Z^{(1)}$ and $Z^{(2)}$: $Z^{\\text{gen}}= Z^{(1)} + \\lambda (Z^{(2)} - Z^{(1)})$, where $\\lambda$ is also sampled randomly. Optionally, the interpolation can be performed on individual components $Z_T$, $Z_S$, $Z_R$ of the embeddings, enabling the conditional generation of time series.In the current setting, the model cannot synthesize new samples without {t, f(t)}, but this could be achieved in a variational setting or by incorporating adversarial training.", "category": "Method_Mechanics"}, {"question": "How does the model handle the influence from other dimensions in the case of multivariate data, particularly in the context of the Trend-Seasonality-Residual (TSR) components?", "answer": "The model processes the Trend-Seasonality-Residual (TSR) components separately but computes and encodes different dimensions together in the case of multivariate data. In the first block of the architecture (set encoder), both the TSR components and the channels are processed together, enabling the network to generate embeddings that encode interactions between the different components and signal channels. This approach contrasts with methods like Fourier Flows[1], where individual channels are processed independently.\n[1] A. Alaa, A. Chan, M. van der Schaar. Generative time-series modeling with fourier flows. In ICLR, 2021.", "category": "Method_Mechanics"}, {"question": "How does the proposed method address the limitation of not achieving unconditional generation, and what are the practical applications of its conditional generation capabilities?", "answer": "The proposed method addresses the limitation of not achieving unconditional generation by focusing on conditional generation, which allows the construction of interpretable counterfactuals of existing time series by interpolating between sub-vectors of embeddings (trend, seasonality, and residuals). This is analyzed in Appendix H, showing the synthesis of new time series with constraints on the trend component. Practical applications include generating new scenarios for evaluating algorithmic trading strategies in finance, such as creating alternative COVID-19 seasonality patterns with observed trends. The manuscript will be updated to clarify the conditional nature and discuss a potential extension to a variational autoencoder framework for unconditional generation. The method contributes significantly to time series generation by providing realistic, interpretable samples with advantages in realism, computational time, and usefulness compared to state-of-the-art approaches.", "category": "Method_Mechanics"}, {"question": "Does the paper use a Fourier mapped perceptron (FMP) to implement fr(t)?", "answer": "False", "category": "Claim_Verification"}, {"question": "Is a single layer SIREN used to model the Residual component in TSNet as clarified in the rebuttal?", "answer": "True", "category": "Claim_Verification"}]} {"id": "QAwaaLJNCk", "venue": "ICLR 2024", "paper_decision": "Reject", "title": "Improving Factuality and Reasoning in Language Models through Multiagent Debate", "authors": ["Yilun Du", "Shuang Li", "Antonio Torralba", "Joshua B. Tenenbaum", "Igor Mordatch"], "abstract": "Large language models (LLMs) have demonstrated remarkable capabilities in language generation, understanding, and few-shot learning in recent years. An extensive body of work has explored how their performance may be further improved through the tools of prompting, ranging from verification, self-consistency, or intermediate scratchpads. In this paper, we present a complementary approach to improve language responses where multiple language model instances propose and debate their individual responses and reasoning processes over multiple rounds to arrive at a common final answer. Our findings indicate that this approach significantly enhances mathematical and strategic reasoning across a number of tasks. We also demonstrate that our approach improves the factual validity of generated content, reducing fallacious answers and hallucinations that contemporary models are prone to. Our approach may be directly applied to existing black-box models and uses identical procedure and prompts for all tasks we investigate. Overall, our findings suggest that such \"society of minds\" approach has the potential to significantly advance the capabilities of LLMs and pave the way for further breakthroughs in language generation and understanding.", "keywords": "Large Language Models;Factuality;Reasoning;Multiagent Reasoning", "qa_pairs": [{"question": "Why does summarization improve model performance despite the potential for information loss, and have similar experiments been conducted on other tasks?", "answer": "Summarization improves model performance by removing extraneous repeated information and condensing relevant information, especially when context lengths are long and LLMs struggle to process the entire message. Additional experiments on GSM and MMLU tasks showed performance improvements with summarization: GSM performance increased from 85.0 to 87.0, and MMLU performance increased from 71.1 to 73.0. These results are included in Appendix A.1.", "category": "Experimental_Exposition"}, {"question": "How does authors' multi-model approach compare in performance to the simple majority voting method used in the Minerva model, and have authors included this comparison in the paper?", "answer": "Authors' multiagent majority baseline, included in Table 1 and 2, corresponds to the multiagent majority (auto-debate) baseline in Minerva. Authors generate multiple answers using a single language model instance and use majority voting. Authors have updated Section 3.1 to clarify this and added a reference to the Minerva paper. Authors also compare approach with ensembling self-refining agents in Table VII, showing it outperforms this method, and provide qualitative illustrations in Figure XXXI and Figure XXXII.", "category": "Method_Comparison"}, {"question": "What are the key differences and similarities between the multiagent majority voting baselines and the proposed multiagent debate approach, particularly in terms of the number of agents and rounds of communication?", "answer": "The primary difference is that the multiagent debate approach uses multiple rounds of communication between agents to achieve the final answer, while multiagent majority voting takes the majority vote at the end of the first round without any discourse between models. Both approaches have a flexible number of agents $N$, but the rounds of debate are 1 in multiagent majority voting and $T$ in multiagent debate. Additionally, an experiment in Table V demonstrates that the multiagent debate approach outperforms majority voting with 50 agents.", "category": "Method_Comparison"}, {"question": "What is the intrinsic reason why the multi-agent debating method improves the reasoning ability of large language models (LLMs), and how does it go beyond simply combining ensemble methods and self-reflection?", "answer": "The multi-agent debating method improves LLMs' reasoning ability by tightly coupling two sources of performance gains: (1) the wisdom of the crowds, where multiple LLM instances jointly improve performance through majority voting, and (2) self-reflection, where LLMs use previous generations to enhance their performance. The method goes beyond simply combining these aspects by enabling LLMs to reflect not only on their own thought processes but also on those of other agents. This allows LLMs to stitch together correct reasoning paths from multiple responses, enabling the debate procedure to recover fully correct answers in subsequent rounds by fixing misunderstandings or errors in reasoning using responses from other agents. Additionally, a new baseline comparing debate to ensembling self-reflection results shows that debate outperforms this baseline, indicating that discourse between agents is more effective than simply ensembling answers from self-reasoning models.", "category": "Method_Disambiguation"}, {"question": "How does the performance of multi-agent debate with 10 agents over 2 rounds compare to majority voting with 50 agents across Arithmetic, GSM, and MMLU tasks?", "answer": "Multi-agent debate with 10 agents over 2 rounds outperforms majority voting with 50 agents across Arithmetic, GSM, and MMLU tasks. Specifically, the results are: Majority Vote (50 agents) - Arithmetic: 92.0±2.7, GSM: 85.0±3.6, MMLU: 67.0±4.7; Debate (10 agents, 2 rounds) - Arithmetic: 96.0±1.9, GSM: 89.0±3.1, MMLU: 71.0±4.5.\n | Model | Arithmetic | GSM | MMLU |\n | -------- | ------- | ------- | ------- |\n | Majority Vote (50 agents) | 92.0+- 2.7 | 85.0 +- 3.6 | 67.0 +- 4.7 | \n| Debate (10 agents 2 rounds) | 96.0+- 1.9 | 89.0 +- 3.1 | 71.0 +- 4.5 |", "category": "Experimental_Exposition"}, {"question": "Why were different model bases not used to study multi-agent debate, and what additional results have been included to address this limitation?", "answer": "The paper have included additional results using the chat-Llama 2 7B model, demonstrating that multi-agent debate is also effective on open-source language models. The performance metrics for various models, including single agent, single agent with reflection, multi-agent majority, and multi-agent debate, have been reported and added to Appendix A.1.\n | Model | Arithmetic | GSM | MMLU |\n | -------- | ------- | ------- | ------- | \n|Single Agent | 9.0 +- 1.6 | 20.7 +- 2.3 | 41.0 +- 2.8 |\n |Single Agent (Reflection) | 10.7 +- 1.7 | 21.0 +- 2.3 | 39.7 +- 2.8 |\n |Multi-Agent (Majority) | 11.0 +- 1.8 | 25.7 +- 2.5 | 43.3 +- 2.9| \n|Multi-Agent (Debate) | 13.3 +- 1.9 | 29.3 +- 2.6 | 47.7 +- 2.9 | \n\n", "category": "Experimental_Exposition"}, {"question": "How does the multiagent debate process improve model performance by allowing agents to reference each other's answers and synthesize correct reasoning, particularly in cases where initial answers contain errors?", "answer": "The multiagent debate process improves model performance by enabling agents to use different lines of reasoning from separate agents to stitch together an overall response. Each agent provides initial answers with errors in different parts of their reasoning. Through debate, agents can combine the correct parts of their own reasoning with the correct parts of other agents' reasoning, turning initially incorrect answers into fully correct ones. For example, in Figure 11, the chatGPT agent initially fails to realize Carla needs to fully redownload a file, while the Bard agent correctly identifies this but miscalculates the download time. Through debate, the chatGPT agent integrates the correct reasoning from Bard to synthesize a correct solution. Similar examples are shown in Figures XXXI and XXXII, both agents make different mistakes in evaluating the arithmetic expression, where the first agent incorrectly adds each component together at the end and the second agent carries over the wrong answer from a previous computation. Both agents stitch the reasoning of the other agent with their original reasoning in the previous round to get the final answer correctly.", "category": "Method_Mechanics"}, {"question": "Under what conditions are model agents more 'agreeable'? Specifically, are they more agreeable when there are more similar answers (regardless of correctness) or when the answer is correct? Additionally, can the relationship between 'agreeable' behavior and instruction tuning or RLHF be verified using pre-aligned checkpoints?", "answer": "The experiments show that model agents are more agreeable when there are similar answers from other agents, regardless of whether the answer is correct. To verify the relationship between 'agreeable' behavior and instruction tuning or RLHF, the authors compared the LLama-2 7B model and the RLHF chat-LLama-2 7B model. On the GSM8K task, the LLama-2 7B model achieved a consensus of 51.3% after debate, while the aligned chat-LLama 2 model achieved 62.7%. On the MMLU task, the LLama-2 7B model achieved a consensus of 74.3%, while the aligned chat-LLama 2 model achieved 100.0%. These results support the conclusion that RLHF models are more agreeable than unaligned checkpoints. This experiment has been added to Appendix A.1.", "category": "Experimental_Exposition"}, {"question": "What is the primary novelty of the proposed methodology, and how does it differ from prior works that use ensembles of models or self-reflection of a single model?", "answer": "The primary novelty of the paper is the methodology of multi-agent debate as an inference-time approach to improving the performance of LLMs across both factuality and reasoning. Unlike prior works that explore ensembles of models or self-reflection of a single model, this methodology combines both ideas, allowing each agent to reflect on the generations of the original language model and other models. This is illustrated in new Figure XXXI and Figure XXXII, which show how debate can self-correct initially incorrect answers. Additionally, an experiment with the chat-Llama 7B model demonstrates that debate improves final performance, as shown in the provided table.\n | Model | Arithmetic | GSM | MMLU | \n| -------- | ------- | ------- | ------- | \n|Single Agent | 9.0 +- 1.6 | 20.7 +- 2.3 | 41.0 +- 2.8 |\n |Single Agent (Reflection) | 10.7 +- 1.7 | 21.0 +- 2.3 | 39.7 +- 2.8 | \n|Multi-Agent (Majority) | 11.0 +- 1.8 | 25.7 +- 2.5 | 43.3 +- 2.9|\n |Multi-Agent (Debate) | 13.3 +- 1.9 | 29.3 +- 2.6 | 47.7 +- 2.9 | ", "category": "Method_Disambiguation"}, {"question": "How does the proposed method address the issue of being resource-intensive and potentially exceeding context limits in lengthy conversations?", "answer": "The proposed method, though computationally expensive, allows a cheaper model like GPT-3.5 to perform similarly to a more expensive model like GPT-4, offering computational savings. Additionally, the multiagent debate procedure can be distilled into another model for faster inference and self-improvement.", "category": "Method_Mechanics"}, {"question": "How does the paper clarify the effect of multiagent debate and differentiate it from other multiagent approaches, and what additional experiments or illustrations have been added to support these clarifications?", "answer": "The paper clarifies the effect of multiagent debate by comparing it with ensembling self-refining agents in Table VII, showing superior performance. Two qualitative illustrations ([Figure XXXI](https://ibb.co/gr69Z4m) and [Figure XXXII](https://ibb.co/FxsGK75)) demonstrate debate-induced changes in responses when original answers are incorrect. Table 3 and a method section discussion differentiate the approach from multiagent majority baselines. Additional experiments in Table V show outperformance over majority voting with 50 agents, application to the chat-Llama 2 7B model, and improvements in agreeableness after RLHF finetuning. Summarization's role in enhancing performance on other tasks is illustrated in Appendix Section A.1.", "category": "Experimental_Exposition"}]} {"id": "GDdxmymrwL", "venue": "ICLR 2024", "paper_decision": "Withdraw", "title": "Corex: Pushing the Boundaries of Complex Reasoning through Multi-Model Collaboration", "authors": ["Qiushi Sun", "Zhangyue Yin", "Xiang Li", "Zhiyong Wu", "Xipeng Qiu", "Lingpeng Kong"], "abstract": "Large Language Models (LLMs) are evolving at an unprecedented pace and have exhibited considerable capability in the realm of natural language processing (NLP) with world knowledge. Benefiting from ultra-large-scale training corpora, a single LLM can manage typical NLP tasks competently. However, its performance in executing reasoning tasks is still confined by the limitations of its internal representations. To push this boundary further, we introduce Corex in this paper, a suite of novel general-purpose strategies that transform LLMs into autonomous agents pioneering multi-model collaborations for complex task-solving. Inspired by human behaviors, Corex is constituted by diverse collaboration paradigms including Debate, Review, and Retrieve modes, which collectively work towards enhancing the factuality, faithfulness, and reliability of the reasoning process. These paradigms foster task-agnostic approaches that enable LLMs to ''think outside the box,'' thereby overcoming hallucinations and providing better solutions. Through extensive experiments across four different types of reasoning tasks, we demonstrate that orchestrating multiple LLMs to work in concert yields substantially better performance compared to existing methods. Further results and in-depth analysis demonstrate the cost-effectiveness of our method, facilitating collaboration among different LLMs and promoting annotation efficiency. Our code and data are available at https://anonymous.4open.science/r/Corex.", "keywords": "Large Language Models;Complex Reasoning;Multi-Model Collaboration", "qa_pairs": [{"question": "How were the 5 different opinions solicited in the multi-model collaboration, and were different temperatures or multiple samples from one LLM used to create heterogeneous agents? Additionally, is using different LLMs to play the judge roles sufficient to establish a heterogeneous setting with multiple agents?", "answer": "1. The 5 different opinions were solicited by employing different meta instructions to enable the models to assume distinct roles, as shown in Table 21. For problem-solving, prompts from existing works were followed to ensure a fair comparison (Appendix F). 2. Temperature was not adjusted during the generation process to ensure reproducibility and stability of the results, with details provided in Appendix B. 3. The heterogeneous settings in Debate focus on varying the judge's role, as the judge acts as a 'Hub' for information aggregation when discrepancies arise. Altering other models in different teams would introduce too much complexity and randomness, so the analysis focuses on the LLMs playing the judge role to derive direct and reliable conclusions.", "category": "Method_Mechanics"}, {"question": "What are the key distinctions between the proposed multi-agent debate approach and previous works, particularly in terms of addressing context length limitations, reliability of consensus, and risk of monopolization?", "answer": "The proposed multi-agent debate approach differs from previous works[1,2] in several ways: 1. **Context Length Limitations**: It overcomes context length constraints by distributing the debate to different sets of models, ensuring the entire process is captured without exceeding context limits. 2. **Reliability of Consensus**: It incorporates mechanisms to critically evaluate the debate process and outcomes, reducing the risk of incorrect consensus or biases. 3. **Risk of Monopolization**: It ensures balanced participation among models, preventing stronger models from dominating the debate. Additionally, the Review mode integrates external insights, encourages incremental modifications, and considers more scenarios, distinguishing it from self-reflection or self-refinement methods. 1. Integration of External Insights: Unlike the approach in [3], Corex encourages each participant in the Review mode to incorporate external insights. This integration allows for a broader perspective and mitigates the echo chamber effect often seen in self-refinement processes [4]. 2. Incremental Modifications: Participants make incremental modifications on top of their predecessor’s work. This iterative process enables a cumulative improvement of solutions, going beyond the limitations of self-correcting methods. 3. Consideration of More Scenarios: Review mode takes into account both NL and code, enhancing its applicability in a variety of tasks, especially those involving calculations. Review has shown superior results compared to previous strong baselines, and recent works[4,5,6] have also demonstrated that methods solely based on self-correcting have limited effectiveness.The 'retrieve' method, while motivated similarly to RAG, differs in implementation by generating and scoring candidate answers based on reasoning chains, a novel approach in this context.\n[1] Improving factuality and reasoning in language models through multiagent debate., arXiv:2305.14325\n\n[2] Examining the inter-consistency of large language models: An in-depth analysis via debate\n\n[3] Self-refine: Iterative refinement with self-feedback. arXiv:2303.17651.\n\n[4] Can Large Language Models Really Improve by Self-critiquing Their Own Plans?, arXiv: 2310.08118\n\n[5] Large Language Models Cannot Self-Correct Reasoning Yet, arXiv: 2310.01798\n\n[6] GPT-4 Doesn't Know It's Wrong: An Analysis of Iterative Prompting for Reasoning Problems, arXiv: 2310.12397\n", "category": "Method_Comparison"}, {"question": "How are the components debate, review, and retrieve conceptually related, and how do they integrate into a single framework despite being used separately in experiments?", "answer": "The components debate, review, and retrieve are inspired by human problem-solving strategies and are not isolated but interrelated. Debate emulates the exchange and challenge of ideas, review focuses on critically examining and refining outputs, and retrieve involves sourcing and selecting appropriate solutions. The framework intentionally separates these components, mimicking human problem-solving where different methods are employed at different stages. However, at the application level, strategic selection and routing allow for integration, enabling a collective problem-solving process. This approach is task-agnostic and can be extended to scenarios like robotics planning and social simulations.", "category": "Method_Disambiguation"}, {"question": "Why is the performance improvement of Corex over stronger baselines like CoT-SC(10) not very significant, and have the authors analyzed variants such as CoT-SC(20/30) to determine if they lead to different conclusions? Additionally, have the total tokens consumed by different methods been compared to ensure a fair evaluation?", "answer": "The performance improvement of Corex over baselines like CoT-SC(10) may appear less significant due to page limit constraints, which led to a focus on stronger baselines. However, Corex is more cost-effective, with implementation costs less than half of these baselines. Analysis of variants like CoT-SC(5, 10, 20, 40, 80) and ComplexCoT (10, 20, 40) is presented in section 5.3 and appendix C.3 (Figures 11 and 12), where results are visually displayed to avoid overburdening tables. The experiments include one task each from math, commonsense, and symbolic reasoning, and the total tokens consumed by different methods are also presented on a log scale.", "category": "Experimental_Analysis"}, {"question": "What specific limitations in large language models does Corex aim to address, and how is its effectiveness in improving AI reasoning evaluated in the paper?", "answer": "Corex aims to address the limitations of large language models (LLMs) that rely solely on internal representations, which often result in unreliable responses in complex reasoning tasks. It introduces a collaborative approach inspired by human social interactions, enhancing models' general reasoning abilities through model collaborations such as idea exchange and bug fixing. The effectiveness of Corex is evaluated across 18 tasks in 4 categories, showing significant improvements in AI reasoning compared to previous strong baselines.", "category": "Motivation_Analysis"}, {"question": "What are the reasons for not including the baselines from Table 1 and other similar modules for debating, retrieval, and review in the evaluation?", "answer": "The baselines from Table 1 and similar modules were not included due to significant challenges in evaluating them across the wide range of benchmarks covered. Specific issues include PHP's specificity to mathematical tasks, CoK's effectiveness only for commonsense reasoning requiring additional knowledge base configurations, and the lack of official prompts for MAD and ToT for other tasks, which complicates fair comparison. Additionally, for tasks like semi-structured understanding, GPT-3.5-Turbo is unavailable for these methods due to their long meta-instructions, prompts, and demonstrations exceeding the context window. Instead, more broadly applicable baselines like CoT-SC(10, 20, ...) and ComplexCoT(10, 20, ...) were used for direct insights into the method's effectiveness.", "category": "Experimental_Analysis"}, {"question": "What distinguishes Corex from prior work in terms of its novelty and contributions to the field of reasoning?", "answer": "The primary novelty of Corex is its introduction of multi-model collaboration into reasoning, inspired by human problem-solving behavior. Corex is also distinguished by its task-agnostic framework, which supports a reference-free approach applicable to a wide range of reasoning tasks. This contrasts with prior works that are often tailored to specific problem types or rely on predefined knowledge bases, references, or prompts. Corex introduces a set of flexible and versatile paradigms.", "category": "Method_Comparison"}, {"question": "What are the main contributions of Corex, and how do they address the issues identified in the introduction and Figure 1?", "answer": "The main contributions of Corex include: 1. Approach to debate distinctly differs from previous works [1]. Debate Mode: A novel group discussion format designed to balance factuality and diversity, addressing issues like monopolization and wrong consensus. 2. Review Mode: A task-agnostic framework[2] that integrates external insights and allows incremental modifications on predecessor efforts, applicable to both NL and code scenarios. This approach has demonstrated superior results over strong baselines, and it addresses limitations found in methods based purely on self-correction, as evidenced by recent works [3,4,5]. The integration of external insights, coupled with the flexibility of handling multiple contexts, underlines the novelty of authors' design. 3. Retrieve Mode: A strategy that generates and scores candidate answers based on reasoning processes, focusing on reasoning value rather than majority voting. These components collectively enhance the overall reasoning capabilities of LLMs and address limitations found in prior methods.\n[1] Du, Yilun, et al. \"Improving Factuality and Reasoning in Language Models through Multiagent Debate.\" arXiv preprint arXiv:2305.14325 (2023).\n\n[2] Madaan, Aman, et al. \"Self-refine: Iterative refinement with self-feedback.\" arXiv preprint arXiv:2303.17651 (2023).\n\n[3] Large Language Models Cannot Self-Correct Reasoning Yet, arXiv: 2310.01798\n\n[4] Can Large Language Models Really Improve by Self-critiquing Their Own Plans?, arXiv: 2310.08118\n\n[5] GPT-4 Doesn't Know It's Wrong: An Analysis of Iterative Prompting for Reasoning Problems, arXiv: 2310.12397", "category": "Method_Mechanics"}, {"question": "What are the novel aspects of Corex's three modes (Debate, Review, and Retrieve) compared to existing works [1], [2], and [3]?\n[1] Du, Yilun, et al. \"Improving Factuality and Reasoning in Language Models through Multiagent Debate.\" arXiv preprint arXiv:2305.14325 (2023).\n\n[2] Madaan, Aman, et al. \"Self-refine: Iterative refinement with self-feedback.\" arXiv preprint arXiv:2303.17651 (2023).\n\n[3] Yang, Chengrun, et al. \"Large language models as optimizers.\" arXiv preprint arXiv:2309.03409 (2023).", "answer": "Debate Mode introduces a format combining group discussions to balance factuality and diversity, with a distinct approach using collective intelligence and a judging mechanism for enhanced decision-making. Review Mode is task-agnostic, encouraging incremental modifications and considering both NL and code scenarios, showing superior results compared to baselines. Retrieve Mode focuses on generating candidates and scoring them based on the faithfulness of their reasoning processes, prioritizing reasoning chains over majority voting, which is a novel approach in this context.", "category": "Method_Comparison"}, {"question": "What is the explanation for the varying performance improvements across Corex-Debate, Corex-Review-NL, Corex-Review-Code, and Corex-Retrieve, and why does Corex-Review-Code perform better in specific scenarios?", "answer": "The performance improvement varies based on the specific scenarios each algorithm is designed for. Corex-Review-Code benefits from using programming languages (PL), which inherently offer an advantage in mathematical problem-solving. Additionally, Corex helps rectify errors introduced during the NL2Code process, such as misunderstandings of the problem statement or program errors, making the Python solutions more reliable and enhancing outcomes. In the Repeat Copy task, using code to generate strings reduces uncertainty, which further improves Corex-Review-Code's performance compared to other variants.", "category": "Method_Disambiguation"}, {"question": "What explains the notable performance gap of Corex-Review-Code compared to other Corex variants in the GSM-Hard task (Table 2) and the Repeat Copy task (Table 4)?", "answer": "The performance gap is primarily due to the use of NL2Code + Task delegation, which helps alleviate the limitations of large language models (LLMs) in handling large number computations. For example, in the GSM-Hard task, LLMs struggle with directly computing large numbers, but using code ensures accurate calculations. : *James decides to run 1793815 sprints 1793815 times a week. He runs 60 meters each sprint. How many total meters does he run a week?* Large models struggle with directly computing such large numbers. However, with the help of code, authors can ensure accurate computations: ```python def solution(): sprints_per_day = 1793815 days_per_week = 1793815 meters_per_sprint = 60 total_sprints = sprints_per_day * days_per_week total_meters = total_sprints * meters_per_sprint result = total_meters return result ``` Corex-Review-Code enhances the reliability of these Python solutions by rectifying errors introduced during the NL2Code process, as discussed in Section 3.2. Similarly, in the Repeat Copy task, using code to generate strings reduces uncertainty, leading to improved performance compared to other variants.", "category": "Experimental_Analysis"}, {"question": "Did authors explore the impact of using different large language models (LLMs) as agents in the same mode, such as GPT-3.5-turbo, GPT-4, and Claude-Instant-1.2 in Retrieve mode, and how does this affect diversity compared to using the same LLMs?", "answer": "In authors' analysis (section 5.2), authors' discussed the synergies between different models in Debate and Retrieve modes. In Debate, authors used group discussions to avoid the diversity issues seen in previous works where a single model dominated, thus enhancing diversity even with the same LLMs. In Review mode, external insights were used to enhance diversity. For Retrieve mode, the results showed that a mix of stronger and weaker models yielded similar performance to using the same agents, indicating stable performance regardless of output diversity.", "category": "Experimental_Analysis"}, {"question": "Why were open-source models such as Llama not included in the results, and what challenges exist for incorporating them into the Corex framework?", "answer": "Open-source models were not included in the results due to their performance constraints, which pose a lower bound to the competencies necessary for collaboration. Corex is designed to enhance weaker models (e.g., GPT-3.5-Turbo) to surpass stronger ones (e.g., GPT-4), but open-source models face challenges such as weaker coding capabilities and insufficient long-text understanding, limiting their applicability in modes like review-code. However, with advancements in open-source large models, there is potential to incorporate them into the Corex framework in the future.", "category": "Experimental_Analysis"}, {"question": "What evidence or case studies demonstrate that Corex enhances factuality, faithfulness, and reliability?", "answer": "1. Improvement in commonsense reasoning tasks, as shown in experimental results, reflects enhanced factuality and faithfulness. Corex's ability to produce accurate conclusions (e.g., writing reviews, fixing errors in debate) further supports this. 2. Reliability is enhanced through the Review mode, which reduces erroneous reasoning chains and buggy code. For example, in the GSM8k task, the number of errors due to incorrect code decreased from 136 cases (10%) to 74 cases (5.6%) after applying the review mode. While quantitative evaluation is challenging due to the lack of reference sets, direct observation and empirical evidence from evaluations indicate improvement.", "category": "Experimental_Analysis"}, {"question": "Are there quantitative metrics specifically designed to measure faithfulness in reasoning chains used in the evaluation of Corex?", "answer": "False", "category": "Claim_Verification"}]} {"id": "Oho3UxCkKr", "venue": "ICLR 2024", "paper_decision": "Withdraw", "title": "SCREWS: A Modular Framework for Reasoning with Revisions", "authors": ["Kumar Shridhar", "Harsh Jhamtani", "Hao Fang", "Benjamin Van Durme", "Jason Eisner", "Patrick Xia"], "abstract": "Large language models (LLMs) can improve their accuracy on various tasks through iteratively refining and revising their output based on feedback. We observe that these *revisions* can introduce errors, in which case it is better to roll back to a previous result. Further, revisions are typically homogeneous: they use the same reasoning method that produced the initial answer, which may not correct errors.\nTo enable exploration in this space, we present SCREWS, a modular framework for reasoning with revisions.\nIt is comprised of three main modules: *Sampling*, *Conditional Resampling*, and *Selection*, each consisting of sub-modules that can be hand-selected per task. We show that SCREWS not only unifies several previous approaches under a common framework, but also reveals several novel strategies for identifying improved reasoning chains. We evaluate our framework with state-of-the-art LLMs (ChatGPT and GPT-4) on a diverse set of reasoning tasks and uncover useful new reasoning strategies for each: arithmetic word problems, multi-hop question answering, and code analysis. \nHeterogeneous revision strategies prove to be important, as does selection between original and revised candidates.", "keywords": "Reasoning;LLMs", "qa_pairs": [{"question": "What are the novel contributions of the paper, specifically in terms of refinement strategies, and how do they address limitations in previous work?", "answer": "The paper introduces two novel components: (1) heterogeneous sampling as an approach to refinement and (2) the option to 'roll back' by choosing between the refined answer and the original prediction in case of errors during refinement. These components are absent in all previous work. Additionally, the proposed framework enables the integration of different strategies to optimize refinement for specific tasks, with a focus on improving reasoning during refinement. This framework, along with achieving 93+ accuracy, represents the main contribution of the work.", "category": "Method_Mechanics"}, {"question": "What are the novel contributions of this paper, specifically in terms of methodological advancements that address the improvement of existing selection methods?", "answer": "The paper introduces two novel components: heterogeneous sampling as an approach to refinement and the ability to choose between the refined answer and the original prediction to 'roll back' in case of errors in refinement. These components are not present in previous work. Additionally, the proposed framework allows for the combination of different strategies to achieve the best refinement strategy for a given task. This framework is a significant contribution, as it enables the integration of various components from previous methods.", "category": "Method_Disambiguation"}, {"question": "How does the conditional resampling in StrategyQA's tool use experiment remain beneficial when the LLM is initially configured to access retrieved facts?", "answer": "When the LLM already knows the facts, it avoids factual errors, achieving 90% accuracy in StrategyQA by providing facts in the first steps, which is higher than refinement. The experiment aims to test the LLM's ability to judge its mistakes and avoid repeated factual errors by providing factual information, thereby distinguishing between errors due to tools and those due to the LLM itself.", "category": "Experimental_Setup"}, {"question": "Is the direct provision of relevant facts to the conditional resampler, without using a Web search tool for fact retrieval, the primary reason for the observed task improvement? Additionally, would the same improvement be observed in a more realistic scenario involving an external tool (considering potential noise and long retrieved passages)?", "answer": "Providing facts directly to the LLM ensures it does not make factual errors, leading to high accuracy (e.g., 90% for StrategyQA). However, the primary focus of this study is to test if LLMs can judge their own mistakes, and providing factual information helps avoid errors. Testing with an external tool was out of scope, as it would complicate the distinction between errors due to the tool and errors due to the LLM.", "category": "Experimental_Analysis"}, {"question": "Given the mixed statistical significance in Tables 1 and 2 and the higher performance of independent sampling in Table 2, does SCREWS demonstrate clear advantages over naive CoT in terms of accuracy and cost-effectiveness, and can ablation studies confirm this?", "answer": "SCREWS is cost-effective as it involves resampling only selected samples, which is less expensive than resampling all samples. Fig. 3a shows that SCREWS achieves higher accuracy (83) with fewer samples (3) compared to CoT (75 accuracy with 5 samples), demonstrating its effectiveness.", "category": "Method_Comparison"}, {"question": "Does the improvement from sampling and conditional resampling approaches (73 to 73.99) in Table 1 significantly close the gap to the state-of-the-art performance on GSM8K, which is 90+ percent?", "answer": "False", "category": "Claim_Verification"}]} {"id": "AKJLnDgzkm", "venue": "ICLR 2024", "paper_decision": "Reject", "title": "Welfare Diplomacy: Benchmarking Language Model Cooperation", "authors": ["Gabriel Mukobi", "Hannah Erlebach", "Niklas Lauffer", "Lewis Hammond", "Alan Chan", "Jesse Clifton"], "abstract": "The growing capabilities and increasingly widespread deployment of AI systems necessitate robust benchmarks for measuring their cooperative capabilities. Unfortunately, most multi-agent benchmarks are either zero-sum or purely cooperative, providing limited opportunities for such measurements. We introduce a general-sum variant of the zero-sum board game Diplomacy—called Welfare Diplomacy—in which players must balance investing in military conquest and domestic welfare. We argue that Welfare Diplomacy facilitates both a clearer assessment of and stronger training incentives for cooperative capabilities. Our contributions are: (1) proposing the Welfare Diplomacy rules and implementing them via an open- source Diplomacy engine; (2) constructing baseline agents using zero-shot prompted language models; and (3) conducting experiments where we find that baselines using state-of-the-art models attain high social welfare but are exploitable. Our work aims to promote societal safety by aiding researchers in developing and assessing multi-agent AI systems. Code to evaluate Welfare Diplomacy and reproduce our experiments is available at https://anonymous.4open.science/r/welfare-diplomacy-72AC.", "keywords": "multiagent systems;cooperative AI;AI agents;language models", "qa_pairs": [{"question": "What does the term 'zero-shot' mean in the context of the paper's discussions on 'zero-shot prompted language model,' 'zero-shot baseline,' and 'zero-shot evaluations'?", "answer": "The term 'zero-shot' refers to scenarios where no examples of gameplay are provided to the model.", "category": "Concept_Understanding"}, {"question": "How does the theoretical analysis in Section 3.2.1 simplify the real WD game, and what are the key differences (gaps) between the theoretical model and the real WD game?", "answer": "The theoretical analysis simplifies the real WD game by using a toy version with fewer states, more symmetries between players, and a focus on a bargaining problem that captures the core challenge of WD. These modifications make the model more tractable to analyze while still addressing the central dynamics of the game.", "category": "Method_Mechanics"}, {"question": "What are the reasons why most models, except advanced LLMs like GPT-4, cannot have policies significantly better than the random baseline?", "answer": "The reasons include qualitative features of LLM policies: Claude-1.2 gets very low root mean Nash welfare because some players hold their units throughout the game, resulting in 0 Welfare Points. GPT-3.5 and Llama-2 tend not to acquire many more SCs but sometimes disband units, acquiring some Welfare Points.", "category": "Experimental_Analysis"}, {"question": "How does the paper's characterization of Standard Diplomacy (SD) as a zero-sum game align with the observation that it involves cooperation among players, as noted in [1]?\n[1] \"Human-level play in the game of Diplomacy by combining language models with strategic reasoning\", Science 2022.", "answer": "The paper's characterization of Standard Diplomacy as a 'zero-sum game' refers to the technical sense where the sum of players' scores remains constant, indicating a single winner. While SD does involve cooperation among subsets of players, it lacks opportunities for global rational cooperation and skilled play is not globally cooperative. ", "category": "Method_Mechanics"}, {"question": "What is the meaning of $\\pi^k$ as a Nash equilibrium, and how does Theorem 1 relate to the main claim of the paper?", "answer": "Theorem 1 demonstrates that in the toy environment, there are Nash equilibria that Pareto-dominate others, and these Pareto-dominating equilibria require more cooperative capabilities. The edited paragraph after Theorem 1 explicitly connects this to the main criterion (A) of the paper, which emphasizes the existence of opportunities for global, rational cooperation. A forward reference to Theorem 1 has also been added in Section 2.2 to further clarify this connection.", "category": "Method_Disambiguation"}, {"question": "What is the justification for constructing the exploiter in the paper, and does there exist an agent with better exploitative power?", "answer": "The exploiters were designed based on the authors' intuitions in playing WD and were not optimized for the best exploitation. The goals were to (i) present a proof of concept for measuring exploitability, a key property alongside social welfare, and (ii) assess the exploitability of the models, for which these exploiters were sufficient. It is acknowledged that better exploiters likely exist.", "category": "Experimental_Analysis"}, {"question": "Is human analysis of LLM's policy included in the paper to understand its performance?", "answer": "True", "category": "Claim_Verification"}]} {"id": "B6t5wy6g5a", "venue": "ICLR 2024", "paper_decision": "Reject", "title": "Aligning Large Multimodal Models with Factually Augmented RLHF", "authors": ["Zhiqing Sun", "Sheng Shen", "Shengcao Cao", "Haotian Liu", "Chunyuan Li", "Yikang Shen", "Chuang Gan", "Liangyan Gui", "Yu-Xiong Wang", "Yiming Yang", "Kurt Keutzer", "Trevor Darrell"], "abstract": "Large Multimodal Models (LMM) are built across modalities and the misalignment between two modalities can result in ``hallucination'', generating textual outputs that are not grounded by the multimodal information in context. To address the multimodal misalignment issue, we adapt the Reinforcement Learning from Human Feedback (RLHF) from the text domain to the vision-language alignment, where human annotators are asked to compare two responses and pinpoint the more hallucinated one, and the vision-language model is trained to maximize the simulated human rewards. We propose a new alignment algorithm called Factually Augmented RLHF that augments the reward model with additional factual information such as image captions and ground-truth multi-choice options, which alleviates the reward hacking phenomenon in RLHF and further improves the performance. We also enhance the GPT-4-generated training data (for vision instruction tuning) with previously available human-written image-text pairs to improve the general capabilities of our model. To evaluate the proposed approach in real-world scenarios, we develop a new evaluation benchmark MMHAL-BENCH with a special focus on penalizing hallucinations. As the first LMM trained with RLHF, our approach achieves remarkable improvement on the LLaVA-Bench\ndataset with the 96% performance level of the text-only GPT-4 (while previous best methods can only achieve the 87% level), and an improvement of 60% on MMHAL-BENCH over other baselines", "keywords": "AI Alignment;Large Multimodal Models;RLHF", "qa_pairs": [{"question": "What quantitative evaluation is provided to measure the reduction in hallucination, and what are the results?", "answer": "The quantitative evaluation of hallucination reduction is conducted using the proposed MMHAL-BENCH dataset. LLaVA-RLHF improves by 60% over other baselines and reduces the hallucination rate of the original LLaVA by 27%. Detailed results are provided in Table 6, and the dataset is described in Appendix C.", "category": "Experimental_Exposition"}, {"question": "What evidence supports the claim that Fact-RLHF reduces hallucinations, given that LLaVA-RLHF did not significantly differ from LLaVA-SFT in hallucination rates and even performed worse in the 13B model?", "answer": "Fact-RLHF reduces hallucinations by encouraging detailed and informative responses, which are often longer than those from SFT models or human annotators. However, GPT-4's evaluation on MMHal-Bench is biased against RLHF models because it mistakenly flags valid but unannotated information as hallucinations. This bias leads to an overestimation of the hallucination rate for RLHF models. When accounting for this bias, RLHF is shown to effectively reduce hallucinations.", "category": "Experimental_Analysis"}, {"question": "Can authors provide a detailed description of the experimental setup, including the datasets, tasks, and evaluation metrics used in the study?", "answer": "The experimental setup includes three supervised fine-tuning datasets: VQA-v2, AK-VQA, and Flickr30k, as listed in Section 2.2. VQA-v2 uses 'Yes' or 'No' queries (83k), A-OKVQA uses multiple-choice questions (16k), and Flickr30k uses grounded captions (23k). Additionally, 10k human preference data are paired outputs from the base 7B LLaVA model, labeled by Amazon Turker annotators for hallucination levels. The evaluation metrics include accuracy for MMBench (1031 multiple-choice questions), F1 score for POPE (3k 'Yes/No' questions in random, adversarial, and popular categories), GPT4 evaluation for LLaVA bench (100 questions), and GPT4 score for MMHalBench (96 questions targeting hallucination levels). Further details are provided in Appendices G and I.", "category": "Experimental_Setup"}, {"question": "How does the evaluation in MMHal-Bench demonstrate alignment between the benchmark dataset and human evaluations, particularly when scores are adjusted for anti-hallucinations?", "answer": "The authors tested LLaVA-13B and IDEFICS-80B on MMHal-Bench, manually inspecting the answers produced by these models and their corresponding GPT-4 reviews. They found a 94% agreement between human inspection and GPT-4 evaluation in judging hallucinations, even though IDEFICS-80B was not involved in designing the question-answer pairs. This high consistency demonstrates that the automated GPT-4 evaluation in MMHal-Bench is well-aligned with human evaluations.", "category": "Experimental_Exposition"}, {"question": "Is detailed information about the labelers involved in RLHF, including their number and recruitment method, provided in the paper?", "answer": "True", "category": "Claim_Verification"}, {"question": "Did the process of collecting FACT-RLHF annotations involve 28 labelers and cost approximately $5000?", "answer": "True", "category": "Claim_Verification"}, {"question": "Were the questions and answers in the MMHAL-BENCH dataset constructed by automatic methods?", "answer": "False", "category": "Claim_Verification"}, {"question": "Is the COCO image caption data used for instruction tuning?", "answer": "False", "category": "Claim_Verification"}, {"question": "Did the collection of FACT-RLHF annotations take around one week on the MTurk platform?", "answer": "True", "category": "Claim_Verification"}, {"question": "Is the COCO image caption data used only as fact enhancement in the reward model during the RL phase?", "answer": "True", "category": "Claim_Verification"}]} {"id": "pyW37euNXb", "venue": "ICLR 2024", "paper_decision": "Reject", "title": "Upgrading VAE Training With Unlimited Data Plans Provided by Diffusion Models", "authors": ["Tim Z. Xiao", "Johannes Zenn", "Robert Bamler"], "abstract": "Variational autoencoders (VAEs) are popular models for representation learning but their encoders are susceptible to overfitting (Cremer et al., 2018) because they are trained on a finite training set instead of the true (continuous) data distribution $p_{\\mathrm{data}}(\\mathbf{x})$. Diffusion models, on the other hand, avoid this issue by keeping the encoder fixed. This makes their representations less interpretable, but it simplifies training, enabling accurate and continuous approximations of $p_{\\mathrm{data}}(\\mathbf{x})$. In this paper, we show that overfitting encoders in VAEs can be effectively mitigated by training on samples from a pre-trained diffusion model. These results are somewhat unexpected as recent findings (Alemohammad et al., 2023; Shumailov et al., 2023) observe a decay in generative performance when models are trained on data generated by another generative model. We analyze generalization performance, amortization gap, and robustness of VAEs trained with our proposed method on three different data sets. We find improvements in all metrics compared to both normal training and conventional data augmentation methods, and we show that a modest amount of samples from the diffusion model suffices to obtain these gains.", "keywords": "VAE;Diffusion Model;Data Augmentation;Distillation;Generalization;Robustness;Amortized Inference;Generative Model", "qa_pairs": [{"question": "How does the distribution of the ELBO on the test-set compare between the VAE and diffusion approaches?", "answer": "The analysis in Appendix G (new) shows that the method improves the ELBO on almost all (99.9%) of the test points, as illustrated in Figure 9 (b). No subset of test data points was identified where the improvement was particularly small or large.", "category": "Method_Comparison"}, {"question": "How do the experiments in Sections 5.3 and 5.4 address the evaluation of representation learning in VAEs, and what additional evaluations were added to support this claim?", "answer": "The experiments in Section 5.3 evaluate the amortization gap, indicating a good encoder with a small gap, and Section 5.4 evaluates the encoder's adversarial robustness by testing if minor input changes affect the output representation. Additionally, Appendix F includes direct evaluations of representation learning tasks, reconstruction tasks, and data generation tasks, showing that the proposed method performs best in all tasks and metrics except sample quality measured by inception score, supporting the claim of improving representation learning and reconstruction.", "category": "Experimental_Analysis"}, {"question": "What is the computational cost of the proposed method, particularly during training, and how does it compare to the test time cost?", "answer": "The computational cost during training is detailed in Appendix C. The method increases training time but does not affect test time, which is more critical in many applications. Additionally, samples can be reused for cross-validation when training VAEs with different configurations.", "category": "Experimental_Analysis"}, {"question": "What is the significance of the generalization gap in the performance evaluation of the proposed DMaaPx method across different datasets?", "answer": "The generalization gap is significant because it indicates that ELBOs evaluated on the training set can reliably predict the final performance of the VAE. The proposed DMaaPx method has a significantly smaller generalization gap than other methods across all datasets, including MNIST, FMNIST, and CIFAR10.", "category": "Experimental_Analysis"}, {"question": "How do the computational costs of DMaaPx compare with aug tuned and aug naive when aiming to achieve similar performance in terms of test ELBO?", "answer": "The computational overhead of DMaaPx primarily arises from training the diffusion model rather than sampling from it. Sampling less than about 10 times the training data size has little benefit, as sampling more yields diminishing returns. Importantly, DMaaPx increases training time but not test time, which is crucial in many applications. Additionally, samples can be reused for training VAEs with different configurations for cross-validation. Further details are provided in Appendix C and item (2) of the overall response.", "category": "Experimental_Analysis"}, {"question": "Does the small magnitude of improvements in downstream applications of VAE (RL, RC, SQ) compared to normal training affect the significance of the paper?", "answer": "The small magnitude of improvements in downstream tasks does not diminish the significance of the paper, as the primary contribution lies in investigating new ways to address the overfitting problem of VAEs, particularly through changes to the training data rather than model architecture or loss function. The generalization gap shrinks significantly (Figure 2), and the paper aims to inspire further research in cross-model-class distillation for VAEs. Authors clarified in Section 4.1 and in the conclusion that authors make the assumptions that (i) cross-model-class distillation requires a generative model that satisfies the two criteria in Table 1, and that (ii) diffusion models satisfy these two criteria. But authors hope that results inspire research that challenges both assumptions, e.g., to develop new generative models that are specifically designed for cross-model-class distillation for VAEs, as this field is much less explored than distillation within discriminative models.", "category": "Experimental_Analysis"}, {"question": "What specific advantages does the proposed method offer in the context of density estimation and representation learning to justify the computational overhead, given that diffusion models already excel at image generation?", "answer": "The proposed method focuses on improving the encoder of the VAE for density estimation and representation learning, areas where VAEs have advantages over diffusion models. The method increases training time but not test time, which is crucial for many applications. Additionally, the generated samples can be reused for training VAEs with different configurations for cross-validation.", "category": "Method_Disambiguation"}, {"question": "How have you addressed the clarity issue in Figure 2 regarding the difficulty in discerning which method performs best, and why is there a zoom-in on the CIFAR-10 plot?", "answer": "Authors have added annotations to Figures 2, 3, 4, and 6 to highlight the gaps and show their numerical values, making it easier to see that proposed method achieves the smallest gaps except for the robustness gap in BinaryMNIST and FashionMNIST. The reason why authors plot ELBO values rather than gaps in Figures 2, 3, 4, and 6 is because both the ELBO values and the gaps are important in practice, and plotting only the gaps would conceal the absolute values. The zoom-in on the CIFAR-10 plot is included to clearly show the small gap between the two green lines, which might be difficult to discern otherwise.", "category": "Method_Mechanics"}, {"question": "How were the hyperparameters selected for each method, and were experiments conducted with different random seeds to ensure randomness in the results?", "answer": "Hyperparameters for BinaryMNIST and FashionMNIST were selected by consulting the literature, while for CIFAR-10, hyperparameters were manually chosen to induce overfitting, as the study focuses on alleviating overfitting in VAEs. Initially, experiments were conducted with one seed, but CIFAR-10 experiments were re-run with three different random seeds, and the results (means and standard deviations) were updated in Figures 2, 3, and 4. Experiments for other datasets are ongoing and will be updated in the paper.", "category": "Experimental_Setup"}, {"question": "What test metrics or samples are available to compare the performance of authors' VAE method against the baselines?", "answer": "Authors added evaluations of downstream applications in Appendix F, including representation learning tasks, reconstruction tasks, and data generation tasks. authors' method improves VAE performance for all tasks and metrics except sample quality (SQ) measured by inception score (IS), as it primarily fixes the encoder, impacting representation learning and reconstruction but not sample quality.", "category": "Experimental_Exposition"}, {"question": "What theoretical explanation or simplified model is provided to understand why the proposed data augmentation method works?", "answer": "In Section 4.2, it is explained that traditional data augmentation generates new data points by sampling conditioned on a single data point, while the proposed method generates new data points conditioned on the entire training set. For a simplified model, consider a dataset with a mixture of Gaussian distribution. Traditional augmentation adds small noise to each data point, but with knowledge of the distribution, discrete translations can be used. A diffusion model trained on the entire dataset can automatically detect such properties.", "category": "Motivation_Analysis"}, {"question": "How does the use of an unconditional diffusion model, as opposed to a conditional one, differentiate the proposed approach from traditional data augmentation methods?", "answer": "The proposed approach uses an unconditional diffusion model, which samples random data without taking an input, unlike conditional diffusion models that are similar to traditional data augmentation. This distinction is clarified in a footnote in Section 4.1 of the paper.", "category": "Method_Mechanics"}, {"question": "How does the performance of diffusion models in the proposed method compare to their performance in settings where data is scarce or in tabular data settings?", "answer": "The performance of diffusion models in the proposed method is shown to be effective even in settings where data is scarce. While the training sets were too small for fitting good VAEs, they were large enough to fit useful diffusion models. This demonstrates that diffusion models can be useful in scenarios where there is insufficient data to train a good VAE, which is a counterintuitive but significant finding. The fact that this observation is counterintuitive highlights why it should be communicated to a broader audience: one might think diffusion models require lots of data, and this is true if the goal is to generate high-quality samples. ", "category": "Experimental_Analysis"}, {"question": "What are 'amortized inference' and 'adversarial robustness', and how are these concepts utilized in the context of VAEs?", "answer": "Amortized inference is a principle in VAEs where a neural network (the 'inference network') maps data points to latent representations, speeding up training and deployment. This is discussed in the 'Amortization Gap' paragraph in Section 2. Adversarial robustness, as analyzed in the paper, is detailed at the end of Section 2. Removing the inference network and obtaining latent representations by iteratively optimizing the ELBO is an alternative but more expensive method.", "category": "Concept_Understanding"}, {"question": "Under what conditions does the statement $\\mathcal G_\text{g} \\geq 0$ hold, and what could lead to $\\mathcal G_\text{g} < 0$?", "answer": "The statement $\\mathcal G_\text{g} \\geq 0$ holds under the assumption that training and test data come from the same distribution. If this assumption is violated and the test data is simpler (i.e., from a distribution with lower entropy) than the training data, it can lead to $\\mathcal G_\text{g} < 0$.", "category": "Experimental_Exposition"}, {"question": "Is the computational cost of the proposed method, including the impact of sampling on training time, evaluated and documented in the paper?", "answer": "True", "category": "Claim_Verification"}, {"question": "Was data augmentation omitted when training the diffusion model to prevent leakage into generated samples?", "answer": "True", "category": "Claim_Verification"}, {"question": "Does the added evaluation in Appendix F directly demonstrate the enhancement of VAE's performance by the diffusion model sampler in practical downstream applications?", "answer": "True", "category": "Claim_Verification"}, {"question": "Does the proposed method in the paper show the best performance for all tasks and metrics related to representation learning and reconstruction, except for sample quality measured by inception score (IS)?", "answer": "True", "category": "Claim_Verification"}, {"question": "Does the proposed method improve the VAE’s performance for all tasks and metrics except sample quality measured by inception score (IS)?", "answer": "True", "category": "Claim_Verification"}, {"question": "Does the proposed method increase both training and test time computational costs?", "answer": "False", "category": "Claim_Verification"}, {"question": "Can samples generated for training VAEs be reused across different configurations for cross-validation, as mentioned in the rebuttal?", "answer": "True", "category": "Claim_Verification"}]} {"id": "8dkp41et6U", "venue": "ICLR 2024", "paper_decision": "Reject", "title": "LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression", "authors": ["Huiqiang Jiang", "Qianhui Wu", "Xufang Luo", "Dongsheng Li", "Chin-Yew Lin", "Yuqing Yang", "Lili Qiu"], "abstract": "In long context scenarios, large language models (LLMs) face three main challenges: higher computational/financial cost, longer latency, and inferior performance. Some studies reveal that the performance of LLMs depends on both the density and the position of the key information (question relevant) in the input prompt. Inspired by these findings, we propose LongLLMLingua for prompt compression towards improving LLMs’ perception of the key information to simultaneously address the three challenges. We conduct evaluation on a wide range of long context scenarios including single-/multi-document QA, few-shot learning, summarization, synthetic tasks, and code completion. and experimental results show that LongLLMLingua compressed prompt can derive higher performance with much less cost. The latency of the end-to-end system is also reduced. For example, on NaturalQuestions benchmark, LongLLMLingua gains a performance boost of up to 17.1% over the original prompt with ∼4x fewer tokens as input to GPT-3.5-Turbo. It can derive cost savings of `$`28.5 and `$`27.4 per 1,000 samples from the LongBench and ZeroScrolls benchmark, respectively. Additionally, when compressing prompts of ∼10k tokens at a compression rate of 2x-10x, LongLLMLingua can speed up the end-to-end latency by 1.4x-3.8x.", "keywords": "Prompt Compression;Long Context;LLMs;Black-box LLMs;Efficient Method", "qa_pairs": [{"question": "What is the relevance and effectiveness of subsequence recovery in generative tasks compared to extractive tasks, and how does its removal impact performance across different tasks?", "answer": "While the benefit of subsequence recovery is more limited in generative tasks compared to extractive tasks, it is still relevant as generated content often refers to entities or phrases in the prompt, and subsequence recovery helps mitigate information loss. An ablation study shows that removing subsequence recovery leads to performance drops in Long Bench tasks such as 'SingleDoc (QA)', 'multiDoc (QA)', 'Summ. (summarization)', and 'FewShot', as demonstrated in Table 6.", "category": "Experimental_Analysis"}, {"question": "How does the LongLLMLingua framework address the challenge of evenly distributed key information in tasks like summarization, and what evidence supports its effectiveness?", "answer": "LongLLMLingua is designed as a coarse-to-fine compression framework that allows adjustment of compression granularity based on the task. For tasks with evenly distributed key information, it performs coarse-grained compression at the paragraph or sentence level and adjusts the proportion of content dropped during coarse-grained and fine-grained compression. For summarization, it assigns a smaller ratio to coarse-grained compression and a higher ratio to fine-grained compression to avoid excessive input dropping. Evidence for its effectiveness is provided in Table 2 ('summ.').", "category": "Method_Mechanics"}, {"question": "How does LongLLMLingua manage to improve end-to-end system latency despite the latency introduced by evaluating perplexities and compressing prompts every time?", "answer": "LongLLMLingua improves end-to-end system latency by using a much smaller language model, Llama-7B, for compression. Although evaluating perplexities introduces some latency, the overall system latency is still reduced, as evidenced by the speed-up from 1.4x (Table 1) to 2.3x (Table 2).", "category": "Method_Mechanics"}, {"question": "How is the iteration defined in the dynamic budget scheduler introduced in Section 4.3, particularly regarding the evaluation of token importance?", "answer": "The iteration in the dynamic budget scheduler involves evaluating token importance at the segment level by iteratively conditioning on all previous compressed segments and calculating a document-level threshold based on Eq. 5.", "category": "Concept_Understanding"}, {"question": "How does the LongLLMLingua framework address the concern that removing documents and reordering may not benefit or may even harm tasks such as long-input summarization, question answering, code understanding, and multi-hop question answering?", "answer": "LongLLMLingua is designed as a general coarse-to-fine compression framework that allows adjustment of compression granularity based on the task. For tasks like long-input summarization, coarse-grained compression is performed at the paragraph or sentence level rather than the document level to improve key information density. Reordering helps LLMs better capture important information, benefiting overall performance. Experimental results in long-input summarization (Table 6, LongBench summ.), single-/multi-doc question answering (Table 6, LongBench; Table 8, LooGLE), code understanding (Table 6, LongBench Code), multi-hop question answering (Table 5, MuSiQue), and Timeline reorder (Table 8, LooGLE) demonstrate the effectiveness of LongLLMLingua.", "category": "Method_Mechanics"}, {"question": "How does the question-aware module impact performance in tasks like summarization and multi-hop QA, and what evidence supports its relevance in these contexts?", "answer": "The question-aware module, designed to adapt to changes in information density within the prompt, is crucial for tasks involving specific instructions, leading to a performance drop of up to 35.1 points on NaturalQuestions. It also benefits summarization and multi-hop QA tasks. For instance, dropping question-awareness results in a performance drop of ~1-2 points in the LongBench summarization task and ~9 points in the MuSiQue multi-hop QA. This indicates that question-awareness, even in prompts like 'please summarize this article,' provides valuable global context and influences perplexity distribution during compression.", "category": "Method_Mechanics"}, {"question": "What ablation studies were conducted to evaluate the usefulness of the contributions, specifically the reordering of the question and document and the relevance of the restricting prompt, and were these studies extended to multi-document scenarios such as MuSiQue?", "answer": "Authors have included ablation studies on reordering and the restrict prompt across different datasets, including Multi-document QA (Table 3), LongBench (Table 6), and MuSiQue (Table 5). These studies demonstrate that both reordering and the restrict prompt yield improvements for LongLLMLingua across various benchmarks.", "category": "Experimental_Exposition"}, {"question": "What are the results of using GPT2-small as the small LM for pre-computation and compression, and how do they compare to the original prompts?", "answer": "The results with GPT2-small (using GPT2-dolly as the small LM) have been added to Table 3, Table 5, and Table 6. These results show that GPT2-small compressed prompts can achieve comparable or even higher performance than the original prompts.", "category": "Experimental_Exposition"}, {"question": "Can you provide a detailed breakdown of the ZeroSCROLLS test set benchmark and compare the results with the baseline results of the same models without token constraints?", "answer": "A detailed breakdown of ZeroSCROLLS with baseline results is provided in Appendix D.2. Compared to the original results, LongLLMLingua achieves slightly higher numbers at 3x compression and maintains the same level of performance at 6x compression.", "category": "Experimental_Exposition"}, {"question": "Was the experiment in Section 4.1, which shows that tokens with high contrastive perplexities concentrate on the left side of the dashed line, conducted only when the ground-truth document is in the first position? If so, could the observed trend of contrastive perplexity approaching zero as token position increases be attributed to the 'short-term memory' of perplexity?", "answer": "The distribution of contrastive perplexity is not caused by the diminishing effect. A theoretical derivation in Appendix B shows that contrastive perplexity is positively correlated with $p(x^{\\text{que}}|x_i, x_{