paper-with-me

Papers

Natural Language Embedded Programs for Hybrid Language Symbolic Reasoning

2023-09-19 · Tianhua Zhang, Jiaxin Ge, Hongyin Luo, Yung-Sung Chuang, Mingye Gao, Yuan Gong, Xixin Wu, Yoon Kim, Helen Meng, James Glass

How can we perform computations over natural language representations to solve tasks that require symbolic and numeric reasoning? We propose natural language embedded programs (NLEP) as a unifying framework for addressing math/symbolic reasoning, natural language understanding, and instruction following tasks. Our approach prompts a language model to generate full Python programs that define functions over data structures which contain natural language representations of structured knowledge. A Python interpreter then executes the generated code and prints the output. Despite using a task-general prompt, we find that this approach can improve upon strong baselines across a range of different tasks including math and symbolic reasoning, text classification, question answering, and instruction following. We found that the generated programs are interpretable since they outline the exact reasoning process followed by the program interpreter.

📄 PDF Abstract BibTeX arXiv:2309.10814

Code (1)

luohongyin/langcode 공식 구현 pytorch

Tasks

Instruction FollowingLanguage ModelingLanguage ModellingMathNatural Language UnderstandingQuestion Answeringtext-classificationText Classification

Similar Papers 제목 키워드 기반

Logic-of-Thought: Empowering Large Language Models with Logic Programs for Solving Puzzles in Natural Language

2025-05-22 · Naiqi Li, Peiyuan Liu, Zheng Liu, Tao Dai 외

Solving puzzles in natural language poses a long-standing challenge in AI. While large language models (LLMs) have recently shown impressive capabilities in a variety of tasks, they continue to struggle with complex puzz…

Natural Language Understanding

AST-Based Deep Learning for Detecting Malicious PowerShell

2018-10-03 · Gili Rusak, Abdullah Al-Dujaili, Una-May O'Reilly

With the celebrated success of deep learning, some attempts to develop effective methods for detecting malicious PowerShell programs employ neural nets in a traditional natural language processing setup while others empl…

Deep Learning

Gold-Guided Programmatic Distillation for Financial Reasoning over Hybrid Tables and Text

2026-07-16 · Yun Dong, Erica Zhao, Elana Chen arxiv

Financial question answering over hybrid tabular and textual data may require multi-source reasoning and precise numerical computation. While large language models (LLMs) can generate intermediate reasoning steps, natura…

Question AnsweringProgram Synthesis

AutoIOT: LLM-Driven Automated Natural Language Programming for AIoT Applications

2025-03-07 · Leming Shen, Qiang Yang, Yuanqing Zheng, Mo Li

The advent of Large Language Models (LLMs) has profoundly transformed our lives, revolutionizing interactions with AI and lowering the barrier to AI usage. While LLMs are primarily designed for natural language interacti…

Program Synthesis

Modelling Natural Language, Programs, and their Intersection

2018-06-01 · NAACL 2018 6 · Graham Neubig, Miltiadis Allamanis

As computers and information grow a more integral part of our world, it is becoming more and more important for humans to be able to interact with their computers in complex ways. One way to do so is by programming, but …

Semantic ParsingText Generation