SALA: Semantic-Aware Logical Alignment for Complex Reasoning in In-Context Learning
cs.AI, cs.CL
Submitted: 2026-09-02
Updated: 2026-09-02
Comments: Accepted for publication in Findings of EMNLP 2026
Code: https://github.com/ByteDance-Seed/seed-oss
License: http://creativecommons.org/licenses/by/4.0/
The gist: Effective in-context learning (ICL) for complex reasoning relies on selecting the right demonstrations.
Terminology
Abstract
Effective in-context learning (ICL) for complex reasoning relies on selecting the right demonstrations. Traditional retrieval methods based on surface similarity fail to capture the underlying problem-solving logic. Recent logic-based methods address this by matching predefined reasoning steps, but the rigid rules and exact-match criteria is improper to handle flexible or diverse reasoning processes. To address the problem, we propose SALA, a Semantic-Aware Logical Alignment framework. Instead of relying on a fixed inventory, SALA automatically learns task-specific reasoning operations. It then embeds these operations into a continuous semantic space and uses dynamic time warping (DTW) to align the reasoning sequences. This approach allows for soft, flexible matching of reasoning logic while remaining highly interpretable. Experiments across four reasoning benchmarks and three LLMs demonstrate that SALA outperforms existing demonstration selection methods. Further analysis confirms the roles of the operation induction and the logical semantic alignment.
Sources
- GPT-4 Technical Report
- Qwen Technical Report
- Training Verifiers to Solve Math Word Problems
- The Llama 3 Herd of Models
- ReasoningBank: Scaling Agent Self-Evolving with Reasoning Memory
- A Comprehensive Capability Analysis of GPT-3 and GPT-3.5 Series Models
- Llama 2: Open Foundation and Fine-Tuned Chat Models
- Qwen2.5 Technical Report
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems
- VSAL: A Vision Solver with Adaptive Layouts for Graph Property Detection