<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>code generation &#8211; Science</title>
	<atom:link href="https://scienmag.com/tag/code-generation/feed/" rel="self" type="application/rss+xml" />
	<link>https://scienmag.com</link>
	<description></description>
	<lastBuildDate>Fri, 25 Sep 2026 01:27:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.2</generator>

<image>
	<url>https://scienmag.com/wp-content/uploads/2024/07/cropped-scienmag_ico-32x32.jpg</url>
	<title>code generation &#8211; Science</title>
	<link>https://scienmag.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">73899611</site>	<item>
		<title>TableZoomer: AI Agents That Zoom In on Giant Tables to Answer Questions</title>
		<link>https://scienmag.com/tablezoomer-ai-agents-that-zoom-in-on-giant-tables-to-answer-questions/</link>
		
		<dc:creator><![CDATA[Violet Maxwell]]></dc:creator>
		<pubDate>Fri, 25 Sep 2026 01:27:35 +0000</pubDate>
				<category><![CDATA[Earth Science]]></category>
		<category><![CDATA[accuracy improvements in table question answering]]></category>
		<category><![CDATA[addressing Loss in the Middle phenomenon]]></category>
		<category><![CDATA[agent framework]]></category>
		<category><![CDATA[challenges of large table comprehension]]></category>
		<category><![CDATA[code generation]]></category>
		<category><![CDATA[collaborative AI agents for table analysis]]></category>
		<category><![CDATA[DataBench]]></category>
		<category><![CDATA[entity linking]]></category>
		<category><![CDATA[handling large-scale tabular data]]></category>
		<category><![CDATA[large language models]]></category>
		<category><![CDATA[large language models for table question answering]]></category>
		<category><![CDATA[multi-agent systems for data extraction from tables]]></category>
		<category><![CDATA[numerical reasoning]]></category>
		<category><![CDATA[open-access research on AI table understanding]]></category>
		<category><![CDATA[overcoming context window limitations in LLMs]]></category>
		<category><![CDATA[Program-of-Thoughts]]></category>
		<category><![CDATA[ReAct]]></category>
		<category><![CDATA[scalable methods for table data interpretation]]></category>
		<category><![CDATA[schema representation]]></category>
		<category><![CDATA[table flattening techniques for language models]]></category>
		<category><![CDATA[table question answering]]></category>
		<category><![CDATA[TableBench]]></category>
		<category><![CDATA[TableZoomer]]></category>
		<category><![CDATA[two-dimensional table processing in AI]]></category>
		<guid isPermaLink="false">https://scienmag.com/?p=213819</guid>

					<description><![CDATA[Researchers have developed TableZoomer, a collaborative agent framework that boosts large language model accuracy on table question answering by up to 25 percent through schema compression, query-aware table zooming and code-based reasoning.]]></description>
										<content:encoded><![CDATA[<p>Tables are everywhere. From hospital records and financial ledgers to sports statistics and travel bookings, the humble spreadsheet remains the workhorse of the data-driven world. Yet when researchers and companies try to get large language models to answer simple questions about these tables, the results are often disappointing. A new study published in the open-access journal Vicinagearth introduces TableZoomer, a collaborative agent framework that promises to change that, delivering dramatic accuracy gains on tables ranging from a few hundred cells to more than a million.</p>
<p>The challenge begins with a fundamental mismatch. Large language models are built to process linear sequences of text, while tables are inherently two-dimensional structures. To make a table readable by a model, engineers must flatten it into text, usually in Markdown or JSON format. For a small table this works reasonably well. But for an industrial-scale table with hundreds of thousands of rows, the flattened version can exhaust the model&#8217;s context window entirely, leaving no room for the model to actually reason about the question. Even when the table fits, researchers have documented a phenomenon known as Loss in the Middle, in which models pay less attention to information buried in the middle of long inputs.</p>
<p>A team of researchers at the Institute of Artificial Intelligence (TeleAI) at China Telecom, led by Sishi Xiong and Ziyang He, set out to tackle these bottlenecks head-on. Their starting point was a simple observation: for any given question, the vast majority of cells in a large table are irrelevant noise. A question about average sales per publisher does not need the model to read every customer review column. Rather than forcing the model to digest the entire table, TableZoomer first builds a compact summary and then zooms in on only the parts that matter.</p>
<p>The framework&#8217;s first innovation is schema-based representation. Instead of feeding the model the full verbalized table, a component called the Table Describer parses the spreadsheet using the Pandas toolkit and generates a structured JSON schema. This schema captures each column&#8217;s data type, statistical properties such as maximum, minimum, mean and median values for numerical data, unique categories for categorical data, and a handful of randomly sampled cell values as examples. The result reduces the token complexity of the table representation from O(M times N), where M and N are the numbers of rows and columns, down to O(N), a reduction of orders of magnitude. Crucially, the schema is generated only once per table and can be reused across many questions.</p>
<p>Next comes the zooming mechanism, which the authors describe as query-aware table focusing. A Query Planner, guided by chain-of-thought prompting, decomposes the user&#8217;s question into atomic sub-queries and classifies them as either column-only queries, which can be answered from aggregate statistics, or row-column queries, which require identifying both relevant rows and columns. The Table Refiner then performs three operations: column selection to discard irrelevant features, entity linking to match names mentioned in the question with their surface forms in the table using a Longest Common Subsequence algorithm with an overlap threshold of 0.6, and table zooming to produce a minimal, query-relevant sub-schema. On the benchmark datasets, this column selection compressed the original column counts to just 5.2, 19.8 and 22.6 percent of their original sizes on DataBench, TableBench and WikiTableQA respectively.</p>
<p>Once the table has been zoomed, the framework turns to execution. Rather than asking the model to reason about numbers in natural language, a strategy prone to numerical hallucination, TableZoomer employs the Program-of-Thoughts approach, prompting the language model to generate executable Python code. The code runs in an isolated environment, and if execution fails, an error feedback mechanism returns the code and error traces to the model for self-correction. The entire workflow is orchestrated through the ReAct paradigm, an iterative cycle of thought, action and observation, with reasoning rounds capped at five. An Answer Formatter finally packages the result into whatever strict output format the task demands, from pure numbers to complete sentences.</p>
<p>The performance numbers are striking. When implemented with the Qwen3-8B-Instruct model, TableZoomer achieved accuracy improvements of 19.34 percent on the large-scale DataBench dataset and 25 percent on the Fact Checking task of TableBench compared with conventional Program-of-Thoughts methods, plus an 11.84 percent gain on TableBench&#8217;s Numerical Reasoning task. Perhaps most remarkably, the framework narrows the gap between models of different sizes: the TableZoomer-enhanced Qwen3-8B outperformed the much larger baseline Qwen3-32B model. For companies weighing the cost of deploying large models, this suggests that a well-designed agent framework can let smaller, cheaper models punch far above their weight.</p>
<p>Scalability proved to be another standout strength. The researchers sorted DataBench tables by cell count into large subsets averaging 1,519,065 cells, medium subsets averaging 18,131 cells and small subsets averaging 2,882 cells. Textual chain-of-thought reasoning degraded severely as table size grew, while code-based Program-of-Thoughts held up better. TableZoomer, however, showed minimal performance degradation across all three size categories, an attribute the authors attribute to the Table Describer and Table Refiner components excelling at locating essential information within massive tables. The framework also proved remarkably robust to how tables are serialized: while a baseline model&#8217;s accuracy fluctuated by up to 9.18 percentage points across Pandas-String, Markdown, JSON and structured formats, TableZoomer varied by only 0.57 points, staying between 86.59 and 87.16 percent.</p>
<p>Ablation studies on DataBench using Qwen3-8B confirmed which components matter most. Simply replacing the full-table Markdown text with the schema representation improved accuracy by 6.51 percentage points. Adding the table zooming mechanism then pushed accuracy from 74.33 to 86.40 percent, marking it as the framework&#8217;s core engine. Removing entity linking cost 1.73 points, and the ReAct reflection loop delivered a modest but consistent additional gain. Case studies illustrated the practical differences: where a baseline program-of-thoughts method misread a hierarchical Parent ID column and returned the number 150 instead of the category name Attractions, TableZoomer&#8217;s schema-level semantic annotations enabled an extra lookup that produced the correct answer. In another case, the framework&#8217;s denoising stage recovered a string-encoded dictionary field that stumped the baseline, correctly extracting an overall rating.</p>
<p>Efficiency analysis showed TableZoomer&#8217;s core workflow requires a minimum of five language model invocations, spanning the Table Describer, Query Planner, Code Generator, Answer Formatter and ReAct reflection, with the schema generated once and reused across multi-turn question answering. Competing frameworks often demand more: Chain-of-Table scales its inference count with the number of planning and execution operations, PoTable typically needs at least eight calls, and TableMaster at least six. On WikiTableQA, TableZoomer using LLaMA3.1-70B trailed only TableMaster, by 1.43 percent, while outperforming the second-ranked PoTable by 10.96 percent. The authors are candid about limitations: the predefined fixed workflow remains a bottleneck, and they plan to explore a central brain module that autonomously selects optimal action paths, as well as extending the framework toward vision-language models that could perceive table layouts directly. The source code is publicly available on GitHub, inviting the community to build on a framework that may well redefine how machines read the world&#8217;s spreadsheets.</p>
<p><strong>Subject of Research:</strong> Large language model agent framework for table question answering over large-scale tabular data</p>
<p><strong>Article Title:</strong> TableZoomer: a collaborative agent framework for large-scale table question answering</p>
<p><strong>Article References:</strong> Xiong, S., He, Z., He, Z., Zhao, Y., Pan, C., Zhang, J., Song, S., &amp; Li, Y. (2025). TableZoomer: a collaborative agent framework for large-scale table question answering. <em>Vicinagearth, 2</em>(1), Article 11. <a href="https://doi.org/10.1007/s44336-025-00016-x" rel="noopener noreferrer">https://doi.org/10.1007/s44336-025-00016-x</a></p>
<p><strong>Image Credits:</strong> AI Generated</p>
<p><strong>DOI:</strong> <a href="https://doi.org/10.1007/s44336-025-00016-x" rel="noopener noreferrer">10.1007/s44336-025-00016-x</a></p>
<p><strong>Keywords:</strong> table question answering, large language models, TableZoomer, agent framework, Program-of-Thoughts, ReAct, schema representation, entity linking, DataBench, TableBench, numerical reasoning, code generation</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">213819</post-id>	</item>
		<item>
		<title>AI Assistant Writes and Runs Hydrology Code Directly in Your Browser</title>
		<link>https://scienmag.com/ai-assistant-writes-and-runs-hydrology-code-directly-in-your-browser/</link>
		
		<dc:creator><![CDATA[Violet Maxwell]]></dc:creator>
		<pubDate>Wed, 23 Sep 2026 01:15:32 +0000</pubDate>
				<category><![CDATA[Earth Science]]></category>
		<category><![CDATA[AI in environmental research]]></category>
		<category><![CDATA[AI-assisted water resource management]]></category>
		<category><![CDATA[AI-powered hydrology coding]]></category>
		<category><![CDATA[automating hydrological data analysis]]></category>
		<category><![CDATA[browser-based hydrology programming]]></category>
		<category><![CDATA[code generation]]></category>
		<category><![CDATA[domain-specific AI language models]]></category>
		<category><![CDATA[HydroCompute]]></category>
		<category><![CDATA[hydroinformatics]]></category>
		<category><![CDATA[HydroLang]]></category>
		<category><![CDATA[hydrological modeling]]></category>
		<category><![CDATA[hydrological process modeling with AI]]></category>
		<category><![CDATA[HydroRTC]]></category>
		<category><![CDATA[HydroSuite-AI]]></category>
		<category><![CDATA[HydroSuite-AI platform]]></category>
		<category><![CDATA[large language models]]></category>
		<category><![CDATA[multi-agent orchestration]]></category>
		<category><![CDATA[open-source hydrology]]></category>
		<category><![CDATA[retrieval-augmented generation]]></category>
		<category><![CDATA[simplifying hydrology programming]]></category>
		<category><![CDATA[virtualized execution environment]]></category>
		<category><![CDATA[water science computer code generation]]></category>
		<category><![CDATA[web-based computing]]></category>
		<category><![CDATA[web-based water science tools]]></category>
		<guid isPermaLink="false">https://scienmag.com/?p=209437</guid>

					<description><![CDATA[Researchers have built HydroSuite-AI, a browser-based AI assistant that generates and executes hydrological code across open-source libraries with up to 95 percent function retrieval accuracy.]]></description>
										<content:encoded><![CDATA[<p>An AI-powered assistant that can write, check, and run hydrological computer code inside a web browser has been unveiled by researchers working at the intersection of artificial intelligence and water science. The system, called HydroSuite-AI, was described in a study published in Earth Science Informatics and is designed to tear down one of the most stubborn barriers in modern hydrology: the steep technical learning curve that separates a scientist with a good research question from the working code needed to answer it. In benchmark tests spanning 60 domain-specific tasks, the platform retrieved the correct library functions with up to 95 percent accuracy, suggesting that carefully engineered language model pipelines can meaningfully accelerate environmental research.</p>
<p>The problem the researchers set out to solve is familiar to anyone working in computational science. Hydrological modeling increasingly demands sophisticated process-based models, sprawling data analysis pipelines, and specialized software libraries whose documentation is often fragmented, evolving, or sparse. A hydrologist must typically be both a domain expert and a competent programmer, spending countless hours mastering application programming interfaces, debugging parameter mismatches, and stitching together tools that were never designed to work together. The study&#8217;s authors argue that this dual burden diverts time away from the scientific inquiry itself and toward computational housekeeping, a cost that falls hardest on early-career researchers and students with partial coding backgrounds.</p>
<p>HydroSuite-AI attacks the problem by wrapping three open-source web libraries into a single intelligent environment. HydroLang provides modular tools for data fetching, statistical and hydrologic analysis, geospatial processing, and visualization of maps, charts, and tables. HydroCompute brings high-performance computing to the browser, exploiting multithreading and technologies such as WebAssembly, WebGPU, and emerging engines that can even run Python and R code client-side. HydroRTC handles large-scale data sharing and transfer between peers and servers using decentralized WebRTC and WebSocket connections, supporting common hydrological formats like NetCDF, GRIB, and HDF5. Together these libraries form the HydroSuite ecosystem, and the new assistant acts as a conversational bridge between a researcher&#8217;s natural language intent and the precise function calls those libraries require.</p>
<p>What distinguishes the system from a standard chatbot is its multi-agent orchestration architecture, organized around a Planner, Worker, and Synthesizer. When a user submits a query, the interface forwards it to a backend that classifies whether the request seeks factual information or executable code. Complex computational requests are decomposed by the Planner Agent into a strict JSON plan of library-specific sub-tasks, which are dispatched asynchronously to specialized Worker Agents. Each Worker is grounded through retrieval-augmented generation, or RAG, in the indexed documentation of its target library, which prevents the model from mixing API syntaxes across packages. Documentation and usage examples are preprocessed into semantic chunks of roughly 1200 tokens with 150-token overlap, embedded at 256 dimensions, and retrieved by cosine similarity, with the 20 most relevant chunks injected into the model&#8217;s context window during inference.</p>
<p>The Synthesizer then acts as a lead architect rather than a simple text concatenator. Operating under a strict assembly protocol, it merges the isolated outputs of the parallel workers into a single unified HTML and JavaScript application, normalizes dependencies to match the execution environment, and performs hallucination safety checks. If a requested feature is not supported by the indexed documentation, the system flags the gap and injects a user warning instead of generating non-functional code. Assembled code is finally validated in a client-side Virtualized Execution Environment, which serializes the libraries&#8217; source files into a browser-based Virtual File System, allowing generated applications to run, be edited, and be re-run in an offline-capable, self-contained sandbox.</p>
<p>The evaluation combined three complementary protocols. A qualitative expert assessment rated responses to prompts of varying complexity on a one-to-five scale and labeled failure modes using a hallucination taxonomy adapted from prior research on LLM code generation, distinguishing intent-conflicting errors, context deviations such as inconsistency, repetition and dead code, and knowledge-conflicting errors involving incorrect API or identifier usage. An interoperability case study tasked the system with generating a Collaborative Peer-to-Peer Geospatial Analysis Tool that integrated all three libraries in one page. The synthesized application fetched high-resolution elevation data from the USGS 3DEP program and precipitation grids from CHIRPS, reprojected the rasters into a web-compatible coordinate system using client-side WebAssembly, rendered interactive map layers with HydroLang, and transmitted processed raster buffers directly between users through HydroRTC, all without a server intermediary.</p>
<p>The quantitative benchmark compared four large language model backends across 60 domain-specific tasks verified by the libraries&#8217; lead developers, with tasks phrased using real hydrological terminology such as the Mann-Kendall trend test, the D8 flow algorithm, and the Hargreaves method rather than naming target functions directly. Powered by o3-mini, HydroSuite-AI achieved a Function Retrieval Accuracy of 95.0 percent, though with a mean latency of 23.1 seconds. GPT-4o-mini followed at 86.67 percent accuracy, while GPT-4.1-nano delivered the fastest responses at just under 10 seconds with a lower accuracy of 71.67 percent. The results reveal a clear accuracy-speed tradeoff: heavier reasoning models adhere more faithfully to retrieved documentation, while lightweight models suit interactive use where minor errors can be iteratively corrected. A separate Function Hallucination Rate metric captured responses referencing non-existent or incorrect functions.</p>
<p>Real-world deployment came during WaterSoftHack 2024, a two-week online hackathon supported by a three-year National Science Foundation project and coordinated by Clemson University, the University of Iowa, and CUAHSI. The event began with roughly 120 participants from hydrology departments worldwide before narrowing to ten fellows developing library-based projects. Throughout, HydroSuite-AI served as an interactive assistant, explaining connections between library components, generating code snippets, and providing step-by-step support for building web applications. Participants reported that the tool made documentation easier to access and features easier to apply, and the developers observed that the dominant bottleneck was locating the correct function signature, argument order, and data format across three actively developed libraries before any modeling work could begin.</p>
<p>The authors are candid about limits. Expert evaluation caught cases where the system correctly identified a function such as stochasticRainfallGeneration but misrepresents its input structure, listing required parameters inside a configuration object rather than at the top level as the API actually expects. Advanced multi-step workflows, including a Monte Carlo-ARIMA analysis, received only generic guidance rather than tailored solutions. The system&#8217;s performance depends entirely on the quality and currency of its indexed documentation, and the 256-dimensional embeddings may underrepresent the complexity of nuanced hydrological queries. The researchers propose future work including larger embedding sizes, additional code-optimized models, automated verification against library specifications, benchmark tasks phrased for non-expert users, and testing whether the architecture generalizes to scientific software outside hydrology.</p>
<p>Even with these caveats, the study makes a persuasive case that documentation-grounded, multi-agent language model orchestration can reliably automate the function-lookup and boilerplate-generation stage of hydrological software development, with reliability that degrades predictably as task complexity rises. The authors position generated code as an initial working draft that users still edit, test, and validate, with the greatest benefit accruing to students and early-career researchers moving from question to first working implementation. As climate pressures intensify demands on water science, tools that collapse the distance between a research idea and running code may prove as consequential as the models they help deploy.</p>
<p><strong>Subject of Research:</strong> An LLM-based multi-agent web environment for hydrological code generation and execution across the HydroSuite open-source library ecosystem</p>
<p><strong>Article Title:</strong> HydroSuite-AI: a web-based LLM environment for hydrological code generation and execution for the hydrosuite open-source ecosystem</p>
<p><strong>Article References:</strong> HydroSuite-AI: a web-based LLM environment for hydrological code generation and execution for the hydrosuite open-source ecosystem. (n.d.). <a href="https://doi.org/10.1007/s12145-026-02222-7" rel="noopener noreferrer">https://doi.org/10.1007/s12145-026-02222-7</a></p>
<p><strong>Image Credits:</strong> AI Generated</p>
<p><strong>DOI:</strong> <a href="https://doi.org/10.1007/s12145-026-02222-7" rel="noopener noreferrer">10.1007/s12145-026-02222-7</a></p>
<p><strong>Keywords:</strong> HydroSuite-AI, hydroinformatics, large language models, retrieval-augmented generation, multi-agent orchestration, code generation, virtualized execution environment, HydroLang, HydroCompute, HydroRTC, open-source hydrology, web-based computing</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">209437</post-id>	</item>
	</channel>
</rss>
