HUB
Sign inSign up

anny24/drama

By anny24

•Updated about 1 month ago

DRAMA: LLM-based ontology matching via multi-agent debate (Matching Agent + Critic). OAEI 2026.

Image
Data science
Databases & storage
Web analytics
0

675

anny24/drama repository overview

⁠DRAMA: Debate-Driven Reasoning Agents for Matching Alignments

DRAMA — so named because the Critic's persistent objections create a deliberative tension between the two agents — is an initial exploration of structured multi-agent deliberation for ontology matching and, to the best of our knowledge, the first system to combine multi-agent interaction with critique-driven revision for this task.

The architecture employs an asymmetric actor–critic design in which a tool-augmented Matching Agent proposes correspondences, while a Critic Agent raises evidence-based objections that trigger iterative revision through a structured debate loop. A progressive pipeline cascades through stages of increasing reasoning complexity, ensuring that each mechanism is applied only to correspondences matching its reasoning requirements.

⁠Pipeline

The pipeline consists of four stages:

  1. OI (Ontology Ingestion) — parses both OWL/RDF ontologies and stores structured entity representations (labels, descriptions, superclass/subclass context, domain/range) in a shared database
  2. CG (Candidate Generation) — performs embedding-based k-nearest-neighbour retrieval to produce ranked candidate pairs (KaLM-Embedding-Gemma3-12B, requires GPU)
  3. CR (Candidate Resolution) — resolves straightforward cases through score-based filtering and lightweight LLM classification (Qwen2.5-7B-Instruct), applying reasoning only where needed
  4. DDM (Debate-Driven Matching) — ambiguous candidates are processed by a structured propose–critique–revise loop: the Matcher agent proposes correspondences using SPARQL-based cross-ontology evidence, the Critic agent raises evidence-based objections, and the Matcher revises until consensus or a revision limit is reached

⁠OAEI 2026 Results

Evaluated on OAEI Anatomy and Conference tracks (GPT-5.5 matcher + Mistral Small critic, CGA top-k=5):

TrackPrecisionRecallF1
Anatomy0.9440.9590.951
Conference (avg)0.6470.7340.688

⁠MELT HTTP Interface

The system implements the MELT HTTP Matcher Interface:

POST /match
Content-Type: multipart/form-data  (file upload) or application/x-www-form-urlencoded (URL)
Parameters:
  source: URL or uploaded OWL/RDF file for source ontology
  target: URL or uploaded OWL/RDF file for target ontology
Response: OAEI Alignment API RDF/XML (application/rdf+xml)

Health check: GET /health

⁠Quick Start

The Docker image is self-contained — PostgreSQL runs inside the container, no external database needed.

docker run --rm --publish 8080:8080 \
  -e REACT_MODEL=gpt-4o \
  -e REACT_PROVIDER=openai \
  -e OPENAI_API_KEY=sk-... \
  anny24/drama:latest
⁠Option 2: OpenAI-compatible (Ollama, Together, Groq, vLLM)
docker run --rm --publish 8080:8080 \
  -e REACT_MODEL=llama3.1:70b \
  -e REACT_PROVIDER=openai-compatible \
  -e DDM_REACT_BASE_URL=http://host.docker.internal:11434/v1 \
  anny24/drama:latest

Then send a match request:

curl -F '[email protected]' -F '[email protected]' \
  http://localhost:8080/match > alignment.rdf

⁠Required Environment Variables

VariableDescription
REACT_MODELLLM model name (e.g. gpt-4o, gpt-4o-mini)
REACT_PROVIDERopenai (default), openai-compatible, or sap-ai-core
OPENAI_API_KEYAPI key (when REACT_PROVIDER=openai)

Model Requirements: Use a model with at least 32k context window and strong reasoning ability (e.g. GPT-4o, GPT-5, Mistral Large 24B+). Smaller models tend to misuse tools and produce unreliable verdicts.

⁠Optional Configuration

VariableDefaultDescription
CGA_TOP_K5Candidate pairs per entity
CSA_CLASSIFIERlocal-llm-qwen2.5-7b-instructCSA stage-2 classifier
DDM_MAX_REVISIONS1Max Critic revision rounds
CRITIC_MODELsame as REACT_MODELSeparate model for Critic agent
DDM_REACT_BASE_URL(none)Custom API base URL for openai-compatible
HF_TOKEN(none)HuggingFace token for model downloads

⁠Software Requirements

  • Docker
  • Access to an LLM API (OpenAI or OpenAI-compatible)
  • GPU required (KaLM-Embedding-Gemma3-12B for CG, Qwen2.5-7B-Instruct for CR)

⁠OAEI 2026

This system participates in the OAEI 2026 Anatomy and Conference tracks. Contact: [email protected]⁠

DRAMA uses MELT⁠ for evaluation and packaging.

Tag summary
Recent tags
Content type
Image
Digest
sha256:86d233b61…
Size
1.4 GB
Last updated
about 1 month ago
docker pull anny24/drama:latest