Advances in Automatically Rating the Trustworthiness of Text Processing Services

Biplav Srivastava, Kausik Lakkaraju, Mariana Bernagozzi, Marco Valtorta

Abstract: AI services are known to have unstable behavior when subjected to changes in data, models or users. Such behaviors, whether triggered by omission or commission, lead to trust issues when AI works with humans. The current approach of assessing AI services in a black box setting, where the consumer does not have access to the AI's source code or training data, is limited. The consumer has to rely on the AI developer's documentation and trust that the system has been built as stated. Further, if the AI consumer reuses the service to build other services which they sell to their customers, the consumer is at the risk of the service providers (both data and model providers). Our approach, in this context, is inspired by the success of nutritional labeling in food industry to promote health and seeks to assess and rate AI services for trust from the perspective of an independent stakeholder. The ratings become a means to communicate the behavior of AI systems so that the consumer is informed about the risks and can make an informed decision. In this paper, we will first describe recent progress in developing rating methods for text-based machine translator AI services that have been found promising with user studies. Then, we will outline challenges and vision for a principled, multi-modal, causality-based rating methodologies and its implication for decision-support in real-world scenarios like health and food recommendation.

Introduction

Modern AI is increasingly delivered as modular services via APIs, where the underlying code and training data remain hidden from the consumer. This "black box" delivery model creates a significant trust gap. Users and developers integrating these services must rely on the provider's own documentation—such as model cards—which often lack standardized rigor and objective third-party validation.

This problem is exacerbated by the emergence of "AI supply chains." When a developer builds a new service by stacking multiple third-party APIs, biases or reliability issues in a single component (e.g., a machine translation service) can propagate through the entire chain. To address this, we propose a framework for automatically rating AI trustworthiness, analogous to nutrition labels on food, providing consumers with the information needed to manage risk effectively.

Methodology

The core of our approach is a black-box rating methodology that subjects AI services to controlled, independent evaluations. We focus on three primary areas: translation services, service composition, and causal analysis.

The 2-Step Rating for Translators

For machine translation, we utilize a two-stage testing process to categorize system behavior based on input sensitivity.

The 2-step rating methodology for machine translation services.
  • Stage 1 (T1): The system is provided with unbiased input. If the output exhibits bias, the system is rated as a Biased System (BS).
  • Stage 2 (T2): Systems that pass T1 are given biased input. If the system reflects that bias in its output, it is categorized as a Data-Sensitive Biased System (DSBS). If it successfully corrects or ignores the bias, it receives the highest rating: Unbiased Compensated System (UCS).

Sequential Composition Logic

In modular AI environments, it is essential to understand how trust ratings aggregate. We introduce a "calculus of trust" to determine the rating of a chained service (Service A → Service B) based on the ratings of its individual components.

Composition logic for determining the aggregate rating of chained AI services.

Causal Modeling and Automated Checkers

To move beyond simple correlation, we propose using Pearl’s causal frameworks for sentiment analysis. By treating protected attributes (like race or gender) as variables, we can statistically test if these attributes are the direct cause of changes in sentiment scores. Additionally, for chatbots, we employ automated "checkers" to scan for abusive language, information leakage, and dialog complexity, aggregating these into a profile-based trustworthiness score.

Datasets

Our rating methods were validated using several key datasets:

  • Equity Evaluation Corpus (EEC): Comprising 8,640 English sentences, this corpus is used to test for gender and race bias in sentiment analysis.
  • U.S. Bureau of Labor Statistics (BLS) Data: We compare gendered pronoun frequency in translations against real-world labor statistics to identify occupational bias.
  • Synthetic Data: We emphasize the use of independent synthetic data generators to stress-test systems without relying on the developer's own training sets.

Key Results and Insights

Our research highlights that trust should not be a binary metric. Much like nutrition labels, AI ratings communicate specific behavioral properties, allowing users to choose tools appropriate for their context.

Initial studies using the 2-step method revealed significant gender bias in popular translation services, particularly regarding occupations. Furthermore, our analysis of sentiment systems showed that up to 75% of systems exhibit score variations when names or genders are swapped. Preliminary user studies indicate that providing these standardized ratings significantly increases user confidence and enables more informed decision-making.

Conclusion and Future Work

While our current work focuses on text, significant challenges remain. Future research must address the complexity of multimodal services (audio and image) and the scaling of ratings to agentic AI systems. Furthermore, establishing legally enforceable and socially relevant semantics for "High" or "Medium" trust scores is a critical next step for the industry.

Summary updated

BibTeX
@inproceedings{srivastava2024advances,
  author = {Biplav Srivastava and Kausik Lakkaraju and Mariana Bernagozzi and Marco Valtorta},
  title = {{Advances in Automatically Rating the Trustworthiness of Text Processing Services}},
  booktitle = {AI Ethics},
  year = {2024},
  url = {https://openreview.net/forum?id=jiVn16gGRw},
}
Figure