mlsanityData to 7 Oct 2026

Training-Free Test-Time Contrastive Learning for Large Language Models

arXiv 2604.13552 ↗First posted 15 Apr 2026cs.CL cs.AIcited by 0

On the map: LLM reasoning → Test-time compute and efficient thinking

Abstract (arXiv)

Large language models (LLMs) demonstrate strong reasoning capabilities, but their performance often degrades under distribution shift. Existing test-time adaptation (TTA) methods rely on gradient-based updates that require white-box access and need substantial overhead, while training-free alternatives are either static or depend on external guidance. In this paper, we propose Training-Free Test-Time Contrastive Learning TF-TTCL, a training-free adaptation framework that enables a frozen LLM to improve online by distilling supervision from its own inference experiences. Specifically, TF-TTCL implements a dynamic "Explore-Reflect-Steer" loop through three core modules: 1) Semantic Query Augmentation first diversifies problem views via multi-agent role-playing to generate different reasoning trajectories; 2) Contrastive Experience Distillation then captures the semantic gap between superior and inferior trajectories, distilling them into explicit textual rules; and 3) Contextual Rule Retrieval finally activates these stored rules during inference to dynamically steer the frozen LLM toward robust reasoning patterns while avoiding observed errors. Extensive experiments on closed-ended reasoning tasks and open-ended evaluation tasks demonstrate that TF-TTCL consistently outperforms strong zero-shot baselines and representative TTA methods under online evaluation. Code is available at https://github.com/KevinSCUTer/TF-TTCL.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 32 of its 55 references that are in the map. First posted on arXiv 15 Apr 2026.

Builds on

32 of 55 references.

Closest ancestors · 5

Same direction, newest first

  1. 2025Model Whisper: Steering Vectors Unlock Large Language Models' Potential in Test-time4 Dec
  2. 2025s1: Simple test-time scaling31 Jan
  3. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Models17 May
  4. 2023MoT: Memory-of-Thought Enables ChatGPT to Self-Improve9 May
  5. 2022Large Language Models Can Self-Improve20 Oct

Other references · 27

  1. 2024The Llama 3 Herd of Modelscited by 14,192
  2. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  3. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  4. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  5. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  6. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
  7. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
  8. 2020What Makes for Good Views for Contrastive Learning?cited by 843
  9. 2023ExpeL: LLM Agents Are Experiential Learnerscited by 814
  10. 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 755
  11. 2020Contrastive Learning with Hard Negative Samplescited by 619
  12. 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 598
15 more
  1. 2022Efficient Test-Time Model Adaptation without Forgettingcited by 467
  2. 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 443
  3. 2023A Comprehensive Survey on Test-Time Adaptation under Distribution Shiftscited by 353
  4. 2025Verbalized Sampling: How to Mitigate Mode Collapse and Unlock LLM Diversitycited by 100
  5. 2024AvaTaR: Optimizing LLM Agents for Tool Usage via Contrastive Reasoningcited by 69
  6. 2025Training-Free Group Relative Policy Optimizationcited by 53
  7. 2025ThetaEvolve: Test-time Learning on Open Problemscited by 52
  8. 2024M-RAG: Reinforcing Large Language Model Performance through Retrieval-Augmented Generation with Multiple Partitionscited by 38
  9. 2024Small Models, Big Insights: Leveraging Slim Proxy Models To Decide When and What to Retrieve for LLMscited by 34
  10. 2024Unleashing the Potential of Large Language Models as Prompt Optimizers: Analogical Analysis with Gradient-based Model Optimizerscited by 33
  11. 2024COME: Test-time adaption by Conservatively Minimizing Entropycited by 31
  12. 2024HybGRAG: Hybrid Retrieval-Augmented Generation on Textual and Relational Knowledge Basescited by 26
  13. 2025SLOT: Sample-specific Language Model Optimization at Test-timecited by 17
  14. 2025R2D2: Remembering, Replaying and Dynamic Decision Making with a Reflective Agentic Memorycited by 14
  15. 2025Reinforcement Learning Teachers of Test Time Scalingcited by 10

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Thinking on the Fly: Test-Time Reasoning Enhancement via Latent Thought Policy Optimization
  2. 2026Query-Conditioned Test-Time Self-Training for Large Language Models
  3. 2025Beyond Templates: Dynamic Adaptation of Reasoning Demonstrations via Feasibility-Aware Exploration
  4. 2026Policy of Thoughts: Scaling Test-Time Training for LLM Reasoning via Online Policy Evolution
  5. 2025Reinforcement Fine-Tuning for Reasoning towards Multi-Step Multi-Source Search in Large Language Models
  6. 2026MILES: Modular Instruction Memory with Learnable Selection for Self-Improving LLM Reasoning
  7. 2025Seek in the Dark: Reasoning via Test-Time Instance-Level Policy Gradient in Latent Space
  8. 2026Stabilizing Efficient Reasoning with Step-Level Advantage Selection