Search arXiv⌕ Search

arXiv subjects

Hadi Hasan

Publications and source records attributed to Hadi Hasan.

5 recordsLinked to original sources

Conflict-Aware Retrieval-Augmented Generation: Knowledge Conflict Detection, Reranking, and Adaptive Context Selection

Retrieval-Augmented Generation (RAG) systems retrieve document chunks by semantic similarity alone, with no mechanism to detect when retrieved chunks contradict each other. We extend a conventional PDF-based RAG system with conflict detection at two pipeline stages: at ingestion time, where a new chunk is compared against similar existing chunks by an LLM-as-a-judge and detected conflicts are resolved by the user before the chunk is admitted, and at retrieval time, where conflicts among top-ranked chunks are surfaced as warnings alongside the answer. We also implement two reranking strategies, a point-wise cross-encoder and a list-wise LLM reranker, and a score-cliff rule that sets context length from cross-encoder scores. The ingestion-time judge reaches an F1 of 81.2% on FEVER and 95.0% on SICK sentence pairs. On multi-claim passages its recall holds near 85% while its precision falls from 92% to 82%, on PDF chunk pairs it attains 95.1% precision and 78.7% recall, and it detects 67.4% of real Wikipedia contradictions. Under the standard TREC-DL protocol, with BM25 retrieval over the full MS MARCO collection, both rerankers raise nDCG@10 from 49.1 to 70.6 and are statistically indistinguishable. The score-cliff rule improves context F1 from 0.57 to 0.64 only after recalibration. End to end, on documents with contradictory revisions, the ingestion check cuts contaminated contexts from 85% to 18% of the affected questions, the list-wise reranker outperforms the cross-encoder by 11.6 points of answer accuracy, and the truncation gain does not carry over to answers.

cs.CL↗

Deterministic Conflict Resolution for Shared Memory in Multi-Agent LLM Systems

Multi-agent language model systems increasingly rely on shared, persistent memory to coordinate specialized agents, yet existing memory mechanisms provide limited support for resolving contradictory writes in a deterministic, auditable manner. Conventional approaches such as last-write-wins, summarization, and model-based judging may overwrite valid information, depend on non-deterministic decisions, or allow repeated unsupported claims to gain legitimacy. This paper presents the Conflict Resolution Tracer (CRT), a deterministic, zero-LLM middleware for conflict resolution and concurrency control in shared agent memory. CRT enforces a fixed write pipeline comprising provenance validation, oscillation detection, per-path locking, evidence-based arbitration, and immutable lineage tracking. Conflicting claims are scored deterministically from recency, middleware-verified evidence confidence, and domain-specific historical trust, with agent-reported confidence excluded from arbitration. When competing claims are insufficiently distinguishable, CRT abstains and preserves both alternatives rather than forcing an arbitrary decision. We evaluate CRT on three heterogeneous benchmarks spanning real-world rumor verification, multi-provider question answering, and synthetic multi-agent memory. Compared with last-write-wins, CRT improves selective accuracy on every track, significantly so only on the synthetic MSM benchmark, and lowers the incorrect-overwrite rate by 67.8% on QACC and 45.3% on MSM while deciding fewer cases. These gains come at the cost of lower coverage, an explicit precision-coverage trade-off introduced by abstention. The results show that deterministic middleware can deliver reproducible, auditable conflict resolution while preserving disputed information and reducing silent state corruption.

cs.AI↗

Comprehensive Benchmarking of Deep Learning Architectures for Lung Cancer Histopathology

Lung cancer remains the leading cause of cancer-related mortality worldwide, while histopathological diagnosis is often affected by inter-observer variability and the substantial workload associated with manual slide examination. Although deep learning has shown considerable potential in computational pathology, comprehensive benchmarks that integrate tissue classification and region segmentation within a unified analytical framework remain limited. This study presents a two-stage deep learning framework for multi-class tissue classification and pixel-level histopathological region segmentation, accompanied by a systematic comparison of state-of-the-art architectures at each stage. For tissue classification, six models, a custom convolutional neural network, VGG16, DenseNet, MobileNetV3, a custom Vision Transformer, and YOLO11, are evaluated on a combined dataset of 39,000 images derived from LC25000 and LungHist700. The models distinguish between adenocarcinoma, squamous cell carcinoma, and normal lung tissue. YOLO11 achieves the best classification performance, with an accuracy of 98.38%, a five-fold cross-validation accuracy of 98.21 +/- 0.35%, and a macro F1-score of 0.98. For region segmentation, U-Net, ResNet-encoder U-Net, DeepLabV3+, and YOLO11-seg are evaluated using the GlaS gland segmentation benchmark. DeepLabV3+ obtains the highest Intersection over Union of 0.80 and a Dice score of 0.89, while YOLO11-seg achieves a comparable Intersection over Union of 0.79 using approximately 14x fewer parameters. The best-performing classification and segmentation models are subsequently integrated into an end-to-end framework, providing an accurate, computationally efficient, and reproducible baseline for automated histopathological image analysis.

cs.CV↗

Toward Trustworthy Large Language Model Agents in Healthcare

Healthcare appointment scheduling remains a persistent operational bottleneck, driven by manual coordination, fragmented legacy systems, and high administrative overhead. These inefficiencies constrain provider availability and degrade patient access to care. This paper presents CareConnect, a safety-first conversational agent for healthcare logistics automation that leverages large language model (LLM) function calling, retrieval-augmented generation (RAG), and layered deterministic safety guardrails. The system orchestrates eight domain-specific tools to support appointment booking, modification, cancellation, and facility information retrieval, while enforcing strict scope constraints that prohibit medical advice or diagnosis. Safety-critical situations are handled through deterministic short-circuit mechanisms for emergency detection and medical intent refusal. We evaluate CareConnect on a comprehensive benchmark of 680 task-oriented scenarios spanning end-to-end workflows, multi-turn interactions, and edge cases. Experimental results demonstrate a 91.8% task completion rate with a median per-request latency of 2.2 seconds, 96.0% safety compliance on the dedicated safety-critical evaluation subset, and an average operational cost of $0.0324 per appointment, yielding a significant cost reduction compared to manual human scheduling. These findings show that carefully scoped and rigorously safeguarded LLM-based agents can reliably automate complex healthcare operational workflows while maintaining safety guarantees and achieving substantial cost efficiency. The source code and system implementation are publicly available at https://github.com/Hadi-Hsn/CareConnect.

cs.AI↗

Human-Robot Interaction using VAHR: Virtual Assistant, Human, and Robots in the Loop

Robots have become ubiquitous tools in various industries and households, highlighting the importance of human-robot interaction (HRI). This has increased the need for easy and accessible communication between humans and robots. Recent research has focused on the intersection of virtual assistant technology, such as Amazon's Alexa, with robots and its effect on HRI. This paper presents the Virtual Assistant, Human, and Robots in the loop (VAHR) system, which utilizes bidirectional communication to control multiple robots through Alexa. VAHR's performance was evaluated through a human-subjects experiment, comparing objective and subjective metrics of traditional keyboard and mouse interfaces to VAHR. The results showed that VAHR required 41% less Robot Attention Demand and ensured 91% more Fan-out time compared to the standard method. Additionally, VAHR led to a 62.5% improvement in multi-tasking, highlighting the potential for efficient human-robot interaction in physically- and mentally-demanding scenarios. However, subjective metrics revealed a need for human operators to build confidence and trust with this new method of operation.

cs.RO↗