paper-with-me

홈 › Papers

Small Agent Can Also Rock! Empowering Small Language Models as Hallucination Detector

2024-06-17 · Xiaoxue Cheng, Junyi Li, Wayne Xin Zhao, Hongzhi Zhang, Fuzheng Zhang, Di Zhang, Kun Gai, Ji-Rong Wen

Hallucination detection is a challenging task for large language models (LLMs), and existing studies heavily rely on powerful closed-source LLMs such as GPT-4. In this paper, we propose an autonomous LLM-based agent framework, called HaluAgent, which enables relatively smaller LLMs (e.g. Baichuan2-Chat 7B) to actively select suitable tools for detecting multiple hallucination types such as text, code, and mathematical expression. In HaluAgent, we integrate the LLM, multi-functional toolbox, and design a fine-grained three-stage detection framework along with memory mechanism. To facilitate the effectiveness of HaluAgent, we leverage existing Chinese and English datasets to synthesize detection trajectories for fine-tuning, which endows HaluAgent with the capability for bilingual hallucination detection. Extensive experiments demonstrate that only using 2K samples for tuning LLMs, HaluAgent can perform hallucination detection on various types of tasks and datasets, achieving performance comparable to or even higher than GPT-4 without tool enhancements on both in-domain and out-of-domain datasets. We release our dataset and code at https://github.com/RUCAIBox/HaluAgent.

📄 PDF Abstract BibTeX arXiv:2406.11277

Code (1)

rucaibox/haluagent 공식 구현 pytorch

Tasks

2kHallucination

Methods 이 논문이 사용한 방법론

Residual Connection 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Adam 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.

Similar Papers 제목 키워드 기반

TinyClick: Single-Turn Agent for Empowering GUI Automation

2024-10-09 · Pawel Pawlowski, Krystian Zawistowski, Wojciech Lapacz, Adam Wiacek 외

We present an UI agent for user interface (UI) interaction tasks, using Vision-Language Model Florence-2-Base. The agent's primary task is identifying the screen coordinates of the UI element corresponding to the user's …

Data AugmentationGPULanguage ModelingLanguage Modelling

Agent Memory Distillation: Empowering Small LLM Agents with Hierarchical Teacher Memory

2026-08-07 · Taeil Kim, Kangsan Kim, Sung Ju Hwang hf

Memory systems have shown promise for improving agent performance, but their potential remains largely unexplored for small language models, which struggle to generate sufficient successful trajectories on their own. We …

BM25 Wins at Scale: A Scaling Study of Retrieval-Augmented Generation Paradigms

2026-07-29 · Pengyu Wang, Benfeng Xu, Shaohan Wang, Xin Zeng 외 arxiv

Retrieval-augmented generation (RAG) spans lexical and dense retrieval, graph-based indexing, and agentic search, but these paradigms are usually evaluated on different benchmarks at one corpus size, leaving their accura…

AI for Porosity and Permeability Prediction from Geologic Core X-Ray Micro-Tomography

2022-05-26 · Zangir Iklassov, Dmitrii Medvedev, Otabek Nazarov, Shakhboz Razzokov

Geologic cores are rock samples that are extracted from deep under the ground during the well drilling process. They are used for petroleum reservoirs' performance characterization. Traditionally, physical studies of cor…

BIG-bench Machine Learning

Small LLMs Are Weak Tool Learners: A Multi-LLM Agent

2024-01-14 · Weizhou Shen, Chenliang Li, Hongzhan Chen, Ming Yan 외

Large Language Model (LLM) agents significantly extend the capabilities of standalone LLMs, empowering them to interact with external tools (e.g., APIs, functions) and complete various tasks in a self-directed fashion. T…

Language ModellingLarge Language ModelTask Planning