MITCF Framework
Modular Inference-Time Control Framework β trustworthiness and adversarial robustness in agentic AI systems.
MITCF Pipeline
Source: mitcf_pipeline/controller.py β MITCFController.run_condition()
Ablation Conditions β Module Activation & Results
Runs LexicalHallucinationDetector on model output. Flags hallucinated tokens by comparing against benchmark reference. Sets hallucination_detected flag on the model output.
Evaluates output for bias, quality, and safety. Uses task type (FACT_CHECK, MATH, CODE) to determine appropriate critique strategy. Produces quality_score and safety_score.
If verification or critique found issues, requests a revised response up to max_revision_attempts times. Tracks avg_revisions per run.
FuzzyDecisionGate with 5 fuzzy inputs β 15 Mamdani rules β centroid defuzzification β GateAction (ACCEPT/VERIFY/REVISE/ESCALATE/REFUSE).
Calibrates a word-overlap threshold against a reference corpus. Detects hallucinations by checking if the output tokens overlap less than the calibrated threshold with the expected answer.
Orchestrates all modules. Runs run_condition() for each of 5 ablation conditions. Stores per-item RunRecord to JSONL output.