atlas

Research map / Large language models / Language, safety and interpretability

Beyond Prompt Engineering: A Reinforced Token-Level Input Refinement for Large Language Models

AAAI 2025 · Large language models › Language, safety and interpretability · approach: Controlled text generation · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes RTLIR, a reinforcement-learning (Q-learning with dueling decomposition and prioritized replay) token-level input refinement module that decides keep/remove per token to improve LLM accuracy on PAWS-X and LM-Eval tasks.

Problem

Irrelevant information in LLM inputs wastes compute and degrades output quality, and prompt-engineering-based input refinement is context-dependent and biased by expert experience.

Approach

Formulates input refinement as an MDP where each token is a state with a binary keep/delete action, learned by a Q-learning agent using immediate (embedding cosine similarity) and terminal (log-probability improvement) rewards; the module is plug-and-play and LLM-agnostic.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply token-level input refinementLLMs on PAWS-X · PAWS-X Averageaccuracy: 3.25 ± 0.42% ↑; 2.51 ± 0.42% ↑; 11.03 ± 0.41% ↑; 6.51 ± 0.41 % ↑; 6.48 ± 0.42% ↑Helped
Apply token-level input refinementLlama-2 · 14 of 16 task datasetstask metric (accuracy, MCC, F1, or EM)Helped
Use similarity threshold β=0.05 for immediate rewards (ablation)RTLIR · PAWS-X language settingsaccuracy: 10% to 20%Helped
Set the immediate-reward threshold too high or too low (ablation)RTLIR · PAWS-X language settingsaccuracyHurt
Remove terminal rewards (ablation)RTLIR (RTLIR') · Different data setsaccuracy: 10%Hurt
Use terminal rewards (ablation)RTLIR · Different data setsaccuracy: 10%Helped

Surprising findings

Limitations

Experimental setup

Datasets: PAWS-X Language Model Evaluation Harness tasks (16 datasets incl. CoLA, MRPC, QQP, WNLI, SOCIAL IQA, RACE, MMLU subjects, KorMe

Benchmarks: PAWS-X CoLA MRPC QQP WNLI SOCIAL IQA KorMedMCQA RACE MMLU subjects

Metrics: accuracy MCC F1 exact match

Baselines: Origin (unrefined input) prompt engineering

Builds on: Deep Q-learning (dueling network) prioritized experience replay Markov decision process

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy