Symmetry
Symmetry in search and planning

Symmetry, Near Symmetry and its Exploitation in Planning and Search

Research Programme: Derek Long, Maria Fox and Julie Porteous
Supported by EPSRC grant: GR/S11015/01 Symmetry-breaking in Planning
NEAR
Symmetry in Planning Near Symmetry in Planning Beyond Planning
Spectral Graph Analysis and Near Symmetry Software Related materials

Introduction

Symmetry plays an important role in search. In particular, where a search space is generated by a significant number of symmetric choices, the symmetries create redundancy in the search space. This can lead to several effects:

  • symmetries can multiply the number of uninterestingly different solutions
  • symmetries can multiply entire parts of the search space in which no solutions exist
  • symmetries can affect the relative density of solutions in the search space, which can impact on local search techniques
These phenomena often lead to inefficiency in search, due to unnecessary repetition of symmetrically equivalent search. Various techniques have been explored in a range of search contexts to aid in the reduction of this inefficiency. These techniques are often called symmetry breaking techniques, since they rely on identifying symmetries and introducing new constraints to break them and remove the redundancy the symmetries introduce. An example is lexicographic ordering constraints that require only the first of a collection of symmetric branches in a search space to be considered.

Symmetry in Planning

In our earlier work on symmetry, we explored these phenomena in the context of planning search spaces. In planning some special issues arise that distinguish the behaviour of symmetry in these problems from that in other search problems: planning problems are naturally dynamic (that is, the choices lead to state changes over time) and this dynamism can mean that objects make transitions between symmetric and non-symmetric states at various stages of execution of the plan. As a consequence, sometimes the choices that must be made between alternative objects are symmetric choices and sometimes they are not. Tracking this changing status is an important problem in handling symmetry in planning and doing so efficiently is a particularly hard challenge.

Symmetry impacts on planning in multiple ways (SymCon'03):

  • Object symmetries: a collection of objects in a planning problem can be interchangeable. This symmetry arises because of naming of otherwise identical objects (IJCAI'99 and ICAPS'02).
  • Configuration symmetries: multiple collections of objects form symmetric configurations. That is, the relationships that hold between one collection of objects are isomorphic to the relationships that hold between another collection of objects. These collections of objects are then interchangeable in solutions. Object symmetries are a special case of configuration symmetries, but also easier to handle than the general case.
  • Plan permutation symmetries (PlanSIG'03): often the ordering of some sequence of actions can be permuted without changing the final state that the sequence generates. This can lead to sigificant inefficiency in planners that consider alternative orderings of actions as part of their search. For example, a forward state space planner such as FF will, when crossing plateaux in the search space, consider alternative orderings of actions that ultimately converge on the same final state.

Relevant publications

"Discovering Near Symmetry in Graphs." M. Fox, D. Long, and J. Porteous. Proceedings of AAAI. 2007. Visit website (BibTeX)

"Abstaction-based Action Ordering in Planning." M. Fox, D. Long, and J. Porteous. International Joint Conference on AI (IJCAI). 2005. Visit website (BibTeX)

"Restoring Symmetries in Almost Symmetric Graph Structures." D. Long and M. Fox. Proceedings of SymNet Workshop on Almost-Symmetry in Search. 2005. Visit website (BibTeX)

"On the Extraction of Disjunctive Landmarks from Planning Problems via Symmetry Reduction." P. Gregory, S. Cresswell, D. Long, and J. Porteous. Proceedings of the 4th International Workshop on Symmetry and Constraint Satisfaction Problems. 2004. pp. 34--41. Visit website (BibTeX)

"The Identification and Exploitation of Almost Symmetry in Planning Problems." J. Porteous, D. Long, and M. Fox. Proceedings of the 23rd UK Planning and Scheduling SIG. 2004. Download PDF (BibTeX)

"Plan Permutation Symmetries as a Source of Inefficiency in Planning." D. Long and M. Fox. Proceedings of 22nd UK Planning and Scheduling SIG. 2003. Visit website (BibTeX)

"Symmetries in Planning Problems." D. Long and M. Fox. Proceedings of SymCon'03 (CP Workshop). 2003. Download PDF (BibTeX)

"Extending the Exploitation of Symmetries in Planning." M. Fox and D. Long. Proceedings of AIPS'02. 2002. pp. 83-91. Download PDF (BibTeX)

"The Detection and Exploitation of Symmetry in Planning Problems." M. Fox and D. Long. Proceedings of IJCAI'99. 1999. pp. 956-961. (BibTeX)

Near Symmetry in Planning

Although symmetries appear in planning problems, our analysis has led us to the conclusion that the extent of its impact on realistic problems is limited. The construction of families of problems that allow specific phenomena to be explored has artificially inflated its apparent importance. Instead, a much more significant phenomenon is a situation we have described as almost symmetry or near symmetry. This is the situation in which multiple objects start with slightly different properties or in slightly different configurations, but these differences are essentially insignificant with respect to their possible roles in a plan. For example, if there are multiple trucks available to transport some goods and they start at slightly different initial locations, the small differences in initially deploying the trucks to the starting location for the delivery sequence will probably be unimportant.

We have examined the exploitation of near symmetry in planning problems and identified a positive role it can play in helping to guide a planner to choose actions that are nearly symmetric to those that it has already used that appear to be promoting the solution (PlanSIG'04 and IJCAI'05).

Beyond Planning

Our investigations of the importance of near symmetry in planning led us to begin to explore near symmetry in a more abstract form. This has become a key focus of more recent research on symmetry. In particular, we have begun to explore the concept of near symmetries in graphs (SymNet'05 and AAAI'07). The idea behind this work is that a graph can be used as a very general representation of relational structures, including planning problems, CSPs, SAT problems and other search-related structures, molecules, engineering designs, dependency structures and so on. Near symmetries can often represent important and relevant structures, yet the standard techniques for identifying symmetry in graphs are unable to identify them at all.

Other Presentations

SymNet International Conference on Symmetry: Tutorial on symmetry in planning, 2007, Derek Long

Invited speaker at University of Brescia, 2005, Derek Long

SymNet Summer School, 2004, Derek Long

Panelist (Symmetries in Search) at Workshop on Automated Reasoning, 2003, Derek Long

For example, the figure below shows a large near symmetric graph, laid out using neato. The near symmetry is largely disguised by this layout. Applying a graph automorphism detection algorithm to it yields the automorphisms:

(28 50)(43 94)
(16 67)(29 74)
(30 96)
(84 86)
(39 58)(80 93)

In contrast, after just three edge contractions, the graph becomes the following (again laid out by neato). This has automorphisms:

(5 21)(31 33)
(64 83)
(0 87)(1 17)(2 81)(3 44)(4 41)(5 80)(6 97)(7 15)(8 51)(9 13)(10 24)
   (11 55)(12 59)(14 34)(16 94)(18 85)(19 27)(20 35)(21 93)(22 90)
   (23 77)(25 68)(26 38)(28 29)(30 84)(31 58)(32 37)(33 39)(36 79)
   (40 89)(42 91)(43 67)(45 76)(46 48)(47 92)(49 62)(50 74)(52 56)
   (57 66)(60 95)(61 70)(65 73)(69 82)(71 72)(75 98)(86 96)

We have developed an algorithm that allows us to identify this kind of near symmetry automatically. This might have useful applications in a range of problems. For example, a powerful use of graph symmetries in SAT solving is to add constraints that break clause symmetries to the formula. Where clauses are almost symmetric then no such constraints can be generated. However, a near symmetry

Spectral Graph Theory and Symmetry

A recent avenue of exploration is the relationship between graph spectra and symmetry. It is clear that a symmetric graph will have symmetries between components of its eigenvectors corresponding to the symmetric vertices of the graph. Small modifications of graphs correspond to low rank perturbations to the adjacency matrices (rank one for edge addition or removal and rank two for edge contraction). It is already known that such changes lead to small perturbations in the eigenvalues for a graph, but what is less well explored is what the impact might be on eigenvectors. We are progressing an exploration with a mathematician to attempt to determine what significance this might have.

Software

We have produced various software tools as part of the project. These will eventually be added here.

Spectral Graph Layout

One software tool that was developed by Stephen Seggie as part of his undergraduate degree is a spectral graph layout tool. This is a very useful way to visualise the relationship between symmetries and graph spectra and their eigenvectors. It accepts data in a limited "dot" format. The graphs must appear as:

graph NAME {
e1 -- e2
e3 -- e4 
...
}
meaning that they are undirected graphs with unweighted edges. To run the tool you will need to have Java (at least 1.5) and Java3d installed.

The software is available as a jar file here. The following pictures give some idea of the visual appeal of these layouts.

Available Software

SGL: Spectral Graph Layout tool.

Author: Stephen Seggie

Available as a Java jar file. Requires Java3d and Java version >= 1.5.

Download

Mysterious Symmetry

A layout using eigenvectors for widely spaced eigenvalues

Close up

Highlighting a symmetry

An almost symmetric graph of 100 vertices.

Other Materials and Links

Symmetry has been a subject of considerable interest in the search community. Materials can be found at the following sites: