Video walkthrough

Reinforced Labels: Multi-Agent Deep Reinforcement Learning for Point-Feature Label Placement

In depth 10:47 CC AI

paperi.ai
0:00 / 0:00

Petr Bobák, Ladislav Čmolík, Martin Čadík

What if every label on a crowded map had its own learning agent? This paper turns label placement into a multi-agent reinforcement-learning problem, and gets more complete layouts, at the cost of speed.

Abstract

Over the recent years, Reinforcement Learning combined with Deep Learning techniques has successfully proven to solve complex problems in various domains, including robotics, self-driving cars, and finance. In this paper, we are introducing Reinforcement Learning (RL) to label placement, a complex task in data visualization that seeks optimal positioning for labels to avoid overlap and ensure legibility. Our novel point-feature label placement method utilizes Multi-Agent Deep Reinforcement Learning to learn the label placement strategy, the first machine-learning-driven labeling method, in contrast to the existing hand-crafted algorithms designed by human experts. To facilitate RL learning, we developed an environment where an agent acts as a proxy for a label, a short textual annotation that augments visualization. Our results show that the strategy trained by our method significantly outperforms the random strategy of an untrained agent and the compared methods designed by human experts in terms of completeness (i.e., the number of placed labels). The trade-off is increased computation time, making the proposed method slower than the compared methods. Nevertheless, our method is ideal for scenarios where the labeling can be computed in advance, and completeness is essential, such as cartographic maps, technical drawings, and medical atlases. Additionally, we conducted a user study to assess the perceived performance. The outcomes revealed that the participants considered the proposed method to be significantly better than the other examined methods. This indicates that the improved completeness is not just reflected in the quantitative metrics but also in the subjective evaluation by the participants.

Transcript

What if every label on a crowded map had its own learning agent? This paper turns label placement into a multi-agent reinforcement-learning problem—and gets more complete layouts, at the cost of speed. Textual labels add an informational layer to a visualization, such as cities, highways, and bodies of water on a geographical map.

The practical motivation is substantial: manual labeling of geographical maps takes up to 50% of overall production time. And even simplified versions of the label placement problem are NP-hard, so real-world systems often need heuristics to find feasible positions for many labels.

Existing approaches include hand-engineered objectives, but those objectives may not describe the actual objective function of point-feature labeling in a mathematical formulation. Rule-based techniques are greedy: once a solution for a label is found, its position cannot be rearranged later.

As a result, rule-based techniques do not guarantee optimality and are less flexible because their objectives have to be hardcoded. Evolution, genetic, and force-based approaches often get stuck in local optima. Point-feature label placement is presented as a reinforcement-learning problem, where decision-making is driven by experience to maximize a numerical reward signal.

Over discrete-time steps, an agent senses the environment state, takes actions that affect that state, and receives a reward. Learning from experience overcomes the lack of label-placement datasets needed for supervised learning. Deep Reinforcement Learning combines Deep Learning with reinforcement learning and has enabled scaling reinforcement learning to previously intractable problems, including labeling.

Deep Reinforcement Learning is considered well suited to point-feature label placement, but applying it creates challenges: complex training, variable numbers of anchors and labels, and vast continuous state and action spaces. The approach also demands careful design of neural network architectures, the state space, and the action space.

The research addresses these issues by devising strategies for this new approach to the problem. The method introduces a Multi-Agent Deep Reinforcement Learning formulation for point-feature labeling, described as the first machine-learning-driven labeling method in contrast to existing hand-crafted algorithms.

Its efficient feedforward neural network has less than half a million parameters and serves as both a policy and value-function approximation. Multi-Agent Reinforcement Learning offers significant benefits over Single-Agent Reinforcement Learning for this labeling problem.

In Single-Agent Reinforcement Learning, one agent acts as a supervisor managing all labels at once, so the observation and action space size changes with the number of labels. With an agent for each label in Multi-Agent Reinforcement Learning, each agent's individual observation and action space can be designed as fixed-sized.

The number of agents can vary, while the observation and action-space size does not vary in the same way as in Single-Agent Reinforcement Learning. The custom-developed AdjacentPFLEnv transforms the adjacent point-feature labeling problem into an environment for reinforcement learning.

The environment contains anchors inside a rectangular drawing region, and each anchor is paired with an axis-aligned box called a label agent. Each label agent's origin lies on the circumference of a slider rectangle and remains tethered to its anchor through an attachment point called a port.

Initially, a label agent is placed primarily at the most preferred position in the upper-right quadrant of the four-position model, even though agents can initially conflict through overlap or penetration. Figure two defines the label-agent geometry and shows how local observations are collected.

Panel a names elements such as the label, anchor, origin, and slider rectangle, while panel b illustrates thirty-two LiDAR-like rays measuring intersection distance and type, along with mass along each ray. It also visualizes overlap, anchor penetration, and displacement across time steps, showing how these quantities form a compact state representation for decentralized label placement.

During evaluation, the environment can contain any number of label agents, even though the policy was trained with only one to two agents. The method uses reinforcement learning's ability to generalize to unseen instances to find placements for hundreds of anchors rather than just two.

The drawing-area size, label size, and other parameters can be selected arbitrarily. The mapping vector encodes an agent's surroundings through 32 ray sensors distributed uniformly around the label boundaries, functioning similarly to LiDAR sensors.

The sensors measure distance to the closest intersection and the type of object intersected: a label, an anchor, or an environment bound. The mapping vector also captures the count and mass of labels that each ray passed through. The goal is cooperation among agents so that each anchor receives a conflict-free label position.

To provide feedback, the method combines local and global rewards. The local reward is based solely on an agent's individual efforts, while the global reward is based on the entire state of the environment. Figure four outlines the Reinforced Labels system as a shared-policy multi-agent architecture: each agent controls one label origin using local observations, while local and global rewards guide training.

The network separates mapping and self-aware inputs, then produces both a state value and the parameters of a normal action distribution, from which an origin adjustment is sampled. This design matters because shared parameters and local observations support parallel evaluation with arbitrary numbers of anchors.

The feedforward network has less than half a million parameters—412 thousand—and contains mapping and self-aware input heads with value and policy output branches. Ray observations in the mapping head pass through a circular one-dimensional convolution layer to capture correlations between individual readings, including tensor borders.

The other observation modalities form the self-aware head, are concatenated and embedded by a dense layer, and then join the mapping head in a final shared dense layer. Two separate dense layers finally split the result into value and policy branches.

Performance is measured with completeness, the percentage of complete labelings for a given set of instances. For a dataset of ten instances, method M1 finds eight complete conflict-free layouts and two incomplete conflict-free layouts with removed labels.

Method M2 finds nine complete layouts and one incomplete layout with remaining label-label or label-anchor conflicts. That gives M1 a completeness of 80% and M2 a completeness of 90%, so M2 performs better in this example. Table one reports architectural ablations on the compact dataset, using overall completeness alongside average solution steps, inference time per step, and parameter count.

The RFL Conv configuration records ninety-seven point nine percent completeness, thirty point seven two one steps, three point zero seven seven milliseconds per step, and zero point four one two million parameters. Across the listed variants, the table makes the trade-offs between model complexity, runtime, and completeness explicit, while also including the RFL rllib baseline.

Figure five compares completeness, computation time, and episode length for several labeling methods on compact and volume datasets as anchor counts increase. The completeness charts show how often instances are fully labeled, while the time and episode-length charts summarize computational cost and search effort, including means, quartiles, and medians.

The authors caution that PBL-AD is not directly comparable with adjacent-only methods because distant labels and leader lines give it additional placement freedom. Table three compares RFL, RAPL, PBL-AD, and PBL-A across their paradigms, position models, label positions, heuristics, computation-time requirements, completeness, and resolution independence.

It shows RFL using continuous, non-greedy labeling with high completeness but non-interactive computation, while the other methods use discrete positions and offer interactive or highly interactive computation in the listed cases. The authors frame this as a use-case trade-off: RFL suits pre-computed maps and atlases, whereas faster methods may fit interactive applications.

Figure six reports the user study’s quality scores on a z-score scale, with ninety-five percent confidence intervals, for RFL, PBL-A, PBL-AD, and RAPL. Solid blue brackets mark statistically significant pairwise differences, including comparisons involving RFL, while red dashed brackets identify comparisons without evidence of a significant difference and display their p-values.

The chart therefore connects user preferences with statistical testing, supporting the authors’ conclusion that RFL was significantly preferred over the other evaluated methods. The user-study results clearly reject the null hypothesis: RFL has the best quality score, significantly better than the quality scores of the remaining evaluated methods.

In practical terms, RFL was preferred by users over the remaining evaluated methods. Among RAPL, PBL-A, and PBL-AD, the results suggest no significant difference in user preference. The proposed method has several acknowledged flaws and limitations.

The first limitation is introduced as a current restriction of RFL, although the provided text does not state the restriction's full description. Reinforced Labels learns a strategy that improves labeling completeness and user preference over the examined alternatives, while taking longer to compute.

That trade-off makes it especially useful when quality matters more than immediate results.

A derivative work by Paperi · AI-generated script, voice and captions · pages and figures unaltered

Made with Paperi.

Drop in a research PDF — get a narrated video walkthrough like this one, with highlights that follow the narration. Free to start.

Try it with your paper →

More papers

Fast and slow surfactants in turbulence-driven bubble breakup 4:22

Fast and slow surfactants in turbulence-driven bubble breakup

A stormy patch of water can make bubbles in two very different ways: surfactants may leave the larger bubbles untouched while creating up to five times as many tiny ones. The key is not just what the surfactant is, but how fast it arrives.

Solvent effects on the electronic structure, excited states, and nonlinear optical properties of two anthracene-based chalcone derivatives: a DFT and TD-DFT study 4:50

Solvent effects on the electronic structure, excited states, and nonlinear optical properties of two anthracene-based chalcone derivatives: a DFT and TD-DFT study

What if the liquid around a molecule could change not just how it absorbs light, but which of two molecules appears more powerful? This study finds that the answer can switch with the solvent.

Assessing primary health care network preparedness for future pandemics in Lebanon 3:58

Assessing primary health care network preparedness for future pandemics in Lebanon

A health clinic can report a dangerous disease quickly and still be unprepared for the next pandemic. In Lebanon, that contradiction is exactly what this study uncovered.

Browse all papers →