[Paper Review] Evaluation of RAG Metrics for Question Answering in the Telecom Domain
This paper enhances the RAGAS framework to provide transparent, intermediate outputs for RAG evaluation metrics in telecom QA, demonstrating that Faithfulness and Factual Correctness are the most reliable metrics aligned with expert judgment. It shows domain-adapted LLMs improve metric concordance with human evaluation, especially when both metrics are used jointly.
Retrieval Augmented Generation (RAG) is widely used to enable Large Language Models (LLMs) perform Question Answering (QA) tasks in various domains. However, RAG based on open-source LLM for specialized domains has challenges of evaluating generated responses. A popular framework in the literature is the RAG Assessment (RAGAS), a publicly available library which uses LLMs for evaluation. One disadvantage of RAGAS is the lack of details of derivation of numerical value of the evaluation metrics. One of the outcomes of this work is a modified version of this package for few metrics (faithfulness, context relevance, answer relevance, answer correctness, answer similarity and factual correctness) through which we provide the intermediate outputs of the prompts by using any LLMs. Next, we analyse the expert evaluations of the output of the modified RAGAS package and observe the challenges of using it in the telecom domain. We also study the effect of the metrics under correct vs. wrong retrieval and observe that few of the metrics have higher values for correct retrieval. We also study for differences in metrics between base embeddings and those domain adapted via pre-training and fine-tuning. Finally, we comment on the suitability and challenges of using these metrics for in-the-wild telecom QA task.
Motivation & Objective
- To evaluate the reliability of LLM-based RAG evaluation metrics in the specialized telecom domain.
- To address the lack of transparency in RAGAS metrics by exposing intermediate prompt outputs for interpretability.
- To assess the impact of retriever quality, domain-adapted embeddings, and instruction-tuned LLMs on metric performance.
- To determine which RAGAS metrics best align with expert human evaluation in technical QA tasks.
- To provide a reproducible, transparent evaluation framework for RAG systems in domain-specific applications.
Proposed method
- Extended the RAGAS library to log intermediate LLM outputs for each metric, enabling inspection of reasoning steps.
- Used a subset of the TeleQuAD dataset derived from 3GPP Release 15 documents for telecom-specific QA evaluation.
- Evaluated multiple LLM configurations: base Mistral-7b, fine-tuned via instruction tuning (IFT), and prompt-tuned via pre-training (PT-IFT).
- Applied Bayesian inference to compute joint probabilities of correctness based on metric thresholds (e.g., P(c|m1>0.7, m2>0.7)).
- Conducted manual expert evaluation of RAG responses to establish ground truth for correctness.
- Compared metric performance across retrieval quality (correct vs. wrong context) and embedding types (base vs. domain-adapted).
Experimental results
Research questions
- RQ1How do RAGAS metrics internally evaluate responses through their prompt-based reasoning steps?
- RQ2Are RAGAS metrics suitable for evaluating RAG-based QA in the telecom domain, particularly with domain-specific terminology?
- RQ3How do RAGAS metrics respond to variations in retrieval quality, domain-adapted embeddings, and instruction-tuned LLMs?
- RQ4Can combining multiple metrics (e.g., Faithfulness and Factual Correctness) improve alignment with expert evaluation?
- RQ5To what extent does domain adaptation of the generator LLM affect metric reliability and consistency?
Key findings
- The Faithfulness and Factual Correctness metrics showed the strongest alignment with expert evaluations, outperforming other metrics like Answer Similarity and Context Relevance.
- Joint use of Faithfulness and Factual Correctness improved the probability of correctly identifying correct answers (P(c|m1>0.7, m2>0.7) = 0.97 for Mistral-7b-PT-IFT).
- Instruction fine-tuning of the LLM improved Factual Correctness scores significantly (p<0.05), even when retrieval was incorrect.
- Faithfulness scores decreased for correct answers generated from wrong retrieved contexts, indicating the metric correctly detects out-of-context generation.
- Domain-adapted LLMs (via IFT and PT-IFT) improved both Faithfulness and Factual Correctness, with PT-IFT showing slightly better performance than IFT alone.
- The Answer Similarity metric was found to be unreliable due to its reliance on cosine similarity and lack of semantic grounding, leading to inconsistent interpretations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.