AutoManifold

AutoManifold

Agentic Design of Data Visualisation Algorithms via Manifold Embedding

Say what your plot should preserve: tight clusters, global distances or local neighbourhoods. A team of LLM agents then designs, implements and tunes a new embedding algorithm for your data that does it.

Burak Susam1, Ruiyuan Kang2 and Tingting Mu1 1Department of Computer Science, University of Manchester 2X32 Studio, Abu Dhabi NeurIPS 2026

Schematic illustration. Real results below.
Preserve:

Every embedding method ships with a fixed trade-off

t-SNE, UMAP and PaCMAP dominate data visualisation. Each one decides at design time how much to favour local neighbourhoods over global layout and cluster separation. Hyperparameters only move you a little within that choice.

Designing a new algorithm for a different priority takes specialist knowledge and a lot of trial and error. And asking an LLM to just write one is unreliable: generated code tends to have numerical bugs, miscalibrated objectives and silent failures, and it drifts toward whatever the model saw in training rather than what you asked for.

  • t-SNE

    Matches neighbour similarity distributions. Strong local detail; distances between clusters carry little meaning.

  • UMAP

    Aligns fuzzy topological graphs. Faster and somewhat more global, still built for local fidelity.

  • PaCMAP

    Adds mid-near and far pairs to balance local and global structure, with one fixed balance.

  • AutoManifold

    Builds a new algorithm per dataset and per priority, from parts whose behaviour is known.

A unified framework the agents fill in

The paper breaks embedding design into the components that govern quality and writes each one as a template. Engines implement the fixed parts. Agents design the parts marked below, conditioned on the data and on your priority.

Designed by agents   Everything else is fixed, deterministic code

Embedding difficulty

Cluster the data into patches, embed each with t-SNE and UMAP, score them, and label every point hard, moderate or easy. Later components adapt to this label.

$$\mathrm{diff}(\mathbf{x}_i)=\htmlClass{agent}{\mathrm{assign}}\!\left(\sum_{l=1}^{L}\mathrm{score}_l\big(\{\mathbf{x}_j,\mathbf{z}_j\}_{\mathrm{clustID}(\mathbf{x}_j)=\mathrm{clustID}(\mathbf{x}_i)}\big)\right)$$

Adaptive affinity ensemble

Several neighbourhood graphs (distance measure × neighbourhood rule) are mixed with weights that can change from point to point, depending on local geometry, difficulty and global data traits.

$$a_{ij}=\sum_{l=1}^{Q}\htmlClass{agent}{w_l}\big(\mathbf{x}_i,\htmlClass{agent}{f^{(A)}}(\mathbf{x}_i),\mathrm{diff}(\mathbf{x}_i),\htmlClass{agent}{g}(\mathbf{X})\big)\,a_l\big(\mathbf{x}_i,\mathbf{x}_j;\theta^{(A)}_l\big)$$

Constrained multi-objective cost

A primary local objective is minimised while global objectives are held under thresholds, or everything is combined as a weighted sum or a Pareto problem. The agents choose the form and the weights.

$$\min_{\{\mathbf{z}_i\}}\sum_{l\in\mathcal{I}_p}\sum_{i=1}^{n}\htmlClass{agent}{\lambda_l}(\cdot)\,\htmlClass{agent}{O_l}(\mathbf{x}_i,\mathbf{z}_i,\mathrm{Opt}_{C_l})\quad\text{s.t.}\ \sum_{i=1}^{n}O_l\le\theta_l,\ l\in\mathcal{I}_c$$

Configuration and refinement

An initial configuration is guessed from data characteristics, then hyperparameters are refined in a loop that reads the reliability scores of each embedding.

$$\theta^{(t+1)}=\htmlClass{agent}{F_{\mathrm{update}}}\Big(\theta^{(t)},\big\{\mathrm{score}_l(\{(\mathbf{x}_i,\mathbf{z}_i)\})\big\}_{l=1}^{L}\Big)$$
6affinity primitives
5objective primitives
4optimisation solvers
6reliability scores

Agents may combine primitives freely but cannot invent new numerical kernels. The paper calls the result compositional novelty: new algorithms built from new combinations of known, numerically safe parts.

Twelve agents, six phases, one planner

Agents propose. Engines measure.

Every LLM output is checked by deterministic code before it counts. A planner runs the workflow, worker agents each own one narrow task with a fixed JSON output, and compute engines produce the embeddings and scores. Select a phase to see who does what.

InputHigh-dimensional dataYour priority
OutputAlgorithm codePseudocode and mathsMetrics vs baselines

Baseline analysis

Engines
The DR-Visualisation engine runs t-SNE, UMAP and PaCMAP; the Quantitative Analyst engine scores them on all six reliability metrics.
Hands on
The best baseline and the metric targets for the refinement loop. The synthesiser later sees these so it knows what it has to beat.
DR-V DR-visualisation engine QAE quantitative analyst engine CE clustering engine A6 is the optimisation core of the loop

Ask for cluster separation, get cluster separation

On cortex development data, the three baselines score above 0.9 on local fidelity yet squash cell types into overlapping ribbons. Asked to prioritise silhouette, AutoManifold designed a new affinity graph and objective that pull cells of the same type into compact, clearly separate groups.

Four scatter plots of the cortex dataset. Auto-Sil shows many compact, well-separated coloured clusters. t-SNE, UMAP and PaCMAP show overlapping ribbons and mixed colours.
Cortex development, Auto-Sil against t-SNE, UMAP and PaCMAP. Silhouette rises from about −0.02 for every baseline to 0.57, while trustworthiness stays above 0.80.
0.572Auto-Sil silhouette
−0.015t-SNE
−0.023UMAP
−0.020PaCMAP
Four scatter plots of PBMC3k. Auto-L shows clear clusters with visible sub-cluster structure; the baselines show the same cell types with less internal detail.
PBMC3k, Auto-L against the baselines. Asked to reduce outliers, the agents produced an algorithm that also raised local fidelity (trustworthiness 0.882, best of all methods) and shows sub-cluster structure more clearly.

Steering works best on global structure

For each of the six reliability scores, AutoManifold designed a separate algorithm targeting it. A filled dot means the generated algorithm beat the best of tuned t-SNE, UMAP and PaCMAP on its own target.

Spearman correlation and silhouette are won on all six datasets, stress on five. Local metrics are harder to beat because the primitives can already reproduce strong baselines there, a limitation the paper discusses openly.

Full results by dataset

Bold best of all 12 methods Underlined generated algorithm beats the best baseline score the variant was asked to improve ↑ higher is better, ↓ lower is better

More than hyperparameter tuning

On PBMC3k, every approach was asked to optimise one global score at a time: a 50-trial random search over t-SNE, a single LLM prompt (SingleLLM), a skeleton-free multi-agent system (NoSkel-Agents) and AutoManifold. Tuning t-SNE barely moves the global scores, and the two less structured LLM setups are less reliable on the scores they were not targeting.

Bold marks the best value in each priority block. Values from Table 2 of the paper.

What one run looks like

The refinement loop logs agent grades and all reliability scores per iteration, and the forensics agent annotates the final plot so you can see where it can be trusted.

Two line charts over five iterations: evaluator and implicit quality scores rise from about 2 to 8.5; silhouette climbs from −0.2 to about 0.57 while trustworthiness stays near 0.88.
Auto-Sil on cortex, five refinement iterations. Iteration 4 is selected: it best fits the requested priority, and the agents' grades agree with the measured scores.
Final embedding of cortex cell types beside a distortion heatmap. Dashed circles mark a central high-distortion core and disrupted hierarchies; a solid green circle marks a well-preserved outlier cluster.
Visual forensics by Agent 9. A distortion heatmap with marked high-distortion regions, broken hierarchies and well-preserved areas.

Run it on your own data

The repository includes a web UI for every pipeline mode and a command-line tool. Use a built-in dataset or upload a CSV, pick an LLM provider and say what to optimise.

Works with OpenAI, Anthropic, Google Gemini and DeepSeek. Python 3.10 or newer. The test suite uses mocked LLM clients, so it runs without API keys.

Open the repository on GitHub

git clone https://github.com/buraksusam/AutoManifold_NeurIPS2026.git
cd AutoManifold_NeurIPS2026
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env   # add your LLM API key

python serve.py --open # web UI at http://localhost:8000
  • AutoManifoldautomanifold

    The full method: specialised agents analyse the data, design affinity and cost from the primitive library, then synthesise, validate and refine a new algorithm.

  • NoSkel-Agentsnoskel_agents

    Ablation without the framework skeleton. A designer agent starts from a blank canvas and spawns analysis sub-agents on demand.

  • Auto-Skillsauto_skills

    One autonomous agent drives the design by calling skills and deterministic compute tools.

  • SingleLLMsinglellm

    Baseline: one prompt produces the whole algorithm, with no agents and no data context.

  • Optimizationoptimization

    Tunes an existing method (t-SNE, UMAP, PaCMAP or PCA) with LLM-guided iterative refinement.

Cite

@inproceedings{automanifold2026,
  title     = {AutoManifold: Agentic Design of Data Visualisation
               Algorithms via Manifold Embedding},
  author    = {Susam, Burak and Kang, Ruiyuan and Mu, Tingting},
  booktitle = {Advances in Neural Information Processing Systems},
  year      = {2026}
}

The hyperparameter refinement loop builds on Explainable Iterative Data Visualisation Refinement via an LLM Agent (Susam and Mu, IEEE CG&A 2026).