LEXI: Large Language Models Experimentation Interface

Guy Laban, Tomer Laban, Hatice Gunes · DOI

Introduction

The rapid advancement of Large Language Models (LLMs) has opened new frontiers in Human-Agent Interaction (HAI) research. However, social and behavioral scientists often encounter a "technical wall" when attempting to conduct rigorous experiments. Researchers typically face a choice between resource-intensive "do-it-yourself" development or restrictive commercial platforms designed for marketing rather than science. LEXI (Large Language Models Experimentation Interface) is an open-source, GUI-based platform designed to bridge this gap, providing a standardized tool for experimental control, agent prompting, and integrated data collection.

System Architecture and Features

LEXI is structured as a web-based application with a dual-interface design: a comprehensive Researcher Dashboard for study configuration and a high-fidelity Participant Interface for data collection.

The Researcher Dashboard

The dashboard serves as the central hub for experiment management. It allows researchers to define complex experimental designs without writing code. Key functionalities include:

  • Agent Configuration: Researchers can select specific LLMs (e.g., GPT-4), adjust hyperparameters like temperature and top-p, and implement structured prompting. This includes "System Starter" prompts, "First Chat Sentences," and specific prompts to be injected before or after user messages.
  • Experiment Design: The platform supports A/B testing with automated participant allocation and distribution. Researchers can set operational boundaries such as maximum participants, conversations, or messages per session.
  • Integrated Form Builder: LEXI includes a native tool for creating registration forms and psychometric questionnaires (pre- and post-interaction). This ensures that self-reported data is automatically linked to interaction logs.
Figure 1: The hierarchical structure of the LEXI Admin Dashboard, illustrating the management of experiments, agents, and forms.

The Participant Interface

To ensure high ecological validity, the participant interface mimics modern messaging applications. This design choice is intended to trigger natural social behaviors that might be suppressed in traditional survey environments.

  • Real-time Interaction: The interface supports streaming messages and features like "User Annotation," where participants can provide immediate feedback (e.g., "Like" or "Dislike") on specific agent responses.
  • Accessibility: The UI is mobile-friendly and includes user-centric features such as adjustable font sizes.
Figure 6: The participant-facing chat interface, featuring a conversation with the 'Lexi' agent and integrated feedback mechanisms.

Validation and Proof-of-Concept

The platform was validated through a two-pronged approach: a usability study with researchers and a proof-of-concept (PoC) behavioral experiment.

Researcher Usability

A study involving 14 researchers from both technical (CS/Engineering) and social science backgrounds evaluated LEXI's interface. The platform achieved a high System Usability Scale (SUS) score (Mean = 3.80/5), with participants reporting low mental workload when performing tasks such as setting up A/B experiments.

Proof-of-Concept Study

The authors conducted a study with 100 participants to compare "empathetic" versus "neutral" LLM agents. This generated a dataset of over 3,100 messages. Key findings included:

  • Perception of Agency: Empathetic agents were perceived as having significantly higher agency and "experience" (the capacity for sensation and feeling).
  • Behavioral Engagement: Participants interacting with empathetic agents wrote significantly longer messages (M = 20.34 words) compared to those in the neutral condition (M = 15.20 words) and adopted a more positive linguistic tone.

Discussion and Future Directions

LEXI democratizes HAI research by enabling non-technical researchers to conduct sophisticated experiments. By integrating chat logs with questionnaire data natively, it eliminates the need for manual data stitching across disparate platforms.

Current limitations include a primary focus on OpenAI's API and between-subjects designs. Future development goals include the integration of Hugging Face and other open-source providers, implementing Retrieval-Augmented Generation (RAG), and enhancing agent memory to support longitudinal or within-subjects designs.

LEXI is available as an open-source tool, encouraging community contribution to expand its capabilities for the behavioral science community.

Summary updated

BibTeX
@inproceedings{laban2024lexi,
  author = {Guy Laban and Tomer Laban and Hatice Gunes},
  title = {{LEXI: Large Language Models Experimentation Interface}},
  booktitle = {HAI},
  year = {2024},
  doi = {10.1145/3687272.3688296},
}
Figure