<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Megagon Labs on Medium]]></title>
        <description><![CDATA[Stories by Megagon Labs on Medium]]></description>
        <link>https://medium.com/@megagonlabs?source=rss-f26a171ccf87------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FvQdApp5_LJzQz3pxjStVg.png</url>
            <title>Stories by Megagon Labs on Medium</title>
            <link>https://medium.com/@megagonlabs?source=rss-f26a171ccf87------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 21:04:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@megagonlabs/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Trends in Agentic AI and LLM Systems at EACL 2026]]></title>
            <link>https://megagonlabs.medium.com/trends-in-agentic-ai-and-llm-systems-at-eacl-2026-d27b3708c243?source=rss-f26a171ccf87------2</link>
            <guid isPermaLink="false">https://medium.com/p/d27b3708c243</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <dc:creator><![CDATA[Megagon Labs]]></dc:creator>
            <pubDate>Wed, 06 May 2026 15:01:04 GMT</pubDate>
            <atom:updated>2026-05-06T15:01:04.963Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i42pqS9W8rzgRORHM-D0ag.png" /></figure><p>The <a href="https://2026.eacl.org/">19th conference of the European Chapter of the Association for Computational Linguistics</a>(EACL) took place in Rabat, Morocco, from March 24 to 29, 2026. It brought together researchers, practitioners, and industry leaders from around the world. This year marked a significant milestone with it being the first time an African city hosted EACL, reflecting the growing global footprint of the NLP community.</p><p>As is tradition, Megagon Labs proudly sponsored this year’s conference, where our researchers also actively presented their latest works, <a href="https://megagon.ai/verification-aware-planning-multi-agent-llm/">Verification-Aware Planning for Multi-Agent Systems</a> and <a href="https://megagon.ai/agentic-ai-planning-intent-rewriting/">RECAP: Rewriting Conversations for Intent Understanding in Agentic Planning</a>. In this post, we highlight key research trends that stood out at EACL 2026.</p><h3>Agentic AI: Planning, Tool Use, and Self-Improving Agents</h3><p><a href="https://2026.eacl.org/">EACL 2026</a> typified the momentum shift toward agentic AI, where models act as autonomous systems capable of planning, tool use, and multi-step reasoning. The research of <a href="https://aclanthology.org/2026.eacl-long.143.pdf">Elder et al.</a>proposes a benchmark with 2,500+ live, real-world APIs to reflect the growing need to evaluate LLM agents on multi-step tool-calling tasks. The benchmark tests’ end-to-end capabilities including planning, API selection, parameter generation, and execution in realistic, dynamic settings.</p><p>Several works explored how agents can operate and improve in complex environments. <a href="https://aclanthology.org/2026.eacl-long.175.pdf">FormGym</a> introduces a benchmark and environment for LLMs to complete complex, form-heavy workflows (like filling out paperwork), demonstrating an agent’s capabilities in the task across multiple languages and domains. <a href="https://aclanthology.org/2026.eacl-short.23.pdf">Madmoun et al.</a> demonstrate that direct communication between agents, even a one-word “cheap-talk,” dramatically improves communication and cooperation in multi-agent settings. Complementing this, <a href="https://aclanthology.org/2026.findings-eacl.174.pdf">SAGE</a> highlights how execution feedback can improve and better generalize deep-search agents.</p><p>On the evaluation side, <a href="https://aclanthology.org/2026.eacl-long.339.pdf">Komoravolu et al.</a> propose a paradigm of self-improving ecosystems, where a meta-agent is used to test other agents by automatically generating adaptive and adversarial test cases to evaluate conversational agents. Agents are vetted using techniques like code analysis, persona simulation, and LLM-as-a-judge scoring. This method uncovers more diverse and severe failures than human evaluators in significantly less time, producing both quantitative metrics and actionable bug reports for improving agent robustness.</p><p>Together, these works underscore the increasing emphasis on robust evaluation and scalable agentic capabilities in complex environments.</p><h3>Reliability, Hallucination, and Trustworthy AI</h3><p>Another major theme at <a href="https://2026.eacl.org/">EACL 2026</a> was improving the reliability and trustworthiness of large language models, particularly in high-stakes settings. Several works revisited hallucination beyond simple factual inaccuracies. For instance, <a href="https://aclanthology.org/2026.eacl-long.374.pdf">Zheng et al.</a> showed that different prompt components (instructions, examples, formatting) can systematically bias model outputs rather than being “neutral,” demonstrating that prompt design itself is a hidden source of variability and evaluation inconsistency in LLM behavior.</p><p><a href="https://aclanthology.org/2026.eacl-long.327.pdf">Ganesh et al.</a> reframed hallucinations along three dimensions: correctness, consistency, and prompt sensitivity, showing that models can be correct yet inconsistent across prompts. Their work demonstrates that many existing mitigation methods improve one dimension while hurting others, highlighting trade-offs and the need for multi-faceted evaluation. Furthermore, <a href="https://aclanthology.org/2026.eacl-long.287.pdf">HALP</a> proposes a lightweight detection approach that uses a training-free method to detect hallucinations in vision-language models by analyzing internal signals without generating outputs.</p><p>Emphasis on trustworthiness is further reinforced by evaluation-focused work, such as <a href="https://aclanthology.org/2026.eacl-long.106/">Mind the Gap</a>, which highlights calibration gaps in domain-specific settings. Similarly, the claim-verification system <a href="https://aclanthology.org/2026.eacl-demo.27.pdf">SciTrue</a> emphasizes the value of grounding model outputs in verifiable evidence for scientific claim verification, reflecting a broader push toward faithful and accountable AI systems.</p><h3>Retrieval-Augmented Generation and Knowledge Integration</h3><p>Retrieval-augmented generation (RAG) continues to be a key paradigm, with increasing focus on understanding its limitations. <a href="https://aclanthology.org/2026.eacl-long.114.pdf">Zhou et al.</a> analyzed failure modes of Knowledge Graph-based RAG under incomplete or missing graph structures, revealing that current KG-RAG systems are overly dependent on graph completeness and lack robust inferential reasoning. Meanwhile, <a href="https://aclanthology.org/2026.eacl-long.8.pdf">Strich et al.</a>introduced T2-RAGBench, proposing a more comprehensive evaluation setup that combines textual and tabular reasoning in unknown-context settings.</p><p>Such research signals a focus on deeper analysis, considering when and why retrieval improves generation, and where it breaks down in practice.</p><h3>Reasoning, Alignment, and Representation Learning in LLMs</h3><p>Another prominent conference topic was improving reasoning and instruction-following capabilities of LLMs. <a href="https://aclanthology.org/2026.eacl-long.43.pdf">Akter et al.</a> explored how self-learning techniques can generalize beyond narrow domains, with verifiable or template-structured supervision. Meanwhile, <a href="https://aclanthology.org/2026.eacl-long.174.pdf">Venkateswaran et al.</a> proposed a dynamic attention steering mechanism to better align model attention with user instructions. The research did this by explicitly reweighting model focus on instruction-relevant tokens during generation to improve instruction following.</p><p><a href="https://aclanthology.org/2026.eacl-long.318/">Najafi et al.</a> presented MMPO, a simple offline preference optimization method that removes the need for explicit reward models and entropy maximization. Their work shows that such a formulation leads to more stable training than RLHF/DPO baselines while preserving or improving alignment quality and maintaining general language capabilities.</p><p><a href="https://aclanthology.org/2026.eacl-long.32.pdf">Jian et al.</a> studied how linguistic representations evolve in transformer LMs and compared them to theories of human language acquisition, finding that abstract feature structure emerges sequentially during learning, preceding item-specific behavior. Their results highlight abstraction as a key driver of generalization in language acquisition.</p><h3>Personalization, User Modeling, and Conversational Systems</h3><p>Personalization is becoming increasingly important, especially in conversational AI. Research introducing the <a href="https://aclanthology.org/2026.eacl-long.348.pdf">GRAVITY</a> framework proposes generating synthetic preferences grounded in user profiles, enabling more controllable personalization. Similarly, <a href="https://aclanthology.org/2026.eacl-long.369.pdf">BILLY</a> explores persona-based control for creative tasks by merging learned persona vectors, which encode distinct stylistic or behavioral traits, enabling controllable blending of personalities during generation.</p><p><a href="https://aclanthology.org/2026.eacl-long.200.pdf">Ni et al.</a> conducted a comprehensive survey of LLM-based conversational user simulation, categorizing methods across goal modeling, persona conditioning, and interaction strategy design. The research’s key challenges highlighted include realism, controllability, and evaluation, and outlined open-ended problems for building more faithful and task-effective simulated users. <a href="https://aclanthology.org/2026.eacl-long.244.pdf">ConvApparel</a> serves as a benchmark and evaluation framework for user simulators in conversational recommendation systems, focusing on realistic apparel shopping dialogues.</p><p>Additionally, <a href="https://aclanthology.org/2026.eacl-long.363.pdf">Ye et al.</a> addressed long-context memory challenges in dialogue systems, showing that multi-dimensional memory significantly improves coherence, recall of past interactions, and task continuity over long dialogues compared to standard attention-only models. <a href="https://aclanthology.org/2026.eacl-short.20.pdf">Castillo-Lopez et al.</a> proposed data augmentation methods for intent recognition to improve conversational assistants in resolving ambiguous user intents.</p><h3>Keynotes: Expanding the Scope of NLP</h3><p>The keynote talks at <a href="https://2026.eacl.org/">EACL 2026</a> emphasized broadening the scope of NLP across languages, disciplines, and types of scientific inquiry. Nizar Habash reflected on the evolution of Arabic NLP and the importance of building inclusive language technologies. Marta Ruiz Costa-jussà discussed the path toward omnilingual AI, highlighting the need to scale models across thousands of languages. Mariya Toneva introduced the emerging perspective of using large language models as model organisms for studying language in the human brain, bridging NLP and cognitive neuroscience.</p><h3>Closing Thoughts</h3><p>Work presented at <a href="https://2026.eacl.org/">EACL 2026</a> reflected the shift in NLP research away from isolated model improvements and toward more interactive, grounded, and controllable AI systems. Across agentic workflows, retrieval-based reasoning, and alignment-focused learning, the community is increasingly addressing how models act in complex environments. At the same time, there is a growing emphasis on reliability, personalization, and evaluation signals. At EACL and elsewhere in the field of NLP, we see a move toward systems that are not only more capable but also more predictable, adaptable, and aligned with human needs in real-world deployment settings.</p><p>Likewise, at Megagon Labs, we are actively developing <a href="https://megagon.ai/blue/">Blue</a>, an open-source framework for building and deploying applications with agentic workflows for enterprise solutions. Follow us on <a href="https://www.linkedin.com/company/megagon-labs/about/">LinkedIn</a> and <a href="https://twitter.com/megagonlabs">X</a> to learn more about our leading research and innovations in NLP, Machine Learning, and AI, and refer to our <a href="https://megagon.ai/publications/">publications</a> page.</p><p>Written by <a href="https://megagon.ai/our-team/kushan-mitra/">Kushan Mitra</a>, <a href="https://megagon.ai/our-team/estevam-hruschka/">Estevam Hruschka</a>, and <a href="https://megagon.ai/">Megagon Labs</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d27b3708c243" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Verification-Aware Planning
for Multi-Agent Systems]]></title>
            <link>https://megagonlabs.medium.com/verification-aware-planning-for-multi-agent-systems-211d5404f74c?source=rss-f26a171ccf87------2</link>
            <guid isPermaLink="false">https://medium.com/p/211d5404f74c</guid>
            <category><![CDATA[ai-research]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Megagon Labs]]></dc:creator>
            <pubDate>Wed, 04 Mar 2026 22:05:15 GMT</pubDate>
            <atom:updated>2026-03-04T22:05:15.693Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G-dSiJOjTmtJANtFml_FnQ.png" /></figure><p>If you’ve ever watched a multi-agent LLM workflow fall apart, it’s often the handoff, not the “reasoning,” that breaks first.</p><p><a href="https://github.com/megagonlabs/veriMAP"><strong>VERIMAP</strong></a>, a multi-agent framework that builds verification into the plan rather than treating checking as an afterthought.</p><p>The core idea is a centralized planner that decomposes a task into a DAG, enforces structured and named inputs/outputs between agents, and generates per-subtask verification functions (either executable Python checks or natural-language criteria). Executors tackle scoped subtasks, verifiers evaluate all required checks, and a coordinator triggers retries or replanning when something fails.</p><p><strong>What </strong><a href="https://megagon.ai/publications/verification-aware-planning-for-multi-agent-systems/"><strong>the research</strong></a><strong> introduces</strong></p><ul><li>Planner-generated verification functions (VFs) attached to each subtask</li><li>A planning–execution loop where verification gates progress and failures can trigger retries/replanning</li></ul><p><strong>What it demonstrates empirically</strong></p><p>Across five benchmarks (QA, coding, math), the paper reports best accuracy on all five compared to single-agent ReAct and multi-agent baselines (MAP, MAP-V). Reported gains are particularly large on harder settings (e.g., Olympiad-style math and BigCodeBench-Hard), and ablations suggest that replanning helps more when guided by the planner’s VFs than with weaker or fewer iterations.</p><p><strong>How the authors interpret the results</strong></p><p>They argue that VFs created at planning time provide more informative runtime signals than generic “verify this” prompts, supported by VF profiling and error analysis, plus a case study where a Python VF catches a subtle algebra mistake that a natural-language verifier misses. They also note a modest per-task cost increase (~$0.001) from added verification/retries, and discuss limitations (dependence on a strong centralized planner, quality of failure signals for replanning, and assumptions about model/tool access).</p><p><a href="https://megagon.ai/publications/verification-aware-planning-for-multi-agent-systems/">Verification-Aware Planning for Multi-Agent Systems</a> was accepted to EACL 2026. We will be at the conference in Morocco to present it.</p><p>Written by <a href="http://megagon.ai/">Megagon Labs</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=211d5404f74c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When Vision-language models get conflicting Information, Which Signal Does It Trust?]]></title>
            <link>https://megagonlabs.medium.com/when-vision-language-models-get-conflicting-information-which-signal-does-it-trust-ad04e1e62558?source=rss-f26a171ccf87------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad04e1e62558</guid>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Megagon Labs]]></dc:creator>
            <pubDate>Mon, 03 Nov 2025 16:02:12 GMT</pubDate>
            <atom:updated>2025-11-03T16:02:12.038Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*at6EQxzOHfx8k28FExjoTA.png" /></figure><h3>VLMs make hidden choices about textual vs. visual information — and those choices change based on task complexity</h3><p>Imagine you’re analyzing a medical case. You see a chest X-ray that’s completely clear — no signs of disease. But the accompanying radiology report claims there’s clear evidence of pneumonia.</p><p>Which do you believe? The image or the text?</p><p>This isn’t a hypothetical scenario. As vision-language models (VLMs) become integral to healthcare, multi-agent systems, and retrieval-augmented generation pipelines, they constantly face situations where visual and textual information can conflict. The question is: how do these models actually decide which signal to trust?</p><p>At Megagon Labs, we set out to answer this question — and what we discovered has significant implications for multimodal AI systems.</p><h3>The Black Box Problem</h3><p>VLMs like GPT, Claude, and Gemini have revolutionized how we interact with AI by seamlessly combining images and text. They can analyze charts, interpret diagrams, and answer questions about visual content with impressive accuracy.</p><p>But here’s the catch: we don’t fully understand how these models integrate information from different modalities. When visual and textual cues align, everything works beautifully. But in the messy real world, mismatches are common:</p><ul><li>Medical reports with incorrect descriptions</li><li>Product listings with wrong images</li><li>Educational materials with mismatched diagrams</li><li>News articles with misleading visuals</li></ul><p>If we’re going to trust these systems in high-stakes applications, we need to understand their behavior when signals conflict.</p><h3>Designing the Experiment</h3><p>To systematically investigate VLM biases, we created five novel benchmarks with intentionally mismatched image-text pairs. Each benchmark covers a different domain:</p><p><strong>Mathematical Reasoning:</strong></p><ul><li><strong>Graph Connectivity:</strong> Determining whether two given nodes are connected when the visual graph contradicts the text.</li><li><strong>Function Convexity:</strong> Predicting the convexity of a mathematical function after flipping its coefficients so that the algebraic expression contradicts the visual shape of the curve.</li><li><strong>Polynomial Roots:</strong> Identifying the roots of a polynomial when the generated polynomial has one root that differs between its equation and its plotted graph.</li></ul><p><strong>Science Questions:</strong> Physics and chemistry problems where textual descriptions point to different answers than the images</p><p><strong>Visual Descriptions:</strong> Spatial relationship tasks where text describes the opposite of what’s shown (e.g., “A is above B” when the image shows A below B)</p><p>For each task, we carefully controlled for complexity — from simple to highly challenging — to understand how difficulty affects model behavior.</p><p>We tested six state-of-the-art VLMs spanning different scales and architectures:</p><ul><li>O4-mini, GPT-4o, and GPT-4o mini (OpenAI)</li><li>Llama-3.2–90B-vision (Meta)</li><li>Qwen2-VL-72B and Qwen2-VL-7B (Alibaba)</li></ul><h3>The Surprising Pattern</h3><p>Here’s what we found: <strong>VLM bias isn’t consistent — it shifts dramatically based on task complexity.</strong></p><p>For simple tasks, models overwhelmingly favor text to generate their response. But as complexity increases, they pivot toward images. This isn’t a subtle effect — we’re talking about bias swings ranging from <strong>-74.4% (strongly text-favored) to +56.8% (strongly image-favored)</strong> depending on the task and model.</p><h3>The Polynomial Example</h3><p>Consider polynomial root calculations. When given a degree-1 polynomial (a simple linear equation), models relied almost exclusively on the textual equation</p><p>But increase the complexity to degree-3 or degree-4 polynomials? The bias flips. Models now tend to favor the visual graph representation, likely because identifying roots from a complex curve is easier than parsing and mathematically solving a lengthy algebraic expression.</p><p>This pattern repeated across domains:</p><p><strong>Graph Connectivity:</strong> For simple graphs (fewer than 10 edges), models trusted text descriptions. But for complex graphs with 32+ edges? Nearly 100% image reliance across all models.</p><p><strong>Function Convexity:</strong> Stronger models, such as GPT -4, showed clear shifts from text-favored (simple functions) to image-favored (complex expressions). Smaller models exhibited more erratic patterns.</p><p><strong>Science Questions:</strong> Easy questions relied heavily on text. Meanwhile, with hard questions, models struggled overall, with increased image usage but also significantly more incorrect predictions.</p><h3>Why This Happens</h3><p>Our analysis revealed two key factors driving these biases:</p><h3>1. Perceived Difficulty</h3><p>Models appear to make implicit judgments about which modality is “easier” for a given task. To test this, we asked models to explicitly predict which modality they thought would be simpler to use — then compared those predictions to their actual behavior.</p><p>For stronger models, there was clear alignment: they favored the modality they perceived as easier for solving the task. GPT-4o showed a particularly strong correlation between perceived ease and actual bias.</p><h3>2. Modality-Specific Performance</h3><p>We analyzed error patterns by testing models with text-only, image-only, and combined inputs. The results were telling:</p><p>When a model performed poorly with text-only inputs on a task, it tended to favor images when both modalities were present (and vice versa). But here’s the interesting part: some errors unique to one modality persisted even when both modalities were available — revealing a “blind spot” bias.</p><p>For example, in graph connectivity tasks, image-specific errors that occurred with image-only inputs still appeared when text was added. The model was essentially ignoring potentially corrective information from the text modality.</p><h3>Can Models Detect When They’re Getting Mixed Signals?</h3><p>Understanding the bias is the first step. But can we help models recognize when image and text are actually conflicting? We tested three strategies for detecting mismatches:</p><h3>Strategy 1: Verbalized Mitigation</h3><p>Simply asking the model: “Do you detect any mismatch between the image and text?”</p><p><strong>Results:</strong> Surprisingly effective for stronger models. GPT-4o achieved <strong>87.3% accuracy</strong> in detecting conflicts on function convexity tasks. Less effective for smaller models.</p><h3>Strategy 2: Chain-of-Thought Mitigation</h3><p>Guiding the model through explicit steps:</p><ol><li>Analyze the image alone</li><li>Analyze the text alone</li><li>Compare and identify mismatches</li></ol><p><strong>Results:</strong> Particularly effective for GPT-4o mini, which showed significant improvements over verbalized prompting. Less consistent for open-source models.</p><h3>Strategy 3: Decomposed Mitigation</h3><p>Running the model three separate times: once using only the image to solve the task, once using only the text, and finally once to compare and combine the outputs.</p><p><strong>Results:</strong> Most effective when the model already performed well on both modalities independently. GPT-4o achieved <strong>81.3% accuracy</strong> on graph connectivity using this approach.</p><p>The key insight? <strong>No single mitigation strategy works universally.</strong> Effectiveness depends on the specific model, the task, and crucially, the model’s baseline performance with each modality.</p><h3>What This Means for Real-World Applications</h3><p>These findings have immediate practical implications:</p><h3>Healthcare</h3><p>Medical AI systems must be carefully evaluated for modality bias. A system that over-relies on textual reports might miss visual cues in imaging. Conversely, complex cases with subtle visual findings might be misinterpreted if the system ignores detailed text descriptions.</p><h3>Retrieval-Augmented Generation (RAG)</h3><p>When RAG systems retrieve mixed-modality documents, they may exhibit unpredictable biases based on query complexity. System designers need to account for these biases in their architectures.</p><h3>Multi-Agent Systems</h3><p>As VLMs coordinate multiple specialized agents, understanding their modality preferences is crucial for reliable orchestration — especially when different agents provide conflicting information.</p><h3>Educational Technology</h3><p>Learning platforms using VLMs must ensure that textbook diagrams and accompanying explanations are properly weighted, regardless of problem difficulty.</p><h3>What’s Really Going On?</h3><p>Our research reveals a fundamental truth about current VLMs: <strong>they don’t simply “fuse” multimodal information — they make active, context-dependent decisions about which signals to prioritize.</strong></p><p>This behavior isn’t necessarily bad. In fact, it mirrors human reasoning to some extent. When faced with complex visual information, we too might rely more heavily on what we see rather than what we read. The problem is that VLMs make these choices without transparency, and sometimes with biases that don’t align with human expertise.</p><p>As these models become more capable and more widely deployed, understanding and accounting for these biases becomes critical. Our benchmarks and mitigation strategies provide a starting point, but there’s much more work to be done.</p><h3>Now What?</h3><p>Several questions remain open:</p><p><strong>Generalization:</strong> Do these patterns hold across other domains beyond mathematics, science, and spatial reasoning? We suspect yes, but further research is needed.</p><p><strong>Training Influence:</strong> How much of this bias stems from the distribution of modalities in training data versus emergent reasoning behaviors? Understanding this could inform better training strategies.</p><p><strong>Human Alignment:</strong> In which cases do VLM biases align with human expert judgment, and when do they diverge? This is particularly important for high-stakes domains.</p><p><strong>Dynamic Mitigation:</strong> Can we develop systems that automatically detect when to apply which mitigation strategy based on the task and model performance?</p><h3>Try It Yourself</h3><p>We’ve open-sourced our benchmarks and evaluation code. If you’re working with VLMs, we encourage you to test your models for modality bias:</p><p><strong>Paper:</strong> <a href="https://megagon.ai/publications/mxd-sigs-decoding-vlms-reasoning/">Mixed Signals: Decoding VLMs’ Reasoning and Underlying Bias in Vision-Language Conflict</a></p><p><strong>Code &amp; Benchmarks:</strong><a href="https://github.com/megagonlabs/Modality-Bias"> github.com/megagonlabs/Modality-Bias</a></p><p>Understanding how your specific model handles conflicting information could be the difference between a reliable system and one that fails when you need it most.</p><p><em>What’s your experience with VLM reliability in production? Have you encountered unexpected modality biases? Share your thoughts in the comments.</em></p><p>This research was conducted by <a href="https://megagon.ai/our-team/pouya-pezeshkpour/">Pouya Pezeshkpour</a>, <a href="https://megagon.ai/our-team/moin-aminnaseri/">Moin Aminnaseri</a>, and <a href="https://megagon.ai/our-team/estevam-hruschka/">Estevam Hruschka</a> at <a href="https://megagon.ai/">Megagon Labs</a>. The work will be presented at EMNLP 2025.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad04e1e62558" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[2025 Internship Experience]]></title>
            <link>https://megagonlabs.medium.com/2025-internship-experience-6079ccc2a41f?source=rss-f26a171ccf87------2</link>
            <guid isPermaLink="false">https://medium.com/p/6079ccc2a41f</guid>
            <category><![CDATA[silicon-valley]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[internships]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[Megagon Labs]]></dc:creator>
            <pubDate>Tue, 30 Sep 2025 23:51:49 GMT</pubDate>
            <atom:updated>2025-09-30T23:51:49.168Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2dbJN71EVa-Nv0rerhX5Mw.png" /></figure><p>Internships are more than just a first step into the professional world — they’re a chance to learn, explore, and contribute to meaningful research. At Megagon Labs, our interns actively advance projects in NLP, LLMs, data AI, human-AI collaboration, and compound AI, while gaining hands-on experience working alongside our research teams. In volume one of this series, we asked former interns to reflect on their time at Megagon Labs, sharing candid insights about what they worked on, what they learned, and how the experience has shaped their paths moving forward.</p><p>Stay tuned for volume two, where four more interns share their experiences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/0*xmmeHX_iEI2z8h7S.jpg" /></figure><h3>Chihiro Taguchi</h3><p><strong>University:</strong> University of Notre Dame</p><p><strong>Program:</strong> PhD in Computer Science &amp; Engineering</p><p><strong>Project Description:</strong> Adaptation selection of documents for retrieval depending on the task, in essence flexible RAG.</p><p><strong>Mentors:</strong> <a href="https://megagon.ai/our-team/seiji-maekawa/">Seiji Maekawa</a> &amp; <a href="https://megagon.ai/our-team/nikita-bhutani/">Nikita Bhutani</a></p><p>What was your experience like while working with the team at Megagon Labs?</p><p>People respect each other’s research. Sometimes, we can feel like our research isn’t significant enough. Here at Megagon Labs, we have a positive environment that motivates me to work more on my project and helps me discuss any doubts.</p><p>My mentor, Seiji, always gives me really constructive feedback on my research.</p><p>Was there a moment during your internship that made you feel especially proud?</p><p>The first month I was given a high-level idea of what Megagon needed from my project, but not much direction on an approach or method. It was an open question. This is usually how they run the internship — it’s a partnership between the intern and the mentors. It allows us as interns to have a lot of creative control when it comes to the approach we take.</p><p>After a month or so, I had a meeting with Seiji, and I had an idea for adaptive retrieval. I explained it, and he was intrigued and wanted to try it.</p><p>I was proud of my idea because it wasn’t prompted by anyone but me. Now, I’m proud to implement my own idea and proud that other people with research experience think it was a valuable and interesting approach. This helped my confidence as a researcher.</p><p>How has the Megagon team helped you broaden or deepen your research interests?</p><p>I came from traditional NLP-machine translation. Now, I’m more interested in what LLMs can and can’t do. I can combine this new knowledge with my PhD. Through Megagon, I gained hands-on experience with LLMs and running experiments. And now, RAG is a big research interest of mine.</p><p>What advice would you give to future interns?</p><p>First and foremost, enjoy yourself. Make sure you manage stress, whether it’s from the internship or your personal life. Reframe and refocus so this becomes a good experience. You have a lot of support from everyone at Megagon Labs, so do check-ins and talk to people.</p><h3>Farima Fatahi Bayat</h3><p><strong>University:</strong> University of Michigan</p><p><strong>Program:</strong> PhD in Computer Science &amp; Engineering</p><p><strong>Project Description:</strong> Reasoning hallucination of LLMs in mathematical problem solving when they are provided with access to a Python Interpreter.</p><p><strong>Mentors:</strong> <a href="https://megagon.ai/our-team/pouya-pezeshkpour/">Pouya Pezeshkpour</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/190/0*8MmXWck-XIWXIBZA.png" /></figure><p>What was your experience like while working with the team at Megagon Labs?</p><p>It has been a very joyful experience because I truly enjoyed my research topic and project. Overall, the internship really expanded my knowledge of reasoning. Since my focus was on factuality during my PhD, I was newly exposed to a lot of dataset methods. I was very happy with every positive result that I saw.</p><p>I also really enjoyed the professional aspect. The lab environment is very supportive and friendly. My mentor was always available to answer my questions, and we met almost every day.</p><p>What surprised you most about doing research in an industry lab compared to academia?​</p><p>I liked being at a research lab more than at a company that is purely industry. I liked that I had the opportunity to come up with creative solutions. I felt like I could contribute to research at Megagon Labs more than I did at my previous internship. I would like to come back to academia in the future, and the experience at Megagon Labs is the bridge between industry and academia.</p><p>Was there a moment during your internship that made you feel especially proud?</p><p>I had a lot of moments because I was working in another domain previously, and I didn’t really think that my past knowledge would be transferable to this domain. I really enjoyed and felt proud of myself when I was able to find problems in some of the best language models. I felt like I could really contribute to the field.</p><p>How did feedback from your mentor shape your project?</p><p>We started with a high-level idea of the project, but Pouya told me I could explore other ideas. He gave me creative freedom. I received a lot of good feedback throughout the project, and my mentors, Pouya and Estevam (research lab lead), were very supportive. They were very encouraging of every little bit of progress that I made. They helped me move the project forward in a short amount of time. Because the PhD environment can be harsh or dry, this felt like a nice change.</p><p>What advice would you give to future interns?</p><p>Academia and industry are very different. Megagon is a more flexible and exciting research environment than a PhD program. You will have more support, so enjoy the process. Also, ask for a lot of feedback. If you don’t speak up, no one will know you need help.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/261/0*GbVLP3auaWTq9nlR.jpg" /></figure><h3>Yuanli Wang</h3><p><strong>University:</strong> Boston University</p><p><strong>Program:</strong> PhD in Computer Science</p><p><strong>Project Description:</strong> The use of LLM’s internal knowledge and ability to retrieve external data to help analyze probability and identify the relations between hidden factors.</p><p><strong>Mentors:</strong> <a href="https://megagon.ai/our-team/chen-shen/">Chen Shen</a> and <a href="https://megagon.ai/our-team/dan-zhang/">Dan Zhang</a></p><p>What was your experience like while working with the team at Megagon Labs?</p><p>Everyone is very friendly, so it’s been good. The office is very research-oriented, and I really enjoyed all the support and like-mindedness. The mentors are very willing to help. When I ran into roadblocks or technical difficulties, I had help to find alternative tools or solutions.</p><p>What surprised you most about doing research in an industry lab compared to academia?</p><p>I interned at big companies in the industry. The difference is that here at Megagon, I actually know everyone, and we work closer together. This internship position is also more research-oriented. I was able to interact with different people in different research domains, and I learned a lot from that.</p><p>How has the Megagon team helped you broaden or deepen your research interests?</p><p>Before applying for the internship with Megagon, I decided to switch my research interest from computer systems to language models. My internship experience at Megagon solidified that decision and reshaped the direction of my PhD and future career.</p><p>What’s an activity you do to de-stress during your internship or PhD life?</p><p>One of my favorite ways to de-stress during my internship was hiking. The Bay Area has many beautiful trails, and I especially enjoyed exploring spots where I could catch the sunset. If you are looking for a great place to go, I recommend Sierra Vista in San Jose, which has amazing views!</p><p>What advice would you give to future interns?</p><p>The internship process at Megagon allows you to shape and define your own project. My advice for future interns is to come in with as clear an idea as possible, or at least a well-defined research question that can guide your work. Having that clarity from the start helps you stay focused and make good progress. And if your project is about improving an existing method, it’s helpful to establish a benchmark or baseline early, so you have something concrete to measure your progress.</p><p>Written by Megagon Labs</p><p>Megagon Labs conducts internships during the Winter and Summer terms. <a href="https://megagon.ai/careers/">Apply today</a>!</p><h4><a href="https://megagon.ai/blog/">RELATED Articles</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-UZczJmj6CiKsU5o.png" /></figure><p>7 Min Read</p><p>September 23, 2024</p><p><a href="https://megagon.ai/summer2024-interns-experience/"><strong>Megagon Labs Summer 2024 Internship Experience</strong></a></p><p>Through this inside peek at our internship program, explore the types of projects we at Megagon Labs formulate for our interns. If you are looking to start an internship soon, take their advice and apply it to your own internships.</p><p><a href="https://megagon.ai/summer2024-interns-experience/">Read more</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rlUA3UJ4plY0Zu5g.png" /></figure><p>8 Min Read</p><p>September 21, 2023</p><p><a href="https://megagon.ai/megagon-summer-2023-intern-experience/"><strong>Megagon Labs Summer 2023 Internship Experience</strong></a></p><p>In this exclusive piece, we bring you a deep dive into the most exciting projects and trends that emerged from the Summer 2023 internship program.</p><p><a href="https://megagon.ai/megagon-summer-2023-intern-experience/">Read more</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mHxpVLNtF5DpHDqj.png" /></figure><p>4 Min Read</p><p>May 25, 2023</p><p><a href="https://megagon.ai/mentorship-2023/"><strong>The Intern Experience at Megagon Labs: What You Can Expect</strong></a></p><p>At Megagon Labs, we see bringing on interns as more than just hiring a short-term helping hand. As we welcome spring and summer interns, we’d like to share with you how we foster an environment of growth and career development for both mentors and interns.</p><p><a href="https://megagon.ai/mentorship-2023/">Read more</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6079ccc2a41f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ACL 2025 Highlights: Direction of NLP & AI]]></title>
            <link>https://megagonlabs.medium.com/acl-2025-highlights-direction-of-nlp-ai-e9478c0b4ccf?source=rss-f26a171ccf87------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9478c0b4ccf</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Megagon Labs]]></dc:creator>
            <pubDate>Fri, 26 Sep 2025 16:21:46 GMT</pubDate>
            <atom:updated>2025-09-26T16:21:46.496Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tLJZEmdeAcuw8FAqyiuEFg.png" /></figure><p>The 63rd annual meeting of the Association for Computational Linguistics (<a href="https://2025.aclweb.org/">ACL 2025</a>) took place in Vienna, Austria, from July 27 to August 1, 2025, bringing together thousands of NLP researchers, practitioners, and industry leaders from around the world. As tradition, Megagon Labs was proud to sponsor this year’s conference, which featured <em>generalization of NLP models </em>as one of the central themes. Our researchers also actively participated in the conference, presenting their latest works — <a href="https://megagon.ai/publications/cypherbench/">CypherBench</a> and <a href="https://megagon.ai/publications/factlens-bench-fine-grained-fact-veri/">FactLens</a>.</p><p>With over 5,000 participants and more than 3,100 papers, ACL 2025 was a hub of ideas and innovation. In this post, researchers at Megagon Labs highlight noteworthy trends shaping the future of NLP and AI, including generalization, agentic planning, and LLM-based evaluation. A comprehensive <a href="https://drive.google.com/file/d/1lIrLnVdPv6yDrrlZ2ZgHwaPYq9zx-u0d/view">report</a> from the program chairs is available for readers seeking additional insights.</p><h3>Generalization of NLP Models</h3><p>Luke Zettlemoyer’s keynote speech emphasized three crucial points: the significance of pre-training LLMs, the promise of tokenizer-free LLMs, and the potential of modular language models to improve flexibility and adaptability across domains.</p><p>Additionally, a panel discussion emphasized the importance of generalization for ensuring that models remain robust, reliable, and fair when making predictions on data that differs from their training set. Strong generalization is especially critical for real-world applications, where models are expected to exhibit human-like adaptability. Just as humans naturally generalize from prior experience, AI systems should strive to achieve a similar level of flexibility and consistency.</p><h3>Agents &amp; Planning</h3><p>A significant portion of work presented at the conference emphasized the rise and utility of agentic NLP systems. Examples included LLM models that do more than generate text, as well as those that are capable of planning, reasoning, and collaborating across multiple steps.</p><p><a href="https://arxiv.org/pdf/2408.09955">MegaAgent</a> proposed a large-scale autonomous system, designed to operate without predefined standard operating procedures (SOPs). Unlike earlier frameworks that rely heavily on rigid task specifications, MegaAgent showcased how agents can dynamically coordinate tasks, adapt to unexpected inputs, and distribute responsibilities among themselves. This flexibility makes it especially promising for open-ended, real-world applications.</p><p><a href="https://aclanthology.org/2025.acl-long.619.pdf">Qiao et al. (2025)</a> explored how agents can benefit from introspection and knowledgeable self-awareness. The system proposes mechanisms for fast-thinking, slow-thinking or reasoning, and external-knowledge gathering, allowing agents to evaluate the adequacy of their own knowledge before acting. This kind of meta-cognition is key to building trustworthy agents capable of recognizing their limits.</p><p>Other research highlighted collaborative and orchestration capabilities among multi-agent systems, pointing to a future where LLM-powered agents not only act autonomously but also coordinate intelligently — with each other and also with humans-in-the-loop — to solve complex tasks.</p><h3>LLMs in the Age of Generation &amp; Evaluation</h3><p>Evaluation and data generation were also highly discussed topics at ACL 2025. A tutorial on synthetic data generation using LLMs highlighted the cost benefits, potential scalability, and the efficacy of LLM-generated data. Several existing methods to generate synthetic data were discussed, including sampling-based generation, back-translation, transformation of existing data, human-AI collaboration, and symbolic generation. A significant focus was on the curation and/or creation of diverse data, which improves the robustness and performance of LLM models that are trained on such data. The tutorial further elaborated on the limitations of LLM-generated data, specifically regarding the gap in richness and quality compared to real-world data. The tutorial also raised concerns regarding the legality and ethics of synthetic data.</p><p><a href="https://aclanthology.org/2025.acl-long.782/">Calderon et al. (2025)</a> tackled the relevant question of statistically justifying the efficacy of LLM-based evaluations and whether they can replace human annotators. The paper proposed a rigorous framework that compares annotator consistency against LLM judgments, offering evidence that, under certain conditions, LLMs can serve as reliable stand-ins. This not only reduces costs but also accelerates evaluation cycles.</p><p>Another creative approach was proposed by <a href="https://aclanthology.org/2025.gem-1.10.pdf">Sandan et al. (2025)</a>, which reframed evaluation as a tournament of pairwise comparisons. Instead of scoring outputs independently, models compete in head-to-head comparisons judged by an LLM. Over several rounds, the stronger outputs emerge, giving a more nuanced view of quality differences. This iterative framework proved effective across summarization, dialogue, and reasoning tasks, where subtle distinctions in quality often matter most.</p><h3>Text to SQL</h3><p>Several works at ACL 2025 examined how direct preference optimization (DPO) can be made effective for Text2SQL by incorporating richer reasoning — especially via chain-of-thought (CoT) signals. <a href="https://arxiv.org/pdf/2502.11656">Liu et al.</a> showed that vanilla DPO applied to Text2SQL often fails or degrades performance when models only see final SQL answers (i.e., no intermediate reasoning). By augmenting Text2SQL datasets with synthetic CoT solutions, they obtain consistent, significant improvements. CoT helps reduce reward-hacking, strengthens discrimination between correct and incorrect outputs, and improves scalability. Complementing that, <a href="https://aclanthology.org/2025.findings-acl.982.pdf">Zhai et al.</a> proposed a two-stage DPO framework called ExCoT that includes an off-policy DPO and an on-policy DPO stage. Experiments showed consistent gains: on BIRD and Spider, using LLaMA-3.1–70B, both stages led to improvement over vanilla SFT.</p><p>Another axis of progress is multilingual text-to-query beyond English. The <a href="https://aclanthology.org/2025.findings-acl.1265.pdf">MultiTEND</a> paper introduced a large multilingual benchmark (six languages: English, German, French, Russian, Japanese, Mandarin Chinese) for translating natural language into NoSQL queries. The questions, database schema, and database content were provided in multiple languages. They identified both lexical and structural challenges across languages — for example, differences in syntactic structure (e.g., word order) and schema linking difficulties (e.g., how fields, table names, and operators map across languages).</p><h3>Our Takeaways &amp; Further Direction</h3><p>ACL 2025 highlighted how rapidly our field is evolving and pushing beyond language modeling toward generalization, agentic planning, and trustworthy evaluation. These are not only academic milestones but also critical foundations for real-world systems that must learn, reason, adapt, and collaborate with humans.</p><p>For Megagon Labs, the discussions reinforced our strategic focus. Our work on <a href="https://github.com/megagonlabs/cypherbench">CypherBench</a> and <a href="https://github.com/megagonlabs/factlens">FactLens</a> demonstrates the importance of benchmarks that ensure robustness, transparency, and adaptability, which are essential for enterprise adoption. Likewise, our investment in <a href="https://megagon.ai/tech-resource/oss/">Blue</a>, our open-source framework for agentic workflows, aligns with the growing momentum around multi-agent systems and orchestration. By enabling agents to reason, plan, and collaborate in enterprise settings, we help operationalize ideas that took center stage at ACL 2025.</p><p>Equally important, debates on evaluation and synthetic data resonated with our belief that progress in AI depends not only on stronger models but also on better ways to measure and validate them. The community’s exploration of LLM-based evaluation, tournament-style comparisons, and synthetic data generation reflects the same challenges we face in scaling trustworthy AI for diverse, global applications. These are areas where we will continue to deepen our contributions, drawing on our expertise in data curation, evaluation frameworks, reasoning, and human–AI collaboration. As academic research, open-source efforts, and industry deployment grow increasingly intertwined, Megagon Labs will remain at this intersection, pushing NLP research forward while translating innovation into solutions that impact millions worldwide.</p><p>Written by: <a href="https://megagon.ai/our-team/kushan-mitra/">Kushan Mitra</a>, <a href="https://megagon.ai/our-team/yanlin-feng/">Yanlin Feng</a>, and <a href="https://megagon.ai/our-team/estevam-hruschka/">Estevam Hruschka</a></p><h4><a href="https://megagon.ai/blog/">RELATED Articles</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*56zMppwVTgVI11Pt.png" /></figure><p>6 Min Read</p><p>September 24, 2025</p><p><a href="https://megagon.ai/2025-internship-experience/"><strong>2025 Internship Experience</strong></a></p><p>Megagon Labs Internships: Hands-on AI research, real projects, real growth.</p><p><a href="https://megagon.ai/2025-internship-experience/">Read more</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*F5jcmsk-jbxOEGP8.png" /></figure><p>9 Min Read</p><p>July 15, 2025</p><p><a href="https://megagon.ai/streams-orchestrating-work/"><strong>Blue Streams: Orchestrating Work</strong></a></p><p>Stream processing is a key ingredient when making “agentic workflows” enterprise-ready. Streams support a wide range of workflows and support complexity while at the same time bringing about the right abstractions and scope for facilitating accuracy, scalability, and ease of use.</p><p><a href="https://megagon.ai/streams-orchestrating-work/">Read more</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ErMu7qXJaWP7ji2i.png" /></figure><p>7 Min Read</p><p>May 8, 2025</p><p><a href="https://megagon.ai/blue-designing-agentic/"><strong>Blue: Designing “Agentic for Enterprise”</strong></a></p><p>How can enterprise systems evolve to support agentic workflows? In this post, we explore the conceptual foundations of Blue — a framework designed to integrate AI agents, data, and services into scalable, observable,</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9478c0b4ccf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blue Streams: Orchestrating Work]]></title>
            <link>https://megagonlabs.medium.com/blue-streams-orchestrating-work-9cb38b49445a?source=rss-f26a171ccf87------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cb38b49445a</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[business-strategy]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Megagon Labs]]></dc:creator>
            <pubDate>Wed, 17 Sep 2025 15:01:44 GMT</pubDate>
            <atom:updated>2025-09-17T15:01:44.414Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qfCUi3uSwfk1ntSShpyt5w.png" /></figure><p>In previous posts, we <a href="https://megagon.ai/blue-v0-9-agentic-enterprise/">introduced</a> our agentic framework, <a href="https://github.com/megagonlabs/blue">Blue</a>, and delved into “<a href="https://megagon.ai/blue-designing-agentic/">agentic for enterprise</a>” requirements and how Blue supports enterprise integration through various registries in the Blue architecture.</p><p>In this blog post, we will explore streams, another key abstraction in Blue, to facilitate the execution of complex tasks with workflows. We will discuss how streams are an essential orchestration abstraction and argue why they are the right abstraction for orchestrating data and control for agentic workflows to address enterprise scalability requirements.</p><h4><a href="https://github.com/megagonlabs/blue"><strong>Try Blue v0.9</strong></a></h4><h3>What are streams? What is stream processing?</h3><p>In computer science, a stream is essentially a dynamic data structure, representing a sequence of data elements that can be processed as they arrive. For example, data from a sensor can be represented as a stream of readings. Stream processing is a programming paradigm with streams as the first-class objects for computation, with operators to distribute, consume, and process data in streams. Operators such as map, filter, split, and reduce can facilitate complex workflows to support a wide range of computations over data. In fact, stream processing has been applied in many aspects of computing, from operating systems and distributed systems to more applied areas such as data processing and analytics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*pb2xYGJ9aF-T5U8h.png" /></figure><h3>Streams in Blue</h3><p>In Blue, streams are the key orchestration abstraction. Streams facilitate the distribution of data and control. As such, streams form the basis of communication among agents and other components in Blue.</p><h3>Why streams?</h3><p>Before diving into the specifics of streams in Blue, let’s consider why streams are the right abstraction for agentic workflows.</p><p>First and foremost, streams can express complex workflows efficiently and effectively, naturally breaking down work by data and tasks. Streams are also dynamic structures; both the data content and connections between streams can be created and updated at any time to provide scalability and flexibility in how data is processed.</p><p>Secondly, streams bring observability and controllability benefits. By explicitly representing the flow of data and control in a persistent data structure, streams can be examined for debugging and performance issues. Observability is critical for ensuring software verification as well as product design perspectives. For end users, it helps them gain confidence in system results.</p><p>From a production perspective, streams also bring the much-needed separation of concerns, subsequently improving reliability. Streams — acting as a communication bus among agents and other components, agents, and components — can be independently configured, deployed, and scaled, for performance and reliability reasons.</p><p>Lastly, streams are also a familiar concept in the LLM/AI world. In fact, feeding and consuming data from LLMs is pretty similar to how stream computing works. Many of the LLM APIs provide streaming output to facilitate the processing of data as it becomes available. Going beyond LLMs where text is the only data type, streams can build on and expand to more structured data in order to coordinate with agents. And so, streams bring structure to both content (reducing ambiguity in data semantics) and flow of data (reducing ambiguity in data processing), making the overall systems more controllable.</p><h3>How do streams work in Blue?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*IZd5zrL3yMsRGvEu.png" /></figure><p>A stream is essentially a sequence of data, which we call messages, in Blue. Streams have unique IDs, and tags to serve as descriptors. For example, a stream can be tagged USER to indicate that the contents of the streams originate from a user.</p><p>Each stream begins with a special message, BOS, representing the beginning of a stream, followed by any number of messages and then concluding with another special message, EOS, representing the end of the stream. BOS and EOS allow consumers (agents) of stream data to initialize and finalize computation or resources.</p><h3>Stream messages</h3><p>Each message in the stream is a tuple, comprising three components: <strong><em>k,</em></strong> representing the key or ID of a message, <strong><em>v</em></strong> representing data, and <strong><em>t</em></strong> representing the tag of a message. <strong><em>k</em></strong> can uniquely identify data, but can also be used as a key in computation, like for aggregation. <strong><em>v</em></strong>, data in the message, is standardized to represent structured data of various types, from core data types such as <em>float</em> and <em>str</em> to JSON as a way to represent compound data. <strong><em>t</em></strong> represents the semantics of data and can have multiple values, from basic DATA and CONTROL tags to more application-specific semantics. For example, a stream can contain a sequence of documents such as resumes, where each message is a resume, with resume ID, contents, and tags such as DOC, RESUME.</p><p>Most of the messages in Blue are data messages; they provide data for agents to consume and process. However, in Blue, there are also control messages, which are essentially instructions for an agent to process a stream. For example, an agent can output a message to ask another agent to compute something. This is similar to tool calling, except that it expands beyond tools to include agents. A clear distinction is that these are instructions (sort of like interpreted code) that are dynamically created, linking agents with each other. Furthermore, instructions are explicitly represented just like data is, in some ways like an instruction queue in computer systems. Control messages can be used by any agent to ask another agent to compute something, as well as planner agents that govern the overall flow of execution. Control messages can be included within any stream as well as dedicated instruction streams.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*azFO4IS0VCjogpDI.png" /></figure><p>Control messages have the same tuple components, <strong><em>k</em></strong> to represent the key/id, <strong><em>v</em></strong> that has a specific structure to describe control message structure, in the case of agent execution instruction, the agent (A) to execute along with optional properties (P) and stream (S) to process, along with a <strong><em>t</em></strong>, that explicitly tags the message as a control and instruction message.</p><h3>Streams and agents</h3><p>In Blue, agents are the main consumers and producers of stream data. An agent defines a <strong>processor</strong> function that is executed on every message in the stream, optionally writing data into new streams. An agent can have multiple input and output parameters, meaning that input data streams map to a specific input parameter of the processor, and output data can be designated for a specific output parameter. For example, an intent classifier agent can have a named input parameter such as <strong>TEXT</strong> and an output parameter such as <strong>INTENT</strong>. Agents also have properties that can guide the data processing. For example, an intent classifier agent can define a <strong>model</strong> property to work with for intent identification.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*J74kXPUOCOJ_CCGj.png" /></figure><p>Agents can connect to streams for processing through listeners declared for each input parameter. For example, an intent classifier can specify to listen to streams tagged as <strong>USER</strong> for input parameter <strong>TEXT</strong>. Additionally, agents can also initiate stream processing through explicit instructions in the streams, as we described earlier.</p><p>This model of agents as stream data processors promotes clarity and simplicity, making it easier to understand and manage the flow of data through an application.</p><p>Let’s describe how complex workflows can be built in this model.</p><h3>Complex workflows</h3><p>A workflow is essentially a sequence of tasks executing over data to achieve a specific goal. In agentic orchestration, this maps to organizing agents and the data they work with to collectively produce a desired outcome. A workflow can be represented as a DAG, directed-acyclic graph where nodes represent processors and edges represent connections between agents’ input and output data.</p><p>In Blue, nodes are agents with multiple inputs and outputs, and edges specifically designate matching inputs and outputs between agents. For example, an <strong>NL2SQL</strong> output stream for parameter <strong>SQL</strong> can be linked to <strong>SQL EXECUTOR</strong> agent input parameter SQL to execute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Dfc3jkPSAxqpjK35.png" /></figure><p>Beyond just defining the sequence of execution, workflows can express complex processing pipelines by breaking down data and tasks. Streams are very suitable for expressing such complex workflows.</p><p>Simply put, sequences of data naturally map to <em>iteration,</em> and any filtering done by the agents maps to <em>conditional</em> statements. Output data is distributed to different streams to execute specific tasks that mimic procedure calls and, as such, they facilitate abstraction and scoping. Lastly, streams joined together later can aggregate results.</p><p>In Blue, streams’ natural ability to express complex workflows is further expanded, as streams can also contain control messages such as instructions for agent execution. Specific agents, such as planner agents, can utilize these constructs to create plans of sufficient complexity matching the expressive power of many programming languages.</p><p>Let’s walk through an example.</p><p>An Example: Real Estate Analytics</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0Q0_ub4bkSJtsK9r.png" /></figure><p>You are looking to buy a house. There are several neighborhoods you are interested in, many different houses, each with different pros and cons. Some have large lots, some are in districts with good schools, and some are close to public transportation. You have many personal and familial considerations too. You obviously have a budget, maybe kids that are in middle school, so education is important. Your partner works in the city, so you want to be close to the metro station.</p><p>How do we go about navigating such a complex workflow?</p><p>First, Blue can easily scale by distributing work and setting the right scope for each. You can divide up houses and distribute them to different streams. It is like having multiple real estate agents whom you can direct to focus on specific neighborhoods, specific houses. They can work in parallel and come back to present the results.</p><p>Secondly, each property is different so they need to be examined individually, carefully considering specific trade-offs. With Blue, you can create plans specific to each house, analyze, prioritize, and go deeper, with specific data to help in that situation. For one house, you can tap into land models to analyze lot conditions more deeply. For another house, you can use school-review databases, examining the school quality.</p><p>Lastly, Blue can put it all together, aggregating all the findings from these different agents. You can compare and contrast reports, examine trade-offs in house condition, and school quality. Blue can help you make a buying decision easily, explaining findings along the way.</p><h3>How do streams differentiate Blue?</h3><p>As the central orchestration abstraction, streams set Blue apart from other frameworks in regards to expressivity and control.</p><p>In most approaches, natural language is the only form of data agents consume and produce. As language is ambiguous, text-only approaches can be problematic for business applications. In Blue, on the other hand, data passed between agents is structured. This helps in regards to semantics and control.</p><p>Regarding the flow of data, and patterns of communication among agents, Blue excels. In fact, streams-based workflows allow Blue agentic workflows to match the computational power of many programming languages.</p><p>Workflows can be designed a priori (through explicit linking of agent inputs and outputs), on demand (through planners), and can be ad hoc based on agents’ declaration of interests (through listeners) to support complex knowledge-intensive tasks that require planning and coordination. Agents can generate special control messages to impose control. This allows agents to plan and coordinate workflows, like delegating to other agents.</p><p>Lastly, streams serve as context for agentic workflows. This is a key difference between Blue and other agentic frameworks where context can be specifically scoped for the task, as opposed to simply expanding context as processing continues, making agentic workflows increasingly slower and reducing quality as a result.</p><h3>Conclusion</h3><p>We strongly believe that stream processing is a key ingredient when making “agentic workflows” enterprise-ready. Streams support a wide range of workflows and support complexity while at the same time bringing about the right abstractions and scope for facilitating accuracy, scalability, and ease of use.</p><h3>Next post and beyond</h3><p>In the next post, we are going to put it all together, describe the overall architecture of the Blue agentic framework, and how the various components and abstractions we introduced thus far work together. We will also discuss unique aspects of the blue architecture and the advantages it brings over other agentic frameworks.</p><p>As we make progress with Blue, especially in areas of planners and advanced streaming functions, we will follow with additional posts.</p><p>For now, check out <a href="https://github.com/megagonlabs/blue">Blue v0.9</a> and start playing with it. If you have ideas, questions, or want to make contributions, reach out through our <a href="https://github.com/megagonlabs/blue/discussions">community</a>.</p><h4><a href="https://github.com/megagonlabs/blue">Try Blue v0.9</a></h4><p>Written by: <a href="https://megagon.ai/our-team/eser-kandogan/">Eser Kandogan</a> &amp; <a href="http://megagon.ai/">Megagon Labs</a></p><h4><a href="https://megagon.ai/blog/">RELATED Articles</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Lo9Q7AaoM93o-zq3.png" /></figure><p>7 Min Read</p><p>May 8, 2025</p><p><a href="https://megagon.ai/blue-designing-agentic/"><strong>Blue: Designing “Agentic for Enterprise”</strong></a></p><p>How can enterprise systems evolve to support agentic workflows? In this post, we explore the conceptual foundations of Blue — a framework designed to integrate AI agents, data, and services into scalable, observable, and controllable enterprise applications.</p><p><a href="https://megagon.ai/blue-designing-agentic/">Read more</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t6Zk9VP9n3Iv7_mH.png" /></figure><p>4 Min Read</p><p>May 5, 2025</p><p><a href="https://megagon.ai/multi-document-reasoning-w-llms/"><strong>Beyond the Single Document: Advancing Multi-Document Reasoning with LLMs</strong></a></p><p>We present three new papers that tackle a pressing and underexplored topic in NLP: multi-document reasoning. These works offer rigorous benchmarks, novel methodologies, and empirical insights into how large language models (LLMs) handle complexity across multiple sources of information.</p><p><a href="https://megagon.ai/multi-document-reasoning-w-llms/">Read more</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tBNTX7e4K_sarbJf.png" /></figure><p>5 Min Read</p><p>April 1, 2025</p><p><a href="https://megagon.ai/blue-v0-9-agentic-enterprise/"><strong>Blue v0.9: “Agentic” for the Enterprise!</strong></a></p><p>We present Blue v0.9, our open-source framework for building and deploying agentic workflows in enterprise environments. Unlike conventional AI frameworks, Blue is designed with enterprise-scale requirements in mind — scalability, observability, configurability, and seamless integration with existing infrastructure.</p><p><a href="https://megagon.ai/blue-v0-9-agentic-enterprise/">Read more</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cb38b49445a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond the Single Document: Advancing Multi-Document Reasoning with LLMs]]></title>
            <link>https://megagonlabs.medium.com/beyond-the-single-document-advancing-multi-document-reasoning-with-llms-2d24ae5e85bd?source=rss-f26a171ccf87------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d24ae5e85bd</guid>
            <category><![CDATA[reasoning]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Megagon Labs]]></dc:creator>
            <pubDate>Wed, 10 Sep 2025 00:57:16 GMT</pubDate>
            <atom:updated>2025-09-10T00:57:16.739Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l7JRUX0nRKYn_kMF3mw_Lg.png" /></figure><p>As language models scale in size and capability, so do our expectations for how they process and understand information. Today’s real-world problems rarely involve isolated paragraphs — they require <strong>reading, comparing, and reasoning over multiple documents</strong>, often of varying length, format, and quality.</p><p>We present three new papers that tackle a pressing and underexplored topic in NLP: <strong>multi-document reasoning</strong>. These works offer rigorous benchmarks, novel methodologies, and empirical insights into how large language models (LLMs) handle complexity across multiple sources of information.</p><p>Let’s take a closer look at what these contributions reveal — and how they collectively push the boundaries of multi-document understanding.</p><h3>Holistic Reasoning with Long-Context LMs: Introducing HoloBench</h3><p>Modern tasks demand more than just retrieving small amounts of relevant snippets; they require models to synthesize and reason across the entire corpora. Retrieval-augmented generation (RAG) systems have taken us far in accessing relevant content, but they often stumble when asked to aggregate and make sense of information scattered across documents.<br>Long-context Language Models (LCLMs) offer the premise of “reading” large swaths of information all at once. But how well do they reason over this data?</p><p>In “<a href="https://megagon.ai/publications/holistic-reasoning-with-long-context-lms/">Holistic Reasoning with Long-Context LMs</a>” we introduce <strong>HoloBench</strong>, a benchmark designed to evaluate whether LCLMs can perform database-style operations — like filtering, aggregation, and comparison — on unstructured text. It’s a systematic framework that varies key factors such as:</p><ul><li>Context length</li><li>Information density</li><li>Distribution of relevant information</li><li>Query complexity</li></ul><p>The findings are eye-opening: LCLM performance is more sensitive to <em>how much information</em> (i.e., the amount of information in the context that is relevant to the query) is packed into the context than to the length of that context. Moreover, tasks requiring aggregation of multiple facts across the input lead to noticeable performance drops, especially as query complexity increases.<br>These insights reveal a critical bottleneck in current LCLMs and point to where future work must focus: not just expanding context windows but developing frameworks that facilitate more effective reasoning over large contexts.</p><p>This paper was presented at #ICLR2025.</p><h3>Multi-Conditional Ranking with LLMs</h3><p>In many cases, we require multi-document reasoning by selecting, ordering, and ranking items based on numerous, sometimes conflicting conditions. This is a common scenario in recommendation systems, policy generation, and any domain where tradeoffs must be made.<br>In “Multi-Conditional Ranking with Large Language Models,” we introduce <strong>MCRank</strong>, a benchmark that challenges LLMs to rank a set of items according to <em>multiple conditions</em>.</p><p>Baseline evaluations reveal a consistent trend: performance degrades rapidly as the number and complexity of conditions increase.</p><p>To address this, the paper proposes <strong>EXSIR</strong>, a decomposed reasoning approach:</p><ol><li><strong>Extract</strong> the ranking conditions</li><li><strong>Sort</strong> them into a logical order based on their priority</li><li><strong>Iteratively Rank</strong> items while reasoning through each condition</li></ol><p>EXSIR achieves an up to<strong> 14.4% performance gain</strong> over baseline models, significantly outperforming chain-of-thought prompting and standard ranking approaches.<br>The takeaway? Decomposition matters — and how <em>we structure the reasoning process</em> can make all the difference for complex multi-document tasks.</p><p>This paper was presented at the NAACL 2025 Main Conference.</p><h3>From Single to Multi: Understanding Hallucinations in Multi-Document Summarization</h3><p>As summarization moves beyond single documents, new challenges emerge — among them, the <strong>escalation of hallucinations</strong>. Unlike single-document settings, where grounding is relatively straightforward, multi-document summarization introduces ambiguity, conflicting facts, and a wider space for errors.</p><p>In “<a href="https://megagon.ai/publications/single-to-multi-llm-hallucinate/">From Single to Multi: How LLMs Hallucinate in Multi-Document Summarization</a>,” we investigate how LLMs hallucinate when summarizing information across documents. Since no existing benchmark tackled this directly, the team created two new benchmarks on top of an existing dataset: one based on news articles and another on multi-speaker conversations, each annotated with topic-specific insights.</p><p>The results are striking:</p><ul><li>Up to <strong>75%</strong> of generated summaries contain <strong>hallucinated</strong> content.</li><li>Hallucinations tend to <strong>cluster toward the end</strong> of summaries.</li><li>Even when no relevant information exists, LLMs like GPT-4o generate convincing but <strong>fabricated summaries</strong> <strong>nearly half the time</strong>.</li></ul><p>Manual evaluation of over 700 generated insights reveals the sources of hallucination: models often generalize excessively, ignore instructions, or fill in gaps with plausible-sounding but ungrounded content. While simple post-hoc filtering can reduce some errors, the deeper issues persist.</p><p>Our <a href="https://megagon.ai/publications/single-to-multi-llm-hallucinate/">paper</a> exposes an important limitation in today’s LLMs: as the input grows more complex, the line between synthesis and speculation becomes increasingly blurred.</p><p>This research was presented at NAACL 2025, Findings track.</p><h3>Towards a More Holistic Understanding</h3><p>Together, these three papers highlight the urgent need for more explicit, structured reasoning in LLMs handling multi-document tasks. Whether it’s aggregating insights, balancing competing priorities, or avoiding hallucinations, the underlying challenge is the same: enabling models to reason with clarity and control across large, unstructured contexts.</p><p>At Megagon Labs, solving these challenges is foundational to building trustworthy and capable AI systems. Our benchmarks and methods are now publicly available to encourage further research in this critical area.</p><p>Written By <a href="https://megagon.ai/our-team/pouya-pezeshkpour/">Pouya Pezeshkpour</a> and <a href="http://megagon.ai/">Megagon Labs</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d24ae5e85bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blue: Designing “Agentic for Enterprise”]]></title>
            <link>https://megagonlabs.medium.com/blue-designing-agentic-for-enterprise-75577abb8ad8?source=rss-f26a171ccf87------2</link>
            <guid isPermaLink="false">https://medium.com/p/75577abb8ad8</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[enterprise-technology]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[Megagon Labs]]></dc:creator>
            <pubDate>Thu, 10 Jul 2025 20:26:30 GMT</pubDate>
            <atom:updated>2025-07-10T20:26:30.714Z</atom:updated>
            <content:encoded><![CDATA[<p>How can enterprise systems evolve to support agentic workflows? In this post, we explore the conceptual foundations of Blue — a framework designed to integrate AI agents, data, and services into scalable, observable, and controllable enterprise applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UeT7GCtuZj3Y5csUepJhuQ.png" /></figure><p>In our <a href="https://megagon.ai/blue-v0-9-agentic-enterprise/">previous blog post</a> we introduced <a href="https://github.com/megagonlabs/blue">Blue</a>, a key project as part of our <a href="https://megagon.ai/research/compound-ai-system/">compound AI systems</a> research, targeting specifically “agentic for enterprise.” In this blog post, we will dive into more details regarding enterprise requirements and opportunities, and then discuss the rationale behind some of Blue’s conceptual designs.</p><p>Let’s begin by discussing what we expect agents and agentic frameworks to help facilitate in the enterprise context.</p><p><a href="https://github.com/megagonlabs/blue">Try Blue v0.9</a></p><h3>What does “agentic for enterprise” do?</h3><p>Over the course of years, many architectural patterns (such as layered, event-driven, service-oriented) have emerged, driven by the introduction of web applications, utilization of machine learning, and the use of business intelligence. Now, we are witnessing a new era of applications that exploit “agentic workflows” for business applications. However, the jury is still out on what the right agentic architecture is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*8w177dd2CtCai-hD.png" /><figcaption><em>Example Enterprise Architecture</em></figcaption></figure><p>While the architectural patterns are emerging, it is important to understand key requirements for enterprise organizations. Common across enterprises is the need to accommodate a multitude of applications and services. Typically, enterprise applications perform complex tasks with workflows comprising multiple services, fueled by data and models, through online and offline pipelines, from a multitude of data sources of various modalities (e.g., relational, graph, key-value, document).</p><p>With the introduction of “agentic” into enterprise solutions, we expect the nature of applications to change significantly: in regards to types of input fed into applications, how data is processed, transformed, and communicated, how computations are broken down, and eventually how outputs are produced and presented back to the user. For example, beyond chat-based applications, we expect to see increasingly more user input coming in natural language, which LLMs will be used to interpret. We expect data processing pipelines to use LLM-based operators to extract, process, summarize, and visualize data. LLMs will be exploited to identify user intent, prepare corresponding plans, and maybe even execute them.</p><p>Simply put, we are seeing a shift from “pre-designed” to “in situ designed” and from “direct manipulation” to “co-operative” models of applications, in regard to how data is acquired and computation is performed.</p><p>As such, we expect these evolutions in application development:</p><ul><li>computation moving between “non-deterministic” and “deterministic” components,</li><li>“high-dimensional” data and “parametric” knowledge used in conjunction with “structured” data and “symbolic” knowledge,</li><li>proprietary enterprise data, services, and models made available to “agents”, and</li><li>more use of external providers, in regard to LLMs, agents, and services.</li></ul><p>All the above have important implications for enterprise and agentic architectures.</p><h3>What are the objectives of “agentic architecture”?</h3><p>The goal of the architecture design is to improve overall performance, utility, and accountability by optimizing shared data and services across applications. At the same time, each application needs to tailor and control data and services to achieve outcomes specific to their use case. Applications have specific business logic to do so.</p><p>Key concerns of architecture design in the enterprise context are:</p><ul><li><em>Controllability:</em> ability to have sufficient governance on the outcomes for each application and service.</li><li><em>Configurability:</em> ability to reuse existing services through customization.</li><li><em>Observability:</em> ability to capture and examine key application data to test, debug, and account for.</li><li><em>Measurability:</em> ability to collect key performance data and compute and account for system performance indicators, including cost.</li><li><em>Scalability:</em> ability of the system to scale to the size and complexity of data, services, and applications in line with the expected performance and quality requirements.</li></ul><p>With agentic applications, these concerns simply carry over to rest on the agentic architectures to deliver and integrate, but they introduce challenges.</p><h3>Making enterprises ready for “agentic”</h3><p>A key requirement for enterprise agentic frameworks is to integrate existing enterprise resources and prepare them for “agentic workloads” to fuel the new set of “agentic applications.” This includes integrating existing proprietary data, models, and services.</p><p>What does making them ready for agentic mean? At a minimum, it means the ability to:</p><ul><li><em>find</em> available resources in the enterprise,</li><li><em>discover</em> new resources as they become available,</li><li><em>match</em> resources to application needs, and,</li><li><em>integrate</em> resources to utilize them in workflows, including:</li><li>how to <em>use</em> such resources.</li><li>how to <em>communicate</em> data and work resources.</li></ul><p>Additionally, in an enterprise context, it also means ability to:</p><ul><li><em>log</em> and record resource use (including perf data) for observability and accountability,</li><li><em>optimize</em> resource utilization for multiple objectives (cost, accuracy, response time), and potentially,</li><li><em>learn</em> from usage data to improve all above aspects (e.g., discover, match, integrate, optimize).</li></ul><h3>Blue Concepts</h3><p>At the heart of Blue lies a foundational shift in how enterprise systems interact with increasingly complex, intelligent, and dynamic workflows. Traditional enterprise architectures rely heavily on static configurations, rigid interfaces, and pre-defined logic. In contrast, Blue introduces compound AI system design principles — where modular, interoperable components (like agents, planners, and registries) are composed into intelligent workflows capable of responding to real-world complexity in real time. This design encourages a hybrid approach where deterministic systems and LLM-based reasoning agents operate in tandem, coordinated through shared infrastructure and common abstractions. These abstractions — such as registries — are key to making enterprise resources (like data, models, and services) discoverable, reusable, and controllable by agentic systems. In the next section, we focus on one of these key abstractions: registries.</p><h3>Registries</h3><p>Registries are essentially repositories that store records about the resources. For example, a data registry stores metadata about data sources in the enterprise. A model registry stores metadata about the available proprietary models in the enterprise. As such, registries are key touchpoints to the existing data infrastructure to find, discover, match, and integrate them into agentic workflows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*Y2_m-yUijA8UCO4j.png" /></figure><p>Depending on the type of resources, registries can store different kinds of data, metadata, properties, and logs. For example, a data registry could have names and descriptions of the tables, columns, sample values, database connection information, and past queries. An agent registry in a similar fashion could contain names of the available agents, their descriptions, properties to configure settings, input and output data format and specifications, and beyond.</p><p>A key function of the registry is to support finding, discovering, and matching resources. For example, a component such as a planner needs to be able to find and match a resource to a specific task in the plan. To be able to do so, the registry can be searched to find matching agents and services. Furthermore, by utilizing the metadata along with the logs (such as query logs), such information can be used to build models to learn the representation of said resources to help improve search quality.</p><p>For compute resources such as agents and services, the registry can also include input and output parameters, inclusion/exclusion rules, deployment information such as Docker images, and deployment configurations, along with other properties. Such information can be used in determining how to use and communicate with the resources. For example, the registry can contain names and descriptions of parameters, data types, but also connection information (e.g IP address) of the relevant services.</p><p>A data registry typically includes names, descriptions, and details about data at various levels of granularity (e.g., tables within a database), encompassing data schema and database connection specifics. The registry also incorporates vector metadata, which captures embeddings derived from learned representations of metadata (e.g., schema details), data contents (e.g., values), structural elements (e.g., schema relationships), and logs (e.g., query histories). Moreover, the data registry serves as a centralized repository where information, such as available indices, is stored. This unified interface allows any agent or component to seamlessly access and utilize information in a consistent manner.</p><p>Logging functionality within registries is very important, not only in improving observability and accounting, but also in optimization. Such data can include performance metrics for a model registry, which can be very useful for an optimizer when choosing the right model for the data and task at hand.</p><p>Developers (and agents) can interact with the registries through various interfaces like APIs and web applications. They can register new agents, update metadata, derive new agents from existing ones, and browse and search the registry. This interface provides comprehensive functionality for managing agents within the ecosystem.</p><h4><a href="https://github.com/megagonlabs/blue">Try Blue v0.9</a></h4><h3>In conclusion…</h3><p>Registries play a crucial role in making enterprises agentic. Through various registries, enterprise resources such as proprietary data, services, and models can be discovered and integrated into agentic workflows. Each registry is available for any agent to utilize, including more sophisticated components such as planners.</p><p>We strongly believe that, for “agentic workflows” to be truly embraced by the enterprise, many unique enterprise factors need to be taken into account. Simply put, it is not practical to drop what already exists — abandoning years of investment and context — and start completely fresh.</p><p>With these design objectives in mind, we made a first attempt to address these concerns and released <a href="https://github.com/megagonlabs/blue">Blue v0.9</a>. However, it is just the beginning. We would like to engage with the community to shape future versions.</p><h3>Next post</h3><p>In the next blog post, we will introduce streams, a key orchestration concept in Blue. We will show how streams allow and facilitate communication and coordination among agents and interface to data and services. <strong>Streams</strong> will be our answer to the key challenge of integrating enterprise resources. Furthermore, streams will help facilitate reusability and scalability in the enterprise. In future posts, we will cover other key components in Blue, including planners and operators, and eventually put it all together in our overall blueprint architecture.</p><p>Sounds interesting, right? Want to try it now?</p><p>Please go to the repo and follow the installation instructions: <a href="https://github.com/megagonlabs/blue">Blue v0.9</a></p><h4>Try Blue v0.9</h4><p>Written by <a href="https://megagon.ai/our-team/eser-kandogan/">Eser Kandogan</a> and <a href="http://megagon.ai/">Megagon Labs</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75577abb8ad8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blue v0.9: “Agentic” for the Enterprise!]]></title>
            <link>https://megagonlabs.medium.com/blue-v0-9-agentic-for-the-enterprise-bab2e0b10187?source=rss-f26a171ccf87------2</link>
            <guid isPermaLink="false">https://medium.com/p/bab2e0b10187</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[compound-ai-system]]></category>
            <dc:creator><![CDATA[Megagon Labs]]></dc:creator>
            <pubDate>Thu, 17 Apr 2025 23:40:26 GMT</pubDate>
            <atom:updated>2025-04-17T23:40:26.919Z</atom:updated>
            <content:encoded><![CDATA[<p>We present Blue v0.9, our open-source framework for building and deploying agentic workflows in enterprise environments. Unlike conventional AI frameworks, Blue is designed with enterprise-scale requirements in mind — scalability, observability, configurability, and seamless integration with existing infrastructure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*y8yNSTLiLC2eby5Y.png" /></figure><p>We just released Blue v0.9 — our open-source framework for building and deploying applications with agentic workflows for the enterprise.</p><p><a href="https://github.com/megagonlabs/blue">Try Blue v0.9</a></p><h3>A Systems Perspective</h3><p>In designing Blue, we followed a “systems perspective,” where we envisioned an architecture for an AI system — a compound AI architecture, not just a library — composed of a mix of LLM-based and “deterministic” agents and other key architectural components, such as data and agent registries and planners. Put together, this enables <em>Agentic for Enterprise</em>:</p><ul><li>performing complex tasks with workflows, providing essential control logic on outcomes</li><li>accessing data from various databases, typical in an enterprise</li><li>incorporating results with existing predictive models, built on enterprise data</li><li>using existing services and APIs already prevalent within the enterprise</li></ul><h3>Agentic for Enterprise</h3><p>From the get-go, our emphasis has been on building a framework that is tailored for the enterprise. This implies a number of requirements, such as scalability, observability, and configurability, quality of service, and more.</p><p>To achieve these requirements, a typical enterprise-scale software infrastructure has built-in control through data, application logic, and architecture. Such built-in controls are necessary for an enterprise to achieve reliable, quality outcomes that can be observed and analyzed. With the new “agentic” applications, these concerns simply carry over. Likewise, “agentic frameworks” must also comply and deliver.</p><p>Notably, there is substantial investment in the enterprise infrastructure: advanced AI models trained with proprietary data, fine-tuned LLMs, and plenty of services and APIs used in current applications, and of course, a wide variety of data that has been collected over the years. “Agentic for Enterprise” also implies that frameworks need to integrate into and exploit what already exists in the enterprise infrastructure to support a wide variety of enterprise use cases.</p><p>In designing Blue, our aim has been to leverage what already exists in the enterprise infrastructure, i.e., existing APIs, models, and data in their original sources, formats, and systems. From there, we can couple them with new capabilities and controls to drive new agentic applications.</p><h3>Redefining “Agents”</h3><p>Our framework’s definition of “agent” differs from the norm. Unlike other frameworks where LLMs are the only agents and handle everything — from planning and orchestration to interfacing with services, tools, and data — our architecture puts LLMs within a larger software architecture, with components that are deterministic as well as parametric in nature.</p><p>Hence, we expanded the definition of agent to also include any computational construct (e.g. predictive models, application logic, query execution, etc.). Agency doesn’t necessarily come from competency, but it comes from the ability to take initiative in making decisions. Agents can make ad hoc, on-the-fly choices as well as prescribed ones via deterministic code.</p><h3>Redefining “Coordination”</h3><p>In existing frameworks, natural language is the de facto mode of communication among agents. However, language may introduce ambiguity and vagueness, specifically when accomplishing complex knowledge-intensive tasks that require planning and coordination. Hence, we extend “data” to include “structured data” from basic types, such as numbers, to more compound types, such as JSON. We believe incorporating more structure to data is essential to improving controllability.</p><p>Beyond data, coordination also necessitates control. In Blue, instructions are special messages that agents can generate to impose control. This allows agents to plan and coordinate workflows, as well as simply have other agents do something for them.</p><h3>Redefining ‘Orchestration”</h3><p>To help facilitate “Agentic for Enterprise,” we have introduced several concepts, including:</p><ul><li><strong>Streams</strong> to facilitate data, control, and communication among agents</li><li><strong>Messages </strong>in streams to standardize data and instructions for agents</li><li><strong>Registries</strong> to capture metadata about data, agents, and more</li><li><strong>Session</strong> to provide context for computation</li><li><strong>Plans</strong> to represent workflows and execution</li><li>and more…</li></ul><p>At a high level, a session is created with a set of agents. Data comes in dynamically generated streams. For example, this could come from a user (agent) interacting, typing in text, or from an LLM generating text, and even from a sensor producing new readings. Agents in the session have agency to consume data in the streams, i.e. process data and instruction messages in streams, and in the process write data and instruction messages to new streams for other agents to process.</p><p>Sessions, in essence, provide the context of work. Sessions also have memory (key-value store) that agents can read/write from. Similarly, agents have their own memories (not shared) in the session scope. These additional memory constructs give sufficient power to build applications where agents can communicate and collaborate effectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/0*NJC59r0vjrBTTUYq.png" /></figure><p>In subsequent posts, we will go deeper into these concepts and explain how they help facilitate scalability, observability, configurability, and control, all critical components for agentic enterprise applications. To give a concrete example, a report generation use case might involve multiple data sources in an enterprise, different types of queries, visualizations, and summaries generated from these diverse data sources, plus agents checking facts. This might also incorporate experts as user agents who help to review, direct, and produce the final outcome: a report.</p><h3>Why v0.9?</h3><p>We have been working on this framework for nearly two years and have been through many iterations. We learned a lot from these earlier versions. The framework evolved and matured over the years, but we still believe we have not fully realized Blue’s potential. In other words, we have big plans for this framework, and we know some key areas to improve upon.</p><p>Yet, in a (very) fast-moving space, we also feel the urge to put the framework out sooner and share some of the architectural concepts with the community. We want to engage with the community to develop next versions. We would love to hear your opinion on our design, your use cases, and the agents you plan to build. We are also planning to get more direct contributions to the repository.</p><p>Together, we want to explore the design space of agentic orchestration systems, to support a broad variety of use cases:</p><ul><li>from conversational interactions to non-interactive use cases,</li><li>from fixed workflows to ad hoc planned workflows,</li><li>from purely textual interaction to interactive agents with user interfaces, visualizations, and beyond.</li></ul><p>Blue is designed such that it can be configured to support many of these use cases.</p><h3>What Can You Do?</h3><p>Here are a few examples you can build with Blue:</p><ul><li>a set of agents that convert natural language to SQL, then execute and summarize results in natural language</li><li>agents that produce interactive graphical user interfaces and visualizations with your data (e.g. self-service business intelligence)</li><li>a conversational agent that interfaces with existing predictive models and APIs (e.g. job search agent with predictive models and data)</li><li>agents that execute workflows processing text data, extracting and populating databases.</li></ul><p>Interesting, right? Want to try it now? Go to the <a href="https://github.com/megagonlabs/blue">repo</a> and follow the installation instructions: <a href="https://github.com/megagonlabs/blue">Megagon Blue v0.9</a></p><h4><a href="https://github.com/megagonlabs/blue">Try Blue v0.9</a></h4><h3>Upcoming Posts​</h3><p>We will follow up with a three-part blog, where we will tackle the key concepts in the architecture step by step. In the first part of the blog, we will talk about the enterprise, opportunities, and requirements that come with it, and discuss the rationale behind some of the conceptual designs of Blue. In the second part, we will primarily focus on “streams” as the key orchestration concept in Blue and argue why it’s the right abstraction for orchestrating data and control for agentic architectures. In the last part, we will introduce the overall blueprint for our agentic architecture and Blue’s implementation and then discuss some of the key design rationales.</p><h3>Blue v1.0 is in the works and coming soon.<br>Stay tuned!</h3><p>Written by: <a href="https://megagon.ai/eser-kandogan/">Eser Kandogan</a> and Megagon Labs</p><p>Share this article</p><p><a href="https://megagon.ai/rethinking-ranking/">PrevPreviousRethinking Ranking: Introducing Multi-Conditional Ranking (MCR) with LLMs</a></p><h3>Related Articles</h3><p><a href="https://megagon.ai/rethinking-ranking/"><strong>Rethinking Ranking: Introducing Multi-Conditional Ranking (MCR) with LLMs</strong></a></p><p>With the MCRank benchmark and our EXSIR method, we’ve shown that LLMs can significantly improve their performance on these challenging tasks when guided by structured reasoning.</p><p><a href="https://megagon.ai/rethinking-ranking/">Read more</a></p><p><a href="https://megagon.ai/emnlp-24-highlights/"><strong>EMNLP 2024 Highlights</strong></a></p><p>Megagon Labs has curated this blog post to spotlight key developments in agentic systems, AI safety, and human-centered AI.</p><p><a href="https://megagon.ai/emnlp-24-highlights/">Read more</a></p><p><a href="https://megagon.ai/optimizing-compound-ai-sys/"><strong>Optimizing Compound AI Systems</strong></a></p><p>Through this blog, we echo that the optimization framework for compound AI systems should achieve broader goals such as multi-objective (accuracy, cost, latency, etc.), multi-plan optimization, and handling constraints, especially the budget. Again, these optimization goals are not comprehensive by far but are important for enterprise scenarios.</p><p><a href="https://megagon.ai/optimizing-compound-ai-sys/">Read more</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bab2e0b10187" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bridging the Gap: System 2 Thinking in AI & RAG Systems]]></title>
            <link>https://megagonlabs.medium.com/bridging-the-gap-system-2-thinking-in-ai-rag-systems-f2982713443e?source=rss-f26a171ccf87------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2982713443e</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Megagon Labs]]></dc:creator>
            <pubDate>Sat, 01 Feb 2025 00:23:30 GMT</pubDate>
            <atom:updated>2025-02-01T00:23:30.868Z</atom:updated>
            <content:encoded><![CDATA[<p>While LLMs excel in generating fluent, human-like text and responding to queries, their true potential remains untapped in complex real-world scenarios where precision, adaptability, and deep reasoning are paramount. A novel approach inspired by human cognition, known as System 2 thinking, offers a path forward. By combining the analytical processes of System 2 thinking with Retrieval-Augmented Generation (RAG) systems, AI can address challenges that were previously insurmountable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XGrJtnk4mPBA3eMugKfQkQ.png" /></figure><h3>Challenges in Current AI Systems</h3><p>Traditional AI systems, including RAG, resemble what cognitive scientists call System 1 thinking. While these systems excel in controlled environments, they often falter in real-world applications. Key challenges include:</p><ul><li><strong>Handling Diverse Formats, Noisy, or Incomplete Data:</strong> AI must synthesize information from varied and noisy sources like text, graphs, and tables.</li><li><strong>Dynamic User Needs:</strong> Contexts and requirements frequently shift, demanding adaptable responses.</li><li><strong>High-Stakes Accuracy Requirements:</strong> domain-specific applications impose stringent demands for precision and reliability.</li><li><strong>Trust and Verification:</strong> Users require transparent and trustworthy outputs, especially in critical scenarios.</li></ul><h3>System 2 Thinking</h3><p>System 2 thinking aligns with the reasoning humans use for complex tasks. Applying this paradigm to AI systems can help address limitations in traditional RAG workflows.</p><p><strong>1. Modular Task Decomposition</strong></p><ul><li><strong>Retrievers:</strong> Extract relevant information from external databases.</li><li><strong>Planners:</strong> Analyze the problem, determine required data, and sequence of tasks and agents.</li><li><strong>Optimizers:</strong> Explore and identify the best execution plan under real-world constraints.</li><li><strong>Verifiers:</strong> Validate the accuracy and consistency.</li><li><strong>Generators:</strong> Assemble the responses based on verified data and reasoning.</li></ul><p><strong>2. Enhanced Reasoning Capabilities. </strong>Before providing a response, the system carefully analyzes problems, synthesizes insights from multiple sources, and verifies their conclusions.</p><p><strong>3. Grounded and Accurate Outputs.</strong> Grounding outputs in retrieved, verifiable data mitigates the risk of “hallucination”.</p><h3>Challenges and Considerations</h3><ul><li><strong>Increased Computational Overhead:</strong> Deliberate reasoning processes consume more time and resources.</li><li><strong>Orchestration Complexity:</strong> Integrating multiple specialized agents requires sophisticated system design.</li><li><strong>Balancing Speed and Precision:</strong> Striking the right trade-off between efficiency and accuracy remains critical.</li></ul><h3>A Vision for the Future</h3><p>By emulating deliberate, human-like reasoning, System 2-inspired RAG systems can bridge the gap between static LLMs and the demands of real-world applications and enable compound AI systems to:</p><ul><li>Tackle multi-step problem-solving with confidence.</li><li>Navigate evolving contexts and dynamic user needs.</li><li>Empower industries with robust decision-making and knowledge synthesis.</li></ul><p>Read the RAG in the Wild research paper featured by the <a href="http://sites.computer.org/debull/bull_issues.html">IEEE Data Engineering Bulletin</a> — <a href="http://sites.computer.org/debull/A24dec/issue1.htm">December Issue</a>.</p><p><a href="https://megagon.ai/publications/retrieval-augmented-generation-in-the-wild-a-system-2-perspective/">Read the paper</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2982713443e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>