paper-with-me

Papers

Adaptable Logical Control for Large Language Models

2024-06-19 · Honghua Zhang, Po-Nien Kung, Masahiro Yoshida, Guy Van Den Broeck, Nanyun Peng

Despite the success of Large Language Models (LLMs) on various tasks following human instructions, controlling model generation at inference time poses a persistent challenge. In this paper, we introduce Ctrl-G, an adaptable framework that facilitates tractable and flexible control of LLM generation to reliably follow logical constraints. Ctrl-G combines any production-ready LLM with a Hidden Markov Model, enabling LLM outputs to adhere to logical constraints represented as deterministic finite automata. We show that Ctrl-G, when applied to a TULU2-7B model, outperforms GPT3.5 and GPT4 on the task of interactive text editing: specifically, for the task of generating text insertions/continuations following logical constraints, Ctrl-G achieves over 30% higher satisfaction rate in human evaluation compared to GPT4. When applied to medium-size language models (e.g., GPT2-large), Ctrl-G also beats its counterparts for constrained generation by large margins on standard benchmarks. Additionally, as a proof-of-concept study, we experiment Ctrl-G on the Grade School Math benchmark to assist LLM reasoning, foreshadowing the application of Ctrl-G, as well as other constrained generation approaches, beyond traditional language generation tasks.

📄 PDF Abstract BibTeX arXiv:2406.13892

Code (1)

joshuacnf/Ctrl-G 공식 구현 pytorch

Tasks

MathText Generation

Similar Papers 제목 키워드 기반

Logic-Parametric Neuro-Symbolic NLI: Controlling Logical Formalisms for Verifiable LLM Reasoning

2026-01-09 · Ali Farjami, Luca Redondi, Marco Valentino arxiv

Large language models (LLMs) and theorem provers (TPs) can be effectively combined for verifiable natural language inference (NLI). However, existing approaches rely on a fixed logical formalism, a feature that limits ro…

Natural Language Inference

Large Language Models based Multi-Agent Framework for Objective Oriented Control Design in Power Electronics

2024-06-18 · Chenggang Cui, Jiaming Liu, Junkang Feng, Peifeng Hui 외

Power electronics, a critical component in modern power systems, face several challenges in control design, including model uncertainties, and lengthy and costly design cycles. This paper is aiming to propose a Large Lan…

The Morphology-Control Trade-Off: Insights into Soft Robotic Efficiency

2025-03-20 · Yue Xie, Kai-Fung Chu, Xing Wang, Fumiya Iida

Soft robotics holds transformative potential for enabling adaptive and adaptable systems in dynamic environments. However, the interplay between morphological and control complexities and their collective impact on task …

Computational Efficiency

MHINDR -- a DSM5 based mental health diagnosis and recommendation framework using LLM

2025-09-30 · Vaishali Agarwal, Sachin Thukral, Arnab Chatterjee arxiv

Mental health forums offer valuable insights into psychological issues, stressors, and potential solutions. We propose MHINDR, a large language model (LLM) based framework integrated with DSM-5 criteria to analyze user-g…

Generative Psycho-Lexical Approach for Constructing Value Systems in Large Language Models

2025-02-04 · Haoran Ye, Tianze Zhang, Yuhang Xie, Liyuan Zhang 외

Values are core drivers of individual and collective perception, cognition, and behavior. Value systems, such as Schwartz's Theory of Basic Human Values, delineate the hierarchy and interplay among these values, enabling…

BenchmarkingDecision Making