Paper Reading AI Learner

Logic Sketch Prompting : A Deterministic and Interpretable Prompting Method

2025-12-24 09:20:35
Satvik Tripathi

Abstract

Large language models (LLMs) excel at natural language reasoning but remain unreliable on tasks requiring strict rule adherence, determinism, and auditability. Logic Sketch Prompting (LSP) is a lightweight prompting framework that introduces typed variables, deterministic condition evaluators, and a rule based validator that produces traceable and repeatable outputs. Using two pharmacologic logic compliance tasks, we benchmark LSP against zero shot prompting, chain of thought prompting, and concise prompting across three open weight models: Gemma 2, Mistral, and Llama 3. Across both tasks and all models, LSP consistently achieves the highest accuracy (0.83 to 0.89) and F1 score (0.83 to 0.89), substantially outperforming zero shot prompting (0.24 to 0.60), concise prompts (0.16 to 0.30), and chain of thought prompting (0.56 to 0.75). McNemar tests show statistically significant gains for LSP across nearly all comparisons (p < 0.01). These results demonstrate that LSP improves determinism, interpretability, and consistency without sacrificing performance, supporting its use in clinical, regulated, and safety critical decision support systems.

Abstract (translated)

大型语言模型(LLMs)在自然语言推理方面表现出色,但在需要严格遵守规则、确定性和可审计性的任务上仍然不可靠。逻辑草图提示法(LSP)是一种轻量级的提示框架,它引入了类型化的变量、确定性条件评估器以及基于规则的有效验证机制,能够生成可追溯和重复的结果。 通过两个药理学逻辑合规的任务,我们在Gemma 2、Mistral 和 Llama 3这三种开源权重模型上,将LSP与零样本提示(zero-shot prompting)、链式思维提示(chain of thought prompting)和简洁提示(concise prompting)进行了基准测试。在所有任务和模型中,LSP始终获得最高的准确率(0.83 到 0.89)和 F1 分数(0.83 到 0.89),远远优于零样本提示(0.24 到 0.60)、简洁提示(0.16 到 0.30)以及链式思维提示(0.56 到 0.75)。麦克尼马尔检验表明,在几乎所有比较中,LSP都表现出显著优势(p < 0.01)。 这些结果证明了 LSP 可以提高确定性、可解释性和一致性,而无需牺牲性能。因此,它在临床、受监管和安全性至关重要的决策支持系统中的应用得到了支持。

URL

https://arxiv.org/abs/2512.22258

PDF

https://arxiv.org/pdf/2512.22258.pdf


Tags
3D Action Action_Localization Action_Recognition Activity Adversarial Agent Attention Autonomous Bert Boundary_Detection Caption Chat Classification CNN Compressive_Sensing Contour Contrastive_Learning Deep_Learning Denoising Detection Dialog Diffusion Drone Dynamic_Memory_Network Edge_Detection Embedding Embodied Emotion Enhancement Face Face_Detection Face_Recognition Facial_Landmark Few-Shot Gait_Recognition GAN Gaze_Estimation Gesture Gradient_Descent Handwriting Human_Parsing Image_Caption Image_Classification Image_Compression Image_Enhancement Image_Generation Image_Matting Image_Retrieval Inference Inpainting Intelligent_Chip Knowledge Knowledge_Graph Language_Model LLM Matching Medical Memory_Networks Multi_Modal Multi_Task NAS NMT Object_Detection Object_Tracking OCR Ontology Optical_Character Optical_Flow Optimization Person_Re-identification Point_Cloud Portrait_Generation Pose Pose_Estimation Prediction QA Quantitative Quantitative_Finance Quantization Re-identification Recognition Recommendation Reconstruction Regularization Reinforcement_Learning Relation Relation_Extraction Represenation Represenation_Learning Restoration Review RNN Robot Salient Scene_Classification Scene_Generation Scene_Parsing Scene_Text Segmentation Self-Supervised Semantic_Instance_Segmentation Semantic_Segmentation Semi_Global Semi_Supervised Sence_graph Sentiment Sentiment_Classification Sketch SLAM Sparse Speech Speech_Recognition Style_Transfer Summarization Super_Resolution Surveillance Survey Text_Classification Text_Generation Time_Series Tracking Transfer_Learning Transformer Unsupervised Video_Caption Video_Classification Video_Indexing Video_Prediction Video_Retrieval Visual_Relation VQA Weakly_Supervised Zero-Shot