• HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
Friday, November 27, 2026
BIOENGINEER.ORG
No Result
View All Result
  • Login
  • HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
        • Lecturer
        • PhD Studentship
        • Postdoc
        • Research Assistant
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
  • HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
        • Lecturer
        • PhD Studentship
        • Postdoc
        • Research Assistant
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
No Result
View All Result
Bioengineer.org
No Result
View All Result
Home NEWS Science News Technology

Toolkit Uses Large Language Models to Generate Differentially Private Synthetic Graphs

by
November 27, 2026
in Technology
Reading Time: 6 mins read
0
Toolkit Uses Large Language Models to Generate Differentially Private Synthetic Graphs

Toolkit Uses Large Language Models to Generate Differentially Private Synthetic Graphs

Share on FacebookShare on TwitterShare on LinkedinShare on RedditShare on Telegram

Researchers have developed LEGEND, an open-source software toolkit that uses a large language model to construct synthetic graphs under central edge differential privacy while preserving fine-grained connectivity patterns. Differential privacy provides rigorous mathematical bounds on the disclosure risk of individual records within shared datasets, but adapting these privacy guarantees to graph structures has historically constrained data utility. Traditional graph synthesis algorithms rely on fixed stochastic frameworks, such as stochastic Kronecker graphs, hierarchical random graphs, or block two-level Erdős-Rényi models, which often fail to capture complex empirical topologies beyond their rigid mathematical assumptions. By inserting a pretrained language model strictly into the construction step after degree sanitisation, LEGEND achieves substantial improvements in edge-count precision and degree-distribution fidelity across benchmark subgraphs of twenty to sixty nodes. Because the model operates entirely on post-processed degree values, the resulting synthetic releases inherit formal differential privacy guarantees without exposing sensitive underlying edge connections to the model itself.

Graph analysis extracts essential topological metrics from real-world systems, including social circles, communication records, academic collaboration networks, and web link infrastructures. Within these networks, structural metrics such as sorted degree distributions characterize overall connectivity patterns, while subgraph counts like triangles establish clustering coefficients that reflect community cohesion. Releasing empirical graph statistics directly introduces substantial re-identification vulnerabilities, as specific edge configurations frequently encode private, confidential relationships between identifiable entities. In differential privacy frameworks, neighbouring datasets define the scope of protection. Node differential privacy protects a node alongside all of its incident edges, requiring substantial injected noise that severely degrades utility. Consequently, LEGEND adopts edge differential privacy within the central curator model, where a trusted authority possesses the complete graph. In this configuration, two graphs are neighbours if they differ by exactly one edge. Adding or removing a single edge alters the degrees of exactly two terminal nodes by one, establishing that the sorted degree sequence has a global L1 sensitivity of two.

Prior techniques for private graph release typically followed two paradigms: calculating query-specific noise mechanisms for isolated statistical questions or fitting parametric stochastic models to perturb statistical summaries. Query-specific techniques require partitioning a finite privacy budget across every intended question, quickly exhausting utility as analytical queries multiply. Synthetic graph publication resolves this budget depletion by generating an artificial network that permits unlimited downstream queries under a single privacy allocation. Existing generators—including DP-dK parameter perturbations, TmF adjacency filtering, PrivSKG, PrivHRG, PrivGraph, and degree-guided generators like DGG—fit predefined generative algorithms to noisy statistics. However, their structural fidelity remains bounded by whatever underlying structural distributions those fixed stochastic models are capable of expressing. Meanwhile, large language models have exhibited structural reasoning capabilities over text-encoded graphs, but prior language-model generators provided no mathematical privacy guarantees. LEGEND bridges this gap by demonstrating that a language model can act as an expressive structural generator driven entirely by sanitized graph degree sequences.

The software architecture of LEGEND is implemented in Python across three modular stages connected by plain text files: reference subgraph extraction, synthetic graph generation, and comparative evaluation. An automated coordinator script, run_experiments.py, manages execution across experiment grids with resumable state tracking. Private network data enter the execution pipeline solely through an auditable perturbation function in common.py. Before any measurements are derived from the private input graph, its nodes undergo uniform random relabelling from zero to n minus one. This random permutation strips away source identity metadata, ensuring that benchmark inputs cannot be memorized or recognized by node labels. Because every subsequent operation in the generation pipeline reads only sanitized numerical data, the complete synthetic output and its associated execution records inherit formal differential privacy via the post-processing theorem. The evaluation harness, which inspects the original private graph to quantify analytical utility, operates entirely downstream as a benchmarking framework and remains separated from the publication mechanism.

LEGEND establishes edge differential privacy by sorting node degrees in non-increasing order and injecting independent noise drawn from a zero-mean Laplace distribution with a scale parameter equal to two divided by epsilon. To restore graphical validity, the noisy values are projected onto the nearest degree sequence that can be realized by a connected simple graph. This is achieved by solving a mixed-integer linear program that minimizes the L1 distance between noisy and integer sequences subject to ordering constraints, integer degree bounds, an even degree sum, and the Erdős–Gallai inequalities. These linear constraints guarantee the mathematical existence of a simple connected graph possessing the requested degree sequence, preventing impossible structural prompts. In empirical benchmarks, the mixed-integer linear program solved rapidly, exhibiting a median execution time below 0.5 seconds across graphs up to eighty nodes and never exceeding seven seconds. The resulting sanitized degrees are randomly assigned to node indices to specify target connectivity for subsequent generation.

The sanitized degree sequence is formatted into a standardized English prompt template containing the node count, total edge count, target degrees for each node, a distribution check, and explicit instructions to return only an edge list for a simple connected graph. In benchmark experiments, LEGEND accessed the gpt-5.6-sol model via an OpenAI-compatible completion interface configured with a temperature of 0.7 and a single user turn. The resulting responses undergo strict line-by-line parsing: only lines defining an undirected edge between two valid integer node identifiers are accepted, while duplicated edges, self-loops, out-of-range labels, and explanatory prose are discarded. Any omitted node is retained as an isolated vertex, ensuring that the reconstructed graph maintains the full node set. Every execution logs extensive runtime metadata, including token consumption, response latency, requested degrees, epsilon budgets, and structural adherence metrics such as degree deviations, edge count errors, and overall graph connectivity.

Empirical validation was performed across sixty reference subgraphs extracted from four Stanford Network Analysis Platform repositories representing distinct domains: Wikipedia page hyperlinks from Chameleon, social connections from Facebook, co-authorship records from CA-HepPh, and organizational e-mail exchanges from Enron. Reference subgraphs were evaluated at sizes of twenty, forty, and sixty nodes across five differential privacy budgets with epsilon values of one, two, four, six, and eight. Each experimental configuration was repeated ten times, yielding 3,600 language-model generations alongside 6,000 baseline graphs produced by DGG. To evaluate utility, six distinct graph queries were measured: relative errors in edge count, average clustering coefficient, triangle count, diameter, and average shortest-path length, alongside the Wasserstein-1 distance across degree distributions. Statistical comparisons treated each reference subgraph as an independent unit, pooling repetitions and applying two-sided paired t-tests with Holm corrections across subgraphs of identical sizes.

Across all evaluated privacy budgets and subgraph sizes, LEGEND demonstrated substantial structural superiority over the DGG baseline in degree distribution and edge count accuracy. Across pooled networks, LEGEND restricted its mean edge-count relative error to a range between 3.9 percent and 5.2 percent, whereas DGG incurred errors between 11.0 percent and 16.9 percent. Similarly, LEGEND achieved Wasserstein-1 degree-distribution distances between 0.30 and 0.44, compared to 0.98 to 1.11 for DGG. These differences proved statistically significant across ten of fifteen size-budget configurations for edge counts and twelve of fifteen settings for degree distributions. A same-input ablation study, wherein DGG was supplied with the identical sanitized degree sequence calculated by LEGEND, confirmed that this fidelity originates directly from the language model’s construction phase. The model reproduced target degree sequences exactly in 82 percent to 93 percent of valid graphs, whereas DGG never matched requested targets, underestimating target edges in 83 percent to 92 percent of runs.

While LEGEND excelled at degree preservation, its reproduction of clustering coefficients and path lengths remained comparable to existing baselines. No statistically significant difference in clustering accuracy emerged between LEGEND and DGG at any evaluated subgraph size, although generated graphs tended to exhibit lower clustering than their reference inputs in 77 percent to 80 percent of runs. Language-model graphs also demonstrated heightened structural compactness, displaying smaller diameters than reference subgraphs in 53 percent to 70 percent of runs. An unperturbed baseline, LLM-NoDP, exhibited identical clustering and compactness trends, confirming that these biases stem from intrinsic graph-generation behaviours within the model rather than injected privacy noise. Paired comparisons between LEGEND and LLM-NoDP showed that privacy noise introduced statistically significant accuracy costs in only fourteen of ninety evaluated query comparisons, concentrated predominantly in edge counts and degree sequences at twenty and forty nodes.

Despite its structural fidelity, the experimental findings identify critical operational bottlenecks regarding output adherence, generation latency, and economic expense at larger scales. While twenty-node requests achieved perfect edge-list adherence, larger graphs experienced formatting failures: 4.4 percent of forty-node calls and 9.6 percent of sixty-node calls returned no parseable edge list, with 63 of these 70 non-compliant completions producing Python graph-generation scripts instead of explicit lists. These failures concentrated entirely within dense graphs containing higher edge counts, whereas sparse Enron subgraphs experienced zero formatting failures. A pilot test at eighty nodes on Chameleon observed a 30 percent failure rate, prompting researchers to bound the formal benchmark at sixty nodes. Furthermore, generation required between 75 and 158 seconds and thousands of tokens per graph, compared to under 0.2 seconds for DGG. Proposed future enhancements include local generation mechanisms that construct edge neighbourhoods iteratively, constrained decoding techniques, and benchmarking against open-weight local architectures.

Subject of Research: Differentially private synthetic graph generation using large language models

Article Title: LEGEND: A toolkit for differentially private graph publication using large language models

Article References: Liu, S., Zhang, W., & Yuan, G. (2026). LEGEND: A toolkit for differentially private graph publication using large language models. SoftwareX, 36, Article 103249. https://doi.org/10.1016/j.softx.2026.103249

Image Credits: AI Generated

DOI: 10.1016/j.softx.2026.103249

Keywords: Differential Privacy, Synthetic Graphs, Large Language Models, Graph Generation, Edge Differential Privacy, Degree Distribution, Network Science, Mixed-Integer Linear Programming, SoftwareX, Laplace Mechanism, Structural Fidelity, Graph Benchmarking, Constrained Inference, Erdos-Gallai Inequalities, Data Privacy, Open-Source Software, Graph Algorithms

News Source: Denise Maddox. (November 27, 2026). Toolkit Uses Large Language Models to Generate Differentially Private Synthetic Graphs. Scienmag.

Tags: Constrained Inferencedata privacydegree distributiondifferential privacyEdge Differential PrivacyErdos-Gallai Inequalitiesgraph algorithmsGraph BenchmarkingGraph GenerationLaplace mechanismLarge Language Modelsmixed-integer linear programmingnetwork scienceopen-source softwareSoftwareXStructural Fidelitysynthetic graphs
Share12Tweet7Share2ShareShareShare1

Related Posts

LoRA Leads Transformer Fine Tuning in Accuracy and Run Stability Benchmark

LoRA Leads Transformer Fine Tuning in Accuracy and Run Stability Benchmark

November 27, 2026
Open Source Tool Estimates European Electric Truck Charging Infrastructure Investment Costs

Open Source Tool Estimates European Electric Truck Charging Infrastructure Investment Costs

November 27, 2026

Elevated Pressure Accelerates Carbon Black Sublimation in High Temperature Argon

November 27, 2026

Editorial Examines Artificial Intelligence and Digital Tools in Modern Diabetes Management

November 27, 2026

POPULAR NEWS

  • Chloroplast DNA Markers Accurately Identify Nine Ethnomedicinal Plant Species in Bangladesh

    Chloroplast DNA Markers Accurately Identify Nine Ethnomedicinal Plant Species in Bangladesh

    29 shares
    Share 12 Tweet 7
  • Internalizing Symptoms Predict Substance Risk Among Colombian Justice-Involved Youth

    29 shares
    Share 12 Tweet 7
  • Elevated Pressure Accelerates Carbon Black Sublimation in High Temperature Argon

    29 shares
    Share 12 Tweet 7
  • Body Composition Metrics Correlate With Sarcopenia Indicators in Chinese Older Adults

    29 shares
    Share 12 Tweet 7

About

We bring you the latest biotechnology news from best research centers and universities around the world. Check our website.

Follow us

Recent News

LoRA Leads Transformer Fine Tuning in Accuracy and Run Stability Benchmark

Peripheral Nerve Aging May Influence Perineural Tumor Invasion Across Compartments

Open Source Tool Estimates European Electric Truck Charging Infrastructure Investment Costs

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 89 other subscribers
  • Contact Us

Bioengineer.org © Copyright 2023 All Rights Reserved.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Homepages
    • Home Page 1
    • Home Page 2
  • News
  • National
  • Business
  • Health
  • Lifestyle
  • Science

Bioengineer.org © Copyright 2023 All Rights Reserved.