Answer Engineering: Local Trajectory Editing for Protocol-Constrained Decision Making in Large Language Models

TL;DR

Answer Engineering uses local trajectory editing to improve protocol compliance in LLMs, boosting SSNHL compliance from 25.1% to 83.5%.

cs.AI 🔴 Advanced 2026-06-19 7 views
Victor Lavrenko Anastasiia Molodnitskaia
Large Language Models Protocol Compliance Local Trajectory Editing Clinical Decision Answer Engineering

Key Findings

Methodology

The paper introduces Answer Engineering, a method applying localized rule-guided interventions during standard autoregressive generation to achieve protocol compliance. This approach does not require retraining or modifying model weights but instead guides the generation process through local trajectory editing. Specifically, rule-guided local interventions correct protocol violations during generation.

Key Results

  • In the SSNHL benchmark, local trajectory editing increased compliance from 25.1% to 83.5%, while compliance in the conductive contrast condition rose from 58.9% to 77.9%.
  • In unguided generation, SSNHL compliance was 54.5%, dropping to 25.1% under step-by-step reasoning baseline.
  • Local trajectory editing raised balanced accuracy from 42.0% under reasoning-only generation to 80.7%.

Significance

This study demonstrates the potential to improve protocol compliance in protocol-driven domains through auditable trajectory control during generation. This is significant for fields requiring strict procedural adherence, such as medical diagnostics and legal advice. This method enhances model reliability and accuracy without altering model architecture.

Technical Contribution

Technically, Answer Engineering provides a mechanism for local intervention during generation, differing from traditional global search or retraining methods. This approach allows protocol compliance without altering model weights, offering new engineering possibilities.

Novelty

Answer Engineering is the first to achieve protocol compliance through local trajectory editing during generation. Unlike existing methods, it does not rely on global search or model weight modification but achieves compliance through local interventions.

Limitations

  • The method's limitation lies in limited rule coverage, which may leave some protocol violations uncorrected.
  • Trigger reliability issues may lead to intervention failures in certain cases.
  • Diagnosis-first generation dynamics may limit protocol compliance in some scenarios.

Future Work

Future research directions include expanding rule coverage, improving trigger reliability, and exploring applications in other protocol-driven domains. Additionally, research could focus on automating rule generation to reduce manual intervention needs.

AI Executive Summary

In protocol-driven domains, large language models often generate confident but non-compliant answers. Existing step-by-step reasoning methods improve structure and transparency but often only shift error distribution rather than eliminate errors. This paper proposes Answer Engineering, a method that improves protocol compliance through local trajectory editing during generation.

In clinical benchmarks, Answer Engineering significantly improved compliance rates for sudden sensorineural hearing loss (SSNHL) and conductive contrast conditions. This suggests that auditable trajectory control during generation can enhance protocol compliance without retraining models or performing global searches.

However, the method also has limitations, such as limited rule coverage and trigger reliability issues. Future research could expand rule coverage and improve trigger reliability to further enhance protocol compliance and explore applications in other fields.

Deep Analysis

Background

Large language models have made significant advances in generating natural language text, but in protocol-driven domains, the generated answers often fail to meet requirements. This is because these models lack strict adherence to protocols during generation. Existing methods, such as step-by-step reasoning and structured reasoning, improve model transparency but still fall short in protocol compliance.

Core Problem

In many fields, such as healthcare and law, procedural compliance is crucial. Large language models often generate answers that do not meet protocol requirements, leading to erroneous decisions. This is because existing methods lack strict adherence to protocols during generation.

Innovation

Answer Engineering achieves protocol compliance through local trajectory editing during generation. This method does not require retraining models or modifying model weights but guides the generation process through local interventions. Compared to existing methods, Answer Engineering offers new engineering possibilities.

Methodology

  • �� Use rule-guided local interventions to correct protocol violations during generation.
  • �� Perform local trajectory editing during generation instead of relying on global search or model weight modification.
  • �� Improve protocol compliance through auditable trajectory control during generation.

Experiments

In the sudden sensorineural hearing loss (SSNHL) benchmark, the effectiveness of Answer Engineering was evaluated. The test used template-generated paired cases and compared under fixed decoding conditions. Results showed that local trajectory editing significantly improved protocol compliance.

Results

Local trajectory editing increased SSNHL compliance from 25.1% to 83.5%, while compliance in the conductive contrast condition rose from 58.9% to 77.9%. Additionally, balanced accuracy improved from 42.0% under reasoning-only generation to 80.7%.

Applications

Answer Engineering can be applied in fields requiring strict procedural adherence, such as medical diagnostics and legal advice. By performing local interventions during generation, it enhances model reliability and accuracy.

Limitations & Outlook

The method's limitation lies in limited rule coverage, which may leave some protocol violations uncorrected. Additionally, trigger reliability issues may lead to intervention failures in certain cases. Future research could expand rule coverage and improve trigger reliability to further enhance protocol compliance.

Plain Language Accessible to non-experts

Imagine you're cooking in a kitchen, following a recipe step by step. A large language model is like a chef who sometimes forgets steps or uses the wrong ingredients. Answer Engineering acts like an assistant, ensuring the chef follows the recipe at every step, not missing any steps. This way, the final dish (answer) is more likely to meet expectations.

ELI14 Explained like you're 14

Imagine you're playing a complex game where you need to follow specific steps to complete tasks. A large language model is like a player who sometimes skips steps or makes wrong choices. Answer Engineering is like a game guide, ensuring the player follows the correct strategy at every step, so they win the game faster!

Glossary

Local Trajectory Editing

Intervening in the reasoning trajectory during generation to ensure protocol compliance.

Used to correct protocol violations during generation.

Protocol Compliance

Generated answers meet the procedural and rule requirements of a specific domain.

Crucial in fields like healthcare and law.

Autoregressive Generation

A method of generating text where each word depends on previously generated words.

Used in text generation by large language models.

Balanced Accuracy

A metric for evaluating model performance, considering accuracy across different classes.

Used to assess the effectiveness of Answer Engineering.

Rule-Guided Intervention

Using predefined rules to intervene during generation.

Ensures protocol compliance during the generation process.

Open Questions Unanswered questions from this research

  • 1 How to automate rule generation to reduce manual intervention needs?
  • 2 What is the effectiveness of Answer Engineering in other protocol-driven domains?
  • 3 How to improve trigger reliability to ensure successful interventions?

Applications

Immediate Applications

Medical Diagnostics

Enhances protocol compliance to help doctors make more accurate diagnostic decisions.

Legal Advice

Ensures generated legal advice meets relevant regulations and procedural requirements.

Long-term Vision

Automated Decision Systems

Achieve automated decision-making across multiple fields, reducing human error and increasing efficiency.

Abstract

Large language models can produce confident but protocol-invalid answers in domains where procedural compliance is critical. This paper presents Answer Engineering, a deterministic runtime and authoring layer that applies localized rule-guided interventions to the visible reasoning trajectory during standard autoregressive generation, without retraining, modifying model weights, or performing global search. The method is evaluated on a controlled clinical benchmark for sudden sensorineural hearing loss (SSNHL), where correct management depends on protocol-consistent interpretation of symptom timing, Weber/Rinne tuning-fork findings, and otoscopic findings. In the benchmark, step-by-step reasoning shifted rather than eliminated errors: compliant outcomes for SSNHL decreased from 54.5% under unguided generation to 25.1%, while acceptance on the conductive contrast condition increased from 1.6% to 58.9%. Local trajectory editing increased SSNHL compliance to 83.5% and conductive-case adherence to 77.9%, raising balanced accuracy from 42.0% under reasoning-only generation to 80.7%. The results support a systems-level view in which protocol adherence can be improved through auditable runtime control of reasoning trajectories, while also identifying limitations caused by rule coverage, trigger reliability, and persistent diagnosis-first generation dynamics.

cs.AI cs.CL