cat toy
Language Models as Compilers: Simulating Pseudocode Execution Improves Algorithmic Reasoning in Language Models
Chae, Hyungjoo, Kim, Yeonghyeon, Kim, Seungone, Ong, Kai Tzu-iunn, Kwak, Beong-woo, Kim, Moohyeon, Kim, Seonghwan, Kwon, Taeyoon, Chung, Jiwan, Yu, Youngjae, Yeo, Jinyoung
Algorithmic reasoning refers to the ability to understand the complex patterns behind the problem and decompose them into a sequence of reasoning steps towards the solution. Such nature of algorithmic reasoning makes it a challenge for large language models (LLMs), even though they have demonstrated promising performance in other reasoning tasks. Within this context, some recent studies use programming languages (e.g., Python) to express the necessary logic for solving a given instance/question (e.g., Program-of-Thought) as inspired by their strict and precise syntaxes. However, it is non-trivial to write an executable code that expresses the correct logic on the fly within a single inference call. Also, the code generated specifically for an instance cannot be reused for others, even if they are from the same task and might require identical logic to solve. This paper presents Think-and-Execute, a novel framework that decomposes the reasoning process of language models into two steps. (1) In Think, we discover a task-level logic that is shared across all instances for solving a given task and then express the logic with pseudocode; (2) In Execute, we further tailor the generated pseudocode to each instance and simulate the execution of the code. With extensive experiments on seven algorithmic reasoning tasks, we demonstrate the effectiveness of Think-and-Execute. Our approach better improves LMs' reasoning compared to several strong baselines performing instance-specific reasoning (e.g., CoT and PoT), suggesting the helpfulness of discovering task-level logic. Also, we show that compared to natural language, pseudocode can better guide the reasoning of LMs, even though they are trained to follow natural language instructions.
20 gifts for those who love cats more than people
Best cat gifts 2019: These are the best gifts for anyone who absolutely adores cats. If you make a purchase by clicking one of our links, we may earn a small share of the revenue. However, our picks and opinions are independent from USA Today's newsroom and any business incentives. Being a cat owner is an incredibly fun job to have, whether you've got a sassy cat that enjoys knocking things off tables or a lazy cat who loves laying on your face as soon as you go down to sleep. Cat parents are a proud breed, and while we enjoy receiving socks with cat faces and wacky tongs that have cat paws, opt for more practical gifts for the cat lover on your list this holiday season.
- North America > United States (0.24)
- Asia > Middle East > Republic of Türkiye (0.04)
- Information Technology > Artificial Intelligence > Robots (0.49)
- Information Technology > Communications > Social Media (0.47)