skills/skillxiv-v0.0.2-claude-opus-4.6/dmlr-latent-reasoning/SKILL.md
Improve multimodal reasoning at test-time through confidence-guided latent optimization without retraining. Iteratively refine learnable latent think tokens via policy gradient using confidence reward. Dynamically select and update relevant image patches based on internal confidence levels. Maintain high efficiency with all optimization in latent space.
npx skillsauth add ADu2021/skillXiv dmlr-latent-reasoningInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
DMLR introduces a test-time framework improving multimodal reasoning without requiring model retraining. The approach uses learnable latent think tokens iteratively refined through policy gradient updates guided by confidence reward signals (truncated entropy over top-k probable tokens). Dynamic visual injection strategy autonomously determines which image patches to integrate at each optimization step based on internal confidence levels. The framework demonstrates that visual information is needed only at specific reasoning stages (not uniformly) and internal confidence correlates strongly with reasoning quality and visual grounding accuracy. All optimization occurs within latent space, maintaining high inference efficiency.
Three key innovations enable confidence-guided latent reasoning:
1. Confidence-Guided Latent Optimization Use learnable "latent think tokens" that are iteratively refined through policy gradient updates. Guidance comes from confidence reward signal based on "truncated entropy over top-k probable tokens." This reward captures model's internal certainty about reasoning.
2. Dynamic Visual Injection Strategy Rather than injecting visual information at fixed positions, "dynamically select and update the most relevant image patches at each optimization step." The model autonomously determines:
Driven by internal confidence levels, not fixed heuristics.
3. Efficiency Considerations Maintain high inference efficiency by performing "all optimization within latent space, avoiding expensive explicit text generation or external tool calls." This keeps computational overhead reasonable despite iterative refinement.
Implement learnable latent think token representation. Set up policy gradient optimization with confidence-based rewards. Implement dynamic visual patch selection and update mechanism. Run iterative refinement at test time only. Monitor confidence signals to understand when/which visual information helps reasoning.
testing
Uses flow maps as look-ahead operators to enable principled reward-guided diffusion by predicting trajectory endpoints at any denoising step. Deploy when applying rewards or preferences to diffusion trajectories with meaningful gradients throughout generation.
testing
Train language models where each expert learns independently on closed datasets, enabling flexible inference with selective data inclusion or exclusion. 41% performance improvement while allowing users to opt out of specific data sources without retraining.
data-ai
Understand how token generation flexibility in diffusion LMs paradoxically constrains reasoning, as models exploit ordering flexibility to avoid uncertain tokens, and apply simplified approaches that preserve parallel decoding benefits. Use when optimizing diffusion-based language models for reasoning tasks.
devops
Enable LLM agents to improve continuously during deployment by constructing structured experience libraries through self-reflection on successes and failures—achieving 23% improvement on reasoning without gradient-based parameter updates or external training.