arXiv:2608.30426cs.CLAug 2026

Manuscript Offprint

arXiv:2608.30426

Learning to Reason and Use Tools through Unsupervised Fine-Tuning in Task-Oriented Dialog Systems

Markel Ferro, Oier Lopez de Lacalle

Aprendiendo a razonar y usar herramientas mediante fine-tuning no supervisado en sistemas de diálogo orientados a tareas

Markel Ferro, 1^{1} Oier Lopez de Lacalle 1^{1}

1^{1}HiTZ Center - Ixa, University of the Basque Country UPV/EHU

{markel.ferro, oier.lopezdelacalle}@ehu.eus

Abstract: Current dialogue systems struggle with dynamic information retrieval, often leading to hallucinations and lower response accuracy. We address this by adapting the ReAct framework for Task-Oriented Dialogue, enabling Large Language Models (LLMs) to access external knowledge and produce factual responses. Mainly, we propose an unsupervised fine-tuning pipeline that harvests reasoning trajectories via in-context learning inference. High-quality samples are filtered using an LLM-based judge to construct a robust training set. This is enhanced by a unsupervised self-improvement loop, where improved checkpoints generate increasingly better trajectories for subsequent fine-tuning iterations. Experiments on the SIMMC dataset demonstrate that ReAct-based systems outperform baselines due to superior reasoning and tool use. Notably, our fine-tuned 8B model surpasses a 70B in-context system. Finally, we present an error analysis, impact of scene complexity, and cross-domain generalization.

Keywords: Dialog Systems, Natural Language Generation, Unsupervised Learning.

Resumen: Los sistemas de diálogo actuales tienen problemas con la recuperación dinámica de información, causando alucinaciones y menor precisión. Abordamos este problema adaptando ReAct al Diálogo Orientado a Tareas, permitiendo a los Grandes Modelos de Lenguaje (LLM) usar conocimiento externo y generar respuestas fácticas. Proponemos un proceso de fine-tuning no supervisado que recopila trayectorias de razonamiento mediante inferencia de modelos adaptados en contexto. Un juez LLM filtra las muestras de alta calidad para construir un conjunto de entrenamiento robusto. Esto se potencia con un bucle de automejora no supervisado, donde los checkpoints refinados generan trayectorias superiores para iteraciones posteriores. Experimentos en SIMMC demuestran que los sistemas ReAct superan a los modelos de referencia gracias a un mejor razonamiento y uso de herramientas. Destacamos que nuestro modelo de 8B ajustado supera a un sistema en contexto de 70B. Finalmente, analizamos los errores, la complejidad de la escena y la generalización multidominio.

Palabras clave: Sistemas de Diálogo, Generación de Lenguaje Natural, Aprendizaje No Supervisado.

1 Introduction

Task-oriented Dialogue (TOD) systems aim to accomplish predefined tasks, such as booking a flight or retrieving product information, through natural language interactions with users (Wang et al., 2025). Traditionally, these systems followed a modular architecture consisting of separate components for Natural Language Understanding (NLU), Dialogue State Tracking (DST), and Natural Language Generation (NLG), among others (Celikyilmaz, Deng, and Hakkani-Tür,

2018). While effective, modular approaches are inherently complex, susceptible to error propagation between components, and require independent training of each module. Consequently, recent advances in Large Language Models (LLMs) have driven a shift toward end-to-end TOD systems, where generic LLMs are adapted to construct task-specific conversational agents (Yi et al., 2025). Although such models produce fluent and natural responses, they frequently exhibit factual inconsistencies, commonly referred to as hallucinations (Dhuliawala et al., 2023), as they rely solely on the knowledge obtained during training, and lack mechanisms for dynamically accessing real-time information necessary for accurate task completion.

To overcome these limitations, recent research has demonstrated that integrating Chain-of-Thought (CoT) reasoning (Wei et al., 2023) with tool-use in LLMs leads to strong performance in tasks requiring access to external information (Yao et al., 2023). In particular, the ReAct framework employs carefully designed prompting strategies to guide the model through an iterative sequence of thoughts, actions, and observations. Here, thoughts represent the model's internal reasoning process, decomposing a task into subproblems; actions denote external API calls or program executions aimed at solving those subproblems; and observations capture the responses returned by the external tools.

However, adapting the ReAct framework to TOD systems is non-trivial (Elizabeth et al., 2025), as it requires the design of appropriate tools (i.e., actions) and carefully crafted prompting strategies that enable the model to reason effectively, decomposing tasks into subproblems and selecting the correct tools for each. In this paper, we show that such an adaptation is not only feasible but can be improved through a fully unsupervised fine-tuning methodology that enhances the agent's reasoning and tool-use capabilities without human supervision. Our proposed pipeline first derives reasoning trajectories from the training data via In-Context Learning (ICL) inference. The generated trajectories are then filtered using an LLM-based judge, which selects only high-quality instances to construct a dataset for fine-tuning. This approach addresses the starting problem that agents have by autonomously generating and curating its own dataset.

Our evaluation is conducted manually on the SIMMC dataset (Moon et al., 2020; Kottur et al., 2021; Kottur and Moon, 2023), which comprises dialogues centered around objects situated in store environments. We analyze its fashion and furniture domains separately to assess how scene complexity affects system performance. To further investigate how difficulty affects performance, we introduce synthetic, fake, objects to simulate scenarios with increased complexity. In addition, we examine how inefficient reasoning trajectories impact the fine-tuning process in terms of both performance and computational efficiency. Finally, we evaluate the generalization ability of our system by comparing it against alternative approaches on the same dataset tasks. As a result of our experimentation, we find that:

  1. Reasoning and tool use enhance information access in TOD systems. We demonstrate that incorporating explicit reasoning and tool-use mechanisms enables more effective utilization of external knowledge resources compared to approaches where information access is limited to the input context.

  2. Unsupervised iterative self-improvement effectively adapts smaller models. Our proposed fine-tuning pipeline enables 8B-parameter models to match or even surpass the performance of their 70B-parameter counterparts. This result is particularly significant, as it provides the deployment advantages of smaller models (reduced computational cost and resource requirements) without compromising performance.

  3. The proposed approach exhibits robust performance in complex scenarios. In settings with high scene complexity, characterized by a large number of objects, prompting-based methods experience a more rapid degradation in performance compared to our ReAct-based approach.

  4. Fine-tuning on reasoning trajectories yields strong cross-domain generalization. We demonstrate that previous fine-tuning approaches often achieve in-domain performance through overfitting, resulting in poor transfer to unseen domains. In contrast, our methodology promotes better generalization across domains, effectively mitigating overfitting.

Figure

Figure 1: A diagram illustrating the ReAct LLM system as it processes a task. The system takes an Instruction prompt, Dialog history, and a User query as inputs. It then generates the Final Answer through an iterative sequence of Thoughts, Actions, and Observations.