arXiv:2610.05394cs.CLOct 2026

Manuscript Offprint

arXiv:2610.05394

The Hidden States Cookbook: A Large-Scale Ablation Study for Noise-Robust Conversational Intent Classification in Industry

Bogdan Bogachov, Nikita Letov, Yaoyao Fiona Zhao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Conversational database interfaces face a critical challenge: users naturally embed queries in conversational noise (greetings, politeness, off-topic remarks), which degrades intent classification accuracy and wastes computational resources. Despite advances in orchestration and retrieval strategies, a fundamental question remains unanswered: which pooling strategy maximizes intent classification accuracy under realistic conversational noise in production language models? This work addresses this gap through 360 controlled experiments spanning four pooling configurations (mean, max, last-token, attention, and FFT-augmented variants) using Llama-3.2-1B-Instruct on BANKING77 and CLINC150 datasets under clean/noisy conditions with ten random seeds. Key findings reveal that attention pooling consistently outperforms alternative strategies under noisy conditions ( ≈+2.6−2.8\approx+2.6-2.8 F1 over the default), while mean pooling degrades performance by up to ∼5\sim5 F1 points. Frequency-domain filtering does not produce consistent accuracy improvements and functions primarily as a structural variation rather than an accuracy-enhancing component. These results provide concrete, evidence-based guidance for building noise-robust conversational classifiers: attention pooling is recommended for noisy interfaces, mean pooling should be avoided, and last-token pooling is appropriate for clean-query scenarios.

1 Introduction

The rise of conversational database interfaces powered by Large Language Models (LLMs) has transformed how users access structured and unstructured data. In industrial settings such as manufacturing procurement, users must retrieve part specifications, supplier availability, compliance records, pricing histories, and lead times across heterogeneous databases, where even minor retrieval errors can have significant operational and financial consequences. Rather than writing Structured Query Language (SQL) queries, users increasingly interact conversationally (e.g., “Hey there! Can you pull up sales data from Q4? Thanks!” (Dai et al., 2024; Zhu et al., 2025)).

This conversational paradigm introduces a critical challenge: separating core database intent from conversational noise, including greetings, politeness markers, discourse fillers, and off-topic remarks. In systems such as Universal Query Engine (UQE) (Dai et al., 2024) and PlanGPT (Zhu et al., 2025), failure to isolate intent leads to retrieval mismatches, misrouting across specialized models (Lee et al., 2024), increased Application Programming Interface (API) costs, and degraded user experience. Accurate intent classification is therefore the foundational step for reliable conversational database systems.

Existing approaches address this challenge primarily through architectural orchestration, retrieval optimization, and confidence calibration. Retrieval-augmented generation (RAG) (Lewis et al., 2020), instruction fine-tuning (Han et al., 2025), and multistep reasoning via Chain-of-Thought prompting (Wei et al., 2022) improve downstream reasoning but do not directly resolve representation-level ambiguity introduced by conversational noise.

Despite extensive work on conversational database systems and routing strategies, a fundamental question remains insufficiently studied: how should token-level hidden states be pooled to maximize intent classification accuracy under realistic conversational noise? While mean, max, last-token, and attention-based pooling are widely used, no systematic evaluation isolates their impact in noisy, low-resource conversational LLM deployments typical of industrial settings.

This work addresses this research gap through 360 controlled experiments (10 seeds × nine experimental configurations × two datasets × two noise conditions), systematically evaluating standard pooling strategies and their variants augmented by Fast Fourier Transform (FFT) applied to transformer hidden states. Contrary to widespread practice, attention pooling consistently outperforms alternatives under conversational noise, while mean pooling degrades performance. Frequency-domain filtering yields no consistent accuracy improvements and does not enhance predictive performance relative to standard configurations.

These findings provide production-ready guidance for practitioners building noise-robust conversational database systems, particularly in industrial environments where classification accuracy directly translates to reduced API costs and fewer failed queries. Modular code is publicly available (Bogachov and Letov, 2026).

The remainder of this paper is structured as follows: Section 2 reviews related work on conversational database interfaces, pooling strategies, and frequency-domain methods. Section 3 outlines the method, covering the proposed ablation configurations. Section 4 presents experimental methodology and results. Section 5 provides conclusions and discusses the implications of this work.